mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Add --with-kernel in configure script to specify the directory
where new ALSA headers have been installed.
This commit is contained in:
parent
4970e30e25
commit
650e17d0ba
2 changed files with 11 additions and 8 deletions
|
|
@ -1,11 +1,5 @@
|
||||||
dnl Check for ALSA driver package.
|
dnl Check for ALSA driver package.
|
||||||
AC_DEFUN(ALSA_CHECK_DRIVER, [
|
AC_DEFUN(ALSA_CHECK_DRIVER, [
|
||||||
myprefix=$prefix
|
|
||||||
if test "$myprefix" = "NONE"; then
|
|
||||||
myprefix=$ac_default_prefix
|
|
||||||
fi
|
|
||||||
OLD_CFLAGS="$CFLAGS"
|
|
||||||
CFLAGS="-I$myprefix/include"
|
|
||||||
AC_MSG_CHECKING(for alsa-driver package)
|
AC_MSG_CHECKING(for alsa-driver package)
|
||||||
|
|
||||||
AC_TRY_COMPILE([
|
AC_TRY_COMPILE([
|
||||||
|
|
@ -27,7 +21,6 @@ void main(void)
|
||||||
[AC_MSG_RESULT(not found or wrong version);
|
[AC_MSG_RESULT(not found or wrong version);
|
||||||
AC_MSG_ERROR([Install alsa-driver v0.6.0 package first...])]
|
AC_MSG_ERROR([Install alsa-driver v0.6.0 package first...])]
|
||||||
)
|
)
|
||||||
CFLAGS="$OLD_CFLAGS"
|
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN(SAVE_LIBRARY_VERSION, [
|
AC_DEFUN(SAVE_LIBRARY_VERSION, [
|
||||||
|
|
|
||||||
12
configure.in
12
configure.in
|
|
@ -20,10 +20,20 @@ AC_PROG_INSTALL
|
||||||
AC_PROG_LN_S
|
AC_PROG_LN_S
|
||||||
AM_PROG_LIBTOOL
|
AM_PROG_LIBTOOL
|
||||||
|
|
||||||
|
dnl path for linux/asound.h
|
||||||
|
AC_ARG_WITH(kernel,
|
||||||
|
[ --with-kernel=dir give the directory with kernel sources (optional)],
|
||||||
|
[kerneldir="$withval"], [kerneldir=""])
|
||||||
|
if test "$kerneldir" != "" -a -d $kerneldir/include ; then
|
||||||
|
ALSA_CFLAGS="$ALSA_CFLAGS -I$kerneldir/include"
|
||||||
|
CFLAGS="-I$kerneldir/include"
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($ALSA_CFLAGS)
|
||||||
|
|
||||||
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(linux/asound.h)
|
||||||
|
|
||||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue