diff options
author | midipix <writeonce@midipix.org> | 2018-12-23 04:25:15 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-24 10:51:59 -0500 |
commit | d0c855eaafca90f2677de82c437c27a6d65af8cf (patch) | |
tree | 4eb494cfb8e83196320d52611d5fab011a489044 | |
parent | 03617344225c2b7afe4008b5ff24c71be8d17bb4 (diff) | |
download | dalist-d0c855eaafca90f2677de82c437c27a6d65af8cf.tar.bz2 dalist-d0c855eaafca90f2677de82c437c27a6d65af8cf.tar.xz |
build system: config_support(): initial clean-up.
-rwxr-xr-x | configure | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -639,14 +639,14 @@ config_support() mbt_cc=$(make .display-cc) mbt_cflags=$(make .display-cflags) mbt_source='int foo(int x){return ++x;}' - mbt_result='no' + 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 + printf '%s' "$mbt_source" | $mbt_cc -shared -o a.out -xc - + [ -f a.out ] && mbt_result=yes rm -f a.out - if [ "$mbt_result" = 'no' ]; then + if [ $mbt_result = no ]; then mb_disable_shared=yes config_copy fi |