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