diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2002-04-27 14:04:53 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2002-04-27 14:04:53 +0000 |
commit | 391bdc4d345ccc58ee98b692c789e4b36ca4e247 (patch) | |
tree | 58c34c7fe2b68d6d4a91e3d79d9b1b9893c480cb /m4 | |
parent | b96d33b573af28e47f185cedb6c3d7efda60d70f (diff) | |
download | xine-lib-391bdc4d345ccc58ee98b692c789e4b36ca4e247.tar.gz xine-lib-391bdc4d345ccc58ee98b692c789e4b36ca4e247.tar.bz2 |
Try do use the right asoundlib header file (avoid warning message).
CVS patchset: 1780
CVS date: 2002/04/27 14:04:53
Diffstat (limited to 'm4')
-rw-r--r-- | m4/alsa.m4 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/m4/alsa.m4 b/m4/alsa.m4 index 67e5d1049..7918cfc62 100644 --- a/m4/alsa.m4 +++ b/m4/alsa.m4 @@ -65,6 +65,11 @@ 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")) + min_alsa_version=ifelse([$1], ,0.1.1,$1) AC_MSG_CHECKING([for ALSA version >= $min_alsa_version]) if test "x$enable_alsatest" = "xyes" ; then @@ -76,6 +81,7 @@ if test x"$enable_alsa" != "xno"; then dnl dnl Now check if the installed ALSA is sufficiently new. dnl + AC_LANG_SAVE() AC_LANG_C() rm -f conf.alsatest @@ -84,7 +90,7 @@ dnl #include <stdlib.h> #include <string.h> -#include <sys/asoundlib.h> +#include <$asoundlib_h> int main() { int major, minor, micro; @@ -146,7 +152,7 @@ dnl #include <stdlib.h> #include <string.h> -#include <sys/asoundlib.h> +#include <$asoundlib_h> int main() { |