summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-20 17:14:05 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:41 -0500
commitbe9f3e1178ef6eea88b68ea69ee4f609b87f1ea7 (patch)
treef7b6689a6fec03435ae4ec8708393eff1a619911 /configure
parenta1d4a9c5408bc9de333b0019378cd6d0a66c95e8 (diff)
downloadperk-be9f3e1178ef6eea88b68ea69ee4f609b87f1ea7.tar.bz2
perk-be9f3e1178ef6eea88b68ea69ee4f609b87f1ea7.tar.xz
build system: added empty --prefix and --exec-prefix support.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure b/configure
index ae929c6..8eb5f18 100755
--- a/configure
+++ b/configure
@@ -107,8 +107,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
@@ -392,9 +396,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=*)