Updated date in changes file
[profile/ivi/libgee.git] / aclocal.m4
1 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5 # Inc.
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 m4_ifndef([AC_AUTOCONF_VERSION],
16   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18 [m4_warning([this file was generated for autoconf 2.69.
19 You have another version of autoconf.  It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
23 dnl -*- mode: autoconf -*-
24 dnl Copyright 2009 Johan Dahlin
25 dnl
26 dnl This file is free software; the author(s) gives unlimited
27 dnl permission to copy and/or distribute it, with or without
28 dnl modifications, as long as this notice is preserved.
29 dnl
30
31 # serial 1
32
33 m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
34 [
35     AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
36     AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
37     AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
38
39     dnl enable/disable introspection
40     m4_if([$2], [require],
41     [dnl
42         enable_introspection=yes
43     ],[dnl
44         AC_ARG_ENABLE(introspection,
45                   AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
46                                  [Enable introspection for this build]),, 
47                                  [enable_introspection=auto])
48     ])dnl
49
50     AC_MSG_CHECKING([for gobject-introspection])
51
52     dnl presence/version checking
53     AS_CASE([$enable_introspection],
54     [no], [dnl
55         found_introspection="no (disabled, use --enable-introspection to enable)"
56     ],dnl
57     [yes],[dnl
58         PKG_CHECK_EXISTS([gobject-introspection-1.0],,
59                          AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
60         PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
61                          found_introspection=yes,
62                          AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
63     ],dnl
64     [auto],[dnl
65         PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
66         dnl Canonicalize enable_introspection
67         enable_introspection=$found_introspection
68     ],dnl
69     [dnl        
70         AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
71     ])dnl
72
73     AC_MSG_RESULT([$found_introspection])
74
75     INTROSPECTION_SCANNER=
76     INTROSPECTION_COMPILER=
77     INTROSPECTION_GENERATE=
78     INTROSPECTION_GIRDIR=
79     INTROSPECTION_TYPELIBDIR=
80     if test "x$found_introspection" = "xyes"; then
81        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
82        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
83        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
84        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
85        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
86        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
87        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
88        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
89     fi
90     AC_SUBST(INTROSPECTION_SCANNER)
91     AC_SUBST(INTROSPECTION_COMPILER)
92     AC_SUBST(INTROSPECTION_GENERATE)
93     AC_SUBST(INTROSPECTION_GIRDIR)
94     AC_SUBST(INTROSPECTION_TYPELIBDIR)
95     AC_SUBST(INTROSPECTION_CFLAGS)
96     AC_SUBST(INTROSPECTION_LIBS)
97     AC_SUBST(INTROSPECTION_MAKEFILE)
98
99     AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
100 ])
101
102
103 dnl Usage:
104 dnl   GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
105
106 AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
107 [
108   _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
109 ])
110
111 dnl Usage:
112 dnl   GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
113
114
115 AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
116 [
117   _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
118 ])
119
120 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
121 # serial 1 (pkg-config-0.24)
122
123 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
124 #
125 # This program is free software; you can redistribute it and/or modify
126 # it under the terms of the GNU General Public License as published by
127 # the Free Software Foundation; either version 2 of the License, or
128 # (at your option) any later version.
129 #
130 # This program is distributed in the hope that it will be useful, but
131 # WITHOUT ANY WARRANTY; without even the implied warranty of
132 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
133 # General Public License for more details.
134 #
135 # You should have received a copy of the GNU General Public License
136 # along with this program; if not, write to the Free Software
137 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
138 #
139 # As a special exception to the GNU General Public License, if you
140 # distribute this file as part of a program that contains a
141 # configuration script generated by Autoconf, you may include it under
142 # the same distribution terms that you use for the rest of that program.
143
144 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
145 # ----------------------------------
146 AC_DEFUN([PKG_PROG_PKG_CONFIG],
147 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
148 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
149 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
150 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
151 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
152 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
153
154 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
155         AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
156 fi
157 if test -n "$PKG_CONFIG"; then
158         _pkg_min_version=m4_default([$1], [0.9.0])
159         AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
160         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
161                 AC_MSG_RESULT([yes])
162         else
163                 AC_MSG_RESULT([no])
164                 PKG_CONFIG=""
165         fi
166 fi[]dnl
167 ])# PKG_PROG_PKG_CONFIG
168
169 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
170 #
171 # Check to see whether a particular set of modules exists.  Similar
172 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
173 #
174 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
175 # only at the first occurence in configure.ac, so if the first place
176 # it's called might be skipped (such as if it is within an "if", you
177 # have to call PKG_CHECK_EXISTS manually
178 # --------------------------------------------------------------
179 AC_DEFUN([PKG_CHECK_EXISTS],
180 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
181 if test -n "$PKG_CONFIG" && \
182     AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
183   m4_default([$2], [:])
184 m4_ifvaln([$3], [else
185   $3])dnl
186 fi])
187
188 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
189 # ---------------------------------------------
190 m4_define([_PKG_CONFIG],
191 [if test -n "$$1"; then
192     pkg_cv_[]$1="$$1"
193  elif test -n "$PKG_CONFIG"; then
194     PKG_CHECK_EXISTS([$3],
195                      [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
196                       test "x$?" != "x0" && pkg_failed=yes ],
197                      [pkg_failed=yes])
198  else
199     pkg_failed=untried
200 fi[]dnl
201 ])# _PKG_CONFIG
202
203 # _PKG_SHORT_ERRORS_SUPPORTED
204 # -----------------------------
205 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
206 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
207 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
208         _pkg_short_errors_supported=yes
209 else
210         _pkg_short_errors_supported=no
211 fi[]dnl
212 ])# _PKG_SHORT_ERRORS_SUPPORTED
213
214
215 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
216 # [ACTION-IF-NOT-FOUND])
217 #
218 #
219 # Note that if there is a possibility the first call to
220 # PKG_CHECK_MODULES might not happen, you should be sure to include an
221 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
222 #
223 #
224 # --------------------------------------------------------------
225 AC_DEFUN([PKG_CHECK_MODULES],
226 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
227 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
228 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
229
230 pkg_failed=no
231 AC_MSG_CHECKING([for $1])
232
233 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
234 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
235
236 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
237 and $1[]_LIBS to avoid the need to call pkg-config.
238 See the pkg-config man page for more details.])
239
240 if test $pkg_failed = yes; then
241         AC_MSG_RESULT([no])
242         _PKG_SHORT_ERRORS_SUPPORTED
243         if test $_pkg_short_errors_supported = yes; then
244                 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
245         else 
246                 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
247         fi
248         # Put the nasty error message in config.log where it belongs
249         echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
250
251         m4_default([$4], [AC_MSG_ERROR(
252 [Package requirements ($2) were not met:
253
254 $$1_PKG_ERRORS
255
256 Consider adjusting the PKG_CONFIG_PATH environment variable if you
257 installed software in a non-standard prefix.
258
259 _PKG_TEXT])[]dnl
260         ])
261 elif test $pkg_failed = untried; then
262         AC_MSG_RESULT([no])
263         m4_default([$4], [AC_MSG_FAILURE(
264 [The pkg-config script could not be found or is too old.  Make sure it
265 is in your PATH or set the PKG_CONFIG environment variable to the full
266 path to pkg-config.
267
268 _PKG_TEXT
269
270 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
271         ])
272 else
273         $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
274         $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
275         AC_MSG_RESULT([yes])
276         $3
277 fi[]dnl
278 ])# PKG_CHECK_MODULES
279
280 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
281 # Foundation, Inc.
282 #
283 # This file is free software; the Free Software Foundation
284 # gives unlimited permission to copy and/or distribute it,
285 # with or without modifications, as long as this notice is preserved.
286
287 # serial 1
288
289 # AM_AUTOMAKE_VERSION(VERSION)
290 # ----------------------------
291 # Automake X.Y traces this macro to ensure aclocal.m4 has been
292 # generated from the m4 files accompanying Automake X.Y.
293 # (This private macro should not be called outside this file.)
294 AC_DEFUN([AM_AUTOMAKE_VERSION],
295 [am__api_version='1.11'
296 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
297 dnl require some minimum version.  Point them to the right macro.
298 m4_if([$1], [1.11.6], [],
299       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
300 ])
301
302 # _AM_AUTOCONF_VERSION(VERSION)
303 # -----------------------------
304 # aclocal traces this macro to find the Autoconf version.
305 # This is a private macro too.  Using m4_define simplifies
306 # the logic in aclocal, which can simply ignore this definition.
307 m4_define([_AM_AUTOCONF_VERSION], [])
308
309 # AM_SET_CURRENT_AUTOMAKE_VERSION
310 # -------------------------------
311 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
312 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
313 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
314 [AM_AUTOMAKE_VERSION([1.11.6])dnl
315 m4_ifndef([AC_AUTOCONF_VERSION],
316   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
317 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
318
319 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
320
321 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
322 #
323 # This file is free software; the Free Software Foundation
324 # gives unlimited permission to copy and/or distribute it,
325 # with or without modifications, as long as this notice is preserved.
326
327 # serial 1
328
329 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
330 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
331 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
332 #
333 # Of course, Automake must honor this variable whenever it calls a
334 # tool from the auxiliary directory.  The problem is that $srcdir (and
335 # therefore $ac_aux_dir as well) can be either absolute or relative,
336 # depending on how configure is run.  This is pretty annoying, since
337 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
338 # source directory, any form will work fine, but in subdirectories a
339 # relative path needs to be adjusted first.
340 #
341 # $ac_aux_dir/missing
342 #    fails when called from a subdirectory if $ac_aux_dir is relative
343 # $top_srcdir/$ac_aux_dir/missing
344 #    fails if $ac_aux_dir is absolute,
345 #    fails when called from a subdirectory in a VPATH build with
346 #          a relative $ac_aux_dir
347 #
348 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
349 # are both prefixed by $srcdir.  In an in-source build this is usually
350 # harmless because $srcdir is `.', but things will broke when you
351 # start a VPATH build or use an absolute $srcdir.
352 #
353 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
354 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
355 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
356 # and then we would define $MISSING as
357 #   MISSING="\${SHELL} $am_aux_dir/missing"
358 # This will work as long as MISSING is not called from configure, because
359 # unfortunately $(top_srcdir) has no meaning in configure.
360 # However there are other variables, like CC, which are often used in
361 # configure, and could therefore not use this "fixed" $ac_aux_dir.
362 #
363 # Another solution, used here, is to always expand $ac_aux_dir to an
364 # absolute PATH.  The drawback is that using absolute paths prevent a
365 # configured tree to be moved without reconfiguration.
366
367 AC_DEFUN([AM_AUX_DIR_EXPAND],
368 [dnl Rely on autoconf to set up CDPATH properly.
369 AC_PREREQ([2.50])dnl
370 # expand $ac_aux_dir to an absolute path
371 am_aux_dir=`cd $ac_aux_dir && pwd`
372 ])
373
374 # AM_CONDITIONAL                                            -*- Autoconf -*-
375
376 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
377 # Free Software Foundation, Inc.
378 #
379 # This file is free software; the Free Software Foundation
380 # gives unlimited permission to copy and/or distribute it,
381 # with or without modifications, as long as this notice is preserved.
382
383 # serial 9
384
385 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
386 # -------------------------------------
387 # Define a conditional.
388 AC_DEFUN([AM_CONDITIONAL],
389 [AC_PREREQ(2.52)dnl
390  ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
391         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
392 AC_SUBST([$1_TRUE])dnl
393 AC_SUBST([$1_FALSE])dnl
394 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
395 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
396 m4_define([_AM_COND_VALUE_$1], [$2])dnl
397 if $2; then
398   $1_TRUE=
399   $1_FALSE='#'
400 else
401   $1_TRUE='#'
402   $1_FALSE=
403 fi
404 AC_CONFIG_COMMANDS_PRE(
405 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
406   AC_MSG_ERROR([[conditional "$1" was never defined.
407 Usually this means the macro was only invoked conditionally.]])
408 fi])])
409
410 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
411 # 2010, 2011 Free Software Foundation, Inc.
412 #
413 # This file is free software; the Free Software Foundation
414 # gives unlimited permission to copy and/or distribute it,
415 # with or without modifications, as long as this notice is preserved.
416
417 # serial 12
418
419 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
420 # written in clear, in which case automake, when reading aclocal.m4,
421 # will think it sees a *use*, and therefore will trigger all it's
422 # C support machinery.  Also note that it means that autoscan, seeing
423 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
424
425
426 # _AM_DEPENDENCIES(NAME)
427 # ----------------------
428 # See how the compiler implements dependency checking.
429 # NAME is "CC", "CXX", "GCJ", or "OBJC".
430 # We try a few techniques and use that to set a single cache variable.
431 #
432 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
433 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
434 # dependency, and given that the user is not expected to run this macro,
435 # just rely on AC_PROG_CC.
436 AC_DEFUN([_AM_DEPENDENCIES],
437 [AC_REQUIRE([AM_SET_DEPDIR])dnl
438 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
439 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
440 AC_REQUIRE([AM_DEP_TRACK])dnl
441
442 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
443        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
444        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
445        [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
446        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
447                    [depcc="$$1"   am_compiler_list=])
448
449 AC_CACHE_CHECK([dependency style of $depcc],
450                [am_cv_$1_dependencies_compiler_type],
451 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
452   # We make a subdir and do the tests there.  Otherwise we can end up
453   # making bogus files that we don't know about and never remove.  For
454   # instance it was reported that on HP-UX the gcc test will end up
455   # making a dummy file named `D' -- because `-MD' means `put the output
456   # in D'.
457   rm -rf conftest.dir
458   mkdir conftest.dir
459   # Copy depcomp to subdir because otherwise we won't find it if we're
460   # using a relative directory.
461   cp "$am_depcomp" conftest.dir
462   cd conftest.dir
463   # We will build objects and dependencies in a subdirectory because
464   # it helps to detect inapplicable dependency modes.  For instance
465   # both Tru64's cc and ICC support -MD to output dependencies as a
466   # side effect of compilation, but ICC will put the dependencies in
467   # the current directory while Tru64 will put them in the object
468   # directory.
469   mkdir sub
470
471   am_cv_$1_dependencies_compiler_type=none
472   if test "$am_compiler_list" = ""; then
473      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
474   fi
475   am__universal=false
476   m4_case([$1], [CC],
477     [case " $depcc " in #(
478      *\ -arch\ *\ -arch\ *) am__universal=true ;;
479      esac],
480     [CXX],
481     [case " $depcc " in #(
482      *\ -arch\ *\ -arch\ *) am__universal=true ;;
483      esac])
484
485   for depmode in $am_compiler_list; do
486     # Setup a source with many dependencies, because some compilers
487     # like to wrap large dependency lists on column 80 (with \), and
488     # we should not choose a depcomp mode which is confused by this.
489     #
490     # We need to recreate these files for each test, as the compiler may
491     # overwrite some of them when testing with obscure command lines.
492     # This happens at least with the AIX C compiler.
493     : > sub/conftest.c
494     for i in 1 2 3 4 5 6; do
495       echo '#include "conftst'$i'.h"' >> sub/conftest.c
496       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
497       # Solaris 8's {/usr,}/bin/sh.
498       touch sub/conftst$i.h
499     done
500     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
501
502     # We check with `-c' and `-o' for the sake of the "dashmstdout"
503     # mode.  It turns out that the SunPro C++ compiler does not properly
504     # handle `-M -o', and we need to detect this.  Also, some Intel
505     # versions had trouble with output in subdirs
506     am__obj=sub/conftest.${OBJEXT-o}
507     am__minus_obj="-o $am__obj"
508     case $depmode in
509     gcc)
510       # This depmode causes a compiler race in universal mode.
511       test "$am__universal" = false || continue
512       ;;
513     nosideeffect)
514       # after this tag, mechanisms are not by side-effect, so they'll
515       # only be used when explicitly requested
516       if test "x$enable_dependency_tracking" = xyes; then
517         continue
518       else
519         break
520       fi
521       ;;
522     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
523       # This compiler won't grok `-c -o', but also, the minuso test has
524       # not run yet.  These depmodes are late enough in the game, and
525       # so weak that their functioning should not be impacted.
526       am__obj=conftest.${OBJEXT-o}
527       am__minus_obj=
528       ;;
529     none) break ;;
530     esac
531     if depmode=$depmode \
532        source=sub/conftest.c object=$am__obj \
533        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
534        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
535          >/dev/null 2>conftest.err &&
536        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
537        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
538        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
539        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
540       # icc doesn't choke on unknown options, it will just issue warnings
541       # or remarks (even with -Werror).  So we grep stderr for any message
542       # that says an option was ignored or not supported.
543       # When given -MP, icc 7.0 and 7.1 complain thusly:
544       #   icc: Command line warning: ignoring option '-M'; no argument required
545       # The diagnosis changed in icc 8.0:
546       #   icc: Command line remark: option '-MP' not supported
547       if (grep 'ignoring option' conftest.err ||
548           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
549         am_cv_$1_dependencies_compiler_type=$depmode
550         break
551       fi
552     fi
553   done
554
555   cd ..
556   rm -rf conftest.dir
557 else
558   am_cv_$1_dependencies_compiler_type=none
559 fi
560 ])
561 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
562 AM_CONDITIONAL([am__fastdep$1], [
563   test "x$enable_dependency_tracking" != xno \
564   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
565 ])
566
567
568 # AM_SET_DEPDIR
569 # -------------
570 # Choose a directory name for dependency files.
571 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
572 AC_DEFUN([AM_SET_DEPDIR],
573 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
574 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
575 ])
576
577
578 # AM_DEP_TRACK
579 # ------------
580 AC_DEFUN([AM_DEP_TRACK],
581 [AC_ARG_ENABLE(dependency-tracking,
582 [  --disable-dependency-tracking  speeds up one-time build
583   --enable-dependency-tracking   do not reject slow dependency extractors])
584 if test "x$enable_dependency_tracking" != xno; then
585   am_depcomp="$ac_aux_dir/depcomp"
586   AMDEPBACKSLASH='\'
587   am__nodep='_no'
588 fi
589 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
590 AC_SUBST([AMDEPBACKSLASH])dnl
591 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
592 AC_SUBST([am__nodep])dnl
593 _AM_SUBST_NOTMAKE([am__nodep])dnl
594 ])
595
596 # Generate code to set up dependency tracking.              -*- Autoconf -*-
597
598 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
599 # Free Software Foundation, Inc.
600 #
601 # This file is free software; the Free Software Foundation
602 # gives unlimited permission to copy and/or distribute it,
603 # with or without modifications, as long as this notice is preserved.
604
605 #serial 5
606
607 # _AM_OUTPUT_DEPENDENCY_COMMANDS
608 # ------------------------------
609 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
610 [{
611   # Autoconf 2.62 quotes --file arguments for eval, but not when files
612   # are listed without --file.  Let's play safe and only enable the eval
613   # if we detect the quoting.
614   case $CONFIG_FILES in
615   *\'*) eval set x "$CONFIG_FILES" ;;
616   *)   set x $CONFIG_FILES ;;
617   esac
618   shift
619   for mf
620   do
621     # Strip MF so we end up with the name of the file.
622     mf=`echo "$mf" | sed -e 's/:.*$//'`
623     # Check whether this is an Automake generated Makefile or not.
624     # We used to match only the files named `Makefile.in', but
625     # some people rename them; so instead we look at the file content.
626     # Grep'ing the first line is not enough: some people post-process
627     # each Makefile.in and add a new line on top of each file to say so.
628     # Grep'ing the whole file is not good either: AIX grep has a line
629     # limit of 2048, but all sed's we know have understand at least 4000.
630     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
631       dirpart=`AS_DIRNAME("$mf")`
632     else
633       continue
634     fi
635     # Extract the definition of DEPDIR, am__include, and am__quote
636     # from the Makefile without running `make'.
637     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
638     test -z "$DEPDIR" && continue
639     am__include=`sed -n 's/^am__include = //p' < "$mf"`
640     test -z "am__include" && continue
641     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
642     # When using ansi2knr, U may be empty or an underscore; expand it
643     U=`sed -n 's/^U = //p' < "$mf"`
644     # Find all dependency output files, they are included files with
645     # $(DEPDIR) in their names.  We invoke sed twice because it is the
646     # simplest approach to changing $(DEPDIR) to its actual value in the
647     # expansion.
648     for file in `sed -n "
649       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
650          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
651       # Make sure the directory exists.
652       test -f "$dirpart/$file" && continue
653       fdir=`AS_DIRNAME(["$file"])`
654       AS_MKDIR_P([$dirpart/$fdir])
655       # echo "creating $dirpart/$file"
656       echo '# dummy' > "$dirpart/$file"
657     done
658   done
659 }
660 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
661
662
663 # AM_OUTPUT_DEPENDENCY_COMMANDS
664 # -----------------------------
665 # This macro should only be invoked once -- use via AC_REQUIRE.
666 #
667 # This code is only required when automatic dependency tracking
668 # is enabled.  FIXME.  This creates each `.P' file that we will
669 # need in order to bootstrap the dependency handling code.
670 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
671 [AC_CONFIG_COMMANDS([depfiles],
672      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
673      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
674 ])
675
676 # Do all the work for Automake.                             -*- Autoconf -*-
677
678 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
679 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
680 #
681 # This file is free software; the Free Software Foundation
682 # gives unlimited permission to copy and/or distribute it,
683 # with or without modifications, as long as this notice is preserved.
684
685 # serial 16
686
687 # This macro actually does too much.  Some checks are only needed if
688 # your package does certain things.  But this isn't really a big deal.
689
690 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
691 # AM_INIT_AUTOMAKE([OPTIONS])
692 # -----------------------------------------------
693 # The call with PACKAGE and VERSION arguments is the old style
694 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
695 # and VERSION should now be passed to AC_INIT and removed from
696 # the call to AM_INIT_AUTOMAKE.
697 # We support both call styles for the transition.  After
698 # the next Automake release, Autoconf can make the AC_INIT
699 # arguments mandatory, and then we can depend on a new Autoconf
700 # release and drop the old call support.
701 AC_DEFUN([AM_INIT_AUTOMAKE],
702 [AC_PREREQ([2.62])dnl
703 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
704 dnl the ones we care about.
705 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
706 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
707 AC_REQUIRE([AC_PROG_INSTALL])dnl
708 if test "`cd $srcdir && pwd`" != "`pwd`"; then
709   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
710   # is not polluted with repeated "-I."
711   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
712   # test to see if srcdir already configured
713   if test -f $srcdir/config.status; then
714     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
715   fi
716 fi
717
718 # test whether we have cygpath
719 if test -z "$CYGPATH_W"; then
720   if (cygpath --version) >/dev/null 2>/dev/null; then
721     CYGPATH_W='cygpath -w'
722   else
723     CYGPATH_W=echo
724   fi
725 fi
726 AC_SUBST([CYGPATH_W])
727
728 # Define the identity of the package.
729 dnl Distinguish between old-style and new-style calls.
730 m4_ifval([$2],
731 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
732  AC_SUBST([PACKAGE], [$1])dnl
733  AC_SUBST([VERSION], [$2])],
734 [_AM_SET_OPTIONS([$1])dnl
735 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
736 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
737   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
738  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
739  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
740
741 _AM_IF_OPTION([no-define],,
742 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
743  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
744
745 # Some tools Automake needs.
746 AC_REQUIRE([AM_SANITY_CHECK])dnl
747 AC_REQUIRE([AC_ARG_PROGRAM])dnl
748 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
749 AM_MISSING_PROG(AUTOCONF, autoconf)
750 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
751 AM_MISSING_PROG(AUTOHEADER, autoheader)
752 AM_MISSING_PROG(MAKEINFO, makeinfo)
753 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
754 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
755 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
756 # We need awk for the "check" target.  The system "awk" is bad on
757 # some platforms.
758 AC_REQUIRE([AC_PROG_AWK])dnl
759 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
760 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
761 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
762               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
763                              [_AM_PROG_TAR([v7])])])
764 _AM_IF_OPTION([no-dependencies],,
765 [AC_PROVIDE_IFELSE([AC_PROG_CC],
766                   [_AM_DEPENDENCIES(CC)],
767                   [define([AC_PROG_CC],
768                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
769 AC_PROVIDE_IFELSE([AC_PROG_CXX],
770                   [_AM_DEPENDENCIES(CXX)],
771                   [define([AC_PROG_CXX],
772                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
773 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
774                   [_AM_DEPENDENCIES(OBJC)],
775                   [define([AC_PROG_OBJC],
776                           defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
777 ])
778 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
779 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
780 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
781 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
782 AC_CONFIG_COMMANDS_PRE(dnl
783 [m4_provide_if([_AM_COMPILER_EXEEXT],
784   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
785 ])
786
787 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
788 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
789 dnl mangled by Autoconf and run in a shell conditional statement.
790 m4_define([_AC_COMPILER_EXEEXT],
791 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
792
793
794 # When config.status generates a header, we must update the stamp-h file.
795 # This file resides in the same directory as the config header
796 # that is generated.  The stamp files are numbered to have different names.
797
798 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
799 # loop where config.status creates the headers, so we can generate
800 # our stamp files there.
801 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
802 [# Compute $1's index in $config_headers.
803 _am_arg=$1
804 _am_stamp_count=1
805 for _am_header in $config_headers :; do
806   case $_am_header in
807     $_am_arg | $_am_arg:* )
808       break ;;
809     * )
810       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
811   esac
812 done
813 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
814
815 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
816 # Inc.
817 #
818 # This file is free software; the Free Software Foundation
819 # gives unlimited permission to copy and/or distribute it,
820 # with or without modifications, as long as this notice is preserved.
821
822 # serial 1
823
824 # AM_PROG_INSTALL_SH
825 # ------------------
826 # Define $install_sh.
827 AC_DEFUN([AM_PROG_INSTALL_SH],
828 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
829 if test x"${install_sh}" != xset; then
830   case $am_aux_dir in
831   *\ * | *\     *)
832     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
833   *)
834     install_sh="\${SHELL} $am_aux_dir/install-sh"
835   esac
836 fi
837 AC_SUBST(install_sh)])
838
839 # Copyright (C) 2003, 2005  Free Software Foundation, Inc.
840 #
841 # This file is free software; the Free Software Foundation
842 # gives unlimited permission to copy and/or distribute it,
843 # with or without modifications, as long as this notice is preserved.
844
845 # serial 2
846
847 # Check whether the underlying file-system supports filenames
848 # with a leading dot.  For instance MS-DOS doesn't.
849 AC_DEFUN([AM_SET_LEADING_DOT],
850 [rm -rf .tst 2>/dev/null
851 mkdir .tst 2>/dev/null
852 if test -d .tst; then
853   am__leading_dot=.
854 else
855   am__leading_dot=_
856 fi
857 rmdir .tst 2>/dev/null
858 AC_SUBST([am__leading_dot])])
859
860 # Check to see how 'make' treats includes.                  -*- Autoconf -*-
861
862 # Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
863 #
864 # This file is free software; the Free Software Foundation
865 # gives unlimited permission to copy and/or distribute it,
866 # with or without modifications, as long as this notice is preserved.
867
868 # serial 4
869
870 # AM_MAKE_INCLUDE()
871 # -----------------
872 # Check to see how make treats includes.
873 AC_DEFUN([AM_MAKE_INCLUDE],
874 [am_make=${MAKE-make}
875 cat > confinc << 'END'
876 am__doit:
877         @echo this is the am__doit target
878 .PHONY: am__doit
879 END
880 # If we don't find an include directive, just comment out the code.
881 AC_MSG_CHECKING([for style of include used by $am_make])
882 am__include="#"
883 am__quote=
884 _am_result=none
885 # First try GNU make style include.
886 echo "include confinc" > confmf
887 # Ignore all kinds of additional output from `make'.
888 case `$am_make -s -f confmf 2> /dev/null` in #(
889 *the\ am__doit\ target*)
890   am__include=include
891   am__quote=
892   _am_result=GNU
893   ;;
894 esac
895 # Now try BSD make style include.
896 if test "$am__include" = "#"; then
897    echo '.include "confinc"' > confmf
898    case `$am_make -s -f confmf 2> /dev/null` in #(
899    *the\ am__doit\ target*)
900      am__include=.include
901      am__quote="\""
902      _am_result=BSD
903      ;;
904    esac
905 fi
906 AC_SUBST([am__include])
907 AC_SUBST([am__quote])
908 AC_MSG_RESULT([$_am_result])
909 rm -f confinc confmf
910 ])
911
912 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
913 # Free Software Foundation, Inc.
914 #
915 # This file is free software; the Free Software Foundation
916 # gives unlimited permission to copy and/or distribute it,
917 # with or without modifications, as long as this notice is preserved.
918
919 # serial 6
920
921 # AM_PROG_CC_C_O
922 # --------------
923 # Like AC_PROG_CC_C_O, but changed for automake.
924 AC_DEFUN([AM_PROG_CC_C_O],
925 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
926 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
927 AC_REQUIRE_AUX_FILE([compile])dnl
928 # FIXME: we rely on the cache variable name because
929 # there is no other way.
930 set dummy $CC
931 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
932 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
933 if test "$am_t" != yes; then
934    # Losing compiler, so override with the script.
935    # FIXME: It is wrong to rewrite CC.
936    # But if we don't then we get into trouble of one sort or another.
937    # A longer-term fix would be to have automake use am__CC in this case,
938    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
939    CC="$am_aux_dir/compile $CC"
940 fi
941 dnl Make sure AC_PROG_CC is never called again, or it will override our
942 dnl setting of CC.
943 m4_define([AC_PROG_CC],
944           [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
945 ])
946
947 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
948
949 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
950 # Free Software Foundation, Inc.
951 #
952 # This file is free software; the Free Software Foundation
953 # gives unlimited permission to copy and/or distribute it,
954 # with or without modifications, as long as this notice is preserved.
955
956 # serial 6
957
958 # AM_MISSING_PROG(NAME, PROGRAM)
959 # ------------------------------
960 AC_DEFUN([AM_MISSING_PROG],
961 [AC_REQUIRE([AM_MISSING_HAS_RUN])
962 $1=${$1-"${am_missing_run}$2"}
963 AC_SUBST($1)])
964
965
966 # AM_MISSING_HAS_RUN
967 # ------------------
968 # Define MISSING if not defined so far and test if it supports --run.
969 # If it does, set am_missing_run to use it, otherwise, to nothing.
970 AC_DEFUN([AM_MISSING_HAS_RUN],
971 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
972 AC_REQUIRE_AUX_FILE([missing])dnl
973 if test x"${MISSING+set}" != xset; then
974   case $am_aux_dir in
975   *\ * | *\     *)
976     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
977   *)
978     MISSING="\${SHELL} $am_aux_dir/missing" ;;
979   esac
980 fi
981 # Use eval to expand $SHELL
982 if eval "$MISSING --run true"; then
983   am_missing_run="$MISSING --run "
984 else
985   am_missing_run=
986   AC_MSG_WARN([`missing' script is too old or missing])
987 fi
988 ])
989
990 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
991 # Inc.
992 #
993 # This file is free software; the Free Software Foundation
994 # gives unlimited permission to copy and/or distribute it,
995 # with or without modifications, as long as this notice is preserved.
996
997 # serial 1
998
999 # AM_PROG_MKDIR_P
1000 # ---------------
1001 # Check for `mkdir -p'.
1002 AC_DEFUN([AM_PROG_MKDIR_P],
1003 [AC_PREREQ([2.60])dnl
1004 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1005 dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
1006 dnl while keeping a definition of mkdir_p for backward compatibility.
1007 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1008 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1009 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1010 dnl adjustment using top_builddir (which is defined more often than
1011 dnl MKDIR_P).
1012 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1013 case $mkdir_p in
1014   [[\\/$]]* | ?:[[\\/]]*) ;;
1015   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1016 esac
1017 ])
1018
1019 # Helper functions for option handling.                     -*- Autoconf -*-
1020
1021 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1022 # Foundation, Inc.
1023 #
1024 # This file is free software; the Free Software Foundation
1025 # gives unlimited permission to copy and/or distribute it,
1026 # with or without modifications, as long as this notice is preserved.
1027
1028 # serial 5
1029
1030 # _AM_MANGLE_OPTION(NAME)
1031 # -----------------------
1032 AC_DEFUN([_AM_MANGLE_OPTION],
1033 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1034
1035 # _AM_SET_OPTION(NAME)
1036 # --------------------
1037 # Set option NAME.  Presently that only means defining a flag for this option.
1038 AC_DEFUN([_AM_SET_OPTION],
1039 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1040
1041 # _AM_SET_OPTIONS(OPTIONS)
1042 # ------------------------
1043 # OPTIONS is a space-separated list of Automake options.
1044 AC_DEFUN([_AM_SET_OPTIONS],
1045 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1046
1047 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1048 # -------------------------------------------
1049 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1050 AC_DEFUN([_AM_IF_OPTION],
1051 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1052
1053 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
1054
1055 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1056 # Free Software Foundation, Inc.
1057 #
1058 # This file is free software; the Free Software Foundation
1059 # gives unlimited permission to copy and/or distribute it,
1060 # with or without modifications, as long as this notice is preserved.
1061
1062 # serial 5
1063
1064 # AM_SANITY_CHECK
1065 # ---------------
1066 AC_DEFUN([AM_SANITY_CHECK],
1067 [AC_MSG_CHECKING([whether build environment is sane])
1068 # Just in case
1069 sleep 1
1070 echo timestamp > conftest.file
1071 # Reject unsafe characters in $srcdir or the absolute working directory
1072 # name.  Accept space and tab only in the latter.
1073 am_lf='
1074 '
1075 case `pwd` in
1076   *[[\\\"\#\$\&\'\`$am_lf]]*)
1077     AC_MSG_ERROR([unsafe absolute working directory name]);;
1078 esac
1079 case $srcdir in
1080   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
1081     AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1082 esac
1083
1084 # Do `set' in a subshell so we don't clobber the current shell's
1085 # arguments.  Must try -L first in case configure is actually a
1086 # symlink; some systems play weird games with the mod time of symlinks
1087 # (eg FreeBSD returns the mod time of the symlink's containing
1088 # directory).
1089 if (
1090    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1091    if test "$[*]" = "X"; then
1092       # -L didn't work.
1093       set X `ls -t "$srcdir/configure" conftest.file`
1094    fi
1095    rm -f conftest.file
1096    if test "$[*]" != "X $srcdir/configure conftest.file" \
1097       && test "$[*]" != "X conftest.file $srcdir/configure"; then
1098
1099       # If neither matched, then we have a broken ls.  This can happen
1100       # if, for instance, CONFIG_SHELL is bash and it inherits a
1101       # broken ls alias from the environment.  This has actually
1102       # happened.  Such a system could not be considered "sane".
1103       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1104 alias in your environment])
1105    fi
1106
1107    test "$[2]" = conftest.file
1108    )
1109 then
1110    # Ok.
1111    :
1112 else
1113    AC_MSG_ERROR([newly created file is older than distributed files!
1114 Check your system clock])
1115 fi
1116 AC_MSG_RESULT(yes)])
1117
1118 # Copyright (C) 2009, 2011  Free Software Foundation, Inc.
1119 #
1120 # This file is free software; the Free Software Foundation
1121 # gives unlimited permission to copy and/or distribute it,
1122 # with or without modifications, as long as this notice is preserved.
1123
1124 # serial 2
1125
1126 # AM_SILENT_RULES([DEFAULT])
1127 # --------------------------
1128 # Enable less verbose build rules; with the default set to DEFAULT
1129 # (`yes' being less verbose, `no' or empty being verbose).
1130 AC_DEFUN([AM_SILENT_RULES],
1131 [AC_ARG_ENABLE([silent-rules],
1132 [  --enable-silent-rules          less verbose build output (undo: `make V=1')
1133   --disable-silent-rules         verbose build output (undo: `make V=0')])
1134 case $enable_silent_rules in
1135 yes) AM_DEFAULT_VERBOSITY=0;;
1136 no)  AM_DEFAULT_VERBOSITY=1;;
1137 *)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1138 esac
1139 dnl
1140 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1141 dnl do not support nested variable expansions.
1142 dnl See automake bug#9928 and bug#10237.
1143 am_make=${MAKE-make}
1144 AC_CACHE_CHECK([whether $am_make supports nested variables],
1145    [am_cv_make_support_nested_variables],
1146    [if AS_ECHO([['TRUE=$(BAR$(V))
1147 BAR0=false
1148 BAR1=true
1149 V=1
1150 am__doit:
1151         @$(TRUE)
1152 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1153   am_cv_make_support_nested_variables=yes
1154 else
1155   am_cv_make_support_nested_variables=no
1156 fi])
1157 if test $am_cv_make_support_nested_variables = yes; then
1158   dnl Using `$V' instead of `$(V)' breaks IRIX make.
1159   AM_V='$(V)'
1160   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1161 else
1162   AM_V=$AM_DEFAULT_VERBOSITY
1163   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1164 fi
1165 AC_SUBST([AM_V])dnl
1166 AM_SUBST_NOTMAKE([AM_V])dnl
1167 AC_SUBST([AM_DEFAULT_V])dnl
1168 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1169 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1170 AM_BACKSLASH='\'
1171 AC_SUBST([AM_BACKSLASH])dnl
1172 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1173 ])
1174
1175 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1176 #
1177 # This file is free software; the Free Software Foundation
1178 # gives unlimited permission to copy and/or distribute it,
1179 # with or without modifications, as long as this notice is preserved.
1180
1181 # serial 1
1182
1183 # AM_PROG_INSTALL_STRIP
1184 # ---------------------
1185 # One issue with vendor `install' (even GNU) is that you can't
1186 # specify the program used to strip binaries.  This is especially
1187 # annoying in cross-compiling environments, where the build's strip
1188 # is unlikely to handle the host's binaries.
1189 # Fortunately install-sh will honor a STRIPPROG variable, so we
1190 # always use install-sh in `make install-strip', and initialize
1191 # STRIPPROG with the value of the STRIP variable (set by the user).
1192 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1193 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1194 # Installed binaries are usually stripped using `strip' when the user
1195 # run `make install-strip'.  However `strip' might not be the right
1196 # tool to use in cross-compilation environments, therefore Automake
1197 # will honor the `STRIP' environment variable to overrule this program.
1198 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1199 if test "$cross_compiling" != no; then
1200   AC_CHECK_TOOL([STRIP], [strip], :)
1201 fi
1202 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1203 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1204
1205 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1206 #
1207 # This file is free software; the Free Software Foundation
1208 # gives unlimited permission to copy and/or distribute it,
1209 # with or without modifications, as long as this notice is preserved.
1210
1211 # serial 3
1212
1213 # _AM_SUBST_NOTMAKE(VARIABLE)
1214 # ---------------------------
1215 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1216 # This macro is traced by Automake.
1217 AC_DEFUN([_AM_SUBST_NOTMAKE])
1218
1219 # AM_SUBST_NOTMAKE(VARIABLE)
1220 # --------------------------
1221 # Public sister of _AM_SUBST_NOTMAKE.
1222 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1223
1224 # Check how to create a tarball.                            -*- Autoconf -*-
1225
1226 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1227 #
1228 # This file is free software; the Free Software Foundation
1229 # gives unlimited permission to copy and/or distribute it,
1230 # with or without modifications, as long as this notice is preserved.
1231
1232 # serial 2
1233
1234 # _AM_PROG_TAR(FORMAT)
1235 # --------------------
1236 # Check how to create a tarball in format FORMAT.
1237 # FORMAT should be one of `v7', `ustar', or `pax'.
1238 #
1239 # Substitute a variable $(am__tar) that is a command
1240 # writing to stdout a FORMAT-tarball containing the directory
1241 # $tardir.
1242 #     tardir=directory && $(am__tar) > result.tar
1243 #
1244 # Substitute a variable $(am__untar) that extract such
1245 # a tarball read from stdin.
1246 #     $(am__untar) < result.tar
1247 AC_DEFUN([_AM_PROG_TAR],
1248 [# Always define AMTAR for backward compatibility.  Yes, it's still used
1249 # in the wild :-(  We should find a proper way to deprecate it ...
1250 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1251 m4_if([$1], [v7],
1252      [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1253      [m4_case([$1], [ustar],, [pax],,
1254               [m4_fatal([Unknown tar format])])
1255 AC_MSG_CHECKING([how to create a $1 tar archive])
1256 # Loop over all known methods to create a tar archive until one works.
1257 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1258 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1259 # Do not fold the above two line into one, because Tru64 sh and
1260 # Solaris sh will not grok spaces in the rhs of `-'.
1261 for _am_tool in $_am_tools
1262 do
1263   case $_am_tool in
1264   gnutar)
1265     for _am_tar in tar gnutar gtar;
1266     do
1267       AM_RUN_LOG([$_am_tar --version]) && break
1268     done
1269     am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1270     am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1271     am__untar="$_am_tar -xf -"
1272     ;;
1273   plaintar)
1274     # Must skip GNU tar: if it does not support --format= it doesn't create
1275     # ustar tarball either.
1276     (tar --version) >/dev/null 2>&1 && continue
1277     am__tar='tar chf - "$$tardir"'
1278     am__tar_='tar chf - "$tardir"'
1279     am__untar='tar xf -'
1280     ;;
1281   pax)
1282     am__tar='pax -L -x $1 -w "$$tardir"'
1283     am__tar_='pax -L -x $1 -w "$tardir"'
1284     am__untar='pax -r'
1285     ;;
1286   cpio)
1287     am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1288     am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1289     am__untar='cpio -i -H $1 -d'
1290     ;;
1291   none)
1292     am__tar=false
1293     am__tar_=false
1294     am__untar=false
1295     ;;
1296   esac
1297
1298   # If the value was cached, stop now.  We just wanted to have am__tar
1299   # and am__untar set.
1300   test -n "${am_cv_prog_tar_$1}" && break
1301
1302   # tar/untar a dummy directory, and stop if the command works
1303   rm -rf conftest.dir
1304   mkdir conftest.dir
1305   echo GrepMe > conftest.dir/file
1306   AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1307   rm -rf conftest.dir
1308   if test -s conftest.tar; then
1309     AM_RUN_LOG([$am__untar <conftest.tar])
1310     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1311   fi
1312 done
1313 rm -rf conftest.dir
1314
1315 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1316 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1317 AC_SUBST([am__tar])
1318 AC_SUBST([am__untar])
1319 ]) # _AM_PROG_TAR
1320
1321 m4_include([m4/libtool.m4])
1322 m4_include([m4/ltoptions.m4])
1323 m4_include([m4/ltsugar.m4])
1324 m4_include([m4/ltversion.m4])
1325 m4_include([m4/lt~obsolete.m4])