1 # generated automatically by aclocal 1.11 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17 [m4_warning([this file was generated for autoconf 2.63.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
23 dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
24 dnl (i.e. pass to gconftool-2
25 dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
26 dnl you should install foo.schemas files
29 AC_DEFUN([AM_GCONF_SOURCE_2],
31 if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
32 GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
34 GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
37 AC_ARG_WITH([gconf-source],
38 AC_HELP_STRING([--with-gconf-source=sourceaddress],
39 [Config database for installing schema files.]),
40 [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
42 AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
43 AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
45 if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
46 GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
49 AC_ARG_WITH([gconf-schema-file-dir],
50 AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
51 [Directory for installing schema files.]),
52 [GCONF_SCHEMA_FILE_DIR="$withval"],)
54 AC_SUBST(GCONF_SCHEMA_FILE_DIR)
55 AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
57 AC_ARG_ENABLE(schemas-install,
58 AC_HELP_STRING([--disable-schemas-install],
59 [Disable the schemas installation]),
62 *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
64 AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
67 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
68 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
70 # This file is free software, distributed under the terms of the GNU
71 # General Public License. As a special exception to the GNU General
72 # Public License, this file may be distributed as part of a program
73 # that contains a configuration script generated by Autoconf, under
74 # the same distribution terms as the rest of that program.
76 # This file can be copied and used freely without restrictions. It can
77 # be used in projects which are not available under the GNU Public License
78 # but which still want to provide support for the GNU gettext functionality.
80 # Macro to add for using GNU gettext.
81 # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
83 # Modified to never use included libintl.
84 # Owen Taylor <otaylor@redhat.com>, 12/15/1998
86 # Major rework to remove unused code
87 # Owen Taylor <otaylor@redhat.com>, 12/11/2002
89 # Added better handling of ALL_LINGUAS from GNU gettext version
90 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
92 # Modified to require ngettext
93 # Matthias Clasen <mclasen@redhat.com> 08/06/2004
95 # We need this here as well, since someone might use autoconf-2.5x
96 # to configure GLib then an older version to configure a package
97 # using AM_GLIB_GNU_GETTEXT
101 dnl We go to great lengths to make sure that aclocal won't
102 dnl try to pull in the installed version of these macros
103 dnl when running aclocal in the glib directory.
105 m4_copy([AC_DEFUN],[glib_DEFUN])
106 m4_copy([AC_REQUIRE],[glib_REQUIRE])
108 dnl At the end, if we're not within glib, we'll define the public
109 dnl definitions in terms of our private definitions.
113 #--------------------
114 glib_DEFUN([GLIB_LC_MESSAGES],
115 [AC_CHECK_HEADERS([locale.h])
116 if test $ac_cv_header_locale_h = yes; then
117 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
118 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
119 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
120 if test $am_cv_val_LC_MESSAGES = yes; then
121 AC_DEFINE(HAVE_LC_MESSAGES, 1,
122 [Define if your <locale.h> file defines LC_MESSAGES.])
126 # GLIB_PATH_PROG_WITH_TEST
127 #----------------------------
128 dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
129 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
130 glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
131 [# Extract the first word of "$2", so it can be a program name with args.
132 set dummy $2; ac_word=[$]2
133 AC_MSG_CHECKING([for $ac_word])
134 AC_CACHE_VAL(ac_cv_path_$1,
137 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
141 for ac_dir in ifelse([$5], , $PATH, [$5]); do
142 test -z "$ac_dir" && ac_dir=.
143 if test -f $ac_dir/$ac_word; then
145 ac_cv_path_$1="$ac_dir/$ac_word"
151 dnl If no 4th arg is given, leave the cache variable unset,
152 dnl so AC_PATH_PROGS will keep looking.
153 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
158 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
168 glib_DEFUN([GLIB_WITH_NLS],
169 dnl NLS is obligatory
173 gt_cv_have_gettext=no
179 AC_CHECK_HEADER(libintl.h,
180 [gt_cv_func_dgettext_libintl="no"
181 libintl_extra_libs=""
184 # First check in libc
186 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
190 [return !ngettext ("","", 1)],
191 gt_cv_func_ngettext_libc=yes,
192 gt_cv_func_ngettext_libc=no)
195 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
196 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
200 [return !dgettext ("","")],
201 gt_cv_func_dgettext_libc=yes,
202 gt_cv_func_dgettext_libc=no)
206 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
207 AC_CHECK_FUNCS(bind_textdomain_codeset)
211 # If we don't have everything we want, check in libintl
213 if test "$gt_cv_func_dgettext_libc" != "yes" \
214 || test "$gt_cv_func_ngettext_libc" != "yes" \
215 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
217 AC_CHECK_LIB(intl, bindtextdomain,
218 [AC_CHECK_LIB(intl, ngettext,
219 [AC_CHECK_LIB(intl, dgettext,
220 gt_cv_func_dgettext_libintl=yes)])])
222 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
223 AC_MSG_CHECKING([if -liconv is needed to use gettext])
225 AC_CHECK_LIB(intl, ngettext,
226 [AC_CHECK_LIB(intl, dcgettext,
227 [gt_cv_func_dgettext_libintl=yes
228 libintl_extra_libs=-liconv],
234 # If we found libintl, then check in it for bind_textdomain_codeset();
235 # we'll prefer libc if neither have bind_textdomain_codeset(),
236 # and both have dgettext and ngettext
238 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
239 glib_save_LIBS="$LIBS"
240 LIBS="$LIBS -lintl $libintl_extra_libs"
241 unset ac_cv_func_bind_textdomain_codeset
242 AC_CHECK_FUNCS(bind_textdomain_codeset)
243 LIBS="$glib_save_LIBS"
245 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
246 gt_cv_func_dgettext_libc=no
248 if test "$gt_cv_func_dgettext_libc" = "yes" \
249 && test "$gt_cv_func_ngettext_libc" = "yes"; then
250 gt_cv_func_dgettext_libintl=no
256 if test "$gt_cv_func_dgettext_libc" = "yes" \
257 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
258 gt_cv_have_gettext=yes
261 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
262 INTLLIBS="-lintl $libintl_extra_libs"
265 if test "$gt_cv_have_gettext" = "yes"; then
266 AC_DEFINE(HAVE_GETTEXT,1,
267 [Define if the GNU gettext() function is already present or preinstalled.])
268 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
269 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
270 if test "$MSGFMT" != "no"; then
271 glib_save_LIBS="$LIBS"
272 LIBS="$LIBS $INTLLIBS"
273 AC_CHECK_FUNCS(dcgettext)
275 AC_MSG_CHECKING([if msgfmt accepts -c])
276 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
279 "Content-Type: text/plain; charset=UTF-8\n"
280 "Project-Id-Version: test 1.0\n"
281 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
282 "Last-Translator: test <foo@bar.xx>\n"
283 "Language-Team: C <LL@li.org>\n"
284 "MIME-Version: 1.0\n"
285 "Content-Transfer-Encoding: 8bit\n"
286 ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
287 AC_SUBST(MSGFMT_OPTS)
288 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
289 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
290 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
291 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
292 return _nl_msg_cat_cntr],
297 dnl On Solaris, if bind_textdomain_codeset is in libc,
298 dnl GNU format message catalog is always supported,
299 dnl since both are added to the libc all together.
300 dnl Hence, we'd like to go with DATADIRNAME=share and
301 dnl and CATOBJEXT=.gmo in this case.
302 AC_CHECK_FUNC(bind_textdomain_codeset,
313 LIBS="$glib_save_LIBS"
316 gt_cv_have_gettext=no
321 if test "$gt_cv_have_gettext" = "yes" ; then
322 AC_DEFINE(ENABLE_NLS, 1,
323 [always defined to indicate that i18n is enabled])
326 dnl Test whether we really found GNU xgettext.
327 if test "$XGETTEXT" != ":"; then
328 dnl If it is not GNU xgettext we define it as : so that the
329 dnl Makefiles still can work.
330 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
334 [found xgettext program is not GNU xgettext; ignore it])
339 # We need to process the po/ directory.
343 [case "$CONFIG_FILES" in *po/Makefile.in*)
344 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
347 dnl These rules are solely for the distribution goal. While doing this
348 dnl we only have to keep exactly one list of the available catalogs
350 for lang in $ALL_LINGUAS; do
351 GMOFILES="$GMOFILES $lang.gmo"
352 POFILES="$POFILES $lang.po"
355 dnl Make all variables we use known to autoconf.
358 AC_SUBST(DATADIRNAME)
362 AC_SUBST(PO_IN_DATADIR_TRUE)
363 AC_SUBST(PO_IN_DATADIR_FALSE)
368 # AM_GLIB_GNU_GETTEXT
369 # -------------------
370 # Do checks necessary for use of gettext. If a suitable implementation
371 # of gettext is found in either in libintl or in the C library,
372 # it will set INTLLIBS to the libraries needed for use of gettext
373 # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
374 # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
375 # on various variables needed by the Makefile.in.in installed by
378 glib_DEFUN([GLIB_GNU_GETTEXT],
379 [AC_REQUIRE([AC_PROG_CC])dnl
380 AC_REQUIRE([AC_HEADER_STDC])dnl
385 if test "$gt_cv_have_gettext" = "yes"; then
386 if test "x$ALL_LINGUAS" = "x"; then
389 AC_MSG_CHECKING(for catalogs to be installed)
391 for presentlang in $ALL_LINGUAS; do
393 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
394 desiredlanguages="$LINGUAS"
396 desiredlanguages="$ALL_LINGUAS"
398 for desiredlang in $desiredlanguages; do
399 # Use the presentlang catalog if desiredlang is
400 # a. equal to presentlang, or
401 # b. a variant of presentlang (because in this case,
402 # presentlang can be used as a fallback for messages
403 # which are not translated in the desiredlang catalog).
404 case "$desiredlang" in
405 "$presentlang"*) useit=yes;;
408 if test $useit = yes; then
409 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
413 AC_MSG_RESULT($LINGUAS)
416 dnl Construct list of names of catalog files to be constructed.
417 if test -n "$LINGUAS"; then
418 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
422 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
423 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
424 dnl Try to locate is.
426 if test -n "$ac_aux_dir"; then
427 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
429 if test -z "$MKINSTALLDIRS"; then
430 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
432 AC_SUBST(MKINSTALLDIRS)
434 dnl Generate list of files to be processed by xgettext which will
435 dnl be included in po/Makefile.
436 test -d po || mkdir po
437 if test "x$srcdir" != "x."; then
438 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
439 posrcprefix="$srcdir/"
441 posrcprefix="../$srcdir/"
447 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
448 < $srcdir/po/POTFILES.in > po/POTFILES
451 # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
452 # -------------------------------
453 # Define VARIABLE to the location where catalog files will
454 # be installed by po/Makefile.
455 glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
456 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
457 glib_save_prefix="$prefix"
458 glib_save_exec_prefix="$exec_prefix"
459 glib_save_datarootdir="$datarootdir"
460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
461 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
462 datarootdir=`eval echo "${datarootdir}"`
463 if test "x$CATOBJEXT" = "x.mo" ; then
464 localedir=`eval echo "${libdir}/locale"`
466 localedir=`eval echo "${datadir}/locale"`
468 prefix="$glib_save_prefix"
469 exec_prefix="$glib_save_exec_prefix"
470 datarootdir="$glib_save_datarootdir"
471 AC_DEFINE_UNQUOTED($1, "$localedir",
472 [Define the location where the catalogs will be installed])
476 dnl Now the definitions that aclocal will find
478 ifdef(glib_configure_in,[],[
479 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
480 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
483 # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
485 # Create a temporary file with TEST-FILE as its contents and pass the
486 # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
487 # 0 and perform ACTION-IF-FAIL for any other exit status.
488 AC_DEFUN([GLIB_RUN_PROG],
489 [cat >conftest.foo <<_ACEOF
492 if AC_RUN_LOG([$1 conftest.foo]); then
493 m4_ifval([$3], [$3], [:])
494 m4_ifvaln([$4], [else $4])dnl
495 echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
496 sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
503 dnl GNOME_COMMON_INIT
505 AC_DEFUN([GNOME_COMMON_INIT],
507 dnl this macro should come after AC_CONFIG_MACRO_DIR
508 AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
510 dnl ensure that when the Automake generated makefile calls aclocal,
511 dnl it honours the $ACLOCAL_FLAGS environment variable
512 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
513 if test -n "$ac_macro_dir"; then
514 ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
517 AC_SUBST([ACLOCAL_AMFLAGS])
520 AC_DEFUN([GNOME_DEBUG_CHECK],
522 AC_ARG_ENABLE([debug],
523 AC_HELP_STRING([--enable-debug],
524 [turn on debugging]),,
527 if test x$enable_debug = xyes ; then
528 AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
529 [Enable additional debugging at the expense of performance and size])
533 dnl GNOME_MAINTAINER_MODE_DEFINES ()
534 dnl define DISABLE_DEPRECATED
536 AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
538 AC_REQUIRE([AM_MAINTAINER_MODE])
540 if test $USE_MAINTAINER_MODE = yes; then
541 DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED -DWNCK_DISABLE_DEPRECATED -DLIBSOUP_DISABLE_DEPRECATED"
543 DISABLE_DEPRECATED=""
545 AC_SUBST(DISABLE_DEPRECATED)
548 dnl GNOME_COMPILE_WARNINGS
549 dnl Turn on many useful compiler warnings
550 dnl For now, only works on GCC
551 AC_DEFUN([GNOME_COMPILE_WARNINGS],[
552 dnl ******************************
553 dnl More compiler warnings
554 dnl ******************************
556 AC_ARG_ENABLE(compile-warnings,
557 AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
558 [Turn on compiler warnings]),,
559 [enable_compile_warnings="m4_default([$1],[yes])"])
562 if test "x$GCC" != xyes; then
563 enable_compile_warnings=no
567 realsave_CFLAGS="$CFLAGS"
569 case "$enable_compile_warnings" in
574 warning_flags="-Wall"
577 warning_flags="-Wall -Wmissing-prototypes"
580 warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
581 CFLAGS="$warning_flags $CFLAGS"
582 for option in -Wno-sign-compare; do
583 SAVE_CFLAGS="$CFLAGS"
584 CFLAGS="$CFLAGS $option"
585 AC_MSG_CHECKING([whether gcc understands $option])
586 AC_TRY_COMPILE([], [],
589 CFLAGS="$SAVE_CFLAGS"
590 AC_MSG_RESULT($has_option)
591 if test $has_option = yes; then
592 warning_flags="$warning_flags $option"
598 if test "$enable_compile_warnings" = "error" ; then
599 warning_flags="$warning_flags -Werror"
603 AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
606 CFLAGS="$realsave_CFLAGS"
607 AC_MSG_CHECKING(what warning flags to pass to the C compiler)
608 AC_MSG_RESULT($warning_flags)
611 AC_HELP_STRING([--enable-iso-c],
612 [Try to warn if code is not ISO C ]),,
615 AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
617 if test "x$enable_iso_c" != "xno"; then
618 if test "x$GCC" = "xyes"; then
620 *[\ \ ]-ansi[\ \ ]*) ;;
621 *) complCFLAGS="$complCFLAGS -ansi" ;;
624 *[\ \ ]-pedantic[\ \ ]*) ;;
625 *) complCFLAGS="$complCFLAGS -pedantic" ;;
629 AC_MSG_RESULT($complCFLAGS)
631 WARN_CFLAGS="$warning_flags $complCFLAGS"
632 AC_SUBST(WARN_CFLAGS)
635 dnl For C++, do basically the same thing.
637 AC_DEFUN([GNOME_CXX_WARNINGS],[
638 AC_ARG_ENABLE(cxx-warnings,
639 AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
640 [Turn on compiler warnings.]),,
641 [enable_cxx_warnings="m4_default([$1],[minimum])"])
643 AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
645 if test "x$GXX" != xyes; then
646 enable_cxx_warnings=no
648 if test "x$enable_cxx_warnings" != "xno"; then
649 if test "x$GXX" = "xyes"; then
650 case " $CXXFLAGS " in
651 *[\ \ ]-Wall[\ \ ]*) ;;
652 *) warnCXXFLAGS="-Wall -Wno-unused" ;;
655 ## -W is not all that useful. And it cannot be controlled
656 ## with individual -Wno-xxx flags, unlike -Wall
657 if test "x$enable_cxx_warnings" = "xyes"; then
658 warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
662 AC_MSG_RESULT($warnCXXFLAGS)
664 AC_ARG_ENABLE(iso-cxx,
665 AC_HELP_STRING([--enable-iso-cxx],
666 [Try to warn if code is not ISO C++ ]),,
669 AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
671 if test "x$enable_iso_cxx" != "xno"; then
672 if test "x$GXX" = "xyes"; then
673 case " $CXXFLAGS " in
674 *[\ \ ]-ansi[\ \ ]*) ;;
675 *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
678 case " $CXXFLAGS " in
679 *[\ \ ]-pedantic[\ \ ]*) ;;
680 *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
684 AC_MSG_RESULT($complCXXFLAGS)
686 WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
687 AC_SUBST(WARN_CXXFLAGS)
690 # nls.m4 serial 3 (gettext-0.15)
691 dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
692 dnl This file is free software; the Free Software Foundation
693 dnl gives unlimited permission to copy and/or distribute it,
694 dnl with or without modifications, as long as this notice is preserved.
696 dnl This file can can be used in projects which are not available under
697 dnl the GNU General Public License or the GNU Library General Public
698 dnl License but which still want to provide support for the GNU gettext
700 dnl Please note that the actual code of the GNU gettext library is covered
701 dnl by the GNU Library General Public License, and the rest of the GNU
702 dnl gettext package package is covered by the GNU General Public License.
703 dnl They are *not* in the public domain.
706 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
707 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
713 AC_MSG_CHECKING([whether NLS is requested])
714 dnl Default is enabled NLS
716 [ --disable-nls do not use Native Language Support],
717 USE_NLS=$enableval, USE_NLS=yes)
718 AC_MSG_RESULT($USE_NLS)
722 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
724 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
726 # This program is free software; you can redistribute it and/or modify
727 # it under the terms of the GNU General Public License as published by
728 # the Free Software Foundation; either version 2 of the License, or
729 # (at your option) any later version.
731 # This program is distributed in the hope that it will be useful, but
732 # WITHOUT ANY WARRANTY; without even the implied warranty of
733 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
734 # General Public License for more details.
736 # You should have received a copy of the GNU General Public License
737 # along with this program; if not, write to the Free Software
738 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
740 # As a special exception to the GNU General Public License, if you
741 # distribute this file as part of a program that contains a
742 # configuration script generated by Autoconf, you may include it under
743 # the same distribution terms that you use for the rest of that program.
745 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
746 # ----------------------------------
747 AC_DEFUN([PKG_PROG_PKG_CONFIG],
748 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
749 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
750 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
751 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
752 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
754 if test -n "$PKG_CONFIG"; then
755 _pkg_min_version=m4_default([$1], [0.9.0])
756 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
757 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
765 ])# PKG_PROG_PKG_CONFIG
767 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
769 # Check to see whether a particular set of modules exists. Similar
770 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
773 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
774 # this or PKG_CHECK_MODULES is called, or make sure to call
775 # PKG_CHECK_EXISTS manually
776 # --------------------------------------------------------------
777 AC_DEFUN([PKG_CHECK_EXISTS],
778 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
779 if test -n "$PKG_CONFIG" && \
780 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
781 m4_ifval([$2], [$2], [:])
782 m4_ifvaln([$3], [else
787 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
788 # ---------------------------------------------
789 m4_define([_PKG_CONFIG],
790 [if test -n "$$1"; then
792 elif test -n "$PKG_CONFIG"; then
793 PKG_CHECK_EXISTS([$3],
794 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
801 # _PKG_SHORT_ERRORS_SUPPORTED
802 # -----------------------------
803 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
804 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
805 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
806 _pkg_short_errors_supported=yes
808 _pkg_short_errors_supported=no
810 ])# _PKG_SHORT_ERRORS_SUPPORTED
813 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
814 # [ACTION-IF-NOT-FOUND])
817 # Note that if there is a possibility the first call to
818 # PKG_CHECK_MODULES might not happen, you should be sure to include an
819 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
822 # --------------------------------------------------------------
823 AC_DEFUN([PKG_CHECK_MODULES],
824 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
825 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
826 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
829 AC_MSG_CHECKING([for $1])
831 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
832 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
834 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
835 and $1[]_LIBS to avoid the need to call pkg-config.
836 See the pkg-config man page for more details.])
838 if test $pkg_failed = yes; then
839 _PKG_SHORT_ERRORS_SUPPORTED
840 if test $_pkg_short_errors_supported = yes; then
841 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
843 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
845 # Put the nasty error message in config.log where it belongs
846 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
848 ifelse([$4], , [AC_MSG_ERROR(dnl
849 [Package requirements ($2) were not met:
853 Consider adjusting the PKG_CONFIG_PATH environment variable if you
854 installed software in a non-standard prefix.
860 elif test $pkg_failed = untried; then
861 ifelse([$4], , [AC_MSG_FAILURE(dnl
862 [The pkg-config script could not be found or is too old. Make sure it
863 is in your PATH or set the PKG_CONFIG environment variable to the full
868 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
871 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
872 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
874 ifelse([$3], , :, [$3])
876 ])# PKG_CHECK_MODULES
878 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
880 # This file is free software; the Free Software Foundation
881 # gives unlimited permission to copy and/or distribute it,
882 # with or without modifications, as long as this notice is preserved.
884 # AM_AUTOMAKE_VERSION(VERSION)
885 # ----------------------------
886 # Automake X.Y traces this macro to ensure aclocal.m4 has been
887 # generated from the m4 files accompanying Automake X.Y.
888 # (This private macro should not be called outside this file.)
889 AC_DEFUN([AM_AUTOMAKE_VERSION],
890 [am__api_version='1.11'
891 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
892 dnl require some minimum version. Point them to the right macro.
893 m4_if([$1], [1.11], [],
894 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
897 # _AM_AUTOCONF_VERSION(VERSION)
898 # -----------------------------
899 # aclocal traces this macro to find the Autoconf version.
900 # This is a private macro too. Using m4_define simplifies
901 # the logic in aclocal, which can simply ignore this definition.
902 m4_define([_AM_AUTOCONF_VERSION], [])
904 # AM_SET_CURRENT_AUTOMAKE_VERSION
905 # -------------------------------
906 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
907 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
908 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
909 [AM_AUTOMAKE_VERSION([1.11])dnl
910 m4_ifndef([AC_AUTOCONF_VERSION],
911 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
912 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
914 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
916 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
918 # This file is free software; the Free Software Foundation
919 # gives unlimited permission to copy and/or distribute it,
920 # with or without modifications, as long as this notice is preserved.
922 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
923 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
924 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
926 # Of course, Automake must honor this variable whenever it calls a
927 # tool from the auxiliary directory. The problem is that $srcdir (and
928 # therefore $ac_aux_dir as well) can be either absolute or relative,
929 # depending on how configure is run. This is pretty annoying, since
930 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
931 # source directory, any form will work fine, but in subdirectories a
932 # relative path needs to be adjusted first.
934 # $ac_aux_dir/missing
935 # fails when called from a subdirectory if $ac_aux_dir is relative
936 # $top_srcdir/$ac_aux_dir/missing
937 # fails if $ac_aux_dir is absolute,
938 # fails when called from a subdirectory in a VPATH build with
939 # a relative $ac_aux_dir
941 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
942 # are both prefixed by $srcdir. In an in-source build this is usually
943 # harmless because $srcdir is `.', but things will broke when you
944 # start a VPATH build or use an absolute $srcdir.
946 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
947 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
948 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
949 # and then we would define $MISSING as
950 # MISSING="\${SHELL} $am_aux_dir/missing"
951 # This will work as long as MISSING is not called from configure, because
952 # unfortunately $(top_srcdir) has no meaning in configure.
953 # However there are other variables, like CC, which are often used in
954 # configure, and could therefore not use this "fixed" $ac_aux_dir.
956 # Another solution, used here, is to always expand $ac_aux_dir to an
957 # absolute PATH. The drawback is that using absolute paths prevent a
958 # configured tree to be moved without reconfiguration.
960 AC_DEFUN([AM_AUX_DIR_EXPAND],
961 [dnl Rely on autoconf to set up CDPATH properly.
963 # expand $ac_aux_dir to an absolute path
964 am_aux_dir=`cd $ac_aux_dir && pwd`
967 # AM_CONDITIONAL -*- Autoconf -*-
969 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
970 # Free Software Foundation, Inc.
972 # This file is free software; the Free Software Foundation
973 # gives unlimited permission to copy and/or distribute it,
974 # with or without modifications, as long as this notice is preserved.
978 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
979 # -------------------------------------
980 # Define a conditional.
981 AC_DEFUN([AM_CONDITIONAL],
983 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
984 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
985 AC_SUBST([$1_TRUE])dnl
986 AC_SUBST([$1_FALSE])dnl
987 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
988 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
989 m4_define([_AM_COND_VALUE_$1], [$2])dnl
997 AC_CONFIG_COMMANDS_PRE(
998 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
999 AC_MSG_ERROR([[conditional "$1" was never defined.
1000 Usually this means the macro was only invoked conditionally.]])
1003 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
1004 # Free Software Foundation, Inc.
1006 # This file is free software; the Free Software Foundation
1007 # gives unlimited permission to copy and/or distribute it,
1008 # with or without modifications, as long as this notice is preserved.
1012 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1013 # written in clear, in which case automake, when reading aclocal.m4,
1014 # will think it sees a *use*, and therefore will trigger all it's
1015 # C support machinery. Also note that it means that autoscan, seeing
1016 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1019 # _AM_DEPENDENCIES(NAME)
1020 # ----------------------
1021 # See how the compiler implements dependency checking.
1022 # NAME is "CC", "CXX", "GCJ", or "OBJC".
1023 # We try a few techniques and use that to set a single cache variable.
1025 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1026 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1027 # dependency, and given that the user is not expected to run this macro,
1028 # just rely on AC_PROG_CC.
1029 AC_DEFUN([_AM_DEPENDENCIES],
1030 [AC_REQUIRE([AM_SET_DEPDIR])dnl
1031 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1032 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1033 AC_REQUIRE([AM_DEP_TRACK])dnl
1035 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1036 [$1], CXX, [depcc="$CXX" am_compiler_list=],
1037 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1038 [$1], UPC, [depcc="$UPC" am_compiler_list=],
1039 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1040 [depcc="$$1" am_compiler_list=])
1042 AC_CACHE_CHECK([dependency style of $depcc],
1043 [am_cv_$1_dependencies_compiler_type],
1044 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1045 # We make a subdir and do the tests there. Otherwise we can end up
1046 # making bogus files that we don't know about and never remove. For
1047 # instance it was reported that on HP-UX the gcc test will end up
1048 # making a dummy file named `D' -- because `-MD' means `put the output
1051 # Copy depcomp to subdir because otherwise we won't find it if we're
1052 # using a relative directory.
1053 cp "$am_depcomp" conftest.dir
1055 # We will build objects and dependencies in a subdirectory because
1056 # it helps to detect inapplicable dependency modes. For instance
1057 # both Tru64's cc and ICC support -MD to output dependencies as a
1058 # side effect of compilation, but ICC will put the dependencies in
1059 # the current directory while Tru64 will put them in the object
1063 am_cv_$1_dependencies_compiler_type=none
1064 if test "$am_compiler_list" = ""; then
1065 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1069 [case " $depcc " in #(
1070 *\ -arch\ *\ -arch\ *) am__universal=true ;;
1073 [case " $depcc " in #(
1074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
1077 for depmode in $am_compiler_list; do
1078 # Setup a source with many dependencies, because some compilers
1079 # like to wrap large dependency lists on column 80 (with \), and
1080 # we should not choose a depcomp mode which is confused by this.
1082 # We need to recreate these files for each test, as the compiler may
1083 # overwrite some of them when testing with obscure command lines.
1084 # This happens at least with the AIX C compiler.
1086 for i in 1 2 3 4 5 6; do
1087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
1088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1089 # Solaris 8's {/usr,}/bin/sh.
1090 touch sub/conftst$i.h
1092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1094 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1095 # mode. It turns out that the SunPro C++ compiler does not properly
1096 # handle `-M -o', and we need to detect this. Also, some Intel
1097 # versions had trouble with output in subdirs
1098 am__obj=sub/conftest.${OBJEXT-o}
1099 am__minus_obj="-o $am__obj"
1102 # This depmode causes a compiler race in universal mode.
1103 test "$am__universal" = false || continue
1106 # after this tag, mechanisms are not by side-effect, so they'll
1107 # only be used when explicitly requested
1108 if test "x$enable_dependency_tracking" = xyes; then
1114 msvisualcpp | msvcmsys)
1115 # This compiler won't grok `-c -o', but also, the minuso test has
1116 # not run yet. These depmodes are late enough in the game, and
1117 # so weak that their functioning should not be impacted.
1118 am__obj=conftest.${OBJEXT-o}
1123 if depmode=$depmode \
1124 source=sub/conftest.c object=$am__obj \
1125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1127 >/dev/null 2>conftest.err &&
1128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1132 # icc doesn't choke on unknown options, it will just issue warnings
1133 # or remarks (even with -Werror). So we grep stderr for any message
1134 # that says an option was ignored or not supported.
1135 # When given -MP, icc 7.0 and 7.1 complain thusly:
1136 # icc: Command line warning: ignoring option '-M'; no argument required
1137 # The diagnosis changed in icc 8.0:
1138 # icc: Command line remark: option '-MP' not supported
1139 if (grep 'ignoring option' conftest.err ||
1140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1141 am_cv_$1_dependencies_compiler_type=$depmode
1150 am_cv_$1_dependencies_compiler_type=none
1153 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1154 AM_CONDITIONAL([am__fastdep$1], [
1155 test "x$enable_dependency_tracking" != xno \
1156 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1162 # Choose a directory name for dependency files.
1163 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
1164 AC_DEFUN([AM_SET_DEPDIR],
1165 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1166 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1172 AC_DEFUN([AM_DEP_TRACK],
1173 [AC_ARG_ENABLE(dependency-tracking,
1174 [ --disable-dependency-tracking speeds up one-time build
1175 --enable-dependency-tracking do not reject slow dependency extractors])
1176 if test "x$enable_dependency_tracking" != xno; then
1177 am_depcomp="$ac_aux_dir/depcomp"
1180 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1181 AC_SUBST([AMDEPBACKSLASH])dnl
1182 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1185 # Generate code to set up dependency tracking. -*- Autoconf -*-
1187 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1188 # Free Software Foundation, Inc.
1190 # This file is free software; the Free Software Foundation
1191 # gives unlimited permission to copy and/or distribute it,
1192 # with or without modifications, as long as this notice is preserved.
1196 # _AM_OUTPUT_DEPENDENCY_COMMANDS
1197 # ------------------------------
1198 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1200 # Autoconf 2.62 quotes --file arguments for eval, but not when files
1201 # are listed without --file. Let's play safe and only enable the eval
1202 # if we detect the quoting.
1203 case $CONFIG_FILES in
1204 *\'*) eval set x "$CONFIG_FILES" ;;
1205 *) set x $CONFIG_FILES ;;
1210 # Strip MF so we end up with the name of the file.
1211 mf=`echo "$mf" | sed -e 's/:.*$//'`
1212 # Check whether this is an Automake generated Makefile or not.
1213 # We used to match only the files named `Makefile.in', but
1214 # some people rename them; so instead we look at the file content.
1215 # Grep'ing the first line is not enough: some people post-process
1216 # each Makefile.in and add a new line on top of each file to say so.
1217 # Grep'ing the whole file is not good either: AIX grep has a line
1218 # limit of 2048, but all sed's we know have understand at least 4000.
1219 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1220 dirpart=`AS_DIRNAME("$mf")`
1224 # Extract the definition of DEPDIR, am__include, and am__quote
1225 # from the Makefile without running `make'.
1226 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1227 test -z "$DEPDIR" && continue
1228 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1229 test -z "am__include" && continue
1230 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1231 # When using ansi2knr, U may be empty or an underscore; expand it
1232 U=`sed -n 's/^U = //p' < "$mf"`
1233 # Find all dependency output files, they are included files with
1234 # $(DEPDIR) in their names. We invoke sed twice because it is the
1235 # simplest approach to changing $(DEPDIR) to its actual value in the
1237 for file in `sed -n "
1238 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1239 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1240 # Make sure the directory exists.
1241 test -f "$dirpart/$file" && continue
1242 fdir=`AS_DIRNAME(["$file"])`
1243 AS_MKDIR_P([$dirpart/$fdir])
1244 # echo "creating $dirpart/$file"
1245 echo '# dummy' > "$dirpart/$file"
1249 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1252 # AM_OUTPUT_DEPENDENCY_COMMANDS
1253 # -----------------------------
1254 # This macro should only be invoked once -- use via AC_REQUIRE.
1256 # This code is only required when automatic dependency tracking
1257 # is enabled. FIXME. This creates each `.P' file that we will
1258 # need in order to bootstrap the dependency handling code.
1259 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1260 [AC_CONFIG_COMMANDS([depfiles],
1261 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1262 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1265 # Do all the work for Automake. -*- Autoconf -*-
1267 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1268 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1270 # This file is free software; the Free Software Foundation
1271 # gives unlimited permission to copy and/or distribute it,
1272 # with or without modifications, as long as this notice is preserved.
1276 # This macro actually does too much. Some checks are only needed if
1277 # your package does certain things. But this isn't really a big deal.
1279 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1280 # AM_INIT_AUTOMAKE([OPTIONS])
1281 # -----------------------------------------------
1282 # The call with PACKAGE and VERSION arguments is the old style
1283 # call (pre autoconf-2.50), which is being phased out. PACKAGE
1284 # and VERSION should now be passed to AC_INIT and removed from
1285 # the call to AM_INIT_AUTOMAKE.
1286 # We support both call styles for the transition. After
1287 # the next Automake release, Autoconf can make the AC_INIT
1288 # arguments mandatory, and then we can depend on a new Autoconf
1289 # release and drop the old call support.
1290 AC_DEFUN([AM_INIT_AUTOMAKE],
1291 [AC_PREREQ([2.62])dnl
1292 dnl Autoconf wants to disallow AM_ names. We explicitly allow
1293 dnl the ones we care about.
1294 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1295 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1296 AC_REQUIRE([AC_PROG_INSTALL])dnl
1297 if test "`cd $srcdir && pwd`" != "`pwd`"; then
1298 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1299 # is not polluted with repeated "-I."
1300 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1301 # test to see if srcdir already configured
1302 if test -f $srcdir/config.status; then
1303 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1307 # test whether we have cygpath
1308 if test -z "$CYGPATH_W"; then
1309 if (cygpath --version) >/dev/null 2>/dev/null; then
1310 CYGPATH_W='cygpath -w'
1315 AC_SUBST([CYGPATH_W])
1317 # Define the identity of the package.
1318 dnl Distinguish between old-style and new-style calls.
1320 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1321 AC_SUBST([PACKAGE], [$1])dnl
1322 AC_SUBST([VERSION], [$2])],
1323 [_AM_SET_OPTIONS([$1])dnl
1324 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1325 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1326 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1327 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1328 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1330 _AM_IF_OPTION([no-define],,
1331 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1332 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1334 # Some tools Automake needs.
1335 AC_REQUIRE([AM_SANITY_CHECK])dnl
1336 AC_REQUIRE([AC_ARG_PROGRAM])dnl
1337 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1338 AM_MISSING_PROG(AUTOCONF, autoconf)
1339 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1340 AM_MISSING_PROG(AUTOHEADER, autoheader)
1341 AM_MISSING_PROG(MAKEINFO, makeinfo)
1342 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1343 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1344 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1345 # We need awk for the "check" target. The system "awk" is bad on
1347 AC_REQUIRE([AC_PROG_AWK])dnl
1348 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1349 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1350 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1351 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1352 [_AM_PROG_TAR([v7])])])
1353 _AM_IF_OPTION([no-dependencies],,
1354 [AC_PROVIDE_IFELSE([AC_PROG_CC],
1355 [_AM_DEPENDENCIES(CC)],
1356 [define([AC_PROG_CC],
1357 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1358 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1359 [_AM_DEPENDENCIES(CXX)],
1360 [define([AC_PROG_CXX],
1361 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1362 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1363 [_AM_DEPENDENCIES(OBJC)],
1364 [define([AC_PROG_OBJC],
1365 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1367 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1368 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1369 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1370 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1371 AC_CONFIG_COMMANDS_PRE(dnl
1372 [m4_provide_if([_AM_COMPILER_EXEEXT],
1373 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1376 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1377 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1378 dnl mangled by Autoconf and run in a shell conditional statement.
1379 m4_define([_AC_COMPILER_EXEEXT],
1380 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1383 # When config.status generates a header, we must update the stamp-h file.
1384 # This file resides in the same directory as the config header
1385 # that is generated. The stamp files are numbered to have different names.
1387 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1388 # loop where config.status creates the headers, so we can generate
1389 # our stamp files there.
1390 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1391 [# Compute $1's index in $config_headers.
1394 for _am_header in $config_headers :; do
1396 $_am_arg | $_am_arg:* )
1399 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1402 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1404 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
1406 # This file is free software; the Free Software Foundation
1407 # gives unlimited permission to copy and/or distribute it,
1408 # with or without modifications, as long as this notice is preserved.
1410 # AM_PROG_INSTALL_SH
1411 # ------------------
1412 # Define $install_sh.
1413 AC_DEFUN([AM_PROG_INSTALL_SH],
1414 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1415 if test x"${install_sh}" != xset; then
1418 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1420 install_sh="\${SHELL} $am_aux_dir/install-sh"
1423 AC_SUBST(install_sh)])
1425 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1427 # This file is free software; the Free Software Foundation
1428 # gives unlimited permission to copy and/or distribute it,
1429 # with or without modifications, as long as this notice is preserved.
1433 # Check whether the underlying file-system supports filenames
1434 # with a leading dot. For instance MS-DOS doesn't.
1435 AC_DEFUN([AM_SET_LEADING_DOT],
1436 [rm -rf .tst 2>/dev/null
1437 mkdir .tst 2>/dev/null
1438 if test -d .tst; then
1443 rmdir .tst 2>/dev/null
1444 AC_SUBST([am__leading_dot])])
1446 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
1449 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1450 # Free Software Foundation, Inc.
1452 # This file is free software; the Free Software Foundation
1453 # gives unlimited permission to copy and/or distribute it,
1454 # with or without modifications, as long as this notice is preserved.
1458 # AM_MAINTAINER_MODE([DEFAULT-MODE])
1459 # ----------------------------------
1460 # Control maintainer-specific portions of Makefiles.
1461 # Default is to disable them, unless `enable' is passed literally.
1462 # For symmetry, `disable' may be passed as well. Anyway, the user
1463 # can override the default with the --enable/--disable switch.
1464 AC_DEFUN([AM_MAINTAINER_MODE],
1465 [m4_case(m4_default([$1], [disable]),
1466 [enable], [m4_define([am_maintainer_other], [disable])],
1467 [disable], [m4_define([am_maintainer_other], [enable])],
1468 [m4_define([am_maintainer_other], [enable])
1469 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1470 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
1471 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1472 AC_ARG_ENABLE([maintainer-mode],
1473 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
1474 (and sometimes confusing) to the casual installer],
1475 [USE_MAINTAINER_MODE=$enableval],
1476 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1477 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1478 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1479 MAINT=$MAINTAINER_MODE_TRUE
1480 AC_SUBST([MAINT])dnl
1484 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1486 # Check to see how 'make' treats includes. -*- Autoconf -*-
1488 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
1490 # This file is free software; the Free Software Foundation
1491 # gives unlimited permission to copy and/or distribute it,
1492 # with or without modifications, as long as this notice is preserved.
1498 # Check to see how make treats includes.
1499 AC_DEFUN([AM_MAKE_INCLUDE],
1500 [am_make=${MAKE-make}
1501 cat > confinc << 'END'
1503 @echo this is the am__doit target
1506 # If we don't find an include directive, just comment out the code.
1507 AC_MSG_CHECKING([for style of include used by $am_make])
1511 # First try GNU make style include.
1512 echo "include confinc" > confmf
1513 # Ignore all kinds of additional output from `make'.
1514 case `$am_make -s -f confmf 2> /dev/null` in #(
1515 *the\ am__doit\ target*)
1521 # Now try BSD make style include.
1522 if test "$am__include" = "#"; then
1523 echo '.include "confinc"' > confmf
1524 case `$am_make -s -f confmf 2> /dev/null` in #(
1525 *the\ am__doit\ target*)
1526 am__include=.include
1532 AC_SUBST([am__include])
1533 AC_SUBST([am__quote])
1534 AC_MSG_RESULT([$_am_result])
1535 rm -f confinc confmf
1538 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1540 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1541 # Free Software Foundation, Inc.
1543 # This file is free software; the Free Software Foundation
1544 # gives unlimited permission to copy and/or distribute it,
1545 # with or without modifications, as long as this notice is preserved.
1549 # AM_MISSING_PROG(NAME, PROGRAM)
1550 # ------------------------------
1551 AC_DEFUN([AM_MISSING_PROG],
1552 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1553 $1=${$1-"${am_missing_run}$2"}
1557 # AM_MISSING_HAS_RUN
1558 # ------------------
1559 # Define MISSING if not defined so far and test if it supports --run.
1560 # If it does, set am_missing_run to use it, otherwise, to nothing.
1561 AC_DEFUN([AM_MISSING_HAS_RUN],
1562 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1563 AC_REQUIRE_AUX_FILE([missing])dnl
1564 if test x"${MISSING+set}" != xset; then
1567 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1569 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1572 # Use eval to expand $SHELL
1573 if eval "$MISSING --run true"; then
1574 am_missing_run="$MISSING --run "
1577 AC_MSG_WARN([`missing' script is too old or missing])
1581 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583 # This file is free software; the Free Software Foundation
1584 # gives unlimited permission to copy and/or distribute it,
1585 # with or without modifications, as long as this notice is preserved.
1589 # Check for `mkdir -p'.
1590 AC_DEFUN([AM_PROG_MKDIR_P],
1591 [AC_PREREQ([2.60])dnl
1592 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1593 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1594 dnl while keeping a definition of mkdir_p for backward compatibility.
1595 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1596 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1597 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1598 dnl adjustment using top_builddir (which is defined more often than
1600 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1602 [[\\/$]]* | ?:[[\\/]]*) ;;
1603 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1607 # Helper functions for option handling. -*- Autoconf -*-
1609 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
1611 # This file is free software; the Free Software Foundation
1612 # gives unlimited permission to copy and/or distribute it,
1613 # with or without modifications, as long as this notice is preserved.
1617 # _AM_MANGLE_OPTION(NAME)
1618 # -----------------------
1619 AC_DEFUN([_AM_MANGLE_OPTION],
1620 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1622 # _AM_SET_OPTION(NAME)
1623 # ------------------------------
1624 # Set option NAME. Presently that only means defining a flag for this option.
1625 AC_DEFUN([_AM_SET_OPTION],
1626 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1628 # _AM_SET_OPTIONS(OPTIONS)
1629 # ----------------------------------
1630 # OPTIONS is a space-separated list of Automake options.
1631 AC_DEFUN([_AM_SET_OPTIONS],
1632 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1634 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1635 # -------------------------------------------
1636 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1637 AC_DEFUN([_AM_IF_OPTION],
1638 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1640 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1642 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1643 # Free Software Foundation, Inc.
1645 # This file is free software; the Free Software Foundation
1646 # gives unlimited permission to copy and/or distribute it,
1647 # with or without modifications, as long as this notice is preserved.
1653 AC_DEFUN([AM_SANITY_CHECK],
1654 [AC_MSG_CHECKING([whether build environment is sane])
1657 echo timestamp > conftest.file
1658 # Reject unsafe characters in $srcdir or the absolute working directory
1659 # name. Accept space and tab only in the latter.
1663 *[[\\\"\#\$\&\'\`$am_lf]]*)
1664 AC_MSG_ERROR([unsafe absolute working directory name]);;
1667 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1668 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1671 # Do `set' in a subshell so we don't clobber the current shell's
1672 # arguments. Must try -L first in case configure is actually a
1673 # symlink; some systems play weird games with the mod time of symlinks
1674 # (eg FreeBSD returns the mod time of the symlink's containing
1677 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1678 if test "$[*]" = "X"; then
1680 set X `ls -t "$srcdir/configure" conftest.file`
1683 if test "$[*]" != "X $srcdir/configure conftest.file" \
1684 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1686 # If neither matched, then we have a broken ls. This can happen
1687 # if, for instance, CONFIG_SHELL is bash and it inherits a
1688 # broken ls alias from the environment. This has actually
1689 # happened. Such a system could not be considered "sane".
1690 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1691 alias in your environment])
1694 test "$[2]" = conftest.file
1700 AC_MSG_ERROR([newly created file is older than distributed files!
1701 Check your system clock])
1703 AC_MSG_RESULT(yes)])
1705 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1707 # This file is free software; the Free Software Foundation
1708 # gives unlimited permission to copy and/or distribute it,
1709 # with or without modifications, as long as this notice is preserved.
1711 # AM_PROG_INSTALL_STRIP
1712 # ---------------------
1713 # One issue with vendor `install' (even GNU) is that you can't
1714 # specify the program used to strip binaries. This is especially
1715 # annoying in cross-compiling environments, where the build's strip
1716 # is unlikely to handle the host's binaries.
1717 # Fortunately install-sh will honor a STRIPPROG variable, so we
1718 # always use install-sh in `make install-strip', and initialize
1719 # STRIPPROG with the value of the STRIP variable (set by the user).
1720 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1721 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1722 # Installed binaries are usually stripped using `strip' when the user
1723 # run `make install-strip'. However `strip' might not be the right
1724 # tool to use in cross-compilation environments, therefore Automake
1725 # will honor the `STRIP' environment variable to overrule this program.
1726 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1727 if test "$cross_compiling" != no; then
1728 AC_CHECK_TOOL([STRIP], [strip], :)
1730 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1731 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1733 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1735 # This file is free software; the Free Software Foundation
1736 # gives unlimited permission to copy and/or distribute it,
1737 # with or without modifications, as long as this notice is preserved.
1741 # _AM_SUBST_NOTMAKE(VARIABLE)
1742 # ---------------------------
1743 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1744 # This macro is traced by Automake.
1745 AC_DEFUN([_AM_SUBST_NOTMAKE])
1747 # AM_SUBST_NOTMAKE(VARIABLE)
1748 # ---------------------------
1749 # Public sister of _AM_SUBST_NOTMAKE.
1750 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1752 # Check how to create a tarball. -*- Autoconf -*-
1754 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1756 # This file is free software; the Free Software Foundation
1757 # gives unlimited permission to copy and/or distribute it,
1758 # with or without modifications, as long as this notice is preserved.
1762 # _AM_PROG_TAR(FORMAT)
1763 # --------------------
1764 # Check how to create a tarball in format FORMAT.
1765 # FORMAT should be one of `v7', `ustar', or `pax'.
1767 # Substitute a variable $(am__tar) that is a command
1768 # writing to stdout a FORMAT-tarball containing the directory
1770 # tardir=directory && $(am__tar) > result.tar
1772 # Substitute a variable $(am__untar) that extract such
1773 # a tarball read from stdin.
1774 # $(am__untar) < result.tar
1775 AC_DEFUN([_AM_PROG_TAR],
1776 [# Always define AMTAR for backward compatibility.
1777 AM_MISSING_PROG([AMTAR], [tar])
1779 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1780 [m4_case([$1], [ustar],, [pax],,
1781 [m4_fatal([Unknown tar format])])
1782 AC_MSG_CHECKING([how to create a $1 tar archive])
1783 # Loop over all known methods to create a tar archive until one works.
1784 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1785 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1786 # Do not fold the above two line into one, because Tru64 sh and
1787 # Solaris sh will not grok spaces in the rhs of `-'.
1788 for _am_tool in $_am_tools
1792 for _am_tar in tar gnutar gtar;
1794 AM_RUN_LOG([$_am_tar --version]) && break
1796 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1797 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1798 am__untar="$_am_tar -xf -"
1801 # Must skip GNU tar: if it does not support --format= it doesn't create
1802 # ustar tarball either.
1803 (tar --version) >/dev/null 2>&1 && continue
1804 am__tar='tar chf - "$$tardir"'
1805 am__tar_='tar chf - "$tardir"'
1806 am__untar='tar xf -'
1809 am__tar='pax -L -x $1 -w "$$tardir"'
1810 am__tar_='pax -L -x $1 -w "$tardir"'
1814 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1815 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1816 am__untar='cpio -i -H $1 -d'
1825 # If the value was cached, stop now. We just wanted to have am__tar
1826 # and am__untar set.
1827 test -n "${am_cv_prog_tar_$1}" && break
1829 # tar/untar a dummy directory, and stop if the command works
1832 echo GrepMe > conftest.dir/file
1833 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1835 if test -s conftest.tar; then
1836 AM_RUN_LOG([$am__untar <conftest.tar])
1837 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1842 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1843 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1845 AC_SUBST([am__untar])
1848 m4_include([m4/gnome-doc-utils.m4])
1849 m4_include([m4/intltool.m4])
1850 m4_include([m4/libtool.m4])
1851 m4_include([m4/ltoptions.m4])
1852 m4_include([m4/ltsugar.m4])
1853 m4_include([m4/ltversion.m4])
1854 m4_include([m4/lt~obsolete.m4])