diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2013-12-28 11:12:43 +0100 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2013-12-28 11:12:43 +0100 |
commit | 5f27a1b07d3e7e7e38087de96f3e2934e8ed207c (patch) | |
tree | fe3c64d95a398f68427feedd2a4f02ee60b5e1bf /configure.ac | |
parent | c62a19610996165c2d628154561f25e89ff05524 (diff) | |
download | emacs-5f27a1b07d3e7e7e38087de96f3e2934e8ed207c.tar.gz |
* configure.ac: Fix CC detection for xcrun case.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 6c08c7c7308..5dafb51a5cf 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |