1 dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2 dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4 dnl pandora-build: A pedantic build system
5 dnl Copyright (C) 2009 Sun Microsystems, Inc.
6 dnl This file is free software; the Free Software Foundation
7 dnl gives unlimited permission to copy and/or distribute it,
8 dnl with or without modifications, as long as this notice is preserved.
12 AC_DEFUN([PANDORA_WITH_PYTHON3], [
14 AC_REQUIRE([PANDORA_SWIG])
16 AC_ARG_WITH([python3],
17 [AS_HELP_STRING([--with-python3],
18 [Build Python3 Bindings @<:@default=yes@:>@])],
19 [with_python3=$withval],
22 AS_IF([test "x$ac_cv_swig_has_python3_" != "xno"],[
23 AS_IF([test "x$with_python3" != "xno"],[
24 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"],
34 AM_CONDITIONAL(BUILD_PYTHON3, [test "$with_python3" = "yes"])