summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-05 19:38:12 -0400
committermidipix <writeonce@midipix.org>2016-11-11 00:22:42 -0500
commitd184a686ae5175d6a6b5ac5fd87d4f015701f1f8 (patch)
tree3a1cea5d5ecbf551bb0f73195245bfc1363c33ec /configure
parent840c6644991373cf8ce206909e92c79fb07b4d74 (diff)
downloadmdso-d184a686ae5175d6a6b5ac5fd87d4f015701f1f8.tar.bz2
mdso-d184a686ae5175d6a6b5ac5fd87d4f015701f1f8.tar.xz
build system: configure: added --disable-[shared|static] support.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 31 insertions, 0 deletions
diff --git a/configure b/configure
index 23b6726..d0588de 100755
--- a/configure
+++ b/configure
@@ -167,6 +167,12 @@ common_defaults()
[ -z "$mb_elf_hash_style" ] && mb_elf_hash_style=$mb_default_elf_hash_style
[ -z "$mb_elf_config_defs" ] && mb_elf_config_defs=$mb_default_elf_config_defs
+ # config
+ [ -z "$mb_all_static" ] && mb_all_static='no'
+ [ -z "$mb_all_shared" ] && mb_all_shared='no'
+ [ -z "$mb_disable_static" ] && mb_disable_static='no'
+ [ -z "$mb_disable_shared" ] && mb_disable_shared='no'
+
# host/target
[ -z "$mb_host" ] && mb_host=$mb_target
[ -z "$mb_target" ] && mb_target=$mb_host
@@ -372,6 +378,11 @@ config_copy()
-e 's^@user_cc@^'"$mb_user_cc"'^g' \
-e 's^@user_cpp@^'"$mb_user_cpp"'^g' \
-e 's^@user_cxx@^'"$mb_user_cxx"'^g' \
+ \
+ -e 's^@all_static@^'"$mb_all_static"'^g' \
+ -e 's^@all_shared@^'"$mb_all_shared"'^g' \
+ -e 's^@disable_static@^'"$mb_disable_static"'^g' \
+ -e 's^@disable_shared@^'"$mb_disable_shared"'^g' \
$mb_project_dir/Makefile.in > $mb_pwd/Makefile
}
@@ -463,6 +474,26 @@ for arg ; do
mb_debug='yes'
;;
+ # config
+ --all-static)
+ mb_all_static='yes'
+ ;;
+ --all-shared)
+ mb_all_shared='yes'
+ ;;
+ --disable-static)
+ mb_disable_static='yes'
+ ;;
+ --disable-shared)
+ mb_disable_shared='yes'
+ ;;
+ --enable-static)
+ mb_disable_static='no'
+ ;;
+ --enable-shared)
+ mb_disable_shared='no'
+ ;;
+
# project
--nickname=*)
mb_nickname=${arg#*=}