summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-25 15:38:58 -0400
committermidipix <writeonce@midipix.org>2016-09-21 19:45:53 -0400
commit041f2dacf3e5438bf1e7257a6474b88f82919929 (patch)
tree56719f60a1ec6b91b2d818991306a64971b7b64c /configure
parentcbab7fa0703314d378ab648a6724bb82a63f23e9 (diff)
downloadbcparser-041f2dacf3e5438bf1e7257a6474b88f82919929.tar.bz2
bcparser-041f2dacf3e5438bf1e7257a6474b88f82919929.tar.xz
build system: add a test for legacy gcc versions.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index d133719..80c808f 100755
--- a/configure
+++ b/configure
@@ -285,6 +285,10 @@ native_defaults()
fi
if [ -z "$mb_compiler" ]; then
+ $mb_native_cc -dM -E - < /dev/null | grep "^gcc" > /dev/null && mb_compiler='gcc'
+ fi
+
+ if [ -z "$mb_compiler" ]; then
$mb_native_cc -dM -E - < /dev/null | grep '__CPARSER__' > /dev/null && mb_compiler='cparser'
fi