2 AC_DEFUN([CHECK_SWIG],[
3 AC_REQUIRE([CHECK_PYTHON])dnl
8 [ --with-swig=EXEC swig executable ],
10 AC_MSG_RESULT("select $withval as swig executable")
12 AC_PATH_PROG(SWIG, swig)
15 if test "x$SWIG" = "x"
18 AC_MSG_RESULT(swig not in PATH variable)
21 if test "x$swig_ok" = "xyes"
23 AC_MSG_CHECKING(python wrapper generation with swig)
24 cat > conftest.h << EOF
28 $SWIG -module conftest -python conftest.h >/dev/null 2>&1
29 if test -f conftest_wrap.c
31 SWIG_FLAGS="-c++ -python -shadow"
36 AC_MSG_RESULT($swig_ok)
42 AC_MSG_RESULT(for swig: $swig_ok)