summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-09 11:50:40 +0000
committermidipix <writeonce@midipix.org>2021-04-10 20:54:37 +0000
commit586a8f8a84ad360d8bc6717f5d15781fbd08a7d3 (patch)
tree4cb01db969d4537ef89eb211202a0d7b7f53dc52 /configure
parent79f5e6e8626fae76224e836c5a1e189bf05aa65b (diff)
downloadbfirm-586a8f8a84ad360d8bc6717f5d15781fbd08a7d3.tar.bz2
bfirm-586a8f8a84ad360d8bc6717f5d15781fbd08a7d3.tar.xz
build system: posix make support: refactored shared library versioning schemes.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure b/configure
index 2240589..df05578 100755
--- a/configure
+++ b/configure
@@ -135,6 +135,7 @@ init_vars()
sfrt_core_dir=$sfrt_impl_dir/core
sfrt_config_vars=$sfrt_config_dir/config.vars
sfrt_flag_vars=$sfrt_config_dir/flag.vars
+ sfrt_opt_vars=$sfrt_config_dir/opt.vars
sfrt_cfgdefs_in=$sfrt_config_dir/cfgdefs.in
mb_make_vars=$(< "$sfrt_config_vars" \
@@ -649,11 +650,20 @@ config_flags()
}
+config_opts()
+{
+ if [ "$mb_avoid_version" = 'yes' ]; then
+ mb_version_opt='none'
+ else
+ mb_version_opt='used'
+ fi
+}
+
config_copy()
{
output_step_prolog ${mb_script} 'config_copy'
- mb_vars=$(cut -d'=' -f1 $sfrt_config_vars \
+ mb_vars=$(cut -d'=' -f1 "$sfrt_config_vars" "$sfrt_opt_vars" \
| grep -v '^#')
mb_sed_substs=" \
@@ -1129,6 +1139,7 @@ common_defaults
# five: config
config_flags
+config_opts
config_copy
config_ccenv
config_custom