Disabled building of static library, changed kernel to soundbase dir

This commit is contained in:
Jaroslav Kysela 2001-10-24 14:13:24 +00:00
parent 13b73a8f8f
commit de592e7c22

View file

@ -18,39 +18,24 @@ dnl Checks for programs.
AC_PROG_CC AC_PROG_CC
AC_PROG_INSTALL AC_PROG_INSTALL
AC_PROG_LN_S AC_PROG_LN_S
AC_DISABLE_STATIC
AC_LIBTOOL_DLOPEN AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL AM_PROG_LIBTOOL
dnl path for linux/asound.h dnl path for sound/asound.h
AC_ARG_WITH(kernel, AC_ARG_WITH(soundbase,
[ --with-kernel=dir give the directory with kernel sources (optional)], [ --with-soundbase=dir give the base directory with sound headers (optional)],
[kerneldir="$withval"], [kerneldir=""]) [soundbasedir="$withval"], [soundbasedir=""])
if test "$kerneldir" != "" -a -d $kerneldir/include ; then if test "$soundbasedir" != "" -a -r "$soundbasedir/sound" ; then
ALSA_CFLAGS="$ALSA_CFLAGS -I$kerneldir/include" ALSA_CFLAGS="$ALSA_CFLAGS -I$soundbasedir"
CFLAGS="$CFLAGS -I$kerneldir/include" CFLAGS="$CFLAGS -I$soundbasedir"
fi fi
AC_MSG_RESULT($ALSA_CFLAGS) AC_MSG_RESULT($ALSA_CFLAGS)
dnl dnl Check for asound.h localtion
dnl ASOUND_PATH=""
dnl if test x"$kerneldir" != x""; then
dnl if test -f $kerneldir/include/sound/asound.h; then
dnl ASOUND_PATH=$kerneldir/include/sound
dnl fi
dnl fi
dnl if test x$asound_loc = x ; then
dnl if test -f /usr/include/sound/asound.h; then
dnl ASOUND_PATH=/usr/include/sound
dnl else
dnl ASOUND_PATH=../../alsa-driver/include
dnl fi
dnl fi
dnl AC_SUBST(ASOUND_PATH)
dnl Checks for header files. dnl Checks for header files.
AC_HEADER_STDC AC_HEADER_STDC
AM_CONFIG_HEADER(include/config.h) AM_CONFIG_HEADER(include/config.h)
# AC_CHECK_HEADERS(linux/asound.h) # AC_CHECK_HEADERS(${soundbasedir}sound/asound.h)
dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST AC_C_CONST
@ -78,7 +63,7 @@ AC_DEFINE_UNQUOTED(DATADIR, "$dir")
dnl Check for debug... dnl Check for debug...
AC_MSG_CHECKING(for debug) AC_MSG_CHECKING(for debug)
AC_ARG_WITH(debug, AC_ARG_WITH(debug,
[ --with-debug=yes,no library will (not) be compiled with asserts], [ --with-debug=yes,no library will (not) be compiled with asserts],
debug="$withval", debug="yes") debug="$withval", debug="yes")
if test "$debug" = "yes"; then if test "$debug" = "yes"; then
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)