1996-06-10 09:41:16 +00:00
|
|
|
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
|
|
|
|
# Local configure fragment for sysdeps/unix/sysv/linux.
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2012-02-27 20:52:30 +00:00
|
|
|
define([LIBC_LINUX_VERSION],[2.6.19])dnl
|
1998-08-21 22:29:58 +00:00
|
|
|
if test -n "$sysheaders"; then
|
2000-01-27 01:31:24 +00:00
|
|
|
OLD_CPPFLAGS=$CPPFLAGS
|
|
|
|
CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
|
1998-08-21 22:29:58 +00:00
|
|
|
fi
|
1996-07-25 22:41:27 +00:00
|
|
|
define([libc_cv_linuxVER], [libc_cv_linux]patsubst(LIBC_LINUX_VERSION,[\.]))dnl
|
|
|
|
AC_CACHE_CHECK(installed Linux kernel header files, libc_cv_linuxVER, [dnl
|
1999-05-29 22:56:42 +00:00
|
|
|
AC_EGREP_CPP([eat flaming death], [#include <linux/version.h>
|
|
|
|
#if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < ]dnl
|
1996-07-25 22:41:27 +00:00
|
|
|
patsubst(LIBC_LINUX_VERSION,[^\([^.]*\)\.\([^.]*\)\.\([^.]*\)$],dnl
|
|
|
|
[ (\1 *65536+ \2 *256+ \3) /* \1.\2.\3 */])[
|
1996-06-10 09:41:16 +00:00
|
|
|
eat flaming death
|
|
|
|
#endif],
|
1999-05-29 22:56:42 +00:00
|
|
|
libc_cv_linuxVER='TOO OLD!',
|
|
|
|
libc_cv_linuxVER='LIBC_LINUX_VERSION or later')])
|
1996-07-25 22:41:27 +00:00
|
|
|
if test "$libc_cv_linuxVER" != 'LIBC_LINUX_VERSION or later'; then
|
|
|
|
AC_MSG_ERROR([GNU libc requires kernel header files from
|
|
|
|
Linux LIBC_LINUX_VERSION or later to be installed before configuring.
|
|
|
|
The kernel header files are found usually in /usr/include/asm and
|
|
|
|
/usr/include/linux; make sure these directories use files from
|
|
|
|
Linux LIBC_LINUX_VERSION or later. This check uses <linux/version.h>, so
|
|
|
|
make sure that file was built correctly when installing the kernel header
|
1998-08-21 22:29:58 +00:00
|
|
|
files. To use kernel headers not from /usr/include/linux, use the
|
|
|
|
configure option --with-headers.])
|
|
|
|
fi
|
1999-05-26 23:37:38 +00:00
|
|
|
|
|
|
|
# If the user gave a minimal version number test whether the available
|
2000-06-13 03:49:12 +00:00
|
|
|
# kernel headers are young enough. Additionally we have minimal
|
2004-07-02 06:45:08 +00:00
|
|
|
# kernel versions for some architectures. If a previous configure fragment
|
|
|
|
# set arch_minimum_kernel already, let that override our defaults here.
|
|
|
|
# Note that we presume such a fragment has set libc_cv_gcc_unwind_find_fde
|
|
|
|
# if appropriate too.
|
|
|
|
test -n "$arch_minimum_kernel" ||
|
2000-06-13 06:22:36 +00:00
|
|
|
case "$machine" in
|
2001-11-16 01:27:24 +00:00
|
|
|
i386*)
|
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
2012-05-25 19:19:30 +00:00
|
|
|
arch_minimum_kernel=2.4.0
|
2000-06-13 06:22:36 +00:00
|
|
|
;;
|
2002-09-05 10:28:51 +00:00
|
|
|
powerpc/powerpc32)
|
2001-11-16 01:27:24 +00:00
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
2012-05-25 19:19:30 +00:00
|
|
|
arch_minimum_kernel=2.4.0
|
2001-07-06 09:21:36 +00:00
|
|
|
;;
|
2002-09-05 10:28:51 +00:00
|
|
|
powerpc/powerpc64)
|
2008-04-11 21:13:48 +00:00
|
|
|
arch_minimum_kernel=2.4.21
|
2002-09-05 10:28:51 +00:00
|
|
|
;;
|
2002-01-17 17:22:51 +00:00
|
|
|
s390/s390-32)
|
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
2012-05-25 19:19:30 +00:00
|
|
|
arch_minimum_kernel=2.4.0
|
2002-01-17 17:22:51 +00:00
|
|
|
;;
|
|
|
|
s390/s390-64)
|
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
|
|
|
arch_minimum_kernel=2.4.0
|
|
|
|
;;
|
2001-07-06 09:21:36 +00:00
|
|
|
sh*)
|
2012-05-25 19:19:30 +00:00
|
|
|
arch_minimum_kernel=2.4.0
|
2001-11-16 01:27:24 +00:00
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
|
|
|
;;
|
Add sparc64 TLS and NPTL support.
* elf/tls-macros.h: Add Sparc64 defines.
* sysdeps/sparc/sparc64/dl-machine.h (sparc64_fixup_plt): Mark as
always_inline.
(elf_machine_fixup_plt): Likewise.
(elf_machine_rela): Handle TLS relocations.
(elf_machine_type_cleaa): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
(SYSCALL_ERROR_HANDLER_ENTRY): Use sethi/or for GOT reloc.
It does not always fit in R_SPARC_GOT13 when building -fPIC.
Also, add TLS handling.
* sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
Increase it to 2.4.21 for sparc64.
* sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: NULL terminate
backtrace by zero'ing out %fp. Store away flags, func_ptr,
and func_arg in global registers not local registers.
* sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Handle PTID, TLS,
and CTID arguments properly. Add RESET_PID handling.
* sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Rework so that we
do not invoke __sigprocmask(). We can always assume rt signals
are present on sparc64, so just do an inline syscall.
2005-04-13 Jakub Jelinek <jakub@redhat.com>
* sysdeps/sparc/sparc64/dl-machine.h: Add dl_machine_h multiple
inclusion guard for the first half of the header.
(elf_machine_type_class, ELF_MACHINE_JMP_SLOT, ELF_MACHINE_NO_REL,
ELF_MACHINE_PLTREL_OVERLAP, elf_machine_runtime_setup,
elf_machine_relplt, DL_STACK_END, RTLD_START): Move into the
#ifndef dl_machine_h guarded part of the header.
2005-04-14 21:46:37 +00:00
|
|
|
sparc/sparc64*)
|
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
|
|
|
arch_minimum_kernel=2.4.21
|
|
|
|
;;
|
2001-11-16 01:27:24 +00:00
|
|
|
sparc*)
|
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
2001-09-20 06:43:34 +00:00
|
|
|
arch_minimum_kernel=2.4.0
|
|
|
|
;;
|
2000-06-13 06:22:36 +00:00
|
|
|
*)
|
2012-05-25 19:19:30 +00:00
|
|
|
arch_minimum_kernel=2.4.0
|
2000-06-13 06:22:36 +00:00
|
|
|
;;
|
|
|
|
esac
|
2000-06-13 03:49:12 +00:00
|
|
|
if test -n "$minimum_kernel"; then
|
2000-06-13 06:22:36 +00:00
|
|
|
changequote(,)
|
|
|
|
user_version=$((`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`))
|
|
|
|
arch_version=$((`echo "$arch_minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`))
|
|
|
|
changequote([,])
|
|
|
|
if test $user_version -lt $arch_version; then
|
2000-06-13 03:49:12 +00:00
|
|
|
AC_MSG_WARN([minimum kernel version reset to $arch_minimum_kernel])
|
|
|
|
minimum_kernel=$arch_minimum_kernel
|
|
|
|
fi
|
|
|
|
else
|
2012-05-14 22:22:52 +00:00
|
|
|
minimum_kernel=$arch_minimum_kernel
|
2000-06-13 03:49:12 +00:00
|
|
|
fi
|
|
|
|
|
2012-05-14 22:22:52 +00:00
|
|
|
AC_MSG_CHECKING(for kernel header at least $minimum_kernel)
|
1999-05-26 23:37:38 +00:00
|
|
|
changequote(,)dnl
|
2012-05-14 22:22:52 +00:00
|
|
|
decnum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/(\1 * 65536 + \2 * 256 + \3)/'`;
|
|
|
|
abinum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1,\2,\3/'`;
|
1999-05-26 23:37:38 +00:00
|
|
|
changequote([,])dnl
|
2012-05-14 22:22:52 +00:00
|
|
|
AC_EGREP_CPP([eat flaming death], [#include <linux/version.h>
|
1999-05-26 23:37:38 +00:00
|
|
|
#if LINUX_VERSION_CODE < $decnum
|
|
|
|
eat flaming death
|
1999-05-29 22:56:42 +00:00
|
|
|
#endif], libc_minimum_kernel='too old!', libc_minimum_kernel=ok)
|
2012-05-14 22:22:52 +00:00
|
|
|
AC_MSG_RESULT($libc_minimum_kernel)
|
|
|
|
if test "$libc_minimum_kernel" = ok; then
|
|
|
|
AC_DEFINE_UNQUOTED(__LINUX_KERNEL_VERSION, $decnum)
|
|
|
|
AC_DEFINE_UNQUOTED(__ABI_TAG_VERSION, $abinum)
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR([*** The available kernel headers are older than the requested
|
1999-05-26 23:37:38 +00:00
|
|
|
*** compatible kernel version])
|
|
|
|
fi
|
|
|
|
|
2001-11-16 01:27:24 +00:00
|
|
|
# The result of the above test for the use of the FDE code is invalid if
|
|
|
|
# the user overrides the decision about the minimum ABI.
|
|
|
|
if test "$oldest_abi" != default && test "2.2.4" \< "$oldest_abi"; then
|
|
|
|
libc_cv_gcc_unwind_find_fde=no
|
|
|
|
fi
|
|
|
|
|
1998-08-21 22:29:58 +00:00
|
|
|
if test -n "$sysheaders"; then
|
2000-01-27 01:31:24 +00:00
|
|
|
CPPFLAGS=$OLD_CPPFLAGS
|
1996-06-10 09:41:16 +00:00
|
|
|
fi
|
1996-12-07 03:30:25 +00:00
|
|
|
|
2005-07-03 04:40:53 +00:00
|
|
|
# Under Linux the NPTL add-on should be available.
|
1996-12-07 03:30:25 +00:00
|
|
|
case $add_ons in
|
2000-06-13 03:49:12 +00:00
|
|
|
# It is available. Good.
|
2002-09-25 06:44:02 +00:00
|
|
|
*nptl*)
|
2005-07-03 04:40:53 +00:00
|
|
|
nptl_missing=
|
2002-09-25 06:44:02 +00:00
|
|
|
;;
|
1996-12-07 03:30:25 +00:00
|
|
|
*)
|
2005-07-03 04:40:53 +00:00
|
|
|
nptl_missing=yes
|
1996-12-07 03:30:25 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2005-07-03 04:40:53 +00:00
|
|
|
if test "$nptl_missing"; then
|
1996-12-07 03:30:25 +00:00
|
|
|
if test $enable_sanity = yes; then
|
|
|
|
echo "\
|
2001-07-06 09:21:36 +00:00
|
|
|
*** On GNU/Linux systems it is normal to compile GNU libc with the
|
2005-07-03 04:40:53 +00:00
|
|
|
*** \`nptl' add-on. Without that, the library will be
|
2001-07-06 09:21:36 +00:00
|
|
|
*** incompatible with normal GNU/Linux systems.
|
2000-02-29 05:21:42 +00:00
|
|
|
*** If you really mean to not use this add-on, run configure again
|
1996-12-07 03:30:25 +00:00
|
|
|
*** using the extra parameter \`--disable-sanity-checks'."
|
|
|
|
exit 1
|
|
|
|
else
|
2001-07-06 09:21:36 +00:00
|
|
|
echo "\
|
2005-07-03 04:40:53 +00:00
|
|
|
*** WARNING: Are you sure you do not want to use the \`nptl'
|
2001-07-06 09:21:36 +00:00
|
|
|
*** add-on?"
|
1996-12-07 03:30:25 +00:00
|
|
|
fi
|
|
|
|
fi
|
update from main archive 970121
1997-01-21 Paul Eggert <eggert@twinsun.com>
* posix/getopt.c (_getopt_internal): Return -1, not EOF, when args
are exhausted; this is required by POSIX.2.
* catgets/gencat.c, db/makedb.c, locale/programs/locale.c,
locale/programs/localedef.c, manual/examples/subopt.c,
posix/getopt.c, posix/getopt1.c, stdio-common/bug4.c,
sunrpc/rpcinfo.c (main): Check getopt return value against -1, not EOF.
Tue Jan 21 23:10:40 1997 Ulrich Drepper <drepper@cygnus.com>
* version.h (VERSION): Bump to 1.102.
* sysdeps/unix/sysv/linux/alpha/Dist: Add kernel_sigaction.h.
* elf/Makefile: Don't use CFLAGS-dl-load.c, but instead
CPPFLAGS-dl-load.c so that dependencies can be determined correctly.
* elf/dl-load.c: Fix comment.
* time/Banner: New file.
* time/Makefile (distribute): Add Banner.
Update from ADO tzcode1997a and tzdata1997a.
* time/antarctica: Update.
* time/australia: Update.
* time/zdump.c: Update.
* time/zic.c: Update.
* time/zone.tab: Update.
Mon Jan 20 08:38:32 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* config.make.in (has-ldconfig): New variable.
* configure, configure.in (has_ldconfig): New substitute.
* sysdeps/unix/sysv/linux/configure.in (has_ldconfig): New,
check if $srcdir/elf/ldconfig.c exists.
* Makeconfig (rootsbindir): New, default as
$(exec_prefix)/sbin.
(rtld-version-installed-name): New, default as
ld-$(version).so.
* Makefile (install): Call `$(common-objpfx)elf/ldconfig -d'
only if $(cross-compiling) is no and $(build-shared) is yes.
* Makerules (make-shlib-link): New macro.
($(slibdir)/libfoo.so.$(libfoo.so-version)): Use
$(make-shlib-link) for symlink.
(install-rootsbin, install-rootsbin-nosubdir): New.
(install-no-libc.a-nosubdir): Add
install-rootsbin-nosubdir.
* Rules (others): Add $(install-rootsbin).
* config.make.in (rootsbindir): New.
* configure, configure.in (libc_cv_rootsbindir): New
substitute.
* elf/Makefile (others, install-rootsbin): New, set to
ldconfig.
(+link): New for static linking.
($(slibdir)/$(rtld-version-installed-name)): New.
($(slibdir)/$(rtld-installed-name)): Depend on
$(slibdir)/$(rtld-version-installed-name) and use
$(make-shlib-link) for symlink.
* sunrpc/xdr.c (xdr_string): Return FALSE if sp == NULL
while XDR_ENCODE.
* sysdeps/unix/sysv/linux/a.out.h: Use #include_next for
glibc internals.
* sysdeps/unix/sysv/linux/configure.in (libc_cv_rootsbindir):
New, set to "/sbin" if "$prefix" == "/usr".
Tue Jan 21 13:38:39 1997 Ulrich Drepper <drepper@cygnus.com>
* Makefile (distribute): Add glibcbug.in.
Reported by Philip Blundell <pjb27@cam.ac.uk>.
* elf/Makefile ($(objpfx)trusted-dirs.h): Create elf/ subdir in
build directory if necessary.
Reported by marcus@shannon.sysc.pdx.edu (Marcus G. Daniels).
1997-01-22 05:26:05 +00:00
|
|
|
|
2002-05-19 18:37:21 +00:00
|
|
|
if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/" -o "$prefix" = "NONE"; then
|
|
|
|
if test $enable_sanity = yes; then
|
|
|
|
echo "\
|
|
|
|
*** 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.
|
2002-07-28 22:43:25 +00:00
|
|
|
*** If you really mean to do this, run configure again using the extra
|
2002-05-19 18:37:21 +00:00
|
|
|
*** parameter \`--disable-sanity-checks'."
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
echo "\
|
|
|
|
*** WARNING: Do you really want to install the GNU C Library into /usr/local?
|
|
|
|
*** This might make your system totally unusable, for details read the FAQ."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
1999-12-04 18:05:55 +00:00
|
|
|
# One Linux we use ldconfig.
|
|
|
|
use_ldconfig=yes
|
1998-03-29 17:03:23 +00:00
|
|
|
|
|
|
|
# We need some extensions to the `ldd' script.
|
|
|
|
changequote(,)
|
|
|
|
case "$machine" in
|
2012-01-07 18:06:38 +00:00
|
|
|
i[3456]86*)
|
2011-09-11 18:33:24 +00:00
|
|
|
ldd_rewrite_script=sysdeps/unix/sysv/linux/ldd-rewrite.sed
|
1998-03-29 17:03:23 +00:00
|
|
|
;;
|
2001-09-19 03:25:37 +00:00
|
|
|
s390*)
|
2011-09-11 18:33:24 +00:00
|
|
|
ldd_rewrite_script=sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed
|
2001-09-19 03:25:37 +00:00
|
|
|
;;
|
1999-07-14 15:21:35 +00:00
|
|
|
sparc*)
|
2011-09-11 18:33:24 +00:00
|
|
|
ldd_rewrite_script=sysdeps/unix/sysv/linux/sparc/ldd-rewrite.sed
|
1999-07-06 16:26:03 +00:00
|
|
|
;;
|
2001-09-20 06:43:34 +00:00
|
|
|
x86_64*)
|
2011-09-11 18:33:24 +00:00
|
|
|
ldd_rewrite_script=sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed
|
2001-09-20 06:43:34 +00:00
|
|
|
;;
|
2002-09-05 10:28:51 +00:00
|
|
|
powerpc*)
|
2011-09-11 18:33:24 +00:00
|
|
|
ldd_rewrite_script=sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed
|
2002-09-05 10:28:51 +00:00
|
|
|
;;
|
1998-03-29 17:03:23 +00:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
changequote([,])
|
1998-11-28 23:37:49 +00:00
|
|
|
|
1998-12-02 13:44:40 +00:00
|
|
|
if test $host = $build; then
|
|
|
|
# If $prefix/include/{net,scsi} are symlinks, make install will
|
|
|
|
# clobber what they're linked to (probably a kernel tree).
|
|
|
|
# test -L ought to work on all Linux boxes.
|
|
|
|
if test "x$prefix" != xNONE; then
|
|
|
|
ac_prefix=$prefix
|
|
|
|
else
|
|
|
|
ac_prefix=$ac_default_prefix
|
|
|
|
fi
|
|
|
|
AC_MSG_CHECKING([for symlinks in ${ac_prefix}/include])
|
1998-12-04 20:58:15 +00:00
|
|
|
ac_message=
|
1998-12-02 13:44:40 +00:00
|
|
|
if test -L ${ac_prefix}/include/net; then
|
1998-12-04 20:58:15 +00:00
|
|
|
ac_message="$ac_message
|
|
|
|
${ac_prefix}/include/net is a symlink"
|
1998-12-02 13:44:40 +00:00
|
|
|
fi
|
|
|
|
if test -L ${ac_prefix}/include/scsi; then
|
1998-12-04 20:58:15 +00:00
|
|
|
ac_message="$ac_message
|
1998-12-02 13:44:40 +00:00
|
|
|
${ac_prefix}/include/scsi is a symlink"
|
|
|
|
fi
|
1998-12-04 20:58:15 +00:00
|
|
|
if test -n "$ac_message"; then
|
|
|
|
AC_MSG_ERROR([$ac_message
|
1998-11-28 23:37:49 +00:00
|
|
|
\`make install' will destroy the target of the link(s).
|
|
|
|
Delete the links and re-run configure, or better still, move the entire
|
1998-12-02 13:44:40 +00:00
|
|
|
${ac_prefix}/include directory out of the way.])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(ok)
|
|
|
|
fi
|
1998-11-28 23:37:49 +00:00
|
|
|
fi
|
2004-07-06 04:26:42 +00:00
|
|
|
|
|
|
|
# We have inlined syscalls.
|
|
|
|
AC_DEFINE(HAVE_INLINED_SYSCALLS)
|