From 488a09fffbdbd2cc737a688ff9b38d86f74a9f9b Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Fri, 7 Oct 2016 23:52:33 -0700 Subject: [PATCH] Don't prefer clang++ This change causes our configure script to just use the default behavior of autoconf: in practice it will try g++ instead of clang++ first. There are good reasons to use the behavior this reverts, namely g++ might be a symlink to clang++ and clang++ is never a symlink to g++ - when `configure` says using "g++" that doens't tell us much. On more systems than not, as far as I can tell, clang++ will often be a newer compiler than g++ from what I can see as well. However, it appears we have some bad things happening with Cygwin on clang. Fixes #3435 --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 2df950807..a72c8b8bd 100644 --- a/configure.ac +++ b/configure.ac @@ -87,9 +87,9 @@ fi # So ensure this happens before we modify CXXFLAGS below # Do CC also, because PCRE2 will use it. Prefer clang++, # targets like FreeBSD ship an ancient one. -AC_PROG_CC([clang llvm-gcc gcc cc]) +AC_PROG_CC AC_PROG_CC_STDC # c99 -AC_PROG_CXX([clang++ llvm-g++ g++ c++]) +AC_PROG_CXX AC_LANG(C++) AC_PROG_INSTALL AC_PROG_LN_S