summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 8b20f2c..ce32ac7 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='
';