1 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
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.
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
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'.])])
23 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
24 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
26 # This file is free software, distributed under the terms of the GNU
27 # General Public License. As a special exception to the GNU General
28 # Public License, this file may be distributed as part of a program
29 # that contains a configuration script generated by Autoconf, under
30 # the same distribution terms as the rest of that program.
32 # This file can be copied and used freely without restrictions. It can
33 # be used in projects which are not available under the GNU Public License
34 # but which still want to provide support for the GNU gettext functionality.
36 # Macro to add for using GNU gettext.
37 # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
39 # Modified to never use included libintl.
40 # Owen Taylor <otaylor@redhat.com>, 12/15/1998
42 # Major rework to remove unused code
43 # Owen Taylor <otaylor@redhat.com>, 12/11/2002
45 # Added better handling of ALL_LINGUAS from GNU gettext version
46 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
48 # Modified to require ngettext
49 # Matthias Clasen <mclasen@redhat.com> 08/06/2004
51 # We need this here as well, since someone might use autoconf-2.5x
52 # to configure GLib then an older version to configure a package
53 # using AM_GLIB_GNU_GETTEXT
57 dnl We go to great lengths to make sure that aclocal won't
58 dnl try to pull in the installed version of these macros
59 dnl when running aclocal in the glib directory.
61 m4_copy([AC_DEFUN],[glib_DEFUN])
62 m4_copy([AC_REQUIRE],[glib_REQUIRE])
64 dnl At the end, if we're not within glib, we'll define the public
65 dnl definitions in terms of our private definitions.
70 glib_DEFUN([GLIB_LC_MESSAGES],
71 [AC_CHECK_HEADERS([locale.h])
72 if test $ac_cv_header_locale_h = yes; then
73 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
74 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
75 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
76 if test $am_cv_val_LC_MESSAGES = yes; then
77 AC_DEFINE(HAVE_LC_MESSAGES, 1,
78 [Define if your <locale.h> file defines LC_MESSAGES.])
82 # GLIB_PATH_PROG_WITH_TEST
83 #----------------------------
84 dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
85 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
86 glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
87 [# Extract the first word of "$2", so it can be a program name with args.
88 set dummy $2; ac_word=[$]2
89 AC_MSG_CHECKING([for $ac_word])
90 AC_CACHE_VAL(ac_cv_path_$1,
93 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
96 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
97 for ac_dir in ifelse([$5], , $PATH, [$5]); do
98 test -z "$ac_dir" && ac_dir=.
99 if test -f $ac_dir/$ac_word; then
101 ac_cv_path_$1="$ac_dir/$ac_word"
107 dnl If no 4th arg is given, leave the cache variable unset,
108 dnl so AC_PATH_PROGS will keep looking.
109 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
114 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
124 glib_DEFUN([GLIB_WITH_NLS],
125 dnl NLS is obligatory
129 gt_cv_have_gettext=no
135 AC_CHECK_HEADER(libintl.h,
136 [gt_cv_func_dgettext_libintl="no"
137 libintl_extra_libs=""
140 # First check in libc
142 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
146 [return !ngettext ("","", 1)],
147 gt_cv_func_ngettext_libc=yes,
148 gt_cv_func_ngettext_libc=no)
151 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
152 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
156 [return !dgettext ("","")],
157 gt_cv_func_dgettext_libc=yes,
158 gt_cv_func_dgettext_libc=no)
162 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
163 AC_CHECK_FUNCS(bind_textdomain_codeset)
167 # If we don't have everything we want, check in libintl
169 if test "$gt_cv_func_dgettext_libc" != "yes" \
170 || test "$gt_cv_func_ngettext_libc" != "yes" \
171 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
173 AC_CHECK_LIB(intl, bindtextdomain,
174 [AC_CHECK_LIB(intl, ngettext,
175 [AC_CHECK_LIB(intl, dgettext,
176 gt_cv_func_dgettext_libintl=yes)])])
178 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
179 AC_MSG_CHECKING([if -liconv is needed to use gettext])
181 AC_CHECK_LIB(intl, ngettext,
182 [AC_CHECK_LIB(intl, dcgettext,
183 [gt_cv_func_dgettext_libintl=yes
184 libintl_extra_libs=-liconv],
190 # If we found libintl, then check in it for bind_textdomain_codeset();
191 # we'll prefer libc if neither have bind_textdomain_codeset(),
192 # and both have dgettext and ngettext
194 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
195 glib_save_LIBS="$LIBS"
196 LIBS="$LIBS -lintl $libintl_extra_libs"
197 unset ac_cv_func_bind_textdomain_codeset
198 AC_CHECK_FUNCS(bind_textdomain_codeset)
199 LIBS="$glib_save_LIBS"
201 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
202 gt_cv_func_dgettext_libc=no
204 if test "$gt_cv_func_dgettext_libc" = "yes" \
205 && test "$gt_cv_func_ngettext_libc" = "yes"; then
206 gt_cv_func_dgettext_libintl=no
212 if test "$gt_cv_func_dgettext_libc" = "yes" \
213 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
214 gt_cv_have_gettext=yes
217 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
218 INTLLIBS="-lintl $libintl_extra_libs"
221 if test "$gt_cv_have_gettext" = "yes"; then
222 AC_DEFINE(HAVE_GETTEXT,1,
223 [Define if the GNU gettext() function is already present or preinstalled.])
224 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
225 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
226 if test "$MSGFMT" != "no"; then
227 glib_save_LIBS="$LIBS"
228 LIBS="$LIBS $INTLLIBS"
229 AC_CHECK_FUNCS(dcgettext)
231 AC_MSG_CHECKING([if msgfmt accepts -c])
232 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
235 "Content-Type: text/plain; charset=UTF-8\n"
236 "Project-Id-Version: test 1.0\n"
237 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
238 "Last-Translator: test <foo@bar.xx>\n"
239 "Language-Team: C <LL@li.org>\n"
240 "MIME-Version: 1.0\n"
241 "Content-Transfer-Encoding: 8bit\n"
242 ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
243 AC_SUBST(MSGFMT_OPTS)
244 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
245 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
246 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
247 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
248 return _nl_msg_cat_cntr],
253 dnl On Solaris, if bind_textdomain_codeset is in libc,
254 dnl GNU format message catalog is always supported,
255 dnl since both are added to the libc all together.
256 dnl Hence, we'd like to go with DATADIRNAME=share and
257 dnl and CATOBJEXT=.gmo in this case.
258 AC_CHECK_FUNC(bind_textdomain_codeset,
273 LIBS="$glib_save_LIBS"
276 gt_cv_have_gettext=no
281 if test "$gt_cv_have_gettext" = "yes" ; then
282 AC_DEFINE(ENABLE_NLS, 1,
283 [always defined to indicate that i18n is enabled])
286 dnl Test whether we really found GNU xgettext.
287 if test "$XGETTEXT" != ":"; then
288 dnl If it is not GNU xgettext we define it as : so that the
289 dnl Makefiles still can work.
290 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
294 [found xgettext program is not GNU xgettext; ignore it])
299 # We need to process the po/ directory.
303 [case "$CONFIG_FILES" in *po/Makefile.in*)
304 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
307 dnl These rules are solely for the distribution goal. While doing this
308 dnl we only have to keep exactly one list of the available catalogs
310 for lang in $ALL_LINGUAS; do
311 GMOFILES="$GMOFILES $lang.gmo"
312 POFILES="$POFILES $lang.po"
315 dnl Make all variables we use known to autoconf.
318 AC_SUBST(DATADIRNAME)
322 AC_SUBST(PO_IN_DATADIR_TRUE)
323 AC_SUBST(PO_IN_DATADIR_FALSE)
328 # AM_GLIB_GNU_GETTEXT
329 # -------------------
330 # Do checks necessary for use of gettext. If a suitable implementation
331 # of gettext is found in either in libintl or in the C library,
332 # it will set INTLLIBS to the libraries needed for use of gettext
333 # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
334 # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
335 # on various variables needed by the Makefile.in.in installed by
338 glib_DEFUN([GLIB_GNU_GETTEXT],
339 [AC_REQUIRE([AC_PROG_CC])dnl
340 AC_REQUIRE([AC_HEADER_STDC])dnl
345 if test "$gt_cv_have_gettext" = "yes"; then
346 if test "x$ALL_LINGUAS" = "x"; then
349 AC_MSG_CHECKING(for catalogs to be installed)
351 for presentlang in $ALL_LINGUAS; do
353 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
354 desiredlanguages="$LINGUAS"
356 desiredlanguages="$ALL_LINGUAS"
358 for desiredlang in $desiredlanguages; do
359 # Use the presentlang catalog if desiredlang is
360 # a. equal to presentlang, or
361 # b. a variant of presentlang (because in this case,
362 # presentlang can be used as a fallback for messages
363 # which are not translated in the desiredlang catalog).
364 case "$desiredlang" in
365 "$presentlang"*) useit=yes;;
368 if test $useit = yes; then
369 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
373 AC_MSG_RESULT($LINGUAS)
376 dnl Construct list of names of catalog files to be constructed.
377 if test -n "$LINGUAS"; then
378 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
382 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
383 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
384 dnl Try to locate is.
386 if test -n "$ac_aux_dir"; then
387 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
389 if test -z "$MKINSTALLDIRS"; then
390 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
392 AC_SUBST(MKINSTALLDIRS)
394 dnl Generate list of files to be processed by xgettext which will
395 dnl be included in po/Makefile.
396 test -d po || mkdir po
397 if test "x$srcdir" != "x."; then
398 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
399 posrcprefix="$srcdir/"
401 posrcprefix="../$srcdir/"
407 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
408 < $srcdir/po/POTFILES.in > po/POTFILES
411 # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
412 # -------------------------------
413 # Define VARIABLE to the location where catalog files will
414 # be installed by po/Makefile.
415 glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
416 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
417 glib_save_prefix="$prefix"
418 glib_save_exec_prefix="$exec_prefix"
419 glib_save_datarootdir="$datarootdir"
420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
421 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
422 datarootdir=`eval echo "${datarootdir}"`
423 if test "x$CATOBJEXT" = "x.mo" ; then
424 localedir=`eval echo "${libdir}/locale"`
426 localedir=`eval echo "${datadir}/locale"`
428 prefix="$glib_save_prefix"
429 exec_prefix="$glib_save_exec_prefix"
430 datarootdir="$glib_save_datarootdir"
431 AC_DEFINE_UNQUOTED($1, "$localedir",
432 [Define the location where the catalogs will be installed])
436 dnl Now the definitions that aclocal will find
438 ifdef(glib_configure_ac,[],[
439 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
440 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
443 # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
445 # Create a temporary file with TEST-FILE as its contents and pass the
446 # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
447 # 0 and perform ACTION-IF-FAIL for any other exit status.
448 AC_DEFUN([GLIB_RUN_PROG],
449 [cat >conftest.foo <<_ACEOF
452 if AC_RUN_LOG([$1 conftest.foo]); then
453 m4_ifval([$3], [$3], [:])
454 m4_ifvaln([$4], [else $4])dnl
455 echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
456 sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
460 # nls.m4 serial 5 (gettext-0.18)
461 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
463 dnl This file is free software; the Free Software Foundation
464 dnl gives unlimited permission to copy and/or distribute it,
465 dnl with or without modifications, as long as this notice is preserved.
467 dnl This file can can be used in projects which are not available under
468 dnl the GNU General Public License or the GNU Library General Public
469 dnl License but which still want to provide support for the GNU gettext
471 dnl Please note that the actual code of the GNU gettext library is covered
472 dnl by the GNU Library General Public License, and the rest of the GNU
473 dnl gettext package package is covered by the GNU General Public License.
474 dnl They are *not* in the public domain.
477 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
478 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
484 AC_MSG_CHECKING([whether NLS is requested])
485 dnl Default is enabled NLS
487 [ --disable-nls do not use Native Language Support],
488 USE_NLS=$enableval, USE_NLS=yes)
489 AC_MSG_RESULT([$USE_NLS])
493 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
494 # serial 1 (pkg-config-0.24)
496 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
498 # This program is free software; you can redistribute it and/or modify
499 # it under the terms of the GNU General Public License as published by
500 # the Free Software Foundation; either version 2 of the License, or
501 # (at your option) any later version.
503 # This program is distributed in the hope that it will be useful, but
504 # WITHOUT ANY WARRANTY; without even the implied warranty of
505 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
506 # General Public License for more details.
508 # You should have received a copy of the GNU General Public License
509 # along with this program; if not, write to the Free Software
510 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
512 # As a special exception to the GNU General Public License, if you
513 # distribute this file as part of a program that contains a
514 # configuration script generated by Autoconf, you may include it under
515 # the same distribution terms that you use for the rest of that program.
517 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
518 # ----------------------------------
519 AC_DEFUN([PKG_PROG_PKG_CONFIG],
520 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
521 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
522 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
523 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
524 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
525 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
527 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
528 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
530 if test -n "$PKG_CONFIG"; then
531 _pkg_min_version=m4_default([$1], [0.9.0])
532 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
533 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
540 ])# PKG_PROG_PKG_CONFIG
542 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
544 # Check to see whether a particular set of modules exists. Similar
545 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
547 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
548 # only at the first occurence in configure.ac, so if the first place
549 # it's called might be skipped (such as if it is within an "if", you
550 # have to call PKG_CHECK_EXISTS manually
551 # --------------------------------------------------------------
552 AC_DEFUN([PKG_CHECK_EXISTS],
553 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
554 if test -n "$PKG_CONFIG" && \
555 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
556 m4_default([$2], [:])
557 m4_ifvaln([$3], [else
561 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
562 # ---------------------------------------------
563 m4_define([_PKG_CONFIG],
564 [if test -n "$$1"; then
566 elif test -n "$PKG_CONFIG"; then
567 PKG_CHECK_EXISTS([$3],
568 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
569 test "x$?" != "x0" && pkg_failed=yes ],
576 # _PKG_SHORT_ERRORS_SUPPORTED
577 # -----------------------------
578 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
579 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
580 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
581 _pkg_short_errors_supported=yes
583 _pkg_short_errors_supported=no
585 ])# _PKG_SHORT_ERRORS_SUPPORTED
588 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
589 # [ACTION-IF-NOT-FOUND])
592 # Note that if there is a possibility the first call to
593 # PKG_CHECK_MODULES might not happen, you should be sure to include an
594 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
597 # --------------------------------------------------------------
598 AC_DEFUN([PKG_CHECK_MODULES],
599 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
600 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
601 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
604 AC_MSG_CHECKING([for $1])
606 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
607 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
609 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
610 and $1[]_LIBS to avoid the need to call pkg-config.
611 See the pkg-config man page for more details.])
613 if test $pkg_failed = yes; then
615 _PKG_SHORT_ERRORS_SUPPORTED
616 if test $_pkg_short_errors_supported = yes; then
617 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
619 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
621 # Put the nasty error message in config.log where it belongs
622 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
624 m4_default([$4], [AC_MSG_ERROR(
625 [Package requirements ($2) were not met:
629 Consider adjusting the PKG_CONFIG_PATH environment variable if you
630 installed software in a non-standard prefix.
634 elif test $pkg_failed = untried; then
636 m4_default([$4], [AC_MSG_FAILURE(
637 [The pkg-config script could not be found or is too old. Make sure it
638 is in your PATH or set the PKG_CONFIG environment variable to the full
643 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
646 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
647 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
651 ])# PKG_CHECK_MODULES
653 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
656 # This file is free software; the Free Software Foundation
657 # gives unlimited permission to copy and/or distribute it,
658 # with or without modifications, as long as this notice is preserved.
662 # AM_AUTOMAKE_VERSION(VERSION)
663 # ----------------------------
664 # Automake X.Y traces this macro to ensure aclocal.m4 has been
665 # generated from the m4 files accompanying Automake X.Y.
666 # (This private macro should not be called outside this file.)
667 AC_DEFUN([AM_AUTOMAKE_VERSION],
668 [am__api_version='1.11'
669 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
670 dnl require some minimum version. Point them to the right macro.
671 m4_if([$1], [1.11.6], [],
672 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
675 # _AM_AUTOCONF_VERSION(VERSION)
676 # -----------------------------
677 # aclocal traces this macro to find the Autoconf version.
678 # This is a private macro too. Using m4_define simplifies
679 # the logic in aclocal, which can simply ignore this definition.
680 m4_define([_AM_AUTOCONF_VERSION], [])
682 # AM_SET_CURRENT_AUTOMAKE_VERSION
683 # -------------------------------
684 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
685 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
686 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
687 [AM_AUTOMAKE_VERSION([1.11.6])dnl
688 m4_ifndef([AC_AUTOCONF_VERSION],
689 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
690 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
692 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
694 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
696 # This file is free software; the Free Software Foundation
697 # gives unlimited permission to copy and/or distribute it,
698 # with or without modifications, as long as this notice is preserved.
702 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
703 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
704 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
706 # Of course, Automake must honor this variable whenever it calls a
707 # tool from the auxiliary directory. The problem is that $srcdir (and
708 # therefore $ac_aux_dir as well) can be either absolute or relative,
709 # depending on how configure is run. This is pretty annoying, since
710 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
711 # source directory, any form will work fine, but in subdirectories a
712 # relative path needs to be adjusted first.
714 # $ac_aux_dir/missing
715 # fails when called from a subdirectory if $ac_aux_dir is relative
716 # $top_srcdir/$ac_aux_dir/missing
717 # fails if $ac_aux_dir is absolute,
718 # fails when called from a subdirectory in a VPATH build with
719 # a relative $ac_aux_dir
721 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
722 # are both prefixed by $srcdir. In an in-source build this is usually
723 # harmless because $srcdir is `.', but things will broke when you
724 # start a VPATH build or use an absolute $srcdir.
726 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
727 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
728 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
729 # and then we would define $MISSING as
730 # MISSING="\${SHELL} $am_aux_dir/missing"
731 # This will work as long as MISSING is not called from configure, because
732 # unfortunately $(top_srcdir) has no meaning in configure.
733 # However there are other variables, like CC, which are often used in
734 # configure, and could therefore not use this "fixed" $ac_aux_dir.
736 # Another solution, used here, is to always expand $ac_aux_dir to an
737 # absolute PATH. The drawback is that using absolute paths prevent a
738 # configured tree to be moved without reconfiguration.
740 AC_DEFUN([AM_AUX_DIR_EXPAND],
741 [dnl Rely on autoconf to set up CDPATH properly.
743 # expand $ac_aux_dir to an absolute path
744 am_aux_dir=`cd $ac_aux_dir && pwd`
747 # AM_CONDITIONAL -*- Autoconf -*-
749 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
750 # Free Software Foundation, Inc.
752 # This file is free software; the Free Software Foundation
753 # gives unlimited permission to copy and/or distribute it,
754 # with or without modifications, as long as this notice is preserved.
758 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
759 # -------------------------------------
760 # Define a conditional.
761 AC_DEFUN([AM_CONDITIONAL],
763 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
764 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
765 AC_SUBST([$1_TRUE])dnl
766 AC_SUBST([$1_FALSE])dnl
767 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
768 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
769 m4_define([_AM_COND_VALUE_$1], [$2])dnl
777 AC_CONFIG_COMMANDS_PRE(
778 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
779 AC_MSG_ERROR([[conditional "$1" was never defined.
780 Usually this means the macro was only invoked conditionally.]])
783 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
784 # 2010, 2011 Free Software Foundation, Inc.
786 # This file is free software; the Free Software Foundation
787 # gives unlimited permission to copy and/or distribute it,
788 # with or without modifications, as long as this notice is preserved.
792 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
793 # written in clear, in which case automake, when reading aclocal.m4,
794 # will think it sees a *use*, and therefore will trigger all it's
795 # C support machinery. Also note that it means that autoscan, seeing
796 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
799 # _AM_DEPENDENCIES(NAME)
800 # ----------------------
801 # See how the compiler implements dependency checking.
802 # NAME is "CC", "CXX", "GCJ", or "OBJC".
803 # We try a few techniques and use that to set a single cache variable.
805 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
806 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
807 # dependency, and given that the user is not expected to run this macro,
808 # just rely on AC_PROG_CC.
809 AC_DEFUN([_AM_DEPENDENCIES],
810 [AC_REQUIRE([AM_SET_DEPDIR])dnl
811 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
812 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
813 AC_REQUIRE([AM_DEP_TRACK])dnl
815 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
816 [$1], CXX, [depcc="$CXX" am_compiler_list=],
817 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
818 [$1], UPC, [depcc="$UPC" am_compiler_list=],
819 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
820 [depcc="$$1" am_compiler_list=])
822 AC_CACHE_CHECK([dependency style of $depcc],
823 [am_cv_$1_dependencies_compiler_type],
824 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
825 # We make a subdir and do the tests there. Otherwise we can end up
826 # making bogus files that we don't know about and never remove. For
827 # instance it was reported that on HP-UX the gcc test will end up
828 # making a dummy file named `D' -- because `-MD' means `put the output
832 # Copy depcomp to subdir because otherwise we won't find it if we're
833 # using a relative directory.
834 cp "$am_depcomp" conftest.dir
836 # We will build objects and dependencies in a subdirectory because
837 # it helps to detect inapplicable dependency modes. For instance
838 # both Tru64's cc and ICC support -MD to output dependencies as a
839 # side effect of compilation, but ICC will put the dependencies in
840 # the current directory while Tru64 will put them in the object
844 am_cv_$1_dependencies_compiler_type=none
845 if test "$am_compiler_list" = ""; then
846 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
850 [case " $depcc " in #(
851 *\ -arch\ *\ -arch\ *) am__universal=true ;;
854 [case " $depcc " in #(
855 *\ -arch\ *\ -arch\ *) am__universal=true ;;
858 for depmode in $am_compiler_list; do
859 # Setup a source with many dependencies, because some compilers
860 # like to wrap large dependency lists on column 80 (with \), and
861 # we should not choose a depcomp mode which is confused by this.
863 # We need to recreate these files for each test, as the compiler may
864 # overwrite some of them when testing with obscure command lines.
865 # This happens at least with the AIX C compiler.
867 for i in 1 2 3 4 5 6; do
868 echo '#include "conftst'$i'.h"' >> sub/conftest.c
869 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
870 # Solaris 8's {/usr,}/bin/sh.
871 touch sub/conftst$i.h
873 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
875 # We check with `-c' and `-o' for the sake of the "dashmstdout"
876 # mode. It turns out that the SunPro C++ compiler does not properly
877 # handle `-M -o', and we need to detect this. Also, some Intel
878 # versions had trouble with output in subdirs
879 am__obj=sub/conftest.${OBJEXT-o}
880 am__minus_obj="-o $am__obj"
883 # This depmode causes a compiler race in universal mode.
884 test "$am__universal" = false || continue
887 # after this tag, mechanisms are not by side-effect, so they'll
888 # only be used when explicitly requested
889 if test "x$enable_dependency_tracking" = xyes; then
895 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
896 # This compiler won't grok `-c -o', but also, the minuso test has
897 # not run yet. These depmodes are late enough in the game, and
898 # so weak that their functioning should not be impacted.
899 am__obj=conftest.${OBJEXT-o}
904 if depmode=$depmode \
905 source=sub/conftest.c object=$am__obj \
906 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
907 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
908 >/dev/null 2>conftest.err &&
909 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
910 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
911 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
913 # icc doesn't choke on unknown options, it will just issue warnings
914 # or remarks (even with -Werror). So we grep stderr for any message
915 # that says an option was ignored or not supported.
916 # When given -MP, icc 7.0 and 7.1 complain thusly:
917 # icc: Command line warning: ignoring option '-M'; no argument required
918 # The diagnosis changed in icc 8.0:
919 # icc: Command line remark: option '-MP' not supported
920 if (grep 'ignoring option' conftest.err ||
921 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
922 am_cv_$1_dependencies_compiler_type=$depmode
931 am_cv_$1_dependencies_compiler_type=none
934 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
935 AM_CONDITIONAL([am__fastdep$1], [
936 test "x$enable_dependency_tracking" != xno \
937 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
943 # Choose a directory name for dependency files.
944 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
945 AC_DEFUN([AM_SET_DEPDIR],
946 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
947 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
953 AC_DEFUN([AM_DEP_TRACK],
954 [AC_ARG_ENABLE(dependency-tracking,
955 [ --disable-dependency-tracking speeds up one-time build
956 --enable-dependency-tracking do not reject slow dependency extractors])
957 if test "x$enable_dependency_tracking" != xno; then
958 am_depcomp="$ac_aux_dir/depcomp"
962 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
963 AC_SUBST([AMDEPBACKSLASH])dnl
964 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
965 AC_SUBST([am__nodep])dnl
966 _AM_SUBST_NOTMAKE([am__nodep])dnl
969 # Generate code to set up dependency tracking. -*- Autoconf -*-
971 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
972 # Free Software Foundation, Inc.
974 # This file is free software; the Free Software Foundation
975 # gives unlimited permission to copy and/or distribute it,
976 # with or without modifications, as long as this notice is preserved.
980 # _AM_OUTPUT_DEPENDENCY_COMMANDS
981 # ------------------------------
982 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
984 # Autoconf 2.62 quotes --file arguments for eval, but not when files
985 # are listed without --file. Let's play safe and only enable the eval
986 # if we detect the quoting.
987 case $CONFIG_FILES in
988 *\'*) eval set x "$CONFIG_FILES" ;;
989 *) set x $CONFIG_FILES ;;
994 # Strip MF so we end up with the name of the file.
995 mf=`echo "$mf" | sed -e 's/:.*$//'`
996 # Check whether this is an Automake generated Makefile or not.
997 # We used to match only the files named `Makefile.in', but
998 # some people rename them; so instead we look at the file content.
999 # Grep'ing the first line is not enough: some people post-process
1000 # each Makefile.in and add a new line on top of each file to say so.
1001 # Grep'ing the whole file is not good either: AIX grep has a line
1002 # limit of 2048, but all sed's we know have understand at least 4000.
1003 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1004 dirpart=`AS_DIRNAME("$mf")`
1008 # Extract the definition of DEPDIR, am__include, and am__quote
1009 # from the Makefile without running `make'.
1010 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1011 test -z "$DEPDIR" && continue
1012 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1013 test -z "am__include" && continue
1014 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1015 # When using ansi2knr, U may be empty or an underscore; expand it
1016 U=`sed -n 's/^U = //p' < "$mf"`
1017 # Find all dependency output files, they are included files with
1018 # $(DEPDIR) in their names. We invoke sed twice because it is the
1019 # simplest approach to changing $(DEPDIR) to its actual value in the
1021 for file in `sed -n "
1022 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1023 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1024 # Make sure the directory exists.
1025 test -f "$dirpart/$file" && continue
1026 fdir=`AS_DIRNAME(["$file"])`
1027 AS_MKDIR_P([$dirpart/$fdir])
1028 # echo "creating $dirpart/$file"
1029 echo '# dummy' > "$dirpart/$file"
1033 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1036 # AM_OUTPUT_DEPENDENCY_COMMANDS
1037 # -----------------------------
1038 # This macro should only be invoked once -- use via AC_REQUIRE.
1040 # This code is only required when automatic dependency tracking
1041 # is enabled. FIXME. This creates each `.P' file that we will
1042 # need in order to bootstrap the dependency handling code.
1043 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1044 [AC_CONFIG_COMMANDS([depfiles],
1045 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1046 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1049 # Do all the work for Automake. -*- Autoconf -*-
1051 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1052 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1054 # This file is free software; the Free Software Foundation
1055 # gives unlimited permission to copy and/or distribute it,
1056 # with or without modifications, as long as this notice is preserved.
1060 # This macro actually does too much. Some checks are only needed if
1061 # your package does certain things. But this isn't really a big deal.
1063 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1064 # AM_INIT_AUTOMAKE([OPTIONS])
1065 # -----------------------------------------------
1066 # The call with PACKAGE and VERSION arguments is the old style
1067 # call (pre autoconf-2.50), which is being phased out. PACKAGE
1068 # and VERSION should now be passed to AC_INIT and removed from
1069 # the call to AM_INIT_AUTOMAKE.
1070 # We support both call styles for the transition. After
1071 # the next Automake release, Autoconf can make the AC_INIT
1072 # arguments mandatory, and then we can depend on a new Autoconf
1073 # release and drop the old call support.
1074 AC_DEFUN([AM_INIT_AUTOMAKE],
1075 [AC_PREREQ([2.62])dnl
1076 dnl Autoconf wants to disallow AM_ names. We explicitly allow
1077 dnl the ones we care about.
1078 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1079 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1080 AC_REQUIRE([AC_PROG_INSTALL])dnl
1081 if test "`cd $srcdir && pwd`" != "`pwd`"; then
1082 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1083 # is not polluted with repeated "-I."
1084 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1085 # test to see if srcdir already configured
1086 if test -f $srcdir/config.status; then
1087 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1091 # test whether we have cygpath
1092 if test -z "$CYGPATH_W"; then
1093 if (cygpath --version) >/dev/null 2>/dev/null; then
1094 CYGPATH_W='cygpath -w'
1099 AC_SUBST([CYGPATH_W])
1101 # Define the identity of the package.
1102 dnl Distinguish between old-style and new-style calls.
1104 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1105 AC_SUBST([PACKAGE], [$1])dnl
1106 AC_SUBST([VERSION], [$2])],
1107 [_AM_SET_OPTIONS([$1])dnl
1108 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1109 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1110 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1111 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1112 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1114 _AM_IF_OPTION([no-define],,
1115 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1116 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1118 # Some tools Automake needs.
1119 AC_REQUIRE([AM_SANITY_CHECK])dnl
1120 AC_REQUIRE([AC_ARG_PROGRAM])dnl
1121 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1122 AM_MISSING_PROG(AUTOCONF, autoconf)
1123 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1124 AM_MISSING_PROG(AUTOHEADER, autoheader)
1125 AM_MISSING_PROG(MAKEINFO, makeinfo)
1126 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1127 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1128 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1129 # We need awk for the "check" target. The system "awk" is bad on
1131 AC_REQUIRE([AC_PROG_AWK])dnl
1132 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1133 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1134 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1135 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1136 [_AM_PROG_TAR([v7])])])
1137 _AM_IF_OPTION([no-dependencies],,
1138 [AC_PROVIDE_IFELSE([AC_PROG_CC],
1139 [_AM_DEPENDENCIES(CC)],
1140 [define([AC_PROG_CC],
1141 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1142 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1143 [_AM_DEPENDENCIES(CXX)],
1144 [define([AC_PROG_CXX],
1145 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1146 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1147 [_AM_DEPENDENCIES(OBJC)],
1148 [define([AC_PROG_OBJC],
1149 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1151 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1152 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1153 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1154 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1155 AC_CONFIG_COMMANDS_PRE(dnl
1156 [m4_provide_if([_AM_COMPILER_EXEEXT],
1157 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1160 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1161 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1162 dnl mangled by Autoconf and run in a shell conditional statement.
1163 m4_define([_AC_COMPILER_EXEEXT],
1164 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1167 # When config.status generates a header, we must update the stamp-h file.
1168 # This file resides in the same directory as the config header
1169 # that is generated. The stamp files are numbered to have different names.
1171 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1172 # loop where config.status creates the headers, so we can generate
1173 # our stamp files there.
1174 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1175 [# Compute $1's index in $config_headers.
1178 for _am_header in $config_headers :; do
1180 $_am_arg | $_am_arg:* )
1183 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1186 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1188 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
1191 # This file is free software; the Free Software Foundation
1192 # gives unlimited permission to copy and/or distribute it,
1193 # with or without modifications, as long as this notice is preserved.
1197 # AM_PROG_INSTALL_SH
1198 # ------------------
1199 # Define $install_sh.
1200 AC_DEFUN([AM_PROG_INSTALL_SH],
1201 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1202 if test x"${install_sh}" != xset; then
1205 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1207 install_sh="\${SHELL} $am_aux_dir/install-sh"
1210 AC_SUBST(install_sh)])
1212 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1214 # This file is free software; the Free Software Foundation
1215 # gives unlimited permission to copy and/or distribute it,
1216 # with or without modifications, as long as this notice is preserved.
1220 # Check whether the underlying file-system supports filenames
1221 # with a leading dot. For instance MS-DOS doesn't.
1222 AC_DEFUN([AM_SET_LEADING_DOT],
1223 [rm -rf .tst 2>/dev/null
1224 mkdir .tst 2>/dev/null
1225 if test -d .tst; then
1230 rmdir .tst 2>/dev/null
1231 AC_SUBST([am__leading_dot])])
1233 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
1236 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
1237 # 2011 Free Software Foundation, Inc.
1239 # This file is free software; the Free Software Foundation
1240 # gives unlimited permission to copy and/or distribute it,
1241 # with or without modifications, as long as this notice is preserved.
1245 # AM_MAINTAINER_MODE([DEFAULT-MODE])
1246 # ----------------------------------
1247 # Control maintainer-specific portions of Makefiles.
1248 # Default is to disable them, unless `enable' is passed literally.
1249 # For symmetry, `disable' may be passed as well. Anyway, the user
1250 # can override the default with the --enable/--disable switch.
1251 AC_DEFUN([AM_MAINTAINER_MODE],
1252 [m4_case(m4_default([$1], [disable]),
1253 [enable], [m4_define([am_maintainer_other], [disable])],
1254 [disable], [m4_define([am_maintainer_other], [enable])],
1255 [m4_define([am_maintainer_other], [enable])
1256 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1257 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1258 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1259 AC_ARG_ENABLE([maintainer-mode],
1260 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
1261 (and sometimes confusing) to the casual installer],
1262 [USE_MAINTAINER_MODE=$enableval],
1263 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1264 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1265 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1266 MAINT=$MAINTAINER_MODE_TRUE
1267 AC_SUBST([MAINT])dnl
1271 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1273 # Check to see how 'make' treats includes. -*- Autoconf -*-
1275 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
1277 # This file is free software; the Free Software Foundation
1278 # gives unlimited permission to copy and/or distribute it,
1279 # with or without modifications, as long as this notice is preserved.
1285 # Check to see how make treats includes.
1286 AC_DEFUN([AM_MAKE_INCLUDE],
1287 [am_make=${MAKE-make}
1288 cat > confinc << 'END'
1290 @echo this is the am__doit target
1293 # If we don't find an include directive, just comment out the code.
1294 AC_MSG_CHECKING([for style of include used by $am_make])
1298 # First try GNU make style include.
1299 echo "include confinc" > confmf
1300 # Ignore all kinds of additional output from `make'.
1301 case `$am_make -s -f confmf 2> /dev/null` in #(
1302 *the\ am__doit\ target*)
1308 # Now try BSD make style include.
1309 if test "$am__include" = "#"; then
1310 echo '.include "confinc"' > confmf
1311 case `$am_make -s -f confmf 2> /dev/null` in #(
1312 *the\ am__doit\ target*)
1313 am__include=.include
1319 AC_SUBST([am__include])
1320 AC_SUBST([am__quote])
1321 AC_MSG_RESULT([$_am_result])
1322 rm -f confinc confmf
1325 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1327 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1328 # Free Software Foundation, Inc.
1330 # This file is free software; the Free Software Foundation
1331 # gives unlimited permission to copy and/or distribute it,
1332 # with or without modifications, as long as this notice is preserved.
1336 # AM_MISSING_PROG(NAME, PROGRAM)
1337 # ------------------------------
1338 AC_DEFUN([AM_MISSING_PROG],
1339 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1340 $1=${$1-"${am_missing_run}$2"}
1344 # AM_MISSING_HAS_RUN
1345 # ------------------
1346 # Define MISSING if not defined so far and test if it supports --run.
1347 # If it does, set am_missing_run to use it, otherwise, to nothing.
1348 AC_DEFUN([AM_MISSING_HAS_RUN],
1349 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1350 AC_REQUIRE_AUX_FILE([missing])dnl
1351 if test x"${MISSING+set}" != xset; then
1354 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1356 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1359 # Use eval to expand $SHELL
1360 if eval "$MISSING --run true"; then
1361 am_missing_run="$MISSING --run "
1364 AC_MSG_WARN([`missing' script is too old or missing])
1368 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
1371 # This file is free software; the Free Software Foundation
1372 # gives unlimited permission to copy and/or distribute it,
1373 # with or without modifications, as long as this notice is preserved.
1379 # Check for `mkdir -p'.
1380 AC_DEFUN([AM_PROG_MKDIR_P],
1381 [AC_PREREQ([2.60])dnl
1382 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1383 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1384 dnl while keeping a definition of mkdir_p for backward compatibility.
1385 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1386 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1387 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1388 dnl adjustment using top_builddir (which is defined more often than
1390 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1392 [[\\/$]]* | ?:[[\\/]]*) ;;
1393 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1397 # Helper functions for option handling. -*- Autoconf -*-
1399 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1402 # This file is free software; the Free Software Foundation
1403 # gives unlimited permission to copy and/or distribute it,
1404 # with or without modifications, as long as this notice is preserved.
1408 # _AM_MANGLE_OPTION(NAME)
1409 # -----------------------
1410 AC_DEFUN([_AM_MANGLE_OPTION],
1411 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1413 # _AM_SET_OPTION(NAME)
1414 # --------------------
1415 # Set option NAME. Presently that only means defining a flag for this option.
1416 AC_DEFUN([_AM_SET_OPTION],
1417 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1419 # _AM_SET_OPTIONS(OPTIONS)
1420 # ------------------------
1421 # OPTIONS is a space-separated list of Automake options.
1422 AC_DEFUN([_AM_SET_OPTIONS],
1423 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1425 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1426 # -------------------------------------------
1427 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1428 AC_DEFUN([_AM_IF_OPTION],
1429 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1431 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1433 # This file is free software; the Free Software Foundation
1434 # gives unlimited permission to copy and/or distribute it,
1435 # with or without modifications, as long as this notice is preserved.
1439 # AM_RUN_LOG(COMMAND)
1440 # -------------------
1441 # Run COMMAND, save the exit status in ac_status, and log it.
1442 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1443 AC_DEFUN([AM_RUN_LOG],
1444 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1445 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1447 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1448 (exit $ac_status); }])
1450 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1452 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1453 # Free Software Foundation, Inc.
1455 # This file is free software; the Free Software Foundation
1456 # gives unlimited permission to copy and/or distribute it,
1457 # with or without modifications, as long as this notice is preserved.
1463 AC_DEFUN([AM_SANITY_CHECK],
1464 [AC_MSG_CHECKING([whether build environment is sane])
1467 echo timestamp > conftest.file
1468 # Reject unsafe characters in $srcdir or the absolute working directory
1469 # name. Accept space and tab only in the latter.
1473 *[[\\\"\#\$\&\'\`$am_lf]]*)
1474 AC_MSG_ERROR([unsafe absolute working directory name]);;
1477 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1478 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1481 # Do `set' in a subshell so we don't clobber the current shell's
1482 # arguments. Must try -L first in case configure is actually a
1483 # symlink; some systems play weird games with the mod time of symlinks
1484 # (eg FreeBSD returns the mod time of the symlink's containing
1487 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1488 if test "$[*]" = "X"; then
1490 set X `ls -t "$srcdir/configure" conftest.file`
1493 if test "$[*]" != "X $srcdir/configure conftest.file" \
1494 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1496 # If neither matched, then we have a broken ls. This can happen
1497 # if, for instance, CONFIG_SHELL is bash and it inherits a
1498 # broken ls alias from the environment. This has actually
1499 # happened. Such a system could not be considered "sane".
1500 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1501 alias in your environment])
1504 test "$[2]" = conftest.file
1510 AC_MSG_ERROR([newly created file is older than distributed files!
1511 Check your system clock])
1513 AC_MSG_RESULT(yes)])
1515 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1517 # This file is free software; the Free Software Foundation
1518 # gives unlimited permission to copy and/or distribute it,
1519 # with or without modifications, as long as this notice is preserved.
1523 # AM_SILENT_RULES([DEFAULT])
1524 # --------------------------
1525 # Enable less verbose build rules; with the default set to DEFAULT
1526 # (`yes' being less verbose, `no' or empty being verbose).
1527 AC_DEFUN([AM_SILENT_RULES],
1528 [AC_ARG_ENABLE([silent-rules],
1529 [ --enable-silent-rules less verbose build output (undo: `make V=1')
1530 --disable-silent-rules verbose build output (undo: `make V=0')])
1531 case $enable_silent_rules in
1532 yes) AM_DEFAULT_VERBOSITY=0;;
1533 no) AM_DEFAULT_VERBOSITY=1;;
1534 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1537 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1538 dnl do not support nested variable expansions.
1539 dnl See automake bug#9928 and bug#10237.
1540 am_make=${MAKE-make}
1541 AC_CACHE_CHECK([whether $am_make supports nested variables],
1542 [am_cv_make_support_nested_variables],
1543 [if AS_ECHO([['TRUE=$(BAR$(V))
1549 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1550 am_cv_make_support_nested_variables=yes
1552 am_cv_make_support_nested_variables=no
1554 if test $am_cv_make_support_nested_variables = yes; then
1555 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1557 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1559 AM_V=$AM_DEFAULT_VERBOSITY
1560 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1563 AM_SUBST_NOTMAKE([AM_V])dnl
1564 AC_SUBST([AM_DEFAULT_V])dnl
1565 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1566 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1568 AC_SUBST([AM_BACKSLASH])dnl
1569 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1572 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1574 # This file is free software; the Free Software Foundation
1575 # gives unlimited permission to copy and/or distribute it,
1576 # with or without modifications, as long as this notice is preserved.
1580 # AM_PROG_INSTALL_STRIP
1581 # ---------------------
1582 # One issue with vendor `install' (even GNU) is that you can't
1583 # specify the program used to strip binaries. This is especially
1584 # annoying in cross-compiling environments, where the build's strip
1585 # is unlikely to handle the host's binaries.
1586 # Fortunately install-sh will honor a STRIPPROG variable, so we
1587 # always use install-sh in `make install-strip', and initialize
1588 # STRIPPROG with the value of the STRIP variable (set by the user).
1589 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1590 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1591 # Installed binaries are usually stripped using `strip' when the user
1592 # run `make install-strip'. However `strip' might not be the right
1593 # tool to use in cross-compilation environments, therefore Automake
1594 # will honor the `STRIP' environment variable to overrule this program.
1595 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1596 if test "$cross_compiling" != no; then
1597 AC_CHECK_TOOL([STRIP], [strip], :)
1599 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1600 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1602 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1604 # This file is free software; the Free Software Foundation
1605 # gives unlimited permission to copy and/or distribute it,
1606 # with or without modifications, as long as this notice is preserved.
1610 # _AM_SUBST_NOTMAKE(VARIABLE)
1611 # ---------------------------
1612 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1613 # This macro is traced by Automake.
1614 AC_DEFUN([_AM_SUBST_NOTMAKE])
1616 # AM_SUBST_NOTMAKE(VARIABLE)
1617 # --------------------------
1618 # Public sister of _AM_SUBST_NOTMAKE.
1619 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1621 # Check how to create a tarball. -*- Autoconf -*-
1623 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1625 # This file is free software; the Free Software Foundation
1626 # gives unlimited permission to copy and/or distribute it,
1627 # with or without modifications, as long as this notice is preserved.
1631 # _AM_PROG_TAR(FORMAT)
1632 # --------------------
1633 # Check how to create a tarball in format FORMAT.
1634 # FORMAT should be one of `v7', `ustar', or `pax'.
1636 # Substitute a variable $(am__tar) that is a command
1637 # writing to stdout a FORMAT-tarball containing the directory
1639 # tardir=directory && $(am__tar) > result.tar
1641 # Substitute a variable $(am__untar) that extract such
1642 # a tarball read from stdin.
1643 # $(am__untar) < result.tar
1644 AC_DEFUN([_AM_PROG_TAR],
1645 [# Always define AMTAR for backward compatibility. Yes, it's still used
1646 # in the wild :-( We should find a proper way to deprecate it ...
1647 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1649 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1650 [m4_case([$1], [ustar],, [pax],,
1651 [m4_fatal([Unknown tar format])])
1652 AC_MSG_CHECKING([how to create a $1 tar archive])
1653 # Loop over all known methods to create a tar archive until one works.
1654 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1655 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1656 # Do not fold the above two line into one, because Tru64 sh and
1657 # Solaris sh will not grok spaces in the rhs of `-'.
1658 for _am_tool in $_am_tools
1662 for _am_tar in tar gnutar gtar;
1664 AM_RUN_LOG([$_am_tar --version]) && break
1666 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1667 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1668 am__untar="$_am_tar -xf -"
1671 # Must skip GNU tar: if it does not support --format= it doesn't create
1672 # ustar tarball either.
1673 (tar --version) >/dev/null 2>&1 && continue
1674 am__tar='tar chf - "$$tardir"'
1675 am__tar_='tar chf - "$tardir"'
1676 am__untar='tar xf -'
1679 am__tar='pax -L -x $1 -w "$$tardir"'
1680 am__tar_='pax -L -x $1 -w "$tardir"'
1684 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1685 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1686 am__untar='cpio -i -H $1 -d'
1695 # If the value was cached, stop now. We just wanted to have am__tar
1696 # and am__untar set.
1697 test -n "${am_cv_prog_tar_$1}" && break
1699 # tar/untar a dummy directory, and stop if the command works
1702 echo GrepMe > conftest.dir/file
1703 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1705 if test -s conftest.tar; then
1706 AM_RUN_LOG([$am__untar <conftest.tar])
1707 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1712 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1713 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1715 AC_SUBST([am__untar])
1718 m4_include([m4/intltool.m4])
1719 m4_include([m4/libtool.m4])
1720 m4_include([m4/ltoptions.m4])
1721 m4_include([m4/ltsugar.m4])
1722 m4_include([m4/ltversion.m4])
1723 m4_include([m4/lt~obsolete.m4])