560 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then |
560 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then |
561 AC_MSG_ERROR([It is not possible to disable the use of alsa. Remove the --without-alsa option.]) |
561 AC_MSG_ERROR([It is not possible to disable the use of alsa. Remove the --without-alsa option.]) |
562 fi |
562 fi |
563 |
563 |
564 if test "x${with_alsa}" != x; then |
564 if test "x${with_alsa}" != x; then |
565 ALSA_LIBS="-L${with_alsa}/lib -lalsa" |
565 ALSA_LIBS="-L${with_alsa}/lib -lasound" |
566 ALSA_CFLAGS="-I${with_alsa}/include" |
566 ALSA_CFLAGS="-I${with_alsa}/include" |
567 ALSA_FOUND=yes |
567 ALSA_FOUND=yes |
568 fi |
568 fi |
569 if test "x${with_alsa_include}" != x; then |
569 if test "x${with_alsa_include}" != x; then |
570 ALSA_CFLAGS="-I${with_alsa_include}" |
570 ALSA_CFLAGS="-I${with_alsa_include}" |
571 ALSA_FOUND=yes |
571 ALSA_FOUND=yes |
572 fi |
572 fi |
573 if test "x${with_alsa_lib}" != x; then |
573 if test "x${with_alsa_lib}" != x; then |
574 ALSA_LIBS="-L${with_alsa_lib} -lalsa" |
574 ALSA_LIBS="-L${with_alsa_lib} -lasound" |
575 ALSA_FOUND=yes |
575 ALSA_FOUND=yes |
576 fi |
576 fi |
577 if test "x$ALSA_FOUND" = xno; then |
577 if test "x$ALSA_FOUND" = xno; then |
578 BDEPS_CHECK_MODULE(ALSA, alsa, xxx, [ALSA_FOUND=yes], [ALSA_FOUND=no]) |
578 BDEPS_CHECK_MODULE(ALSA, alsa, xxx, [ALSA_FOUND=yes], [ALSA_FOUND=no]) |
579 fi |
579 fi |