summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index f3eca4e..2e1357a 100755
--- a/configure
+++ b/configure
@@ -168,6 +168,10 @@ common_defaults()
native_defaults()
{
# toolchain
+ if [ x"$CC" != x ]; then
+ $CC -dM -E - < /dev/null > /dev/null || exit 2
+ fi
+
[ -z "$mb_native_cc" ] && mb_native_cc=$CC
[ -z "$mb_native_cc" ] && mb_native_cc='cc'
$mb_native_cc -dM -E - < /dev/null > /dev/null 2>/dev/null || mb_native_cc=