summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2011-02-18 15:41:25 +0200
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2011-02-18 15:41:25 +0200
commit04eda70d4f09f95bdd61b4844bfa46011d686ed7 (patch)
tree411fa93486063998c1d46385fe5cb299f6fc79a9
parent5097ea6c1e3ac9de66ba1ba3f40ae7e1448339f6 (diff)
Respect the installation prefix for the sysconfdir.
If the user doesn't set the sysconfdir explicitly then configure forces it to /etc/denemo, ignoring the installation prefix given by the user to configure. This patch reverts that change to respect the prefix always.
-rw-r--r--configure.in8
1 files changed, 2 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index 8c0f6b99..5556a558 100644
--- a/configure.in
+++ b/configure.in
@@ -184,13 +184,9 @@ AC_SUBST(pkgdatadir)
AC_SUBST(PACKAGE_DATA_DIR)
dnl
-dnl Force sysconfdir=/etc if no --sysconfdir=xxx passed
+dnl Append the package name to sysconfdir.
dnl
-if test $sysconfdir = $\{prefix\}/etc; then
- sysconfdir=/etc/${PACKAGE}
-else
- sysconfdir=$sysconfdir/${PACKAGE}
-fi
+sysconfdir=$sysconfdir/${PACKAGE}
AC_SUBST(sysconfdir)
dnl Set PACKAGE_SOURCE_DIR in config.h.