summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-09-24 21:44:09 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:22 -0500
commit193e5bdec4e7cd8be8586cdcc40c9fdcc8571b60 (patch)
tree92b0d7f24be342b30ef45b6a436041dcde467dc1 /configure
parentb023b253cbd2ebc34b40dee194c96d5c7dcc5080 (diff)
downloadperk-193e5bdec4e7cd8be8586cdcc40c9fdcc8571b60.tar.bz2
perk-193e5bdec4e7cd8be8586cdcc40c9fdcc8571b60.tar.xz
build system: when set, verify that CC passes as a valid compiler.
Diffstat (limited to 'configure')
-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=