Update of /cvsroot/alsa/alsa-lib/utils
In directory sc8-pr-cvs1:/tmp/cvs-serv513/utils
Modified Files:
alsa.m4
Log Message:
- fixed for the recent autoconf/automake.
- implemented --enable-alsatest feature.
Index: alsa.m4
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/utils/alsa.m4,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- alsa.m4 27 May 2002 11:14:20 -0000 1.22
+++ alsa.m4 16 Jan 2004 18:14:22 -0000 1.23
@@ -7,12 +7,12 @@
dnl Test for libasound, and define ALSA_CFLAGS and ALSA_LIBS as appropriate.
dnl enables arguments --with-alsa-prefix=
dnl --with-alsa-enc-prefix=
-dnl --disable-alsatest (this has no effect, as yet)
+dnl --disable-alsatest
dnl
dnl For backwards compatibility, if ACTION_IF_NOT_FOUND is not specified,
dnl and the alsa libraries are not found, a fatal AC_MSG_ERROR() will result.
dnl
-AC_DEFUN(AM_PATH_ALSA,
+AC_DEFUN([AM_PATH_ALSA],
[dnl Save the original CFLAGS, LDFLAGS, and LIBS
alsa_save_CFLAGS="$CFLAGS"
alsa_save_LDFLAGS="$LDFLAGS"
@@ -33,7 +33,7 @@
dnl FIXME: this is not yet implemented
AC_ARG_ENABLE(alsatest,
[ --disable-alsatest Do not try to compile and run a test Alsa program],
-[enable_alsatest=no],
+[enable_alsatest="$enableval"],
[enable_alsatest=yes])
dnl Add any special include directories
@@ -116,10 +116,12 @@
AC_LANG_RESTORE
dnl Now that we know that we have the right version, let's see if we have the library
and not just the headers.
+if test "x$enable_alsatest" = "xyes"; then
AC_CHECK_LIB([asound], [snd_ctl_open],,
[ifelse([$3], , [AC_MSG_ERROR(No linkable libasound was found.)])
alsa_found=no]
)
+fi
if test "x$alsa_found" = "xyes" ; then
ifelse([$2], , :, [$2])
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog