From 81f9d4d73eb40587d8c145d7d4e81396279b7247 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 16 Nov 2008 21:55:46 +0000 Subject: Honor the DESTDIR variable to install out-of-place (Eg. for packaging). /trunk/configure | 10 10 0 0 +++++++++ /trunk/Makefile.in | 62 36 26 0 +++++++++++++++++++++++++++++++----------------------- /trunk/docs/overview.txt | 12 12 0 0 ++++++++++ 3 files changed, 58 insertions(+), 26 deletions(-) --- configure | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 8b20f2c4..ce32ac76 100755 --- a/configure +++ b/configure @@ -277,6 +277,16 @@ echo "${VERSION}" [ -z "${DOCDIR_set}" ] && DOCDIR="${PREFIX}/share/doc/ct-ng-${VERSION}" [ -z "${MANDIR_set}" ] && MANDIR="${PREFIX}/share/man/man1" +# Check that install PATHs are absolute +for p in BIN LIB DOC MAN; do + var="${p}DIR" + eval v="\${${var}}" + case "${v}" in + /*) ;; + *) do_error "'${var}' is not an absolute path: '${v}'" + esac +done + # Check the existence of absolutely required tools { IFS=' '; -- cgit v1.2.3