From 3073db4e816a3566dc744b88eb30bf6e6f6acff6 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 11 Jun 2008 21:00:42 -0400 Subject: [PATCH] Add configure check that C++ is working --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 5f93e78a4..d370d8a38 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,13 @@ CXX=g++ AC_PROG_CC AC_PROG_CXX AC_PROG_INSTALL + +AC_LANG_PUSH(C++) +AC_MSG_CHECKING([that C++ compiler can compile simple program]) +AC_TRY_RUN([int main() { return 0; }], + AC_MSG_RESULT(yes), + AC_MSG_RESULT(no);AC_MSG_ERROR([a working C++ compiler is required])) + AC_PATH_PROG(PERL,perl) if test "x$PERL" = "x" ; then AC_MSG_ERROR([Cannot find "perl" in your PATH, please install it])