comparison configure.in @ 948:ac488ad4ef1d

Don't fail if we don't have ALSA available
author Sam Lantinga <slouken@libsdl.org>
date Tue, 24 Aug 2004 06:32:50 +0000
parents c7c04f811994
children d74fbf56f2f6
comparison
equal deleted inserted replaced
947:3bb035750537 948:ac488ad4ef1d
280 { 280 {
281 AC_ARG_ENABLE(alsa, 281 AC_ARG_ENABLE(alsa,
282 [ --enable-alsa support the ALSA audio API [default=yes]], 282 [ --enable-alsa support the ALSA audio API [default=yes]],
283 , enable_alsa=yes) 283 , enable_alsa=yes)
284 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then 284 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
285 have_alsa=no 285 AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no)
286 AM_PATH_ALSA(0.9.0, have_alsa=yes)
287 if test x$have_alsa = xyes; then 286 if test x$have_alsa = xyes; then
288 AC_ARG_ENABLE(alsa-shared, 287 AC_ARG_ENABLE(alsa-shared,
289 [ --enable-alsa-shared dynamically load ALSA audio support [default=yes]], 288 [ --enable-alsa-shared dynamically load ALSA audio support [default=yes]],
290 , enable_alsa_shared=yes) 289 , enable_alsa_shared=yes)
291 if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then 290 if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then
362 { 361 {
363 AC_ARG_ENABLE(esd, 362 AC_ARG_ENABLE(esd,
364 [ --enable-esd support the Enlightened Sound Daemon [default=yes]], 363 [ --enable-esd support the Enlightened Sound Daemon [default=yes]],
365 , enable_esd=yes) 364 , enable_esd=yes)
366 if test x$enable_audio = xyes -a x$enable_esd = xyes; then 365 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
367 use_esd=no 366 AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no)
368 AM_PATH_ESD(0.2.8, use_esd=yes) 367 if test x$have_esd = xyes; then
369 if test x$use_esd = xyes; then
370 AC_ARG_ENABLE(esd-shared, 368 AC_ARG_ENABLE(esd-shared,
371 [ --enable-esd-shared dynamically load ESD audio support [default=yes]], 369 [ --enable-esd-shared dynamically load ESD audio support [default=yes]],
372 , enable_esd_shared=yes) 370 , enable_esd_shared=yes)
373 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'` 371 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'`
374 esd_lib=`ls $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` 372 esd_lib=`ls $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`