]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fixed checking for sound/asound.h
authorJaroslav Kysela <perex@perex.cz>
Thu, 7 Feb 2002 15:57:44 +0000 (15:57 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 7 Feb 2002 15:57:44 +0000 (15:57 +0000)
configure.in

index 363a9481b3d68763204441433bcc0037587817c8..97f131ebc3c13dd09f808c54a3abdc5d38baf6a5 100644 (file)
@@ -23,19 +23,22 @@ AC_LIBTOOL_DLOPEN
 AM_PROG_LIBTOOL
 
 dnl path for sound/asound.h
+AC_MSG_CHECKING(for directory with ALSA kernel headers)
 AC_ARG_WITH(soundbase,
   [  --with-soundbase=dir    give the base directory with sound headers (optional)],
   [soundbasedir="$withval"], [soundbasedir=""])
 if test "$soundbasedir" != "" -a -r "$soundbasedir/sound" ; then
   ALSA_CFLAGS="$ALSA_CFLAGS -I$soundbasedir"
   CFLAGS="$CFLAGS -I$soundbasedir"
+  AC_MSG_RESULT($ALSA_CFLAGS)
+else
+  AC_MSG_RESULT("not specified - using C compilator defaults")
 fi
-AC_MSG_RESULT($ALSA_CFLAGS)
 
 dnl Checks for header files.
 AC_HEADER_STDC
 AM_CONFIG_HEADER(include/config.h)
-# AC_CHECK_HEADERS(${soundbasedir}sound/asound.h)
+AC_CHECK_HEADERS(sound/asound.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST