[Freeswitch-svn] [commit] r11603 - freeswitch/trunk
FreeSWITCH SVN
mikej at freeswitch.org
Mon Feb 2 15:04:08 PST 2009
Author: mikej
Date: Mon Feb 2 17:04:08 2009
New Revision: 11603
Log:
fail configure if you don't have a working c++ compiler
Modified:
freeswitch/trunk/configure.in
Modified: freeswitch/trunk/configure.in
==============================================================================
--- freeswitch/trunk/configure.in (original)
+++ freeswitch/trunk/configure.in Mon Feb 2 17:04:08 2009
@@ -53,6 +53,18 @@
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
+
+#check if the g++ compiler works
+AC_CACHE_CHECK([whether the C++ compiler works], [ac_cv_sys_cxx_works], [
+ AC_LANG_PUSH([C++])
+ AC_COMPILE_IFELSE([int main() { }], [ac_cv_sys_cxx_works=yes],
+ [ac_cv_sys_cxx_works=no])
+ AC_LANG_POP([C++])
+ ])
+[ if [ "x$ac_cv_sys_cxx_works" = "xno" ]; then ]
+ AC_MSG_FAILURE([The C++ compiler does not work. Please (re)install the C++ compiler])
+[ fi ]
+
AC_PROG_AWK
AC_PROG_MAKE_SET
AC_PROG_INSTALL
More information about the Freeswitch-svn
mailing list