Avoid check for SWIG version for Python bindings when --witout-swig is passed.
* build/ac-macros/swig.m4 (SVN_FIND_SWIG):
Found by: brane
Review by: cmpilato
jamessan
@@ -151,6 +151,12 @@ AC_DEFUN(SVN_FIND_SWIG,
])
SWIG_PY_LIBS="`SVN_REMOVE_STANDARD_LIB_DIRS($ac_cv_python_libs)`"
+ if test "$SWIG" = "none"; then
+ SWIG_PY_ERRMSG=""
+ else
+ # Look more closely at the SWIG and Python versions to
+ # determine SWIG_PY_OPTS. We can skip this if we already
+ # have the SWIG-generated files.
AC_CACHE_CHECK([for Python >= 3], [ac_cv_python_is_py3],[
ac_cv_python_is_py3="no"
$PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \
@@ -182,7 +188,7 @@ AC_DEFUN(SVN_FIND_SWIG,
fi
fi
fi
-
+ fi
fi
fi
