Switch gdb's TRY/CATCH to C++ try/catch
[deliverable/binutils-gdb.git] / gdb / build-with-cxx.m4
index b6284fda2ffd284a0b678dd93dafd8bb21f31082..6077278a9e8750a6f16dd611e6a0a639d15c5aa4 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright (C) 2014-2015 Free Software Foundation, Inc.
+dnl Copyright (C) 2014-2016 Free Software Foundation, Inc.
 dnl
 dnl This file is part of GDB.
 dnl
@@ -29,12 +29,15 @@ AC_DEFUN([GDB_AC_BUILD_WITH_CXX],
       *)
          AC_MSG_ERROR([bad value $enableval for --enable-build-with-cxx]) ;;
     esac],
-    [enable_build_with_cxx=no])
+    [enable_build_with_cxx=yes])
 
   if test "$enable_build_with_cxx" = "yes"; then
     COMPILER='$(CXX)'
+    COMPILER_CFLAGS='$(CXXFLAGS)'
    else
     COMPILER='$(CC)'
+    COMPILER_CFLAGS='$(CFLAGS)'
   fi
   AC_SUBST(COMPILER)
+  AC_SUBST(COMPILER_CFLAGS)
 ])
This page took 0.023089 seconds and 4 git commands to generate.