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-11-11 00:22:46 -0500
commit52b8b622675876a8455f31d6fce4edd89eb488c0 (patch)
tree32d1298ef346a4c9e555264650532fc4ff7f9d75 /configure
parent7289b43cb1f8cb9cfcbc95616a4867034199b567 (diff)
downloadmdso-52b8b622675876a8455f31d6fce4edd89eb488c0.tar.bz2
mdso-52b8b622675876a8455f31d6fce4edd89eb488c0.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 cea3245..bbb469d 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