diff options
author | midipix <writeonce@midipix.org> | 2016-04-20 18:02:30 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-21 03:07:22 -0400 |
commit | 48b5b4ad28dda743493916b59f717df162035d05 (patch) | |
tree | a917e52abe2f94f18a93e664b7e2f17eefa39ce0 /configure | |
parent | c51f1b5cf8e275eda4673e4e3b4596468ad38388 (diff) | |
download | ntcon-48b5b4ad28dda743493916b59f717df162035d05.tar.bz2 ntcon-48b5b4ad28dda743493916b59f717df162035d05.tar.xz |
build system: added empty --prefix and --exec-prefix support.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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=*) |