summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--config.make.in2
-rwxr-xr-xconfigure13
-rw-r--r--configure.in2
-rw-r--r--sysdeps/unix/sysv/linux/configure.in4
5 files changed, 23 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 629a31d507..606794e77b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2001-07-09 Andreas Jaeger <aj@suse.de>
+
+ * sysdeps/unix/sysv/linux/configure.in: Revert patch from
+ 2001-07-05 for sysconfdir handling.
+ * config.make.in (sysconfdir): Likewise.
+ * configure.in: Likewise.
+
+ * configure.in: Always assign libc_cv_sysconfdir.
+
2001-07-08 Ulrich Drepper <drepper@redhat.com>
* Makerules [AIX] (build-shlib-helper): Precede linker options
diff --git a/config.make.in b/config.make.in
index 71eb216752..900efb525e 100644
--- a/config.make.in
+++ b/config.make.in
@@ -13,7 +13,7 @@ datadir = @datadir@
libdir = @libdir@
slibdir = @libc_cv_slibdir@
localedir = @libc_cv_localedir@
-sysconfdir = @sysconfdir@
+sysconfdir = @libc_cv_sysconfdir@
libexecdir = @libexecdir@
rootsbindir = @libc_cv_rootsbindir@
infodir = @infodir@
diff --git a/configure b/configure
index c873bc70a7..4ac95425c5 100755
--- a/configure
+++ b/configure
@@ -3425,6 +3425,7 @@ libc_link_sources=
# They also can set these variables.
use_ldconfig=no
ldd_rewrite_script=no
+libc_cv_sysconfdir=$sysconfdir
# Iterate over all the sysdep directories we will use, running their
# configure fragments, and looking for a uname implementation.
@@ -3461,7 +3462,7 @@ if test "$uname" = "sysdeps/generic"; then
fi
echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
-echo "configure:3465: checking OS release for uname" >&5
+echo "configure:3466: checking OS release for uname" >&5
if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3483,7 +3484,7 @@ echo "$ac_t""$libc_cv_uname_release" 1>&6
uname_release="$libc_cv_uname_release"
echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
-echo "configure:3487: checking OS version for uname" >&5
+echo "configure:3488: checking OS version for uname" >&5
if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3505,7 +3506,7 @@ else
fi
echo $ac_n "checking stdio selection""... $ac_c" 1>&6
-echo "configure:3509: checking stdio selection" >&5
+echo "configure:3510: checking stdio selection" >&5
case $stdio in
libio) cat >> confdefs.h <<\EOF
@@ -3519,7 +3520,7 @@ echo "$ac_t""$stdio" 1>&6
# Test for old glibc 2.0.x headers so that they can be removed properly
# Search only in includedir.
echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
-echo "configure:3523: checking for old glibc 2.0.x headers" >&5
+echo "configure:3524: checking for old glibc 2.0.x headers" >&5
if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
then
old_glibc_headers=yes
@@ -3540,6 +3541,7 @@ fi
+
if test $gnu_ld = yes; then
cat >> confdefs.h <<\EOF
@@ -3573,7 +3575,7 @@ if test $shared = default; then
fi
echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
-echo "configure:3577: checking whether -fPIC is default" >&5
+echo "configure:3579: checking whether -fPIC is default" >&5
if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3813,6 +3815,7 @@ s%@stdio@%$stdio%g
s%@old_glibc_headers@%$old_glibc_headers%g
s%@libc_cv_slibdir@%$libc_cv_slibdir%g
s%@libc_cv_localedir@%$libc_cv_localedir%g
+s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
s%@use_ldconfig@%$use_ldconfig%g
s%@ldd_rewrite_script@%$ldd_rewrite_script%g
diff --git a/configure.in b/configure.in
index 9e1e9c35fb..e2edb389fd 100644
--- a/configure.in
+++ b/configure.in
@@ -1403,6 +1403,7 @@ libc_link_sources=
# They also can set these variables.
use_ldconfig=no
ldd_rewrite_script=no
+libc_cv_sysconfdir=$sysconfdir
# Iterate over all the sysdep directories we will use, running their
# configure fragments, and looking for a uname implementation.
@@ -1514,6 +1515,7 @@ AC_SUBST(old_glibc_headers)
AC_SUBST(libc_cv_slibdir)
AC_SUBST(libc_cv_localedir)
+AC_SUBST(libc_cv_sysconfdir)
AC_SUBST(libc_cv_rootsbindir)
AC_SUBST(use_ldconfig)
diff --git a/sysdeps/unix/sysv/linux/configure.in b/sysdeps/unix/sysv/linux/configure.in
index 9b96517346..b112a0f4fb 100644
--- a/sysdeps/unix/sysv/linux/configure.in
+++ b/sysdeps/unix/sysv/linux/configure.in
@@ -114,7 +114,9 @@ if test "$prefix" = "/usr" -o "$prefix" = "/usr/"; then
fi
# Allow the user to override the path with --sysconfdir
if test $sysconfdir = '${prefix}/etc'; then
- sysconfdir=/etc
+ libc_cv_sysconfdir=/etc
+ else
+ libc_cv_sysconfdir=$sysconfdir
fi
libc_cv_rootsbindir="/sbin"
fi