From: Ralf Wildenhues Date: Fri, 1 Feb 2008 19:06:42 +0000 (+0000) Subject: * tests/testsuite.at (LT_AT_TAG): For the CXX tag, if $CXX is X-Git-Tag: release-2-2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de171d7b83e8f0a157a7eacc9b2a9c47755af8d7;p=thirdparty%2Flibtool.git * tests/testsuite.at (LT_AT_TAG): For the CXX tag, if $CXX is g++, check that `g++ -v' works; AC_PROG_CXX may have set that as default value even if it found no C++ compiler. Report by Andreas Schwab. --- diff --git a/ChangeLog b/ChangeLog index f068cf416..d1e76ee2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-02-01 Ralf Wildenhues + + * tests/testsuite.at (LT_AT_TAG): For the CXX tag, if $CXX is + g++, check that `g++ -v' works; AC_PROG_CXX may have set that + as default value even if it found no C++ compiler. + Report by Andreas Schwab. + 2008-02-02 Gary V. Vaughan * libltdl/Makefile.inc (EXTRA_DIST): Now that we're not using diff --git a/tests/testsuite.at b/tests/testsuite.at index 756ea2d21..52ef6dd53 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -1,6 +1,7 @@ # Process with autom4te to create an -*- Autotest -*- test suite. # -# Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software +# Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is part of GNU Libtool. @@ -187,6 +188,8 @@ m4_define([LT_AT_NOINST_EXEC_CHECK], m4_define([LT_AT_TAG], [AT_KEYWORDS([$1]) AT_CHECK([{ test -n "[$]$1" && test "X[$]$1" != Xno; } || (exit 77)]) +m4_if([$1], [CXX], + [AT_CHECK([test "X$CXX" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)])]) ])