summaryrefslogtreecommitdiff
path: root/xdelta3/m4/ax_swig_python.m4
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/m4/ax_swig_python.m4')
-rw-r--r--xdelta3/m4/ax_swig_python.m464
1 files changed, 64 insertions, 0 deletions
diff --git a/xdelta3/m4/ax_swig_python.m4 b/xdelta3/m4/ax_swig_python.m4
new file mode 100644
index 0000000..8fd3df5
--- /dev/null
+++ b/xdelta3/m4/ax_swig_python.m4
@@ -0,0 +1,64 @@
1# ===========================================================================
2# http://www.gnu.org/software/autoconf-archive/ax_swig_python.html
3# ===========================================================================
4#
5# SYNOPSIS
6#
7# AX_SWIG_PYTHON([use-shadow-classes = {no, yes}])
8#
9# DESCRIPTION
10#
11# Checks for Python and provides the $(AX_SWIG_PYTHON_CPPFLAGS), and
12# $(AX_SWIG_PYTHON_OPT) output variables.
13#
14# $(AX_SWIG_PYTHON_OPT) contains all necessary SWIG options to generate
15# code for Python. Shadow classes are enabled unless the value of the
16# optional first argument is exactly 'no'. If you need multi module
17# support (provided by the AX_SWIG_MULTI_MODULE_SUPPORT macro) use
18# $(AX_SWIG_PYTHON_LIBS) to link against the appropriate library. It
19# contains the SWIG Python runtime library that is needed by the type
20# check system for example.
21#
22# LICENSE
23#
24# Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de>
25# Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
26# Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net>
27# Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za>
28#
29# This program is free software; you can redistribute it and/or modify it
30# under the terms of the GNU General Public License as published by the
31# Free Software Foundation; either version 2 of the License, or (at your
32# option) any later version.
33#
34# This program is distributed in the hope that it will be useful, but
35# WITHOUT ANY WARRANTY; without even the implied warranty of
36# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
37# Public License for more details.
38#
39# You should have received a copy of the GNU General Public License along
40# with this program. If not, see <http://www.gnu.org/licenses/>.
41#
42# As a special exception, the respective Autoconf Macro's copyright owner
43# gives unlimited permission to copy, distribute and modify the configure
44# scripts that are the output of Autoconf when processing the Macro. You
45# need not follow the terms of the GNU General Public License when using
46# or distributing such scripts, even though portions of the text of the
47# Macro appear in them. The GNU General Public License (GPL) does govern
48# all other use of the material that constitutes the Autoconf Macro.
49#
50# This special exception to the GPL applies to versions of the Autoconf
51# Macro released by the Autoconf Archive. When you make and distribute a
52# modified version of the Autoconf Macro, you may extend this special
53# exception to the GPL to apply to your modified version as well.
54
55#serial 7
56
57AU_ALIAS([SWIG_PYTHON], [AX_SWIG_PYTHON])
58AC_DEFUN([AX_SWIG_PYTHON],[
59 AC_REQUIRE([AX_PKG_SWIG])
60 AC_REQUIRE([AX_PYTHON_DEVEL])
61 test "x$1" != "xno" || swig_shadow=" -noproxy"
62 AC_SUBST([AX_SWIG_PYTHON_OPT],[-python$swig_shadow])
63 AC_SUBST([AX_SWIG_PYTHON_CPPFLAGS],[$PYTHON_CPPFLAGS])
64])