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

This commit is contained in:
Jan Djärv 2013-12-28 11:37:53 +01:00
parent 5f27a1b07d
commit efe702196a

View file

@ -654,15 +654,12 @@ fi
#### Choose a compiler.
dnl Sets GCC=yes if using gcc.
AC_PROG_CC([gcc cc cl clang "$XCRUN gcc" "$XCRUN clang"])
if test -n "$XCRUN"; then
if test -z "$CC"; then
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
if test x$GCC = xyes; then