2 dnl Check for a working C++ compiler.
3 dnl like AC_PROG_CXX, but makes sure the compiler actually works instead of
4 dnl falling back on a reasonable default only.
6 dnl You must call AC_PROG_CXX yourself before this macro.
7 AC_DEFUN([GEANY_PROG_CXX],
9 AC_REQUIRE([AC_PROG_CXX])
12 AC_MSG_CHECKING([whether the C++ compiler works])
14 [AC_LANG_PROGRAM([[class Test {public: static int main() {return 0;}};]],
16 [AC_MSG_RESULT([yes])],
18 AC_MSG_ERROR([The C++ compiler $CXX does not work. Please install a working C++ compiler or define CXX to the appropriate value.])])