From 5419e4d4d29bf4896fcf194af4a7f98a24841e16 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 10 Sep 2007 19:37:33 +0000 Subject: Error out if the C++ compiler wasn't found. Bug #475360. 2007-09-10 Christian Persch * configure.ac: Error out if the C++ compiler wasn't found. Bug #475360. svn path=/trunk/; revision=7378 --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ee669dded..cb903955c 100644 --- a/configure.ac +++ b/configure.ac @@ -47,12 +47,21 @@ AC_PROG_LIBTOOL AC_ISC_POSIX AC_PROG_CC -AC_PROG_CXX AM_PROG_CC_STDC AC_HEADER_STDC + +AC_PROG_CXX + AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal]) AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums]) +# Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it +# doesn't exist) + +AC_LANG_PUSH([C++]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])]) +AC_LANG_POP([C++]) + IT_PROG_INTLTOOL([0.35.0]) PKG_PROG_PKG_CONFIG -- cgit