|
|
@@ -276,11 +276,13 @@ AC_SUBST(CCAS)
|
|
|
AC_SUBST(CCASFLAGS)
|
|
|
|
|
|
# AC_PROG_CXX helpfully sets CXX to g++ even if no c++ compiler is found so check
|
|
|
-# GXX instead
|
|
|
-if test "$GXX" != "yes"; then
|
|
|
- # automake/libtool is so broken, it requires g++ even if the c++ sources
|
|
|
- # are inside automake conditionals
|
|
|
- AC_MSG_ERROR([You need to install g++])
|
|
|
+# GXX instead. See http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00056.html
|
|
|
+if test "x$CXX" = "xg++"; then
|
|
|
+ if test "x$GXX" != "xyes"; then
|
|
|
+ # automake/libtool is so broken, it requires g++ even if the c++ sources
|
|
|
+ # are inside automake conditionals
|
|
|
+ AC_MSG_ERROR([You need to install g++])
|
|
|
+ fi
|
|
|
fi
|
|
|
|
|
|
AC_CHECK_PROG(BISON, bison,yes,no)
|