summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-20 17:59:24 -0400
committermidipix <writeonce@midipix.org>2016-04-21 03:06:03 -0400
commit587ad19ef2573d80421da715a5e65c98ffdd6834 (patch)
treef57e19d29e445892691232b3b300afd04f42ab90
parentc60b29b2c63c9f6823d7c415efdce064a26b4253 (diff)
downloadntapi-587ad19ef2573d80421da715a5e65c98ffdd6834.tar.bz2
ntapi-587ad19ef2573d80421da715a5e65c98ffdd6834.tar.xz
build system: added empty --prefix and --exec-prefix support.
-rwxr-xr-xconfigure10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure b/configure
index a06af66..ca10d90 100755
--- a/configure
+++ b/configure
@@ -105,8 +105,12 @@ verify_build_directory()
common_defaults()
{
# dirs
- [ -z "$mb_prefix" ] && mb_prefix='/usr/local'
- [ -z "$mb_exec_prefix" ] && mb_exec_prefix=$mb_prefix
+ [ -z "$mb_prefix" ] && [ -z "$mb_prefix_set" ] \
+ && mb_prefix='/usr/local'
+
+ [ -z "$mb_exec_prefix" ] && [ -z "$mb_exec_prefix_set" ] \
+ && mb_exec_prefix=$mb_prefix
+
[ -z "$mb_bindir" ] && mb_bindir=$mb_exec_prefix/bin
[ -z "$mb_libdir" ] && mb_libdir=$mb_exec_prefix/lib
[ -z "$mb_includedir" ] && mb_includedir=$mb_prefix/include
@@ -386,9 +390,11 @@ for arg ; do
# dirs
--prefix=*)
+ mb_prefix_set=yes
mb_prefix=${arg#*=}
;;
--exec-prefix=*)
+ mb_exec_prefix_set=yes
mb_exec_prefix=${arg#*=}
;;
--bindir=*)