Updated efl-launcher to netbook-launcher-efl 0.3.3
[efl-launcher.git] / efl-launcher / aclocal.m4
blob99e083bb84ba65b035c395c4de13f3de1de59783
1 # generated automatically by aclocal 1.11.1 -*- 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
12 # PARTICULAR PURPOSE.
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.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
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'.])])
22 dnl AM_GCONF_SOURCE_2
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
27 dnl
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`
33   else
34     GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
35   fi
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'
47   fi
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]),
60      [case ${enableval} in
61        yes|no) ;;
62        *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
63       esac])
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
98 AC_PREREQ(2.53)
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.
112 # GLIB_LC_MESSAGES
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.])
123     fi
124   fi])
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,
135 [case "[$]$1" in
136   /*)
137   ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
138   ;;
139   *)
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
144       if [$3]; then
145         ac_cv_path_$1="$ac_dir/$ac_word"
146         break
147       fi
148     fi
149   done
150   IFS="$ac_save_ifs"
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"
154 ])dnl
155   ;;
156 esac])dnl
157 $1="$ac_cv_path_$1"
158 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
159   AC_MSG_RESULT([$]$1)
160 else
161   AC_MSG_RESULT(no)
163 AC_SUBST($1)dnl
166 # GLIB_WITH_NLS
167 #-----------------
168 glib_DEFUN([GLIB_WITH_NLS],
169   dnl NLS is obligatory
170   [USE_NLS=yes
171     AC_SUBST(USE_NLS)
173     gt_cv_have_gettext=no
175     CATOBJEXT=NONE
176     XGETTEXT=:
177     INTLLIBS=
179     AC_CHECK_HEADER(libintl.h,
180      [gt_cv_func_dgettext_libintl="no"
181       libintl_extra_libs=""
183       #
184       # First check in libc
185       #
186       AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
187         [AC_TRY_LINK([
188 #include <libintl.h>
190          [return !ngettext ("","", 1)],
191           gt_cv_func_ngettext_libc=yes,
192           gt_cv_func_ngettext_libc=no)
193         ])
194   
195       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
196               AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
197                 [AC_TRY_LINK([
198 #include <libintl.h>
200                   [return !dgettext ("","")],
201                   gt_cv_func_dgettext_libc=yes,
202                   gt_cv_func_dgettext_libc=no)
203                 ])
204       fi
205   
206       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
207         AC_CHECK_FUNCS(bind_textdomain_codeset)
208       fi
210       #
211       # If we don't have everything we want, check in libintl
212       #
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
216         
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])
224           AC_MSG_RESULT([])
225           AC_CHECK_LIB(intl, ngettext,
226                 [AC_CHECK_LIB(intl, dcgettext,
227                        [gt_cv_func_dgettext_libintl=yes
228                         libintl_extra_libs=-liconv],
229                         :,-liconv)],
230                 :,-liconv)
231         fi
233         #
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
237         #
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
247           else
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
251             fi
252           fi
253         fi
254       fi
256       if test "$gt_cv_func_dgettext_libc" = "yes" \
257         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
258         gt_cv_have_gettext=yes
259       fi
260   
261       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
262         INTLLIBS="-lintl $libintl_extra_libs"
263       fi
264   
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)
274           MSGFMT_OPTS=
275           AC_MSG_CHECKING([if msgfmt accepts -c])
276           GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
277 msgid ""
278 msgstr ""
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],
293             [CATOBJEXT=.gmo 
294              DATADIRNAME=share],
295             [case $host in
296             *-*-solaris*)
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,
303               [CATOBJEXT=.gmo 
304                DATADIRNAME=share],
305               [CATOBJEXT=.mo
306                DATADIRNAME=lib])
307             ;;
308             *)
309             CATOBJEXT=.mo
310             DATADIRNAME=lib
311             ;;
312             esac])
313           LIBS="$glib_save_LIBS"
314           INSTOBJEXT=.mo
315         else
316           gt_cv_have_gettext=no
317         fi
318       fi
319     ])
321     if test "$gt_cv_have_gettext" = "yes" ; then
322       AC_DEFINE(ENABLE_NLS, 1,
323         [always defined to indicate that i18n is enabled])
324     fi
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
331         : ;
332       else
333         AC_MSG_RESULT(
334           [found xgettext program is not GNU xgettext; ignore it])
335         XGETTEXT=":"
336       fi
337     fi
339     # We need to process the po/ directory.
340     POSUB=po
342     AC_OUTPUT_COMMANDS(
343       [case "$CONFIG_FILES" in *po/Makefile.in*)
344         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
345       esac])
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
349     dnl in configure.ac.
350     for lang in $ALL_LINGUAS; do
351       GMOFILES="$GMOFILES $lang.gmo"
352       POFILES="$POFILES $lang.po"
353     done
355     dnl Make all variables we use known to autoconf.
356     AC_SUBST(CATALOGS)
357     AC_SUBST(CATOBJEXT)
358     AC_SUBST(DATADIRNAME)
359     AC_SUBST(GMOFILES)
360     AC_SUBST(INSTOBJEXT)
361     AC_SUBST(INTLLIBS)
362     AC_SUBST(PO_IN_DATADIR_TRUE)
363     AC_SUBST(PO_IN_DATADIR_FALSE)
364     AC_SUBST(POFILES)
365     AC_SUBST(POSUB)
366   ])
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 
376 # glib-gettextize.
378 glib_DEFUN([GLIB_GNU_GETTEXT],
379   [AC_REQUIRE([AC_PROG_CC])dnl
380    AC_REQUIRE([AC_HEADER_STDC])dnl
381    
382    GLIB_LC_MESSAGES
383    GLIB_WITH_NLS
385    if test "$gt_cv_have_gettext" = "yes"; then
386      if test "x$ALL_LINGUAS" = "x"; then
387        LINGUAS=
388      else
389        AC_MSG_CHECKING(for catalogs to be installed)
390        NEW_LINGUAS=
391        for presentlang in $ALL_LINGUAS; do
392          useit=no
393          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
394            desiredlanguages="$LINGUAS"
395          else
396            desiredlanguages="$ALL_LINGUAS"
397          fi
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;;
406            esac
407          done
408          if test $useit = yes; then
409            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
410          fi
411        done
412        LINGUAS=$NEW_LINGUAS
413        AC_MSG_RESULT($LINGUAS)
414      fi
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
419      fi
420    fi
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.
425    MKINSTALLDIRS=
426    if test -n "$ac_aux_dir"; then
427      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
428    fi
429    if test -z "$MKINSTALLDIRS"; then
430      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
431    fi
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/"
440      else
441        posrcprefix="../$srcdir/"
442      fi
443    else
444      posrcprefix="../"
445    fi
446    rm -f po/POTFILES
447    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
448         < $srcdir/po/POTFILES.in > po/POTFILES
449   ])
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"`
465 else
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_ac,[],[
479 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
480 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
481 ])dnl
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
491 _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
497 fi])
500 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
501 # serial 1 (pkg-config-0.24)
503 # Copyright Â© 2004 Scott James Remnant <scott@netsplit.com>.
505 # This program is free software; you can redistribute it and/or modify
506 # it under the terms of the GNU General Public License as published by
507 # the Free Software Foundation; either version 2 of the License, or
508 # (at your option) any later version.
510 # This program is distributed in the hope that it will be useful, but
511 # WITHOUT ANY WARRANTY; without even the implied warranty of
512 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
513 # General Public License for more details.
515 # You should have received a copy of the GNU General Public License
516 # along with this program; if not, write to the Free Software
517 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
519 # As a special exception to the GNU General Public License, if you
520 # distribute this file as part of a program that contains a
521 # configuration script generated by Autoconf, you may include it under
522 # the same distribution terms that you use for the rest of that program.
524 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
525 # ----------------------------------
526 AC_DEFUN([PKG_PROG_PKG_CONFIG],
527 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
528 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
529 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
530 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
531 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
533 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
534         AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
536 if test -n "$PKG_CONFIG"; then
537         _pkg_min_version=m4_default([$1], [0.9.0])
538         AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
539         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
540                 AC_MSG_RESULT([yes])
541         else
542                 AC_MSG_RESULT([no])
543                 PKG_CONFIG=""
544         fi
545 fi[]dnl
546 ])# PKG_PROG_PKG_CONFIG
548 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
550 # Check to see whether a particular set of modules exists.  Similar
551 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
553 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
554 # only at the first occurence in configure.ac, so if the first place
555 # it's called might be skipped (such as if it is within an "if", you
556 # have to call PKG_CHECK_EXISTS manually
557 # --------------------------------------------------------------
558 AC_DEFUN([PKG_CHECK_EXISTS],
559 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
560 if test -n "$PKG_CONFIG" && \
561     AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
562   m4_default([$2], [:])
563 m4_ifvaln([$3], [else
564   $3])dnl
565 fi])
567 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
568 # ---------------------------------------------
569 m4_define([_PKG_CONFIG],
570 [if test -n "$$1"; then
571     pkg_cv_[]$1="$$1"
572  elif test -n "$PKG_CONFIG"; then
573     PKG_CHECK_EXISTS([$3],
574                      [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
575                      [pkg_failed=yes])
576  else
577     pkg_failed=untried
578 fi[]dnl
579 ])# _PKG_CONFIG
581 # _PKG_SHORT_ERRORS_SUPPORTED
582 # -----------------------------
583 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
584 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
585 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
586         _pkg_short_errors_supported=yes
587 else
588         _pkg_short_errors_supported=no
589 fi[]dnl
590 ])# _PKG_SHORT_ERRORS_SUPPORTED
593 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
594 # [ACTION-IF-NOT-FOUND])
597 # Note that if there is a possibility the first call to
598 # PKG_CHECK_MODULES might not happen, you should be sure to include an
599 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
602 # --------------------------------------------------------------
603 AC_DEFUN([PKG_CHECK_MODULES],
604 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
605 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
606 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
608 pkg_failed=no
609 AC_MSG_CHECKING([for $1])
611 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
612 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
614 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
615 and $1[]_LIBS to avoid the need to call pkg-config.
616 See the pkg-config man page for more details.])
618 if test $pkg_failed = yes; then
619         AC_MSG_RESULT([no])
620         _PKG_SHORT_ERRORS_SUPPORTED
621         if test $_pkg_short_errors_supported = yes; then
622                 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
623         else 
624                 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
625         fi
626         # Put the nasty error message in config.log where it belongs
627         echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
629         m4_default([$4], [AC_MSG_ERROR(
630 [Package requirements ($2) were not met:
632 $$1_PKG_ERRORS
634 Consider adjusting the PKG_CONFIG_PATH environment variable if you
635 installed software in a non-standard prefix.
637 _PKG_TEXT])[]dnl
638         ])
639 elif test $pkg_failed = untried; then
640         AC_MSG_RESULT([no])
641         m4_default([$4], [AC_MSG_FAILURE(
642 [The pkg-config script could not be found or is too old.  Make sure it
643 is in your PATH or set the PKG_CONFIG environment variable to the full
644 path to pkg-config.
646 _PKG_TEXT
648 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
649         ])
650 else
651         $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
652         $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
653         AC_MSG_RESULT([yes])
654         $3
655 fi[]dnl
656 ])# PKG_CHECK_MODULES
658 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
660 # This file is free software; the Free Software Foundation
661 # gives unlimited permission to copy and/or distribute it,
662 # with or without modifications, as long as this notice is preserved.
664 # AM_AUTOMAKE_VERSION(VERSION)
665 # ----------------------------
666 # Automake X.Y traces this macro to ensure aclocal.m4 has been
667 # generated from the m4 files accompanying Automake X.Y.
668 # (This private macro should not be called outside this file.)
669 AC_DEFUN([AM_AUTOMAKE_VERSION],
670 [am__api_version='1.11'
671 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
672 dnl require some minimum version.  Point them to the right macro.
673 m4_if([$1], [1.11.1], [],
674       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
677 # _AM_AUTOCONF_VERSION(VERSION)
678 # -----------------------------
679 # aclocal traces this macro to find the Autoconf version.
680 # This is a private macro too.  Using m4_define simplifies
681 # the logic in aclocal, which can simply ignore this definition.
682 m4_define([_AM_AUTOCONF_VERSION], [])
684 # AM_SET_CURRENT_AUTOMAKE_VERSION
685 # -------------------------------
686 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
687 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
688 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
689 [AM_AUTOMAKE_VERSION([1.11.1])dnl
690 m4_ifndef([AC_AUTOCONF_VERSION],
691   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
692 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
694 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
696 # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
698 # This file is free software; the Free Software Foundation
699 # gives unlimited permission to copy and/or distribute it,
700 # 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.
742 AC_PREREQ([2.50])dnl
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.
756 # serial 9
758 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
759 # -------------------------------------
760 # Define a conditional.
761 AC_DEFUN([AM_CONDITIONAL],
762 [AC_PREREQ(2.52)dnl
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
770 if $2; then
771   $1_TRUE=
772   $1_FALSE='#'
773 else
774   $1_TRUE='#'
775   $1_FALSE=
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.]])
781 fi])])
783 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
784 # 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.
790 # serial 10
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
829   # in D'.
830   mkdir conftest.dir
831   # Copy depcomp to subdir because otherwise we won't find it if we're
832   # using a relative directory.
833   cp "$am_depcomp" conftest.dir
834   cd conftest.dir
835   # We will build objects and dependencies in a subdirectory because
836   # it helps to detect inapplicable dependency modes.  For instance
837   # both Tru64's cc and ICC support -MD to output dependencies as a
838   # side effect of compilation, but ICC will put the dependencies in
839   # the current directory while Tru64 will put them in the object
840   # directory.
841   mkdir sub
843   am_cv_$1_dependencies_compiler_type=none
844   if test "$am_compiler_list" = ""; then
845      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
846   fi
847   am__universal=false
848   m4_case([$1], [CC],
849     [case " $depcc " in #(
850      *\ -arch\ *\ -arch\ *) am__universal=true ;;
851      esac],
852     [CXX],
853     [case " $depcc " in #(
854      *\ -arch\ *\ -arch\ *) am__universal=true ;;
855      esac])
857   for depmode in $am_compiler_list; do
858     # Setup a source with many dependencies, because some compilers
859     # like to wrap large dependency lists on column 80 (with \), and
860     # we should not choose a depcomp mode which is confused by this.
861     #
862     # We need to recreate these files for each test, as the compiler may
863     # overwrite some of them when testing with obscure command lines.
864     # This happens at least with the AIX C compiler.
865     : > sub/conftest.c
866     for i in 1 2 3 4 5 6; do
867       echo '#include "conftst'$i'.h"' >> sub/conftest.c
868       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
869       # Solaris 8's {/usr,}/bin/sh.
870       touch sub/conftst$i.h
871     done
872     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
874     # We check with `-c' and `-o' for the sake of the "dashmstdout"
875     # mode.  It turns out that the SunPro C++ compiler does not properly
876     # handle `-M -o', and we need to detect this.  Also, some Intel
877     # versions had trouble with output in subdirs
878     am__obj=sub/conftest.${OBJEXT-o}
879     am__minus_obj="-o $am__obj"
880     case $depmode in
881     gcc)
882       # This depmode causes a compiler race in universal mode.
883       test "$am__universal" = false || continue
884       ;;
885     nosideeffect)
886       # after this tag, mechanisms are not by side-effect, so they'll
887       # only be used when explicitly requested
888       if test "x$enable_dependency_tracking" = xyes; then
889         continue
890       else
891         break
892       fi
893       ;;
894     msvisualcpp | msvcmsys)
895       # This compiler won't grok `-c -o', but also, the minuso test has
896       # not run yet.  These depmodes are late enough in the game, and
897       # so weak that their functioning should not be impacted.
898       am__obj=conftest.${OBJEXT-o}
899       am__minus_obj=
900       ;;
901     none) break ;;
902     esac
903     if depmode=$depmode \
904        source=sub/conftest.c object=$am__obj \
905        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
906        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
907          >/dev/null 2>conftest.err &&
908        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
909        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
910        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
911        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
912       # icc doesn't choke on unknown options, it will just issue warnings
913       # or remarks (even with -Werror).  So we grep stderr for any message
914       # that says an option was ignored or not supported.
915       # When given -MP, icc 7.0 and 7.1 complain thusly:
916       #   icc: Command line warning: ignoring option '-M'; no argument required
917       # The diagnosis changed in icc 8.0:
918       #   icc: Command line remark: option '-MP' not supported
919       if (grep 'ignoring option' conftest.err ||
920           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
921         am_cv_$1_dependencies_compiler_type=$depmode
922         break
923       fi
924     fi
925   done
927   cd ..
928   rm -rf conftest.dir
929 else
930   am_cv_$1_dependencies_compiler_type=none
933 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
934 AM_CONDITIONAL([am__fastdep$1], [
935   test "x$enable_dependency_tracking" != xno \
936   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
940 # AM_SET_DEPDIR
941 # -------------
942 # Choose a directory name for dependency files.
943 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
944 AC_DEFUN([AM_SET_DEPDIR],
945 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
946 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
950 # AM_DEP_TRACK
951 # ------------
952 AC_DEFUN([AM_DEP_TRACK],
953 [AC_ARG_ENABLE(dependency-tracking,
954 [  --disable-dependency-tracking  speeds up one-time build
955   --enable-dependency-tracking   do not reject slow dependency extractors])
956 if test "x$enable_dependency_tracking" != xno; then
957   am_depcomp="$ac_aux_dir/depcomp"
958   AMDEPBACKSLASH='\'
960 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
961 AC_SUBST([AMDEPBACKSLASH])dnl
962 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
965 # Generate code to set up dependency tracking.              -*- Autoconf -*-
967 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
968 # Free Software Foundation, Inc.
970 # This file is free software; the Free Software Foundation
971 # gives unlimited permission to copy and/or distribute it,
972 # with or without modifications, as long as this notice is preserved.
974 #serial 5
976 # _AM_OUTPUT_DEPENDENCY_COMMANDS
977 # ------------------------------
978 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
980   # Autoconf 2.62 quotes --file arguments for eval, but not when files
981   # are listed without --file.  Let's play safe and only enable the eval
982   # if we detect the quoting.
983   case $CONFIG_FILES in
984   *\'*) eval set x "$CONFIG_FILES" ;;
985   *)   set x $CONFIG_FILES ;;
986   esac
987   shift
988   for mf
989   do
990     # Strip MF so we end up with the name of the file.
991     mf=`echo "$mf" | sed -e 's/:.*$//'`
992     # Check whether this is an Automake generated Makefile or not.
993     # We used to match only the files named `Makefile.in', but
994     # some people rename them; so instead we look at the file content.
995     # Grep'ing the first line is not enough: some people post-process
996     # each Makefile.in and add a new line on top of each file to say so.
997     # Grep'ing the whole file is not good either: AIX grep has a line
998     # limit of 2048, but all sed's we know have understand at least 4000.
999     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1000       dirpart=`AS_DIRNAME("$mf")`
1001     else
1002       continue
1003     fi
1004     # Extract the definition of DEPDIR, am__include, and am__quote
1005     # from the Makefile without running `make'.
1006     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1007     test -z "$DEPDIR" && continue
1008     am__include=`sed -n 's/^am__include = //p' < "$mf"`
1009     test -z "am__include" && continue
1010     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1011     # When using ansi2knr, U may be empty or an underscore; expand it
1012     U=`sed -n 's/^U = //p' < "$mf"`
1013     # Find all dependency output files, they are included files with
1014     # $(DEPDIR) in their names.  We invoke sed twice because it is the
1015     # simplest approach to changing $(DEPDIR) to its actual value in the
1016     # expansion.
1017     for file in `sed -n "
1018       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1019          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1020       # Make sure the directory exists.
1021       test -f "$dirpart/$file" && continue
1022       fdir=`AS_DIRNAME(["$file"])`
1023       AS_MKDIR_P([$dirpart/$fdir])
1024       # echo "creating $dirpart/$file"
1025       echo '# dummy' > "$dirpart/$file"
1026     done
1027   done
1029 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1032 # AM_OUTPUT_DEPENDENCY_COMMANDS
1033 # -----------------------------
1034 # This macro should only be invoked once -- use via AC_REQUIRE.
1036 # This code is only required when automatic dependency tracking
1037 # is enabled.  FIXME.  This creates each `.P' file that we will
1038 # need in order to bootstrap the dependency handling code.
1039 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1040 [AC_CONFIG_COMMANDS([depfiles],
1041      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1042      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1045 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1046 # Free Software Foundation, Inc.
1048 # This file is free software; the Free Software Foundation
1049 # gives unlimited permission to copy and/or distribute it,
1050 # with or without modifications, as long as this notice is preserved.
1052 # serial 8
1054 # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
1055 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1057 # Do all the work for Automake.                             -*- Autoconf -*-
1059 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1060 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1062 # This file is free software; the Free Software Foundation
1063 # gives unlimited permission to copy and/or distribute it,
1064 # with or without modifications, as long as this notice is preserved.
1066 # serial 16
1068 # This macro actually does too much.  Some checks are only needed if
1069 # your package does certain things.  But this isn't really a big deal.
1071 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1072 # AM_INIT_AUTOMAKE([OPTIONS])
1073 # -----------------------------------------------
1074 # The call with PACKAGE and VERSION arguments is the old style
1075 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
1076 # and VERSION should now be passed to AC_INIT and removed from
1077 # the call to AM_INIT_AUTOMAKE.
1078 # We support both call styles for the transition.  After
1079 # the next Automake release, Autoconf can make the AC_INIT
1080 # arguments mandatory, and then we can depend on a new Autoconf
1081 # release and drop the old call support.
1082 AC_DEFUN([AM_INIT_AUTOMAKE],
1083 [AC_PREREQ([2.62])dnl
1084 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
1085 dnl the ones we care about.
1086 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1087 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1088 AC_REQUIRE([AC_PROG_INSTALL])dnl
1089 if test "`cd $srcdir && pwd`" != "`pwd`"; then
1090   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1091   # is not polluted with repeated "-I."
1092   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1093   # test to see if srcdir already configured
1094   if test -f $srcdir/config.status; then
1095     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1096   fi
1099 # test whether we have cygpath
1100 if test -z "$CYGPATH_W"; then
1101   if (cygpath --version) >/dev/null 2>/dev/null; then
1102     CYGPATH_W='cygpath -w'
1103   else
1104     CYGPATH_W=echo
1105   fi
1107 AC_SUBST([CYGPATH_W])
1109 # Define the identity of the package.
1110 dnl Distinguish between old-style and new-style calls.
1111 m4_ifval([$2],
1112 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1113  AC_SUBST([PACKAGE], [$1])dnl
1114  AC_SUBST([VERSION], [$2])],
1115 [_AM_SET_OPTIONS([$1])dnl
1116 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1117 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1118   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1119  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1120  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1122 _AM_IF_OPTION([no-define],,
1123 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1124  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1126 # Some tools Automake needs.
1127 AC_REQUIRE([AM_SANITY_CHECK])dnl
1128 AC_REQUIRE([AC_ARG_PROGRAM])dnl
1129 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1130 AM_MISSING_PROG(AUTOCONF, autoconf)
1131 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1132 AM_MISSING_PROG(AUTOHEADER, autoheader)
1133 AM_MISSING_PROG(MAKEINFO, makeinfo)
1134 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1135 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1136 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1137 # We need awk for the "check" target.  The system "awk" is bad on
1138 # some platforms.
1139 AC_REQUIRE([AC_PROG_AWK])dnl
1140 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1141 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1142 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1143               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1144                              [_AM_PROG_TAR([v7])])])
1145 _AM_IF_OPTION([no-dependencies],,
1146 [AC_PROVIDE_IFELSE([AC_PROG_CC],
1147                   [_AM_DEPENDENCIES(CC)],
1148                   [define([AC_PROG_CC],
1149                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1150 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1151                   [_AM_DEPENDENCIES(CXX)],
1152                   [define([AC_PROG_CXX],
1153                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1154 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1155                   [_AM_DEPENDENCIES(OBJC)],
1156                   [define([AC_PROG_OBJC],
1157                           defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1159 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1160 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1161 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
1162 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1163 AC_CONFIG_COMMANDS_PRE(dnl
1164 [m4_provide_if([_AM_COMPILER_EXEEXT],
1165   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1168 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
1169 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1170 dnl mangled by Autoconf and run in a shell conditional statement.
1171 m4_define([_AC_COMPILER_EXEEXT],
1172 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1175 # When config.status generates a header, we must update the stamp-h file.
1176 # This file resides in the same directory as the config header
1177 # that is generated.  The stamp files are numbered to have different names.
1179 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1180 # loop where config.status creates the headers, so we can generate
1181 # our stamp files there.
1182 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1183 [# Compute $1's index in $config_headers.
1184 _am_arg=$1
1185 _am_stamp_count=1
1186 for _am_header in $config_headers :; do
1187   case $_am_header in
1188     $_am_arg | $_am_arg:* )
1189       break ;;
1190     * )
1191       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1192   esac
1193 done
1194 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1196 # Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
1198 # This file is free software; the Free Software Foundation
1199 # gives unlimited permission to copy and/or distribute it,
1200 # with or without modifications, as long as this notice is preserved.
1202 # AM_PROG_INSTALL_SH
1203 # ------------------
1204 # Define $install_sh.
1205 AC_DEFUN([AM_PROG_INSTALL_SH],
1206 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1207 if test x"${install_sh}" != xset; then
1208   case $am_aux_dir in
1209   *\ * | *\     *)
1210     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1211   *)
1212     install_sh="\${SHELL} $am_aux_dir/install-sh"
1213   esac
1215 AC_SUBST(install_sh)])
1217 # Copyright (C) 2003, 2005  Free Software Foundation, Inc.
1219 # This file is free software; the Free Software Foundation
1220 # gives unlimited permission to copy and/or distribute it,
1221 # with or without modifications, as long as this notice is preserved.
1223 # serial 2
1225 # Check whether the underlying file-system supports filenames
1226 # with a leading dot.  For instance MS-DOS doesn't.
1227 AC_DEFUN([AM_SET_LEADING_DOT],
1228 [rm -rf .tst 2>/dev/null
1229 mkdir .tst 2>/dev/null
1230 if test -d .tst; then
1231   am__leading_dot=.
1232 else
1233   am__leading_dot=_
1235 rmdir .tst 2>/dev/null
1236 AC_SUBST([am__leading_dot])])
1238 # Check to see how 'make' treats includes.                  -*- Autoconf -*-
1240 # Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
1242 # This file is free software; the Free Software Foundation
1243 # gives unlimited permission to copy and/or distribute it,
1244 # with or without modifications, as long as this notice is preserved.
1246 # serial 4
1248 # AM_MAKE_INCLUDE()
1249 # -----------------
1250 # Check to see how make treats includes.
1251 AC_DEFUN([AM_MAKE_INCLUDE],
1252 [am_make=${MAKE-make}
1253 cat > confinc << 'END'
1254 am__doit:
1255         @echo this is the am__doit target
1256 .PHONY: am__doit
1258 # If we don't find an include directive, just comment out the code.
1259 AC_MSG_CHECKING([for style of include used by $am_make])
1260 am__include="#"
1261 am__quote=
1262 _am_result=none
1263 # First try GNU make style include.
1264 echo "include confinc" > confmf
1265 # Ignore all kinds of additional output from `make'.
1266 case `$am_make -s -f confmf 2> /dev/null` in #(
1267 *the\ am__doit\ target*)
1268   am__include=include
1269   am__quote=
1270   _am_result=GNU
1271   ;;
1272 esac
1273 # Now try BSD make style include.
1274 if test "$am__include" = "#"; then
1275    echo '.include "confinc"' > confmf
1276    case `$am_make -s -f confmf 2> /dev/null` in #(
1277    *the\ am__doit\ target*)
1278      am__include=.include
1279      am__quote="\""
1280      _am_result=BSD
1281      ;;
1282    esac
1284 AC_SUBST([am__include])
1285 AC_SUBST([am__quote])
1286 AC_MSG_RESULT([$_am_result])
1287 rm -f confinc confmf
1290 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
1291 # Free Software Foundation, Inc.
1293 # This file is free software; the Free Software Foundation
1294 # gives unlimited permission to copy and/or distribute it,
1295 # with or without modifications, as long as this notice is preserved.
1297 # serial 6
1299 # AM_PROG_CC_C_O
1300 # --------------
1301 # Like AC_PROG_CC_C_O, but changed for automake.
1302 AC_DEFUN([AM_PROG_CC_C_O],
1303 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
1304 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1305 AC_REQUIRE_AUX_FILE([compile])dnl
1306 # FIXME: we rely on the cache variable name because
1307 # there is no other way.
1308 set dummy $CC
1309 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1310 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1311 if test "$am_t" != yes; then
1312    # Losing compiler, so override with the script.
1313    # FIXME: It is wrong to rewrite CC.
1314    # But if we don't then we get into trouble of one sort or another.
1315    # A longer-term fix would be to have automake use am__CC in this case,
1316    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1317    CC="$am_aux_dir/compile $CC"
1319 dnl Make sure AC_PROG_CC is never called again, or it will override our
1320 dnl setting of CC.
1321 m4_define([AC_PROG_CC],
1322           [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
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.
1334 # serial 6
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"}
1341 AC_SUBST($1)])
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
1352   case $am_aux_dir in
1353   *\ * | *\     *)
1354     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1355   *)
1356     MISSING="\${SHELL} $am_aux_dir/missing" ;;
1357   esac
1359 # Use eval to expand $SHELL
1360 if eval "$MISSING --run true"; then
1361   am_missing_run="$MISSING --run "
1362 else
1363   am_missing_run=
1364   AC_MSG_WARN([`missing' script is too old or missing])
1368 # Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
1370 # This file is free software; the Free Software Foundation
1371 # gives unlimited permission to copy and/or distribute it,
1372 # with or without modifications, as long as this notice is preserved.
1374 # AM_PROG_MKDIR_P
1375 # ---------------
1376 # Check for `mkdir -p'.
1377 AC_DEFUN([AM_PROG_MKDIR_P],
1378 [AC_PREREQ([2.60])dnl
1379 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1380 dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
1381 dnl while keeping a definition of mkdir_p for backward compatibility.
1382 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1383 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1384 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1385 dnl adjustment using top_builddir (which is defined more often than
1386 dnl MKDIR_P).
1387 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1388 case $mkdir_p in
1389   [[\\/$]]* | ?:[[\\/]]*) ;;
1390   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1391 esac
1394 # Helper functions for option handling.                     -*- Autoconf -*-
1396 # Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
1398 # This file is free software; the Free Software Foundation
1399 # gives unlimited permission to copy and/or distribute it,
1400 # with or without modifications, as long as this notice is preserved.
1402 # serial 4
1404 # _AM_MANGLE_OPTION(NAME)
1405 # -----------------------
1406 AC_DEFUN([_AM_MANGLE_OPTION],
1407 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1409 # _AM_SET_OPTION(NAME)
1410 # ------------------------------
1411 # Set option NAME.  Presently that only means defining a flag for this option.
1412 AC_DEFUN([_AM_SET_OPTION],
1413 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1415 # _AM_SET_OPTIONS(OPTIONS)
1416 # ----------------------------------
1417 # OPTIONS is a space-separated list of Automake options.
1418 AC_DEFUN([_AM_SET_OPTIONS],
1419 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1421 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1422 # -------------------------------------------
1423 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1424 AC_DEFUN([_AM_IF_OPTION],
1425 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1427 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
1429 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1430 # Free Software Foundation, Inc.
1432 # This file is free software; the Free Software Foundation
1433 # gives unlimited permission to copy and/or distribute it,
1434 # with or without modifications, as long as this notice is preserved.
1436 # serial 5
1438 # AM_SANITY_CHECK
1439 # ---------------
1440 AC_DEFUN([AM_SANITY_CHECK],
1441 [AC_MSG_CHECKING([whether build environment is sane])
1442 # Just in case
1443 sleep 1
1444 echo timestamp > conftest.file
1445 # Reject unsafe characters in $srcdir or the absolute working directory
1446 # name.  Accept space and tab only in the latter.
1447 am_lf='
1449 case `pwd` in
1450   *[[\\\"\#\$\&\'\`$am_lf]]*)
1451     AC_MSG_ERROR([unsafe absolute working directory name]);;
1452 esac
1453 case $srcdir in
1454   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
1455     AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1456 esac
1458 # Do `set' in a subshell so we don't clobber the current shell's
1459 # arguments.  Must try -L first in case configure is actually a
1460 # symlink; some systems play weird games with the mod time of symlinks
1461 # (eg FreeBSD returns the mod time of the symlink's containing
1462 # directory).
1463 if (
1464    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1465    if test "$[*]" = "X"; then
1466       # -L didn't work.
1467       set X `ls -t "$srcdir/configure" conftest.file`
1468    fi
1469    rm -f conftest.file
1470    if test "$[*]" != "X $srcdir/configure conftest.file" \
1471       && test "$[*]" != "X conftest.file $srcdir/configure"; then
1473       # If neither matched, then we have a broken ls.  This can happen
1474       # if, for instance, CONFIG_SHELL is bash and it inherits a
1475       # broken ls alias from the environment.  This has actually
1476       # happened.  Such a system could not be considered "sane".
1477       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1478 alias in your environment])
1479    fi
1481    test "$[2]" = conftest.file
1482    )
1483 then
1484    # Ok.
1485    :
1486 else
1487    AC_MSG_ERROR([newly created file is older than distributed files!
1488 Check your system clock])
1490 AC_MSG_RESULT(yes)])
1492 # Copyright (C) 2009  Free Software Foundation, Inc.
1494 # This file is free software; the Free Software Foundation
1495 # gives unlimited permission to copy and/or distribute it,
1496 # with or without modifications, as long as this notice is preserved.
1498 # serial 1
1500 # AM_SILENT_RULES([DEFAULT])
1501 # --------------------------
1502 # Enable less verbose build rules; with the default set to DEFAULT
1503 # (`yes' being less verbose, `no' or empty being verbose).
1504 AC_DEFUN([AM_SILENT_RULES],
1505 [AC_ARG_ENABLE([silent-rules],
1506 [  --enable-silent-rules          less verbose build output (undo: `make V=1')
1507   --disable-silent-rules         verbose build output (undo: `make V=0')])
1508 case $enable_silent_rules in
1509 yes) AM_DEFAULT_VERBOSITY=0;;
1510 no)  AM_DEFAULT_VERBOSITY=1;;
1511 *)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1512 esac
1513 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1514 AM_BACKSLASH='\'
1515 AC_SUBST([AM_BACKSLASH])dnl
1516 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1519 # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
1521 # This file is free software; the Free Software Foundation
1522 # gives unlimited permission to copy and/or distribute it,
1523 # with or without modifications, as long as this notice is preserved.
1525 # AM_PROG_INSTALL_STRIP
1526 # ---------------------
1527 # One issue with vendor `install' (even GNU) is that you can't
1528 # specify the program used to strip binaries.  This is especially
1529 # annoying in cross-compiling environments, where the build's strip
1530 # is unlikely to handle the host's binaries.
1531 # Fortunately install-sh will honor a STRIPPROG variable, so we
1532 # always use install-sh in `make install-strip', and initialize
1533 # STRIPPROG with the value of the STRIP variable (set by the user).
1534 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1535 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1536 # Installed binaries are usually stripped using `strip' when the user
1537 # run `make install-strip'.  However `strip' might not be the right
1538 # tool to use in cross-compilation environments, therefore Automake
1539 # will honor the `STRIP' environment variable to overrule this program.
1540 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1541 if test "$cross_compiling" != no; then
1542   AC_CHECK_TOOL([STRIP], [strip], :)
1544 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1545 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1547 # Copyright (C) 2006, 2008  Free Software Foundation, Inc.
1549 # This file is free software; the Free Software Foundation
1550 # gives unlimited permission to copy and/or distribute it,
1551 # with or without modifications, as long as this notice is preserved.
1553 # serial 2
1555 # _AM_SUBST_NOTMAKE(VARIABLE)
1556 # ---------------------------
1557 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1558 # This macro is traced by Automake.
1559 AC_DEFUN([_AM_SUBST_NOTMAKE])
1561 # AM_SUBST_NOTMAKE(VARIABLE)
1562 # ---------------------------
1563 # Public sister of _AM_SUBST_NOTMAKE.
1564 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1566 # Check how to create a tarball.                            -*- Autoconf -*-
1568 # Copyright (C) 2004, 2005  Free Software Foundation, Inc.
1570 # This file is free software; the Free Software Foundation
1571 # gives unlimited permission to copy and/or distribute it,
1572 # with or without modifications, as long as this notice is preserved.
1574 # serial 2
1576 # _AM_PROG_TAR(FORMAT)
1577 # --------------------
1578 # Check how to create a tarball in format FORMAT.
1579 # FORMAT should be one of `v7', `ustar', or `pax'.
1581 # Substitute a variable $(am__tar) that is a command
1582 # writing to stdout a FORMAT-tarball containing the directory
1583 # $tardir.
1584 #     tardir=directory && $(am__tar) > result.tar
1586 # Substitute a variable $(am__untar) that extract such
1587 # a tarball read from stdin.
1588 #     $(am__untar) < result.tar
1589 AC_DEFUN([_AM_PROG_TAR],
1590 [# Always define AMTAR for backward compatibility.
1591 AM_MISSING_PROG([AMTAR], [tar])
1592 m4_if([$1], [v7],
1593      [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1594      [m4_case([$1], [ustar],, [pax],,
1595               [m4_fatal([Unknown tar format])])
1596 AC_MSG_CHECKING([how to create a $1 tar archive])
1597 # Loop over all known methods to create a tar archive until one works.
1598 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1599 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1600 # Do not fold the above two line into one, because Tru64 sh and
1601 # Solaris sh will not grok spaces in the rhs of `-'.
1602 for _am_tool in $_am_tools
1604   case $_am_tool in
1605   gnutar)
1606     for _am_tar in tar gnutar gtar;
1607     do
1608       AM_RUN_LOG([$_am_tar --version]) && break
1609     done
1610     am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1611     am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1612     am__untar="$_am_tar -xf -"
1613     ;;
1614   plaintar)
1615     # Must skip GNU tar: if it does not support --format= it doesn't create
1616     # ustar tarball either.
1617     (tar --version) >/dev/null 2>&1 && continue
1618     am__tar='tar chf - "$$tardir"'
1619     am__tar_='tar chf - "$tardir"'
1620     am__untar='tar xf -'
1621     ;;
1622   pax)
1623     am__tar='pax -L -x $1 -w "$$tardir"'
1624     am__tar_='pax -L -x $1 -w "$tardir"'
1625     am__untar='pax -r'
1626     ;;
1627   cpio)
1628     am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1629     am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1630     am__untar='cpio -i -H $1 -d'
1631     ;;
1632   none)
1633     am__tar=false
1634     am__tar_=false
1635     am__untar=false
1636     ;;
1637   esac
1639   # If the value was cached, stop now.  We just wanted to have am__tar
1640   # and am__untar set.
1641   test -n "${am_cv_prog_tar_$1}" && break
1643   # tar/untar a dummy directory, and stop if the command works
1644   rm -rf conftest.dir
1645   mkdir conftest.dir
1646   echo GrepMe > conftest.dir/file
1647   AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1648   rm -rf conftest.dir
1649   if test -s conftest.tar; then
1650     AM_RUN_LOG([$am__untar <conftest.tar])
1651     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1652   fi
1653 done
1654 rm -rf conftest.dir
1656 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1657 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1658 AC_SUBST([am__tar])
1659 AC_SUBST([am__untar])
1660 ]) # _AM_PROG_TAR
1662 m4_include([m4/ac_attribute.m4])
1663 m4_include([m4/intltool.m4])
1664 m4_include([m4/libtool.m4])
1665 m4_include([m4/ltoptions.m4])
1666 m4_include([m4/ltsugar.m4])
1667 m4_include([m4/ltversion.m4])
1668 m4_include([m4/lt~obsolete.m4])
1669 m4_include([m4/nls.m4])