From 5bae609333f51c0fcf47ec4bb808fe382325ee03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 23 Mar 2016 11:55:32 +0100 Subject: configure: default to cc instead of c99 Using -std=c99 in combination with c99 does not make sense. Some versions of Mac OS seem to have a broken wrapper implementing the c99 utility which always generates 32-bit code instead of targeting the native architecture. http://stackoverflow.com/questions/4182413 Also add clang to the list of compilers to try. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 2c30e5c..4633d02 100755 --- a/configure +++ b/configure @@ -176,9 +176,9 @@ trap 'rm -f "$tmpc" "$tmpo"' EXIT INT QUIT TERM HUP # Find a C compiler to use # printf "checking for C compiler... " -trycc c99 trycc cc trycc gcc +trycc clang printf "%s\n" "$CC" test -n "$CC" || { echo "$0: cannot find a C compiler" ; exit 1 ; } -- cgit v1.2.3