]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Test if the system has any C++ compiler.
authorNiels Möller <nisse@lysator.liu.se>
Fri, 24 Nov 2006 16:25:49 +0000 (17:25 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Fri, 24 Nov 2006 16:25:49 +0000 (17:25 +0100)
Rev: src/nettle/configure.ac:1.77

configure.ac

index 31c83bca371a824eb56ccd02e1b73ccefd9b1eff..cbc772d7b71c8fd8a017f69b58ea73d7c4fcfedd 100644 (file)
@@ -76,6 +76,14 @@ if test "x$CC" = xrntcl ; then
     enable_assembler=no
 fi
 
+# Used by the testsuite only
+AC_PROG_CXX
+
+AC_LANG_PUSH(C++)
+AC_TRY_COMPILE([],[return 0;],[CXX_TESTS='cxx-test$(EXEEXT)'], [CXX_TESTS=''])
+AC_SUBST([CXX_TESTS])
+AC_LANG_POP
+
 AC_PROG_MAKE_SET
 AC_PROG_RANLIB
 AC_CHECK_TOOL(NM, nm, strings)