r26100: Also check for SWIG.
[ira/wip.git] / source / scripting / python / config.m4
index 0b5e174590b7734b5f487e695c3e12b669008677..48103a07826a1ae4915a2117af660e0b74961c88 100644 (file)
@@ -3,6 +3,7 @@ AC_ARG_VAR([PYTHON_VERSION],[The installed Python
        will be appended to the Python interpreter
        canonical name.])
 
+AC_PATH_PROG(SWIG,swig,no)
 AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]])
 if test -z "$PYTHON"; then
        working_python=no
@@ -115,10 +116,9 @@ AC_SUBST(PYTHON_EXTRA_LDFLAGS)
 
 SMB_EXT_LIB(LIBPYTHON, [$PYTHON_LDFLAGS], [$PYTHON_CPPFLAGS])
 
-if test x$working_python = xyes
+if test x$working_python = xyes && test x$SWIG != xno
 then
        SMB_ENABLE(LIBPYTHON,YES)
 else
        SMB_ENABLE(LIBPYTHON,NO)
 fi
-