~gearman-developers/gearman-interface/gearman-interface

« back to all changes in this revision

Viewing changes to m4/with_python3.m4

  • Committer: Monty Taylor
  • Date: 2009-07-21 20:41:39 UTC
  • Revision ID: mordred@inaugust.com-20090721204139-rcyse999id1lbu1h
Python worker initial import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
dnl   
 
4
dnl drizzle-interface: Interface Wrappers for Drizzle
 
5
dnl Copyright (C) 2008 Sun Microsystems, Inc.
 
6
dnl 
 
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.
 
11
dnl 
 
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.
 
16
dnl 
 
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
 
20
 
 
21
 
 
22
AC_DEFUN([WITH_PYTHON3], [
 
23
 
 
24
  AC_ARG_WITH([python3], 
 
25
    [AS_HELP_STRING([--with-python3],
 
26
      [Build Python3 Bindings @<:@default=yes@:>@])],
 
27
    [with_python3=$withval], 
 
28
    [with_python3=yes])
 
29
 
 
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"
 
35
       then
 
36
         with_python3=no
 
37
       fi
 
38
      ]) 
 
39
  ])
 
40
])