* configure.ac: Fix CC detection for xcrun case.

This commit is contained in:
Jan Djärv 2013-12-28 11:12:43 +01:00
parent c62a196109
commit 5f27a1b07d
2 changed files with 7 additions and 6 deletions

View file

@ -1,3 +1,7 @@
2013-12-28 Jan Djärv <jan.h.d@swipnet.se>
* configure.ac: Fix CC detection for xcrun case.
2013-12-28 Paul Eggert <eggert@cs.ucla.edu>
Fix problem with MAKE and xcrun configuration.

View file

@ -654,17 +654,14 @@ fi
#### Choose a compiler.
dnl Sets GCC=yes if using gcc.
AC_PROG_CC
if test -n "$XCRUN"; then
if test -z "$CC"; then
if $XCRUN gcc --version >/dev/null 2>&1; then
CC="$XCRUN gcc"
elif $XCRUN clang --version >/dev/null 2>&1; then
CC="$XCRUN clang"
fi
AC_PROG_CC([gcc cc cl clang "$XCRUN gcc" "$XCRUN clang"])
fi
AC_CHECK_PROGS(AR, [ar "$XCRUN ar"])
test -n "$AR" && export AR
else
AC_PROG_CC
fi
AM_PROG_CC_C_O