From 79c38d7f7a5d3b42bf0f7d0afc4ed10ab0f8b275 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 28 Jul 2002 22:43:25 +0000 Subject: Update. * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname -r`/build/include for kernel headers. --- sysdeps/unix/sysv/linux/configure.in | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/configure.in') diff --git a/sysdeps/unix/sysv/linux/configure.in b/sysdeps/unix/sysv/linux/configure.in index c5aa4e81cf..1873e4ecf6 100644 --- a/sysdeps/unix/sysv/linux/configure.in +++ b/sysdeps/unix/sysv/linux/configure.in @@ -2,6 +2,18 @@ sinclude(./aclocal.m4)dnl Autoconf lossage GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. # Local configure fragment for sysdeps/unix/sysv/linux. +# The Linux kernel headers can be found in +# /lib/modules/$(uname -r)/build/include +# Check whether this directory is available. +if test -z "$sysheaders" && + test -d /lib/modules/`uname -r`/build/include; then + sysheaders="/lib/modules/`uname -r`/build/include" + ccheaders=`$CC -print-file-name=include` + dnl We don't have to use -nostdinc. We just want one more directory + dnl to be used. + SYSINCLUDES="-I $sysheaders" +fi + # Don't bother trying to generate any glue code to be compatible with the # existing system library, because we are the only system library. inhibit_glue=yes @@ -191,7 +203,7 @@ if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/" -o "$prefix" = "NO *** On GNU/Linux systems the GNU C Library should not be installed into *** /usr/local since this might make your system totally unusable. *** We strongly advise to use a different prefix. For details read the FAQ. -*** If you really mean to do this, run configure again using the extra +*** If you really mean to do this, run configure again using the extra *** parameter \`--disable-sanity-checks'." exit 1 else -- cgit v1.2.3