From: Ralf Wildenhues Date: Thu, 14 May 2009 05:20:58 +0000 (+0200) Subject: testsuite: skip `Multiple languages' test without C++ compiler. X-Git-Tag: v2.64~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83d976a33f322ffb164433db6aa3bb6f78e40333;p=thirdparty%2Fautoconf.git testsuite: skip `Multiple languages' test without C++ compiler. * tests/compile.at (Multiple languages): Skip test on systems without a C++ compiler. Report by Jim Meyering. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 88f417113..160449dd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-05-14 Ralf Wildenhues + + testsuite: skip `Multiple languages' test without C++ compiler. + * tests/compile.at (Multiple languages): Skip test on systems + without a C++ compiler. + Report by Jim Meyering. + 2009-05-13 Eric Blake Document zsh bug with empty commands. diff --git a/tests/compile.at b/tests/compile.at index 6ca4ef433..20398fb83 100644 --- a/tests/compile.at +++ b/tests/compile.at @@ -2,8 +2,8 @@ AT_BANNER([Low level compiling/preprocessing macros.]) -# Copyright (C) 2000, 2001, 2003, 2005, 2006, 2007, 2008 Free Software -# Foundation, Inc. +# Copyright (C) 2000, 2001, 2003, 2005, 2006, 2007, 2008, 2009 Free +# Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -219,6 +219,24 @@ AC_COMPILE_IFELSE([ AT_CHECK_AUTOCONF AT_CHECK_CONFIGURE +# This test should be skipped on systems without a C++ compiler. +AT_DATA([configure.ac], +[[AC_INIT + +AC_PROG_CXX +AC_LANG_PUSH([C++]) +AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([[ + #ifndef __cplusplus + choke me + #endif + ]])], [], AS_EXIT([77])) +AC_LANG_POP([C++]) +]]) + +AT_CHECK_AUTOCONF +AT_CHECK_CONFIGURE + AT_DATA([configure.ac], [[AC_INIT