Don't set sysconfdir to '/etc' if the user has specified a --prefix.

This commit is contained in:
Todd C. Miller
2002-05-05 20:25:10 +00:00
parent ac8ca82f0e
commit 80f50dbc43

View File

@@ -105,12 +105,23 @@ CHECKSHADOW=true
CHECKSIA=true
dnl
dnl Override default configure dirs...
dnl Fix up some Makefile ugliness
dnl
test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
dnl
dnl Sudoers should go in /etc unless either prefix or sysconfdir have been
dnl explicitly specified by the user.
dnl
if test "$sysconfdir" = '${prefix}/etc'; then
if test "$prefix" = "NONE"; then
sysconfdir='/etc'
else
sysconfdir='$(prefix)/etc'
fi
fi
dnl
dnl Deprecated --with options (these all warn or generate an error)