diff --git a/configure.ac b/configure.ac index c7f105c2..b3716c2f 100644 --- a/configure.ac +++ b/configure.ac @@ -412,7 +412,12 @@ fi if test "x$PERL" != xno -o "x$PYTHON" != xno; then old_USESWIG="$USESWIG" if test "x$USESWIG" != "xno"; then - AC_PROG_SWIG([2.0.8]) + if test -z "$ISDARWIN"; then + AC_PROG_SWIG([2.0.8]) + else + # Old SWIG doesn't like libc++, see https://github.com/swig/swig/issues/73 + AC_PROG_SWIG([2.0.12]) + fi test -z "$SWIG" && USESWIG=no if test "x$USESWIG" = xno -a "x$old_USESWIG" = yes; then AC_MSG_ERROR([Could not found appropriate SWIG installation. Check config.log for details.])