16
16
AC_ARG_WITH([python3],
17
17
[AS_HELP_STRING([--with-python3],
18
[Build Python3 Bindings @<:@default=yes@:>@])],
19
[with_python3=$withval],
18
[Build Python3 Bindings @<:@default=yes@:>@])],[
22
AS_IF([test "x$ac_cv_swig_has_python3_" != "xno"],[
26
AS_IF([test "x$ac_cv_swig_has_python3_" != "xyes"],[
23
29
AS_IF([test "x$with_python3" != "xno"],[
24
30
AS_IF([test "x$with_python3" != "xyes"],
25
[PYTHON3=$with_python3],
26
[AC_PATH_PROG([PYTHON3],[python3],[no])
27
AS_IF([test "x$PYTHON3" = "xno"],
31
[PYTHON3=$with_python3],[
32
AC_PATH_PROG([PYTHON3],[python3],[no])
33
PANDORA_PYTHON3_DEVEL()
34
AS_IF([test "x$python3exists" = "xno"],[with_python="no"])
34
AM_CONDITIONAL(BUILD_PYTHON3, [test "$with_python3" = "yes"])
38
AS_IF([test "x$with_python3" = "xno" -a "$python3_requested" = "yes"],[
39
AC_MSG_ERROR([Python3 support was explicity requested, but Python3 support
40
was not found. Please correct your build environment and try
43
AM_CONDITIONAL(BUILD_PYTHON3, [test "$with_python3" = "yes"])