summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-12-10 14:09:13 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-12-10 14:09:13 (GMT)
commit6c6415a101488242627360368705449291428dd9 (patch)
tree6b9fd79edb2f4ea17afe9fe17d2c2b26552e1713 /configure
parenteb2a7ba9b0b56055654182f92c66aaa9067c877c (diff)
configure: install in a sub-dir of --libdir and --docdir
In case the user specifies the LIBDIR with --libdir , or DOCDIR with --docdir, install our support files in a sub-dir, so as not to mangle existing (potentially system) files/dirs.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure b/configure
index 672b041..78a4724 100755
--- a/configure
+++ b/configure
@@ -404,10 +404,17 @@ echo "${VERSION}"
# Now we have the version string, we can build up the paths
[ -z "${BINDIR_set}" ] && BINDIR="${PREFIX}/bin"
-[ -z "${LIBDIR_set}" ] && LIBDIR="${PREFIX}/lib/ct-ng-${VERSION}"
-[ -z "${DOCDIR_set}" ] && DOCDIR="${PREFIX}/share/doc/ct-ng-${VERSION}"
+[ -z "${LIBDIR_set}" ] && LIBDIR="${PREFIX}/lib"
+[ -z "${DOCDIR_set}" ] && DOCDIR="${PREFIX}/share/doc"
[ -z "${MANDIR_set}" ] && MANDIR="${PREFIX}/share/man/man1"
+# Install support files in our own sub-dir, so as not to mangle (system)
+# files and dirs, but only if not --local
+if [ -z "${LOCAL_set}" ]; then
+ LIBDIR="${LIBDIR}/ct-ng-${VERSION}"
+ DOCDIR="${DOCDIR}/ct-ng-${VERSION}"
+fi
+
# Check that install PATHs are absolute
for p in BIN LIB DOC MAN; do
var="${p}DIR"