Skip to content

Commit

Permalink
congigure.ac: favour gcc on Linux
Browse files Browse the repository at this point in the history
Requested by Naruse.
  • Loading branch information
shyouhei committed Sep 1, 2020
1 parent 50736f1 commit b01d852
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.ac
Expand Up @@ -101,7 +101,9 @@ AS_IF([test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"], [
AC_MSG_ERROR(cached CC is different -- throw away $cache_file
(it is also a good idea to do 'make clean' before compiling))
])
AS_IF([test -z "${CC}"], [
AS_CASE(["${build_os}"], [linux*], [
AC_CHECK_TOOLS([CC], [gcc clang cc])
], [
# OpenBSD wants to prefer cc over gcc.
# See https://github.com/ruby/ruby/pull/2443
AC_CHECK_TOOLS([CC], [cl.exe clang cc gcc c99 /usr/ucb/cc])
Expand Down

0 comments on commit b01d852

Please sign in to comment.