]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
testsuite: skip `Multiple languages' test without C++ compiler.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 14 May 2009 05:20:58 +0000 (07:20 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 14 May 2009 05:20:58 +0000 (07:20 +0200)
* tests/compile.at (Multiple languages): Skip test on systems
without a C++ compiler.
Report by Jim Meyering.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/compile.at

index 88f41711356f5726c5adc7b0077f14325131df0e..160449dd5ef8fb290f765143e2f1fa4d1260c2a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-05-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       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  <ebb9@byu.net>
 
        Document zsh bug with empty commands.
index 6ca4ef433d9ebebc3d65bfd8e8893a82ae1ca047..20398fb8390267493051a9270712029741f31f4c 100644 (file)
@@ -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