From d9cf913d4ac4c7eba7b1ed3e64535bc36a94834e Mon Sep 17 00:00:00 2001 From: Matthias Dahl Date: Sat, 27 Apr 2002 20:06:50 +0000 Subject: Fixing bug and alsa09 detection... CVS patchset: 1785 CVS date: 2002/04/27 20:06:50 --- m4/alsa.m4 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/m4/alsa.m4 b/m4/alsa.m4 index 7918cfc62..2d82993b2 100644 --- a/m4/alsa.m4 +++ b/m4/alsa.m4 @@ -65,10 +65,8 @@ if test x"$enable_alsa" != "xno"; then fi ALSA_CFLAGS="$ALSA_CFLAGS" - AC_CHECK_HEADERS(alsa/asoundlib.h, - asoundlib_h="alsa/asoundlib.h", - AC_CHECK_HEADERS(sys/asoundlib.h, - asoundlib_h="sys/asoundlib.h")) + AC_CHECK_HEADER(alsa/asoundlib.h, [asoundlib_h="alsa/asoundlib.h"], \ + [AC_CHECK_HEADER(sys/asoundlib.h, asoundlib_h="sys/asoundlib.h")]) min_alsa_version=ifelse([$1], ,0.1.1,$1) AC_MSG_CHECKING([for ALSA version >= $min_alsa_version]) @@ -181,7 +179,7 @@ dnl #include #include -#include +#include <$asoundlib_h> int main() { @@ -213,7 +211,7 @@ dnl CFLAGS="$CFLAGS $ALSA_CFLAGS" LIBS="$LIBS $ALSA_LIBS" AC_TRY_LINK([ -#include +#include <$asoundlib_h> #include ], [return ((SND_LIB_MAJOR) || (SND_LIB_MINOR) || (SND_LIB_SUBMINOR));], -- cgit v1.2.3