]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/linux/configure
update from main archive 961127
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / configure
1 # Local configure fragment for sysdeps/unix/sysv/linux.
2
3 # On Linux, the default is to use libio instead of stdio.
4 test $stdio = default && stdio=libio
5
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.
8 inhibit_glue=yes
9
10 echo $ac_n "checking installed Linux kernel header files""... $ac_c" 1>&6
11 if eval "test \"`echo '$''{'libc_cv_linux2010'+set}'`\" = set"; then
12 echo $ac_n "(cached) $ac_c" 1>&6
13 else
14 cat > conftest.$ac_ext <<EOF
15 #line 16 "configure"
16 #include "confdefs.h"
17 #include <linux/version.h>
18 int main() { return 0; }
19 int t() {
20 #if LINUX_VERSION_CODE < (2 *65536+ 0 *256+ 10) /* 2.0.10 */
21 eat flaming death
22 #endif
23 ; return 0; }
24 EOF
25 if { (eval echo configure:26: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26 rm -rf conftest*
27 libc_cv_linux2010='2.0.10 or later'
28 else
29 rm -rf conftest*
30 libc_cv_linux2010='TOO OLD!'
31 fi
32 rm -f conftest*
33
34 fi
35
36 echo "$ac_t""$libc_cv_linux2010" 1>&6
37 if test "$libc_cv_linux2010" != '2.0.10 or later'; then
38 { echo "configure: error: GNU libc requires kernel header files from
39 Linux 2.0.10 or later to be installed before configuring.
40 The kernel header files are found usually in /usr/include/asm and
41 /usr/include/linux; make sure these directories use files from
42 Linux 2.0.10 or later. This check uses <linux/version.h>, so
43 make sure that file was built correctly when installing the kernel header
44 files." 1>&2; exit 1; }
45 fi
46
47 # The Linux filesystem standard prescribes where to place "essential"
48 # files. I.e., when the installation prefix is "/usr" we have to place
49 # shared library objects and the configuation files on the root partition
50 # in /lib and /etc.
51 if test "$prefix" = "/usr"; then
52 libc_cv_slibdir="/lib"
53 libc_cv_sysconfdir="/etc"
54 fi
55
56 # Under Linux the LinuxThreads and crypt add-on should be available.
57 case $add_ons in
58 # Both are available. Good.
59 *linuxthreads*des-crypt* | *des-crypt*linuxthreads*)
60 ;;
61 *linuxthreads*)
62 echo "\
63 *** WARNING:
64 *** Are you sure you do not want to use the \`crypt' add-on?"
65 ;;
66 *des-crypt*)
67 echo "\
68 *** WARNING:
69 *** Are you sure you do not want to use the \`LinuxThread' add-on?"
70 ;;
71 *)
72 echo "\
73 *** WARNING: Are you sure you do not want to use the \`LinuxThreads'
74 *** and \`crypt' add-ons?"
75 ;;
76 esac