1 # Local configure fragment for sysdeps/unix/sysv/linux.
3 # On Linux, the default is to use libio instead of stdio.
4 test $stdio = default && stdio=libio
6 # Don't bother trying to generate any glue code to be compatible with the
7 # existing system library, because we are the only system library.
10 if test -n "$sysheaders"; then
12 CFLAGS="$CFLAGS $SYSINCLUDES"
14 echo $ac_n "checking installed Linux kernel header files""... $ac_c" 1>&6
15 echo "configure:16: checking installed Linux kernel header files" >&5
16 if eval "test \"`echo '$''{'libc_cv_linux2010'+set}'`\" = set"; then
17 echo $ac_n "(cached) $ac_c" 1>&6
19 cat > conftest.$ac_ext <<EOF
22 #include <linux/version.h>
24 #if LINUX_VERSION_CODE < (2 *65536+ 0 *256+ 10) /* 2.0.10 */
29 if { (eval echo configure:30: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
31 libc_cv_linux2010='2.0.10 or later'
33 echo "configure: failed program was:" >&5
34 cat conftest.$ac_ext >&5
36 libc_cv_linux2010='TOO OLD!'
41 echo "$ac_t""$libc_cv_linux2010" 1>&6
42 if test "$libc_cv_linux2010" != '2.0.10 or later'; then
43 { echo "configure: error: GNU libc requires kernel header files from
44 Linux 2.0.10 or later to be installed before configuring.
45 The kernel header files are found usually in /usr/include/asm and
46 /usr/include/linux; make sure these directories use files from
47 Linux 2.0.10 or later. This check uses <linux/version.h>, so
48 make sure that file was built correctly when installing the kernel header
49 files. To use kernel headers not from /usr/include/linux, use the
50 configure option --with-headers." 1>&2; exit 1; }
52 if test -n "$sysheaders"; then
55 # The Linux filesystem standard prescribes where to place "essential"
56 # files. I.e., when the installation prefix is "/usr" we have to place
57 # shared library objects and the configuration files on the root partition
59 if test "$prefix" = "/usr"; then
60 libc_cv_slibdir="/lib"
61 libc_cv_sysconfdir="/etc"
62 libc_cv_rootsbindir="/sbin"
65 # Under Linux the LinuxThreads and crypt add-on should be available.
67 # Both are available. Good.
68 *linuxthreads*crypt* | *crypt*linuxthreads*)
74 *** Are you sure you do not want to use the \`crypt' add-on?"
79 *** Are you sure you do not want to use the \`linuxthread' add-on?"
83 *** WARNING: Are you sure you do not want to use the \`linuxthreads'
84 *** and \`crypt' add-ons?"
88 if test "$message"; then
89 if test $enable_sanity = yes; then
91 *** You should not compile the GNU libc without the \`linuxthreads' and
92 *** \`crypt' add-on. Not using them risks to be incompatible with the
93 *** libraries of other systems. Consider getting the add-ons and restart
94 *** the configuration.
95 *** If you really mean to avoid those add-ons run configure again, now
96 *** using the extra parameter \`--disable-sanity-checks'."
103 # Check whether `ldconfig' sources are available. This will go away as soon
104 # as ldconfig is available in GNU libc.
105 if test -f $srcdir/elf/ldconfig.c; then
109 # We need some extensions to the `ldd' script.
112 i[3456]86* | m68* | sparc/sparc32)
113 ldd_rewrite_script=../sysdeps/unix/sysv/linux/ldd-rewrite.sed