# HG changeset patch # User "Yann E. MORIN" # Date 1260454153 -3600 # Node ID a3c0dc275759f342d2eeb0626c5c874ea359fb16 # Parent 7ce9588ba3e1dc12a45f32d74e8a40a83e4ff55b 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. (transplanted from 991fc21dd3cfda7d6448388b3224821f6937f15e) diff -r 7ce9588ba3e1 -r a3c0dc275759 configure --- a/configure Sun Nov 22 15:40:53 2009 +0100 +++ b/configure Thu Dec 10 15:09:13 2009 +0100 @@ -404,10 +404,17 @@ # 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"