[xiph-cvs] cvs commit: ao configure.in
Stan Seibert
volsung at xiph.org
Tue Jun 12 17:14:38 PDT 2001
volsung 01/06/12 17:14:37
Modified: . configure.in
Log:
ALSA, ESD, and aRts plugins can now be disabled from the configure
script. Thanks to Marc Martinez for the suggested fix.
Revision Changes Path
1.20 +23 -8 ao/configure.in
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/ao/configure.in,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- configure.in 2001/05/17 15:28:44 1.19
+++ configure.in 2001/06/13 00:14:37 1.20
@@ -120,9 +120,14 @@
dnl Check for ESD
-AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no)
-AM_CONDITIONAL(HAVE_ESD,test "x$have_esd" = xyes)
+AC_ARG_ENABLE(esd, [ --enable-esd include ESD output plugin ],
+[ BUILD_ESD="$enableval" ],[ BUILD_ESD="yes" ])
+if test "$BUILD_ESD" = "yes"; then
+ AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no)
+ AM_CONDITIONAL(HAVE_ESD,test "x$have_esd" = xyes)
+fi
+
dnl Check for OSS
AC_CHECK_HEADERS(sys/soundcard.h)
@@ -131,9 +136,14 @@
dnl Check for ALSA
-AC_CHECK_LIB(asound, snd_pcm_open, have_alsa=yes, have_alsa=no)
-AM_CONDITIONAL(HAVE_ALSA,test "x$have_alsa" = xyes)
+AC_ARG_ENABLE(alsa, [ --enable-alsa include alsa 0.5 output plugin ],
+[ BUILD_ALSA="$enableval" ],[ BUILD_ALSA="yes" ])
+if test "$BUILD_ALSA" = "yes"; then
+ AC_CHECK_LIB(asound, snd_pcm_open, have_alsa=yes, have_alsa=no)
+ AM_CONDITIONAL(HAVE_ALSA,test "x$have_alsa" = xyes)
+fi
+
if test "x$have_alsa" = xyes; then
ALSA_LIBS="-lasound"
else
@@ -147,14 +157,19 @@
AM_CONDITIONAL(HAVE_SUN_AUDIO,test "${ac_cv_header_sys_audioio_h}" = yes)
dnl Check for aRts
+
+AC_ARG_ENABLE(arts, [ --enable-arts include aRts output plugin ],
+[ BUILD_ARTS="$enableval" ],[ BUILD_ARTS="yes" ])
-AC_PATH_PROG(ARTSC_CONFIG, artsc-config)
-AM_CONDITIONAL(HAVE_ARTS,test "x$ac_cv_path_ARTSC_CONFIG" != x)
+if test "$BUILD_ARTS" = "yes"; then
+ AC_PATH_PROG(ARTSC_CONFIG, artsc-config)
+ AM_CONDITIONAL(HAVE_ARTS,test "x$ac_cv_path_ARTSC_CONFIG" != x)
-if test "x$ac_cv_path_ARTSC_CONFIG" != x
-then
+ if test "x$ac_cv_path_ARTSC_CONFIG" != x
+ then
ARTS_CFLAGS=`$ac_cv_path_ARTSC_CONFIG --cflags`
ARTS_LIBS=`$ac_cv_path_ARTSC_CONFIG --libs`
+ fi
fi
AC_SUBST(ARTS_CFLAGS)
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list