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
This commit is contained in:
Aaron Gyes 2016-10-07 23:52:33 -07:00
parent 22558f9e7b
commit 488a09fffb

View file

@ -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