1
dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
dnl drizzle-interface: Interface Wrappers for Drizzle
5
dnl Copyright (C) 2008 Sun Microsystems, Inc.
7
dnl This program is free software; you can redistribute it and/or modify
8
dnl it under the terms of the GNU General Public License as published by
9
dnl the Free Software Foundation; either version 2 of the License, or
10
dnl (at your option) any later version.
12
dnl This program is distributed in the hope that it will be useful,
13
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
14
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
dnl GNU General Public License for more details.
17
dnl You should have received a copy of the GNU General Public License
18
dnl along with this program; if not, write to the Free Software
19
dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
AC_DEFUN([WITH_PYTHON3], [
24
AC_ARG_WITH([python3],
25
[AS_HELP_STRING([--with-python3],
26
[Build Python3 Bindings @<:@default=yes@:>@])],
27
[with_python3=$withval],
30
AS_IF([test "x$with_python3" != "xno"],[
31
AS_IF([test "x$with_python3" != "xyes"],
32
[PYTHON3=$with_python3],
33
[AC_PATH_PROG([PYTHON3],[python3],[no])
34
if test "x$PYTHON3" = "xno"