summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-06 07:01:01 -0400
committermidipix <writeonce@midipix.org>2016-11-11 00:22:43 -0500
commitf2bb31200639e4320aef8fe9b1d42cbd50fe3141 (patch)
treeab286de779a0b42f5544d6a8cd24fb60bb7c68e2 /configure
parent63c759afb0e4c6b2830b82726e9a34809cabc755 (diff)
downloadmdso-f2bb31200639e4320aef8fe9b1d42cbd50fe3141.tar.bz2
mdso-f2bb31200639e4320aef8fe9b1d42cbd50fe3141.tar.xz
build system: configure: added config_support()
* test supported features as needed. - shared library support.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure b/configure
index 60843ae..14d9b5f 100755
--- a/configure
+++ b/configure
@@ -405,6 +405,27 @@ config_copy()
}
+config_support()
+{
+ [ "$mb_disable_shared" = 'yes' ] && return 0
+
+ mbt_cc=`make .display-cc`
+ mbt_cflags=`make .display-cflags`
+ mbt_source='int foo(int x){return ++x;}'
+ mbt_result='no'
+
+ rm -f a.out
+ echo "$mbt_source" | "$mbt_cc" -shared -o a.out -xc -
+ stat a.out >/dev/null 2>&1 && mbt_result='yes'
+ rm -f a.out
+
+ if [ "$mbt_result" = 'no' ]; then
+ mb_disable_shared='yes'
+ config_copy
+ fi
+}
+
+
config_host()
{
make -s host.tag && return 0
@@ -536,6 +557,7 @@ cross_defaults
# four: config
config_flags
config_copy
+config_support
config_host
config_status