summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6456721d2b..f9e64c3383 100644
--- a/configure.ac
+++ b/configure.ac
@@ -354,6 +354,7 @@ else
# are screwed up. Configure doesn't think they're ever equal and
# so never tried without the prefix.
AC_PATH_PROG([CC],[gcc], [clang])
+ AC_PATH_PROG([CXX],[g++], [clang++])
AC_PATH_PROG([NM],[nm])
AC_PATH_PROG([LD],[ld])
AC_PATH_PROG([AR],[ar])
@@ -472,6 +473,7 @@ AC_ARG_WITH([clang],
dnl detect compiler (prefer gcc over clang) and set $CC (unless CC already set),
dnl later CC is copied to CC_STAGE{1,2,3}
AC_PROG_CC([cc gcc clang])
+AC_PROG_CXX([g++ clang++ c++])
MAYBE_OVERRIDE_STAGE0([ar],[AR_STAGE0])