From 4872c9b4c9e6e960628083769e8b43500cf646d5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 4 Sep 2015 22:10:49 +0900 Subject: [PATCH] Use C++ compiler to detect mruby since we have to enable C++ ABI mode Since default Debian/Ubuntu mruby package does not enable C++ ABI mode, it cannot be used with our C++ code, since mruby exception does not properly cleanup C++ object allocated on stack. We have to build mruby with conf.enable_cxx_abi explicitly. It is safe for us to build our own mruby. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 18838c53..bfdbc554 100644 --- a/configure.ac +++ b/configure.ac @@ -376,6 +376,7 @@ fi AM_CONDITIONAL([HAVE_SPDYLAY], [ test "x${have_spdylay}" = "xyes" ]) # mruby (for src/nghttpx) +AC_LANG_PUSH(C++) LIBS_OLD=$LIBS have_mruby=no if test "x${request_mruby}" != "xno"; then @@ -392,6 +393,7 @@ if test "x${request_mruby}" != "xno"; then fi fi LIBS=$LIBS_OLD +AC_LANG_POP() if test "x${request_mruby}" = "xyes" && test "x${have_mruby}" != "xyes"; then