annotate lib/swig/swigwin-2.0.11/aclocal.m4 @ 2544:c674d547cc7c

GUIWindow switch logic refactored into behaviour classes
author a.parshin
date Mon, 11 May 2015 09:51:04 +0200
parents b3009adc0e2f
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5 # Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10 # This program is distributed in the hope that it will be useful,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 # PARTICULAR PURPOSE.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15 m4_ifndef([AC_AUTOCONF_VERSION],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18 [m4_warning([this file was generated for autoconf 2.68.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19 You have another version of autoconf. It may work, but is not guaranteed to.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20 If you have problems, you may need to regenerate the build system entirely.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 To do so, use the procedure documented by the package, typically `autoreconf'.])])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24 # Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30 # serial 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32 # AM_AUTOMAKE_VERSION(VERSION)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33 # ----------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34 # Automake X.Y traces this macro to ensure aclocal.m4 has been
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 # generated from the m4 files accompanying Automake X.Y.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36 # (This private macro should not be called outside this file.)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37 AC_DEFUN([AM_AUTOMAKE_VERSION],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38 [am__api_version='1.11'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40 dnl require some minimum version. Point them to the right macro.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41 m4_if([$1], [1.11.3], [],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45 # _AM_AUTOCONF_VERSION(VERSION)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46 # -----------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 # aclocal traces this macro to find the Autoconf version.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48 # This is a private macro too. Using m4_define simplifies
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49 # the logic in aclocal, which can simply ignore this definition.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50 m4_define([_AM_AUTOCONF_VERSION], [])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52 # AM_SET_CURRENT_AUTOMAKE_VERSION
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53 # -------------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
57 [AM_AUTOMAKE_VERSION([1.11.3])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
58 m4_ifndef([AC_AUTOCONF_VERSION],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
59 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
60 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
61
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
62 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
63
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
64 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
65 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
66 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
67 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
68 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
69
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
70 # serial 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
71
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
72 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
73 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
74 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
75 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
76 # Of course, Automake must honor this variable whenever it calls a
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
77 # tool from the auxiliary directory. The problem is that $srcdir (and
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
78 # therefore $ac_aux_dir as well) can be either absolute or relative,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
79 # depending on how configure is run. This is pretty annoying, since
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
80 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
81 # source directory, any form will work fine, but in subdirectories a
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
82 # relative path needs to be adjusted first.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
83 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
84 # $ac_aux_dir/missing
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
85 # fails when called from a subdirectory if $ac_aux_dir is relative
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
86 # $top_srcdir/$ac_aux_dir/missing
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
87 # fails if $ac_aux_dir is absolute,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
88 # fails when called from a subdirectory in a VPATH build with
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
89 # a relative $ac_aux_dir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
90 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
91 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
92 # are both prefixed by $srcdir. In an in-source build this is usually
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
93 # harmless because $srcdir is `.', but things will broke when you
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
94 # start a VPATH build or use an absolute $srcdir.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
95 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
96 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
97 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
98 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
99 # and then we would define $MISSING as
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
100 # MISSING="\${SHELL} $am_aux_dir/missing"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
101 # This will work as long as MISSING is not called from configure, because
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
102 # unfortunately $(top_srcdir) has no meaning in configure.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
103 # However there are other variables, like CC, which are often used in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
104 # configure, and could therefore not use this "fixed" $ac_aux_dir.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
105 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
106 # Another solution, used here, is to always expand $ac_aux_dir to an
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
107 # absolute PATH. The drawback is that using absolute paths prevent a
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
108 # configured tree to be moved without reconfiguration.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
109
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
110 AC_DEFUN([AM_AUX_DIR_EXPAND],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
111 [dnl Rely on autoconf to set up CDPATH properly.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
112 AC_PREREQ([2.50])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
113 # expand $ac_aux_dir to an absolute path
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
114 am_aux_dir=`cd $ac_aux_dir && pwd`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
115 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
116
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
117 # AM_CONDITIONAL -*- Autoconf -*-
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
118
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
119 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
120 # Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
121 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
122 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
123 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
124 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
125
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
126 # serial 9
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
127
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
128 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
129 # -------------------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
130 # Define a conditional.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
131 AC_DEFUN([AM_CONDITIONAL],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
132 [AC_PREREQ(2.52)dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
133 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
134 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
135 AC_SUBST([$1_TRUE])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
136 AC_SUBST([$1_FALSE])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
137 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
138 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
139 m4_define([_AM_COND_VALUE_$1], [$2])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
140 if $2; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
141 $1_TRUE=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
142 $1_FALSE='#'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
143 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
144 $1_TRUE='#'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
145 $1_FALSE=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
146 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
147 AC_CONFIG_COMMANDS_PRE(
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
148 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
149 AC_MSG_ERROR([[conditional "$1" was never defined.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
150 Usually this means the macro was only invoked conditionally.]])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
151 fi])])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
152
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
153 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
154 # 2010, 2011 Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
155 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
156 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
157 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
158 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
159
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
160 # serial 12
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
161
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
162 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
163 # written in clear, in which case automake, when reading aclocal.m4,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
164 # will think it sees a *use*, and therefore will trigger all it's
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
165 # C support machinery. Also note that it means that autoscan, seeing
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
166 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
167
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
168
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
169 # _AM_DEPENDENCIES(NAME)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
170 # ----------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
171 # See how the compiler implements dependency checking.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
172 # NAME is "CC", "CXX", "GCJ", or "OBJC".
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
173 # We try a few techniques and use that to set a single cache variable.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
174 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
175 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
176 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
177 # dependency, and given that the user is not expected to run this macro,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
178 # just rely on AC_PROG_CC.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
179 AC_DEFUN([_AM_DEPENDENCIES],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
180 [AC_REQUIRE([AM_SET_DEPDIR])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
181 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
182 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
183 AC_REQUIRE([AM_DEP_TRACK])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
184
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
185 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
186 [$1], CXX, [depcc="$CXX" am_compiler_list=],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
187 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
188 [$1], UPC, [depcc="$UPC" am_compiler_list=],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
189 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
190 [depcc="$$1" am_compiler_list=])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
191
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
192 AC_CACHE_CHECK([dependency style of $depcc],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
193 [am_cv_$1_dependencies_compiler_type],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
194 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
195 # We make a subdir and do the tests there. Otherwise we can end up
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
196 # making bogus files that we don't know about and never remove. For
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
197 # instance it was reported that on HP-UX the gcc test will end up
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
198 # making a dummy file named `D' -- because `-MD' means `put the output
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
199 # in D'.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
200 rm -rf conftest.dir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
201 mkdir conftest.dir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
202 # Copy depcomp to subdir because otherwise we won't find it if we're
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
203 # using a relative directory.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
204 cp "$am_depcomp" conftest.dir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
205 cd conftest.dir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
206 # We will build objects and dependencies in a subdirectory because
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
207 # it helps to detect inapplicable dependency modes. For instance
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
208 # both Tru64's cc and ICC support -MD to output dependencies as a
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
209 # side effect of compilation, but ICC will put the dependencies in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
210 # the current directory while Tru64 will put them in the object
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
211 # directory.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
212 mkdir sub
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
213
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
214 am_cv_$1_dependencies_compiler_type=none
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
215 if test "$am_compiler_list" = ""; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
216 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
217 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
218 am__universal=false
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
219 m4_case([$1], [CC],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
220 [case " $depcc " in #(
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
221 *\ -arch\ *\ -arch\ *) am__universal=true ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
222 esac],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
223 [CXX],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
224 [case " $depcc " in #(
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
225 *\ -arch\ *\ -arch\ *) am__universal=true ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
226 esac])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
227
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
228 for depmode in $am_compiler_list; do
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
229 # Setup a source with many dependencies, because some compilers
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
230 # like to wrap large dependency lists on column 80 (with \), and
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
231 # we should not choose a depcomp mode which is confused by this.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
232 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
233 # We need to recreate these files for each test, as the compiler may
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
234 # overwrite some of them when testing with obscure command lines.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
235 # This happens at least with the AIX C compiler.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
236 : > sub/conftest.c
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
237 for i in 1 2 3 4 5 6; do
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
238 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
239 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
240 # Solaris 8's {/usr,}/bin/sh.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
241 touch sub/conftst$i.h
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
242 done
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
243 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
244
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
245 # We check with `-c' and `-o' for the sake of the "dashmstdout"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
246 # mode. It turns out that the SunPro C++ compiler does not properly
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
247 # handle `-M -o', and we need to detect this. Also, some Intel
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
248 # versions had trouble with output in subdirs
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
249 am__obj=sub/conftest.${OBJEXT-o}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
250 am__minus_obj="-o $am__obj"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
251 case $depmode in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
252 gcc)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
253 # This depmode causes a compiler race in universal mode.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
254 test "$am__universal" = false || continue
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
255 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
256 nosideeffect)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
257 # after this tag, mechanisms are not by side-effect, so they'll
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
258 # only be used when explicitly requested
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
259 if test "x$enable_dependency_tracking" = xyes; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
260 continue
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
261 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
262 break
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
263 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
264 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
265 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
266 # This compiler won't grok `-c -o', but also, the minuso test has
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
267 # not run yet. These depmodes are late enough in the game, and
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
268 # so weak that their functioning should not be impacted.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
269 am__obj=conftest.${OBJEXT-o}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
270 am__minus_obj=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
271 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
272 none) break ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
273 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
274 if depmode=$depmode \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
275 source=sub/conftest.c object=$am__obj \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
276 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
277 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
278 >/dev/null 2>conftest.err &&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
279 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
280 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
281 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
282 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
283 # icc doesn't choke on unknown options, it will just issue warnings
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
284 # or remarks (even with -Werror). So we grep stderr for any message
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
285 # that says an option was ignored or not supported.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
286 # When given -MP, icc 7.0 and 7.1 complain thusly:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
287 # icc: Command line warning: ignoring option '-M'; no argument required
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
288 # The diagnosis changed in icc 8.0:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
289 # icc: Command line remark: option '-MP' not supported
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
290 if (grep 'ignoring option' conftest.err ||
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
291 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
292 am_cv_$1_dependencies_compiler_type=$depmode
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
293 break
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
294 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
295 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
296 done
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
297
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
298 cd ..
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
299 rm -rf conftest.dir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
300 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
301 am_cv_$1_dependencies_compiler_type=none
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
302 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
303 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
304 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
305 AM_CONDITIONAL([am__fastdep$1], [
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
306 test "x$enable_dependency_tracking" != xno \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
307 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
308 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
309
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
310
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
311 # AM_SET_DEPDIR
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
312 # -------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
313 # Choose a directory name for dependency files.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
314 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
315 AC_DEFUN([AM_SET_DEPDIR],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
316 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
317 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
318 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
319
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
320
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
321 # AM_DEP_TRACK
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
322 # ------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
323 AC_DEFUN([AM_DEP_TRACK],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
324 [AC_ARG_ENABLE(dependency-tracking,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
325 [ --disable-dependency-tracking speeds up one-time build
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
326 --enable-dependency-tracking do not reject slow dependency extractors])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
327 if test "x$enable_dependency_tracking" != xno; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
328 am_depcomp="$ac_aux_dir/depcomp"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
329 AMDEPBACKSLASH='\'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
330 am__nodep='_no'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
331 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
332 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
333 AC_SUBST([AMDEPBACKSLASH])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
334 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
335 AC_SUBST([am__nodep])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
336 _AM_SUBST_NOTMAKE([am__nodep])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
337 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
338
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
339 # Generate code to set up dependency tracking. -*- Autoconf -*-
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
340
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
341 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
342 # Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
343 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
344 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
345 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
346 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
347
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
348 #serial 5
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
349
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
350 # _AM_OUTPUT_DEPENDENCY_COMMANDS
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
351 # ------------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
352 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
353 [{
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
354 # Autoconf 2.62 quotes --file arguments for eval, but not when files
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
355 # are listed without --file. Let's play safe and only enable the eval
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
356 # if we detect the quoting.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
357 case $CONFIG_FILES in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
358 *\'*) eval set x "$CONFIG_FILES" ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
359 *) set x $CONFIG_FILES ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
360 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
361 shift
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
362 for mf
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
363 do
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
364 # Strip MF so we end up with the name of the file.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
365 mf=`echo "$mf" | sed -e 's/:.*$//'`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
366 # Check whether this is an Automake generated Makefile or not.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
367 # We used to match only the files named `Makefile.in', but
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
368 # some people rename them; so instead we look at the file content.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
369 # Grep'ing the first line is not enough: some people post-process
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
370 # each Makefile.in and add a new line on top of each file to say so.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
371 # Grep'ing the whole file is not good either: AIX grep has a line
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
372 # limit of 2048, but all sed's we know have understand at least 4000.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
373 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
374 dirpart=`AS_DIRNAME("$mf")`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
375 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
376 continue
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
377 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
378 # Extract the definition of DEPDIR, am__include, and am__quote
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
379 # from the Makefile without running `make'.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
380 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
381 test -z "$DEPDIR" && continue
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
382 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
383 test -z "am__include" && continue
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
384 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
385 # When using ansi2knr, U may be empty or an underscore; expand it
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
386 U=`sed -n 's/^U = //p' < "$mf"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
387 # Find all dependency output files, they are included files with
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
388 # $(DEPDIR) in their names. We invoke sed twice because it is the
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
389 # simplest approach to changing $(DEPDIR) to its actual value in the
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
390 # expansion.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
391 for file in `sed -n "
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
392 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
393 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
394 # Make sure the directory exists.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
395 test -f "$dirpart/$file" && continue
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
396 fdir=`AS_DIRNAME(["$file"])`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
397 AS_MKDIR_P([$dirpart/$fdir])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
398 # echo "creating $dirpart/$file"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
399 echo '# dummy' > "$dirpart/$file"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
400 done
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
401 done
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
402 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
403 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
404
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
405
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
406 # AM_OUTPUT_DEPENDENCY_COMMANDS
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
407 # -----------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
408 # This macro should only be invoked once -- use via AC_REQUIRE.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
409 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
410 # This code is only required when automatic dependency tracking
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
411 # is enabled. FIXME. This creates each `.P' file that we will
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
412 # need in order to bootstrap the dependency handling code.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
413 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
414 [AC_CONFIG_COMMANDS([depfiles],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
415 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
416 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
417 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
418
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
419 # Do all the work for Automake. -*- Autoconf -*-
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
420
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
421 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
422 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
423 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
424 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
425 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
426 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
427
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
428 # serial 16
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
429
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
430 # This macro actually does too much. Some checks are only needed if
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
431 # your package does certain things. But this isn't really a big deal.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
432
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
433 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
434 # AM_INIT_AUTOMAKE([OPTIONS])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
435 # -----------------------------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
436 # The call with PACKAGE and VERSION arguments is the old style
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
437 # call (pre autoconf-2.50), which is being phased out. PACKAGE
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
438 # and VERSION should now be passed to AC_INIT and removed from
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
439 # the call to AM_INIT_AUTOMAKE.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
440 # We support both call styles for the transition. After
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
441 # the next Automake release, Autoconf can make the AC_INIT
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
442 # arguments mandatory, and then we can depend on a new Autoconf
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
443 # release and drop the old call support.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
444 AC_DEFUN([AM_INIT_AUTOMAKE],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
445 [AC_PREREQ([2.62])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
446 dnl Autoconf wants to disallow AM_ names. We explicitly allow
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
447 dnl the ones we care about.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
448 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
449 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
450 AC_REQUIRE([AC_PROG_INSTALL])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
451 if test "`cd $srcdir && pwd`" != "`pwd`"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
452 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
453 # is not polluted with repeated "-I."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
454 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
455 # test to see if srcdir already configured
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
456 if test -f $srcdir/config.status; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
457 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
458 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
459 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
460
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
461 # test whether we have cygpath
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
462 if test -z "$CYGPATH_W"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
463 if (cygpath --version) >/dev/null 2>/dev/null; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
464 CYGPATH_W='cygpath -w'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
465 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
466 CYGPATH_W=echo
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
467 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
468 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
469 AC_SUBST([CYGPATH_W])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
470
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
471 # Define the identity of the package.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
472 dnl Distinguish between old-style and new-style calls.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
473 m4_ifval([$2],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
474 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
475 AC_SUBST([PACKAGE], [$1])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
476 AC_SUBST([VERSION], [$2])],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
477 [_AM_SET_OPTIONS([$1])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
478 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
479 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
480 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
481 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
482 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
483
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
484 _AM_IF_OPTION([no-define],,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
485 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
486 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
487
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
488 # Some tools Automake needs.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
489 AC_REQUIRE([AM_SANITY_CHECK])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
490 AC_REQUIRE([AC_ARG_PROGRAM])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
491 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
492 AM_MISSING_PROG(AUTOCONF, autoconf)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
493 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
494 AM_MISSING_PROG(AUTOHEADER, autoheader)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
495 AM_MISSING_PROG(MAKEINFO, makeinfo)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
496 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
497 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
498 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
499 # We need awk for the "check" target. The system "awk" is bad on
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
500 # some platforms.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
501 AC_REQUIRE([AC_PROG_AWK])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
502 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
503 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
504 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
505 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
506 [_AM_PROG_TAR([v7])])])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
507 _AM_IF_OPTION([no-dependencies],,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
508 [AC_PROVIDE_IFELSE([AC_PROG_CC],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
509 [_AM_DEPENDENCIES(CC)],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
510 [define([AC_PROG_CC],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
511 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
512 AC_PROVIDE_IFELSE([AC_PROG_CXX],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
513 [_AM_DEPENDENCIES(CXX)],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
514 [define([AC_PROG_CXX],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
515 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
516 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
517 [_AM_DEPENDENCIES(OBJC)],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
518 [define([AC_PROG_OBJC],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
519 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
520 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
521 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
522 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
523 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
524 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
525 AC_CONFIG_COMMANDS_PRE(dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
526 [m4_provide_if([_AM_COMPILER_EXEEXT],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
527 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
528 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
529
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
530 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
531 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
532 dnl mangled by Autoconf and run in a shell conditional statement.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
533 m4_define([_AC_COMPILER_EXEEXT],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
534 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
535
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
536
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
537 # When config.status generates a header, we must update the stamp-h file.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
538 # This file resides in the same directory as the config header
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
539 # that is generated. The stamp files are numbered to have different names.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
540
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
541 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
542 # loop where config.status creates the headers, so we can generate
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
543 # our stamp files there.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
544 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
545 [# Compute $1's index in $config_headers.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
546 _am_arg=$1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
547 _am_stamp_count=1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
548 for _am_header in $config_headers :; do
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
549 case $_am_header in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
550 $_am_arg | $_am_arg:* )
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
551 break ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
552 * )
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
553 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
554 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
555 done
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
556 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
557
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
558 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
559 # Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
560 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
561 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
562 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
563 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
564
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
565 # serial 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
566
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
567 # AM_PROG_INSTALL_SH
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
568 # ------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
569 # Define $install_sh.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
570 AC_DEFUN([AM_PROG_INSTALL_SH],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
571 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
572 if test x"${install_sh}" != xset; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
573 case $am_aux_dir in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
574 *\ * | *\ *)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
575 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
576 *)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
577 install_sh="\${SHELL} $am_aux_dir/install-sh"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
578 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
579 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
580 AC_SUBST(install_sh)])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
581
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
582 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
583 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
584 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
585 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
586 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
587
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
588 # serial 2
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
589
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
590 # Check whether the underlying file-system supports filenames
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
591 # with a leading dot. For instance MS-DOS doesn't.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
592 AC_DEFUN([AM_SET_LEADING_DOT],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
593 [rm -rf .tst 2>/dev/null
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
594 mkdir .tst 2>/dev/null
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
595 if test -d .tst; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
596 am__leading_dot=.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
597 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
598 am__leading_dot=_
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
599 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
600 rmdir .tst 2>/dev/null
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
601 AC_SUBST([am__leading_dot])])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
602
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
603 # Check to see how 'make' treats includes. -*- Autoconf -*-
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
604
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
605 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
606 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
607 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
608 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
609 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
610
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
611 # serial 4
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
612
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
613 # AM_MAKE_INCLUDE()
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
614 # -----------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
615 # Check to see how make treats includes.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
616 AC_DEFUN([AM_MAKE_INCLUDE],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
617 [am_make=${MAKE-make}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
618 cat > confinc << 'END'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
619 am__doit:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
620 @echo this is the am__doit target
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
621 .PHONY: am__doit
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
622 END
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
623 # If we don't find an include directive, just comment out the code.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
624 AC_MSG_CHECKING([for style of include used by $am_make])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
625 am__include="#"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
626 am__quote=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
627 _am_result=none
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
628 # First try GNU make style include.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
629 echo "include confinc" > confmf
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
630 # Ignore all kinds of additional output from `make'.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
631 case `$am_make -s -f confmf 2> /dev/null` in #(
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
632 *the\ am__doit\ target*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
633 am__include=include
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
634 am__quote=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
635 _am_result=GNU
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
636 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
637 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
638 # Now try BSD make style include.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
639 if test "$am__include" = "#"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
640 echo '.include "confinc"' > confmf
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
641 case `$am_make -s -f confmf 2> /dev/null` in #(
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
642 *the\ am__doit\ target*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
643 am__include=.include
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
644 am__quote="\""
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
645 _am_result=BSD
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
646 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
647 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
648 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
649 AC_SUBST([am__include])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
650 AC_SUBST([am__quote])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
651 AC_MSG_RESULT([$_am_result])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
652 rm -f confinc confmf
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
653 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
654
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
655 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
656 # Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
657 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
658 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
659 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
660 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
661
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
662 # serial 6
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
663
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
664 # AM_PROG_CC_C_O
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
665 # --------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
666 # Like AC_PROG_CC_C_O, but changed for automake.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
667 AC_DEFUN([AM_PROG_CC_C_O],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
668 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
669 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
670 AC_REQUIRE_AUX_FILE([compile])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
671 # FIXME: we rely on the cache variable name because
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
672 # there is no other way.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
673 set dummy $CC
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
674 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
675 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
676 if test "$am_t" != yes; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
677 # Losing compiler, so override with the script.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
678 # FIXME: It is wrong to rewrite CC.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
679 # But if we don't then we get into trouble of one sort or another.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
680 # A longer-term fix would be to have automake use am__CC in this case,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
681 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
682 CC="$am_aux_dir/compile $CC"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
683 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
684 dnl Make sure AC_PROG_CC is never called again, or it will override our
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
685 dnl setting of CC.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
686 m4_define([AC_PROG_CC],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
687 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
688 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
689
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
690 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
691
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
692 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
693 # Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
694 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
695 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
696 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
697 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
698
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
699 # serial 6
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
700
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
701 # AM_MISSING_PROG(NAME, PROGRAM)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
702 # ------------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
703 AC_DEFUN([AM_MISSING_PROG],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
704 [AC_REQUIRE([AM_MISSING_HAS_RUN])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
705 $1=${$1-"${am_missing_run}$2"}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
706 AC_SUBST($1)])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
707
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
708
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
709 # AM_MISSING_HAS_RUN
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
710 # ------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
711 # Define MISSING if not defined so far and test if it supports --run.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
712 # If it does, set am_missing_run to use it, otherwise, to nothing.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
713 AC_DEFUN([AM_MISSING_HAS_RUN],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
714 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
715 AC_REQUIRE_AUX_FILE([missing])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
716 if test x"${MISSING+set}" != xset; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
717 case $am_aux_dir in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
718 *\ * | *\ *)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
719 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
720 *)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
721 MISSING="\${SHELL} $am_aux_dir/missing" ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
722 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
723 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
724 # Use eval to expand $SHELL
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
725 if eval "$MISSING --run true"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
726 am_missing_run="$MISSING --run "
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
727 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
728 am_missing_run=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
729 AC_MSG_WARN([`missing' script is too old or missing])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
730 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
731 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
732
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
733 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
734 # Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
735 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
736 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
737 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
738 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
739
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
740 # serial 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
741
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
742 # AM_PROG_MKDIR_P
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
743 # ---------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
744 # Check for `mkdir -p'.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
745 AC_DEFUN([AM_PROG_MKDIR_P],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
746 [AC_PREREQ([2.60])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
747 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
748 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
749 dnl while keeping a definition of mkdir_p for backward compatibility.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
750 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
751 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
752 dnl Makefile.ins that do not define MKDIR_P, so we do our own
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
753 dnl adjustment using top_builddir (which is defined more often than
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
754 dnl MKDIR_P).
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
755 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
756 case $mkdir_p in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
757 [[\\/$]]* | ?:[[\\/]]*) ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
758 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
759 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
760 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
761
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
762 # Helper functions for option handling. -*- Autoconf -*-
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
763
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
764 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
765 # Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
766 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
767 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
768 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
769 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
770
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
771 # serial 5
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
772
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
773 # _AM_MANGLE_OPTION(NAME)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
774 # -----------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
775 AC_DEFUN([_AM_MANGLE_OPTION],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
776 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
777
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
778 # _AM_SET_OPTION(NAME)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
779 # --------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
780 # Set option NAME. Presently that only means defining a flag for this option.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
781 AC_DEFUN([_AM_SET_OPTION],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
782 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
783
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
784 # _AM_SET_OPTIONS(OPTIONS)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
785 # ------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
786 # OPTIONS is a space-separated list of Automake options.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
787 AC_DEFUN([_AM_SET_OPTIONS],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
788 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
789
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
790 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
791 # -------------------------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
792 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
793 AC_DEFUN([_AM_IF_OPTION],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
794 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
795
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
796 # Check to make sure that the build environment is sane. -*- Autoconf -*-
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
797
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
798 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
799 # Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
800 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
801 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
802 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
803 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
804
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
805 # serial 5
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
806
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
807 # AM_SANITY_CHECK
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
808 # ---------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
809 AC_DEFUN([AM_SANITY_CHECK],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
810 [AC_MSG_CHECKING([whether build environment is sane])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
811 # Just in case
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
812 sleep 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
813 echo timestamp > conftest.file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
814 # Reject unsafe characters in $srcdir or the absolute working directory
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
815 # name. Accept space and tab only in the latter.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
816 am_lf='
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
817 '
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
818 case `pwd` in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
819 *[[\\\"\#\$\&\'\`$am_lf]]*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
820 AC_MSG_ERROR([unsafe absolute working directory name]);;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
821 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
822 case $srcdir in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
823 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
824 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
825 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
826
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
827 # Do `set' in a subshell so we don't clobber the current shell's
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
828 # arguments. Must try -L first in case configure is actually a
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
829 # symlink; some systems play weird games with the mod time of symlinks
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
830 # (eg FreeBSD returns the mod time of the symlink's containing
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
831 # directory).
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
832 if (
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
833 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
834 if test "$[*]" = "X"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
835 # -L didn't work.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
836 set X `ls -t "$srcdir/configure" conftest.file`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
837 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
838 rm -f conftest.file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
839 if test "$[*]" != "X $srcdir/configure conftest.file" \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
840 && test "$[*]" != "X conftest.file $srcdir/configure"; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
841
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
842 # If neither matched, then we have a broken ls. This can happen
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
843 # if, for instance, CONFIG_SHELL is bash and it inherits a
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
844 # broken ls alias from the environment. This has actually
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
845 # happened. Such a system could not be considered "sane".
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
846 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
847 alias in your environment])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
848 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
849
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
850 test "$[2]" = conftest.file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
851 )
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
852 then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
853 # Ok.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
854 :
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
855 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
856 AC_MSG_ERROR([newly created file is older than distributed files!
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
857 Check your system clock])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
858 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
859 AC_MSG_RESULT(yes)])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
860
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
861 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
862 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
863 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
864 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
865 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
866
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
867 # serial 1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
868
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
869 # AM_PROG_INSTALL_STRIP
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
870 # ---------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
871 # One issue with vendor `install' (even GNU) is that you can't
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
872 # specify the program used to strip binaries. This is especially
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
873 # annoying in cross-compiling environments, where the build's strip
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
874 # is unlikely to handle the host's binaries.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
875 # Fortunately install-sh will honor a STRIPPROG variable, so we
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
876 # always use install-sh in `make install-strip', and initialize
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
877 # STRIPPROG with the value of the STRIP variable (set by the user).
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
878 AC_DEFUN([AM_PROG_INSTALL_STRIP],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
879 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
880 # Installed binaries are usually stripped using `strip' when the user
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
881 # run `make install-strip'. However `strip' might not be the right
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
882 # tool to use in cross-compilation environments, therefore Automake
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
883 # will honor the `STRIP' environment variable to overrule this program.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
884 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
885 if test "$cross_compiling" != no; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
886 AC_CHECK_TOOL([STRIP], [strip], :)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
887 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
888 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
889 AC_SUBST([INSTALL_STRIP_PROGRAM])])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
890
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
891 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
892 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
893 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
894 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
895 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
896
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
897 # serial 3
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
898
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
899 # _AM_SUBST_NOTMAKE(VARIABLE)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
900 # ---------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
901 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
902 # This macro is traced by Automake.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
903 AC_DEFUN([_AM_SUBST_NOTMAKE])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
904
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
905 # AM_SUBST_NOTMAKE(VARIABLE)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
906 # --------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
907 # Public sister of _AM_SUBST_NOTMAKE.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
908 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
909
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
910 # Check how to create a tarball. -*- Autoconf -*-
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
911
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
912 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
913 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
914 # This file is free software; the Free Software Foundation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
915 # gives unlimited permission to copy and/or distribute it,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
916 # with or without modifications, as long as this notice is preserved.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
917
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
918 # serial 2
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
919
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
920 # _AM_PROG_TAR(FORMAT)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
921 # --------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
922 # Check how to create a tarball in format FORMAT.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
923 # FORMAT should be one of `v7', `ustar', or `pax'.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
924 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
925 # Substitute a variable $(am__tar) that is a command
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
926 # writing to stdout a FORMAT-tarball containing the directory
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
927 # $tardir.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
928 # tardir=directory && $(am__tar) > result.tar
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
929 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
930 # Substitute a variable $(am__untar) that extract such
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
931 # a tarball read from stdin.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
932 # $(am__untar) < result.tar
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
933 AC_DEFUN([_AM_PROG_TAR],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
934 [# Always define AMTAR for backward compatibility. Yes, it's still used
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
935 # in the wild :-( We should find a proper way to deprecate it ...
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
936 AC_SUBST([AMTAR], ['$${TAR-tar}'])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
937 m4_if([$1], [v7],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
938 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
939 [m4_case([$1], [ustar],, [pax],,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
940 [m4_fatal([Unknown tar format])])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
941 AC_MSG_CHECKING([how to create a $1 tar archive])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
942 # Loop over all known methods to create a tar archive until one works.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
943 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
944 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
945 # Do not fold the above two line into one, because Tru64 sh and
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
946 # Solaris sh will not grok spaces in the rhs of `-'.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
947 for _am_tool in $_am_tools
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
948 do
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
949 case $_am_tool in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
950 gnutar)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
951 for _am_tar in tar gnutar gtar;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
952 do
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
953 AM_RUN_LOG([$_am_tar --version]) && break
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
954 done
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
955 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
956 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
957 am__untar="$_am_tar -xf -"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
958 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
959 plaintar)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
960 # Must skip GNU tar: if it does not support --format= it doesn't create
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
961 # ustar tarball either.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
962 (tar --version) >/dev/null 2>&1 && continue
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
963 am__tar='tar chf - "$$tardir"'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
964 am__tar_='tar chf - "$tardir"'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
965 am__untar='tar xf -'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
966 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
967 pax)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
968 am__tar='pax -L -x $1 -w "$$tardir"'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
969 am__tar_='pax -L -x $1 -w "$tardir"'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
970 am__untar='pax -r'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
971 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
972 cpio)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
973 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
974 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
975 am__untar='cpio -i -H $1 -d'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
976 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
977 none)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
978 am__tar=false
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
979 am__tar_=false
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
980 am__untar=false
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
981 ;;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
982 esac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
983
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
984 # If the value was cached, stop now. We just wanted to have am__tar
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
985 # and am__untar set.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
986 test -n "${am_cv_prog_tar_$1}" && break
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
987
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
988 # tar/untar a dummy directory, and stop if the command works
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
989 rm -rf conftest.dir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
990 mkdir conftest.dir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
991 echo GrepMe > conftest.dir/file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
992 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
993 rm -rf conftest.dir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
994 if test -s conftest.tar; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
995 AM_RUN_LOG([$am__untar <conftest.tar])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
996 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
997 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
998 done
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
999 rm -rf conftest.dir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1000
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1001 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1002 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1003 AC_SUBST([am__tar])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1004 AC_SUBST([am__untar])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1005 ]) # _AM_PROG_TAR
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1006
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1007 m4_include([Tools/config/ac_compare_version.m4])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1008 m4_include([Tools/config/ac_compile_warnings.m4])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1009 m4_include([Tools/config/ac_define_dir.m4])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1010 m4_include([Tools/config/ax_boost_base.m4])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1011 m4_include([Tools/config/ax_compare_version.m4])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1012 m4_include([Tools/config/ax_path_generic.m4])