root/vtcross/trunk/config/swig_python.m4 @ 323

Revision 323, 2.9 KB (checked in by trnewman, 15 years ago)

Added proper macros and cleaned up lib linking issues.

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