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