Browse Source

* configure.in: Improve r150055 by checking for CXX=g++ as well, according to
http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00077.html

svn path=/trunk/mono/; revision=150077

Andrés G. Aragoneses 16 years ago
parent
commit
0648fa414e
2 changed files with 13 additions and 5 deletions
  1. 6 0
      ChangeLog
  2. 7 5
      configure.in

+ 6 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2010-01-22  Andrés G. Aragoneses  <[email protected]>
+
+	* configure.in: Improve r150055 by checking for CXX=g++ as well, according to
+	http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00077.html
+
 2010-01-22  Zoltan Varga  <[email protected]>
 
 	* configure.in: Disable the solaris tar check on !solaris platforms.
@@ -6,6 +11,7 @@
 
 	* configure.in: Check whenever g++ is installed, since libtool requires it
 	even if no c++ files will be compiled.
+	See BNC#572871.
 
 2010-01-22  Zoltan Varga  <[email protected]>
 

+ 7 - 5
configure.in

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