about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/configure.in
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-06-14 13:50:11 +0000
committerAndreas Jaeger <aj@suse.de>2000-06-14 13:50:11 +0000
commitcee49e0c4cc09458914516e160bc3ee085138998 (patch)
treeeadbdfc7b28f7551dde37baf1e6917ca0c7e54c9 /sysdeps/unix/sysv/linux/configure.in
parente85db9de5986e7935b4dd9ff0c0a140eaa561a77 (diff)
downloadglibc-cee49e0c4cc09458914516e160bc3ee085138998.tar.gz
glibc-cee49e0c4cc09458914516e160bc3ee085138998.tar.xz
glibc-cee49e0c4cc09458914516e160bc3ee085138998.zip
Update.
	* sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
	depending on the configure option --sysconfdir.
        Closes PR libc/1762.
        Patch by Andreas Schwab <schwab@suse.de>.
Diffstat (limited to 'sysdeps/unix/sysv/linux/configure.in')
-rw-r--r--sysdeps/unix/sysv/linux/configure.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/configure.in b/sysdeps/unix/sysv/linux/configure.in
index 2ed2c096d8..d379421a80 100644
--- a/sysdeps/unix/sysv/linux/configure.in
+++ b/sysdeps/unix/sysv/linux/configure.in
@@ -101,7 +101,12 @@ if test "$prefix" = "/usr" -o "$prefix" = "/usr/"; then
   else
     libc_cv_slibdir="/lib"
   fi
-  libc_cv_sysconfdir="/etc"
+  # Allow the user to override the path with --sysconfdir
+  if test $sysconfdir = '${prefix}/etc'; then
+    libc_cv_sysconfdir=/etc
+  else
+    libc_cv_sysconfdir=$sysconfdir
+   fi
   libc_cv_rootsbindir="/sbin"
 fi