summaryrefslogtreecommitdiffstats
path: root/m4/ax_swig_enable_cxx.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ax_swig_enable_cxx.m4')
-rw-r--r--m4/ax_swig_enable_cxx.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/ax_swig_enable_cxx.m4 b/m4/ax_swig_enable_cxx.m4
index 722caeb..c1eca8c 100644
--- a/m4/ax_swig_enable_cxx.m4
+++ b/m4/ax_swig_enable_cxx.m4
@@ -47,5 +47,7 @@ AU_ALIAS([SWIG_ENABLE_CXX], [AX_SWIG_ENABLE_CXX])
AC_DEFUN([AX_SWIG_ENABLE_CXX],[
AC_REQUIRE([AC_PROG_SWIG])
AC_REQUIRE([AC_PROG_CXX])
- SWIG="$SWIG -c++"
+ if test "$SWIG" != "false"; then
+ SWIG="$SWIG -c++"
+ fi
])