From: Niels Möller Date: Fri, 24 Nov 2006 16:25:49 +0000 (+0100) Subject: Test if the system has any C++ compiler. X-Git-Tag: nettle_1.15_release_20061128~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2b218bcaba3b7d50cfbad1b1029c954c54a0df6;p=thirdparty%2Fnettle.git Test if the system has any C++ compiler. Rev: src/nettle/configure.ac:1.77 --- diff --git a/configure.ac b/configure.ac index 31c83bca..cbc772d7 100644 --- a/configure.ac +++ b/configure.ac @@ -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)