summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-25 15:38:58 -0400
committermidipix <writeonce@midipix.org>2016-06-25 17:35:00 -0400
commite606ed61b74f32891f60377fd6463e54beecf079 (patch)
treef4ad8b02f52c00bdf54c674624930be2b55a4676 /configure
parentf0076891a28092b73dbd2c9e64b78efc7fdd2487 (diff)
downloadntapi-e606ed61b74f32891f60377fd6463e54beecf079.tar.bz2
ntapi-e606ed61b74f32891f60377fd6463e54beecf079.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