"Fossies" - the Fresh Open Source Software Archive

Member "paps-0.7.1/aclocal.m4" (26 Oct 2019, 69207 Bytes) of package /linux/privat/paps-0.7.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "aclocal.m4": 0.6.8_vs_0.7.1.

A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.


    1 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
    4 
    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.
    8 
    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.
   13 
   14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
   15 m4_ifndef([AC_AUTOCONF_VERSION],
   16   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
   17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
   18 [m4_warning([this file was generated for autoconf 2.69.
   19 You have another version of autoconf.  It may work, but is not guaranteed to.
   20 If you have problems, you may need to regenerate the build system entirely.
   21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
   22 
   23 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
   24 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
   25 #
   26 # This file is free software, distributed under the terms of the GNU
   27 # General Public License.  As a special exception to the GNU General
   28 # Public License, this file may be distributed as part of a program
   29 # that contains a configuration script generated by Autoconf, under
   30 # the same distribution terms as the rest of that program.
   31 #
   32 # This file can be copied and used freely without restrictions.  It can
   33 # be used in projects which are not available under the GNU Public License
   34 # but which still want to provide support for the GNU gettext functionality.
   35 #
   36 # Macro to add for using GNU gettext.
   37 # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
   38 #
   39 # Modified to never use included libintl. 
   40 # Owen Taylor <otaylor@redhat.com>, 12/15/1998
   41 #
   42 # Major rework to remove unused code
   43 # Owen Taylor <otaylor@redhat.com>, 12/11/2002
   44 #
   45 # Added better handling of ALL_LINGUAS from GNU gettext version 
   46 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
   47 #
   48 # Modified to require ngettext
   49 # Matthias Clasen <mclasen@redhat.com> 08/06/2004
   50 
   51 # Increment this whenever this file is changed.
   52 #serial 1
   53 
   54 # We need this here as well, since someone might use autoconf-2.5x
   55 # to configure GLib then an older version to configure a package
   56 # using AM_GLIB_GNU_GETTEXT
   57 AC_PREREQ(2.53)
   58 
   59 dnl
   60 dnl We go to great lengths to make sure that aclocal won't 
   61 dnl try to pull in the installed version of these macros
   62 dnl when running aclocal in the glib directory.
   63 dnl
   64 m4_copy([AC_DEFUN],[glib_DEFUN])
   65 m4_copy([AC_REQUIRE],[glib_REQUIRE])
   66 dnl
   67 dnl At the end, if we're not within glib, we'll define the public
   68 dnl definitions in terms of our private definitions.
   69 dnl
   70 
   71 # GLIB_LC_MESSAGES
   72 #--------------------
   73 glib_DEFUN([GLIB_LC_MESSAGES],
   74   [AC_CHECK_HEADERS([locale.h])
   75     if test $ac_cv_header_locale_h = yes; then
   76     AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
   77       [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
   78        am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
   79     if test $am_cv_val_LC_MESSAGES = yes; then
   80       AC_DEFINE(HAVE_LC_MESSAGES, 1,
   81         [Define if your <locale.h> file defines LC_MESSAGES.])
   82     fi
   83   fi])
   84 
   85 # GLIB_PATH_PROG_WITH_TEST
   86 #----------------------------
   87 dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
   88 dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
   89 glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
   90 [# Extract the first word of "$2", so it can be a program name with args.
   91 set dummy $2; ac_word=[$]2
   92 AC_MSG_CHECKING([for $ac_word])
   93 AC_CACHE_VAL(ac_cv_path_$1,
   94 [case "[$]$1" in
   95   /*)
   96   ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
   97   ;;
   98   *)
   99   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  100   for ac_dir in ifelse([$5], , $PATH, [$5]); do
  101     test -z "$ac_dir" && ac_dir=.
  102     if test -f $ac_dir/$ac_word; then
  103       if [$3]; then
  104     ac_cv_path_$1="$ac_dir/$ac_word"
  105     break
  106       fi
  107     fi
  108   done
  109   IFS="$ac_save_ifs"
  110 dnl If no 4th arg is given, leave the cache variable unset,
  111 dnl so AC_PATH_PROGS will keep looking.
  112 ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
  113 ])dnl
  114   ;;
  115 esac])dnl
  116 $1="$ac_cv_path_$1"
  117 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
  118   AC_MSG_RESULT([$]$1)
  119 else
  120   AC_MSG_RESULT(no)
  121 fi
  122 AC_SUBST($1)dnl
  123 ])
  124 
  125 dnl Checks for special options needed on Mac OS X.
  126 dnl Defines INTL_MACOSX_LIBS.
  127 dnl
  128 dnl Copied from intlmacosx.m4 in gettext, GPL.
  129 dnl Copyright (C) 2004-2013 Free Software Foundation, Inc.
  130 glib_DEFUN([glib_gt_INTL_MACOSX],
  131 [
  132   dnl Check for API introduced in Mac OS X 10.2.
  133   AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
  134     [gt_cv_func_CFPreferencesCopyAppValue],
  135     [gt_save_LIBS="$LIBS"
  136      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  137      AC_LINK_IFELSE(
  138        [AC_LANG_PROGRAM(
  139           [[#include <CoreFoundation/CFPreferences.h>]],
  140           [[CFPreferencesCopyAppValue(NULL, NULL)]])],
  141        [gt_cv_func_CFPreferencesCopyAppValue=yes],
  142        [gt_cv_func_CFPreferencesCopyAppValue=no])
  143      LIBS="$gt_save_LIBS"])
  144   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  145     AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
  146       [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
  147   fi
  148   dnl Check for API introduced in Mac OS X 10.3.
  149   AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent],
  150     [gt_save_LIBS="$LIBS"
  151      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  152      AC_LINK_IFELSE(
  153        [AC_LANG_PROGRAM(
  154           [[#include <CoreFoundation/CFLocale.h>]],
  155           [[CFLocaleCopyCurrent();]])],
  156        [gt_cv_func_CFLocaleCopyCurrent=yes],
  157        [gt_cv_func_CFLocaleCopyCurrent=no])
  158      LIBS="$gt_save_LIBS"])
  159   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  160     AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1],
  161       [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
  162   fi
  163   INTL_MACOSX_LIBS=
  164   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  165     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  166   fi
  167   AC_SUBST([INTL_MACOSX_LIBS])
  168 ])
  169 
  170 # GLIB_WITH_NLS
  171 #-----------------
  172 glib_DEFUN([GLIB_WITH_NLS],
  173   dnl NLS is obligatory
  174   [USE_NLS=yes
  175     AC_SUBST(USE_NLS)
  176 
  177     gt_cv_have_gettext=no
  178 
  179     CATOBJEXT=NONE
  180     XGETTEXT=:
  181     INTLLIBS=
  182 
  183     glib_gt_INTL_MACOSX
  184 
  185     AC_CHECK_HEADER(libintl.h,
  186      [gt_cv_func_dgettext_libintl="no"
  187       libintl_extra_libs=""
  188 
  189       #
  190       # First check in libc
  191       #
  192       AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
  193         [AC_TRY_LINK([
  194 #include <libintl.h>
  195 ],
  196          [return !ngettext ("","", 1)],
  197       gt_cv_func_ngettext_libc=yes,
  198           gt_cv_func_ngettext_libc=no)
  199         ])
  200   
  201       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  202           AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
  203             [AC_TRY_LINK([
  204 #include <libintl.h>
  205 ],
  206               [return !dgettext ("","")],
  207           gt_cv_func_dgettext_libc=yes,
  208               gt_cv_func_dgettext_libc=no)
  209             ])
  210       fi
  211   
  212       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  213         AC_CHECK_FUNCS(bind_textdomain_codeset)
  214       fi
  215 
  216       #
  217       # If we don't have everything we want, check in libintl
  218       #
  219       if test "$gt_cv_func_dgettext_libc" != "yes" \
  220      || test "$gt_cv_func_ngettext_libc" != "yes" \
  221          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  222         
  223         AC_CHECK_LIB(intl, bindtextdomain,
  224         [AC_CHECK_LIB(intl, ngettext,
  225             [AC_CHECK_LIB(intl, dgettext,
  226                       gt_cv_func_dgettext_libintl=yes)])])
  227 
  228     if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
  229       AC_MSG_CHECKING([if -liconv is needed to use gettext])
  230       AC_MSG_RESULT([])
  231       AC_CHECK_LIB(intl, ngettext,
  232             [AC_CHECK_LIB(intl, dcgettext,
  233                [gt_cv_func_dgettext_libintl=yes
  234             libintl_extra_libs=-liconv],
  235             :,-liconv)],
  236         :,-liconv)
  237         fi
  238 
  239         #
  240         # If we found libintl, then check in it for bind_textdomain_codeset();
  241         # we'll prefer libc if neither have bind_textdomain_codeset(),
  242         # and both have dgettext and ngettext
  243         #
  244         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
  245           glib_save_LIBS="$LIBS"
  246           LIBS="$LIBS -lintl $libintl_extra_libs"
  247           unset ac_cv_func_bind_textdomain_codeset
  248           AC_CHECK_FUNCS(bind_textdomain_codeset)
  249           LIBS="$glib_save_LIBS"
  250 
  251           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
  252             gt_cv_func_dgettext_libc=no
  253           else
  254             if test "$gt_cv_func_dgettext_libc" = "yes" \
  255         && test "$gt_cv_func_ngettext_libc" = "yes"; then
  256               gt_cv_func_dgettext_libintl=no
  257             fi
  258           fi
  259         fi
  260       fi
  261 
  262       if test "$gt_cv_func_dgettext_libc" = "yes" \
  263     || test "$gt_cv_func_dgettext_libintl" = "yes"; then
  264         gt_cv_have_gettext=yes
  265       fi
  266   
  267       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
  268         INTLLIBS="-lintl $libintl_extra_libs $INTL_MACOSX_LIBS"
  269       fi
  270   
  271       if test "$gt_cv_have_gettext" = "yes"; then
  272     AC_DEFINE(HAVE_GETTEXT,1,
  273       [Define if the GNU gettext() function is already present or preinstalled.])
  274     GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
  275       [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
  276     if test "$MSGFMT" != "no"; then
  277           glib_save_LIBS="$LIBS"
  278           LIBS="$LIBS $INTLLIBS"
  279       AC_CHECK_FUNCS(dcgettext)
  280       MSGFMT_OPTS=
  281       AC_MSG_CHECKING([if msgfmt accepts -c])
  282       GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
  283 msgid ""
  284 msgstr ""
  285 "Content-Type: text/plain; charset=UTF-8\n"
  286 "Project-Id-Version: test 1.0\n"
  287 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
  288 "Last-Translator: test <foo@bar.xx>\n"
  289 "Language-Team: C <LL@li.org>\n"
  290 "MIME-Version: 1.0\n"
  291 "Content-Transfer-Encoding: 8bit\n"
  292 ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
  293       AC_SUBST(MSGFMT_OPTS)
  294       AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
  295       GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
  296         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
  297       AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
  298              return _nl_msg_cat_cntr],
  299         [CATOBJEXT=.gmo 
  300              DATADIRNAME=share],
  301         [case $host in
  302         *-*-solaris*)
  303         dnl On Solaris, if bind_textdomain_codeset is in libc,
  304         dnl GNU format message catalog is always supported,
  305             dnl since both are added to the libc all together.
  306         dnl Hence, we'd like to go with DATADIRNAME=share and
  307         dnl and CATOBJEXT=.gmo in this case.
  308             AC_CHECK_FUNC(bind_textdomain_codeset,
  309           [CATOBJEXT=.gmo 
  310                DATADIRNAME=share],
  311           [CATOBJEXT=.mo
  312                DATADIRNAME=lib])
  313         ;;
  314         *-*-openbsd*)
  315         CATOBJEXT=.mo
  316             DATADIRNAME=share
  317         ;;
  318         *)
  319         CATOBJEXT=.mo
  320             DATADIRNAME=lib
  321         ;;
  322         esac])
  323           LIBS="$glib_save_LIBS"
  324       INSTOBJEXT=.mo
  325     else
  326       gt_cv_have_gettext=no
  327     fi
  328       fi
  329     ])
  330 
  331     if test "$gt_cv_have_gettext" = "yes" ; then
  332       AC_DEFINE(ENABLE_NLS, 1,
  333         [always defined to indicate that i18n is enabled])
  334     fi
  335 
  336     dnl Test whether we really found GNU xgettext.
  337     if test "$XGETTEXT" != ":"; then
  338       dnl If it is not GNU xgettext we define it as : so that the
  339       dnl Makefiles still can work.
  340       if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  341         : ;
  342       else
  343         AC_MSG_RESULT(
  344       [found xgettext program is not GNU xgettext; ignore it])
  345         XGETTEXT=":"
  346       fi
  347     fi
  348 
  349     # We need to process the po/ directory.
  350     POSUB=po
  351 
  352     AC_OUTPUT_COMMANDS(
  353       [case "$CONFIG_FILES" in *po/Makefile.in*)
  354         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  355       esac])
  356 
  357     dnl These rules are solely for the distribution goal.  While doing this
  358     dnl we only have to keep exactly one list of the available catalogs
  359     dnl in configure.ac.
  360     for lang in $ALL_LINGUAS; do
  361       GMOFILES="$GMOFILES $lang.gmo"
  362       POFILES="$POFILES $lang.po"
  363     done
  364 
  365     dnl Make all variables we use known to autoconf.
  366     AC_SUBST(CATALOGS)
  367     AC_SUBST(CATOBJEXT)
  368     AC_SUBST(DATADIRNAME)
  369     AC_SUBST(GMOFILES)
  370     AC_SUBST(INSTOBJEXT)
  371     AC_SUBST(INTLLIBS)
  372     AC_SUBST(PO_IN_DATADIR_TRUE)
  373     AC_SUBST(PO_IN_DATADIR_FALSE)
  374     AC_SUBST(POFILES)
  375     AC_SUBST(POSUB)
  376   ])
  377 
  378 # AM_GLIB_GNU_GETTEXT
  379 # -------------------
  380 # Do checks necessary for use of gettext. If a suitable implementation 
  381 # of gettext is found in either in libintl or in the C library,
  382 # it will set INTLLIBS to the libraries needed for use of gettext
  383 # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
  384 # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
  385 # on various variables needed by the Makefile.in.in installed by 
  386 # glib-gettextize.
  387 dnl
  388 AU_DEFUN([GLIB_GNU_GETTEXT],
  389   [AC_REQUIRE([AC_PROG_CC])dnl
  390    
  391    GLIB_LC_MESSAGES
  392    GLIB_WITH_NLS
  393 
  394    if test "$gt_cv_have_gettext" = "yes"; then
  395      if test "x$ALL_LINGUAS" = "x"; then
  396        LINGUAS=
  397      else
  398        AC_MSG_CHECKING(for catalogs to be installed)
  399        NEW_LINGUAS=
  400        for presentlang in $ALL_LINGUAS; do
  401          useit=no
  402          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
  403            desiredlanguages="$LINGUAS"
  404          else
  405            desiredlanguages="$ALL_LINGUAS"
  406          fi
  407          for desiredlang in $desiredlanguages; do
  408        # Use the presentlang catalog if desiredlang is
  409            #   a. equal to presentlang, or
  410            #   b. a variant of presentlang (because in this case,
  411            #      presentlang can be used as a fallback for messages
  412            #      which are not translated in the desiredlang catalog).
  413            case "$desiredlang" in
  414              "$presentlang"*) useit=yes;;
  415            esac
  416          done
  417          if test $useit = yes; then
  418            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
  419          fi
  420        done
  421        LINGUAS=$NEW_LINGUAS
  422        AC_MSG_RESULT($LINGUAS)
  423      fi
  424 
  425      dnl Construct list of names of catalog files to be constructed.
  426      if test -n "$LINGUAS"; then
  427        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  428      fi
  429    fi
  430 
  431    dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
  432    dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
  433    dnl Try to locate is.
  434    MKINSTALLDIRS=
  435    if test -n "$ac_aux_dir"; then
  436      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  437    fi
  438    if test -z "$MKINSTALLDIRS"; then
  439      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  440    fi
  441    AC_SUBST(MKINSTALLDIRS)
  442 
  443    dnl Generate list of files to be processed by xgettext which will
  444    dnl be included in po/Makefile.
  445    test -d po || mkdir po
  446    if test "x$srcdir" != "x."; then
  447      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  448        posrcprefix="$srcdir/"
  449      else
  450        posrcprefix="../$srcdir/"
  451      fi
  452    else
  453      posrcprefix="../"
  454    fi
  455    rm -f po/POTFILES
  456    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  457     < $srcdir/po/POTFILES.in > po/POTFILES
  458   ],
  459   [[$0: This macro is deprecated. You should use upstream gettext instead.]])
  460 
  461 # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
  462 # -------------------------------
  463 # Define VARIABLE to the location where catalog files will
  464 # be installed by po/Makefile.
  465 glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
  466 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
  467 glib_save_prefix="$prefix"
  468 glib_save_exec_prefix="$exec_prefix"
  469 glib_save_datarootdir="$datarootdir"
  470 test "x$prefix" = xNONE && prefix=$ac_default_prefix
  471 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
  472 datarootdir=`eval echo "${datarootdir}"`
  473 if test "x$CATOBJEXT" = "x.mo" ; then
  474   localedir=`eval echo "${libdir}/locale"`
  475 else
  476   localedir=`eval echo "${datadir}/locale"`
  477 fi
  478 prefix="$glib_save_prefix"
  479 exec_prefix="$glib_save_exec_prefix"
  480 datarootdir="$glib_save_datarootdir"
  481 AC_DEFINE_UNQUOTED($1, "$localedir",
  482   [Define the location where the catalogs will be installed])
  483 ])
  484 
  485 dnl
  486 dnl Now the definitions that aclocal will find
  487 dnl
  488 ifdef(glib_configure_ac,[],[
  489 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
  490 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
  491 ])dnl
  492 
  493 # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
  494 # 
  495 # Create a temporary file with TEST-FILE as its contents and pass the
  496 # file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
  497 # 0 and perform ACTION-IF-FAIL for any other exit status.
  498 AC_DEFUN([GLIB_RUN_PROG],
  499 [cat >conftest.foo <<_ACEOF
  500 $2
  501 _ACEOF
  502 if AC_RUN_LOG([$1 conftest.foo]); then
  503   m4_ifval([$3], [$3], [:])
  504 m4_ifvaln([$4], [else $4])dnl
  505 echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
  506 sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
  507 fi])
  508 
  509 
  510 
  511 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
  512 # serial 42 IT_PROG_INTLTOOL
  513 AC_DEFUN([IT_PROG_INTLTOOL], [
  514 AC_PREREQ([2.50])dnl
  515 AC_REQUIRE([AM_NLS])dnl
  516 
  517 case "$am__api_version" in
  518     1.[01234])
  519     AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
  520     ;;
  521     *)
  522     ;;
  523 esac
  524 
  525 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
  526 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
  527 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
  528 if test -n "$1"; then
  529     AC_MSG_CHECKING([for intltool >= $1])
  530     AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
  531     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
  532     AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
  533 fi
  534 
  535 AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
  536 AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
  537 AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
  538 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
  539     AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
  540 fi
  541 
  542 if test -z "$AM_DEFAULT_VERBOSITY"; then
  543   AM_DEFAULT_VERBOSITY=1
  544 fi
  545 AC_SUBST([AM_DEFAULT_VERBOSITY])
  546 
  547 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
  548 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
  549 INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
  550 AC_SUBST(INTLTOOL_V_MERGE)
  551 AC_SUBST(INTLTOOL__v_MERGE_)
  552 AC_SUBST(INTLTOOL__v_MERGE_0)
  553 
  554 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
  555 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
  556 intltool__v_merge_options_0='-q'
  557 AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
  558 AC_SUBST(intltool__v_merge_options_)
  559 AC_SUBST(intltool__v_merge_options_0)
  560 
  561   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  562 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  563      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  564      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  565       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
  566      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  567    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  568     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  569 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  570        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  571       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  572 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
  573       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
  574 else
  575       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
  576 fi
  577       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  578       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  579     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  580   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  581     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
  582     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  583    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  584 
  585 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
  586 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
  587 _IT_SUBST(INTLTOOL_KEYS_RULE)
  588 _IT_SUBST(INTLTOOL_PROP_RULE)
  589 _IT_SUBST(INTLTOOL_OAF_RULE)
  590 _IT_SUBST(INTLTOOL_PONG_RULE)
  591 _IT_SUBST(INTLTOOL_SERVER_RULE)
  592 _IT_SUBST(INTLTOOL_SHEET_RULE)
  593 _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
  594 _IT_SUBST(INTLTOOL_UI_RULE)
  595 _IT_SUBST(INTLTOOL_XAM_RULE)
  596 _IT_SUBST(INTLTOOL_KBD_RULE)
  597 _IT_SUBST(INTLTOOL_XML_RULE)
  598 _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
  599 _IT_SUBST(INTLTOOL_CAVES_RULE)
  600 _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
  601 _IT_SUBST(INTLTOOL_THEME_RULE)
  602 _IT_SUBST(INTLTOOL_SERVICE_RULE)
  603 _IT_SUBST(INTLTOOL_POLICY_RULE)
  604 
  605 # Check the gettext tools to make sure they are GNU
  606 AC_PATH_PROG(XGETTEXT, xgettext)
  607 AC_PATH_PROG(MSGMERGE, msgmerge)
  608 AC_PATH_PROG(MSGFMT, msgfmt)
  609 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
  610 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
  611     AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
  612 fi
  613 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
  614 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
  615 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
  616 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
  617     AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
  618 fi
  619 
  620 AC_PATH_PROG(INTLTOOL_PERL, perl)
  621 if test -z "$INTLTOOL_PERL"; then
  622    AC_MSG_ERROR([perl not found])
  623 fi
  624 AC_MSG_CHECKING([for perl >= 5.8.1])
  625 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
  626 if test $? -ne 0; then
  627    AC_MSG_ERROR([perl 5.8.1 is required for intltool])
  628 else
  629    IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
  630    AC_MSG_RESULT([$IT_PERL_VERSION])
  631 fi
  632 if test "x$2" != "xno-xml"; then
  633    AC_MSG_CHECKING([for XML::Parser])
  634    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
  635        AC_MSG_RESULT([ok])
  636    else
  637        AC_MSG_ERROR([XML::Parser perl module is required for intltool])
  638    fi
  639 fi
  640 
  641 # Substitute ALL_LINGUAS so we can use it in po/Makefile
  642 AC_SUBST(ALL_LINGUAS)
  643 
  644 IT_PO_SUBDIR([po])
  645 
  646 ])
  647 
  648 
  649 # IT_PO_SUBDIR(DIRNAME)
  650 # ---------------------
  651 # All po subdirs have to be declared with this macro; the subdir "po" is
  652 # declared by IT_PROG_INTLTOOL.
  653 #
  654 AC_DEFUN([IT_PO_SUBDIR],
  655 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
  656 dnl
  657 dnl The following CONFIG_COMMANDS should be executed at the very end
  658 dnl of config.status.
  659 AC_CONFIG_COMMANDS_PRE([
  660   AC_CONFIG_COMMANDS([$1/stamp-it], [
  661     if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
  662        AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
  663     fi
  664     rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
  665     >"$1/stamp-it.tmp"
  666     [sed '/^#/d
  667      s/^[[].*] *//
  668      /^[    ]*$/d
  669     '"s|^|  $ac_top_srcdir/|" \
  670       "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
  671     ]
  672     [sed '/^POTFILES =/,/[^\\]$/ {
  673         /^POTFILES =/!d
  674         r $1/POTFILES
  675       }
  676      ' "$1/Makefile.in" >"$1/Makefile"]
  677     rm -f "$1/Makefile.tmp"
  678     mv "$1/stamp-it.tmp" "$1/stamp-it"
  679   ])
  680 ])dnl
  681 ])
  682 
  683 # _IT_SUBST(VARIABLE)
  684 # -------------------
  685 # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
  686 #
  687 AC_DEFUN([_IT_SUBST],
  688 [
  689 AC_SUBST([$1])
  690 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
  691 ]
  692 )
  693 
  694 # deprecated macros
  695 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
  696 # A hint is needed for aclocal from Automake <= 1.9.4:
  697 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
  698 
  699 
  700 # nls.m4 serial 5 (gettext-0.18)
  701 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software
  702 dnl Foundation, Inc.
  703 dnl This file is free software; the Free Software Foundation
  704 dnl gives unlimited permission to copy and/or distribute it,
  705 dnl with or without modifications, as long as this notice is preserved.
  706 dnl
  707 dnl This file can be used in projects which are not available under
  708 dnl the GNU General Public License or the GNU Library General Public
  709 dnl License but which still want to provide support for the GNU gettext
  710 dnl functionality.
  711 dnl Please note that the actual code of the GNU gettext library is covered
  712 dnl by the GNU Library General Public License, and the rest of the GNU
  713 dnl gettext package is covered by the GNU General Public License.
  714 dnl They are *not* in the public domain.
  715 
  716 dnl Authors:
  717 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  718 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  719 
  720 AC_PREREQ([2.50])
  721 
  722 AC_DEFUN([AM_NLS],
  723 [
  724   AC_MSG_CHECKING([whether NLS is requested])
  725   dnl Default is enabled NLS
  726   AC_ARG_ENABLE([nls],
  727     [  --disable-nls           do not use Native Language Support],
  728     USE_NLS=$enableval, USE_NLS=yes)
  729   AC_MSG_RESULT([$USE_NLS])
  730   AC_SUBST([USE_NLS])
  731 ])
  732 
  733 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
  734 #
  735 # This file is free software; the Free Software Foundation
  736 # gives unlimited permission to copy and/or distribute it,
  737 # with or without modifications, as long as this notice is preserved.
  738 
  739 # AM_AUTOMAKE_VERSION(VERSION)
  740 # ----------------------------
  741 # Automake X.Y traces this macro to ensure aclocal.m4 has been
  742 # generated from the m4 files accompanying Automake X.Y.
  743 # (This private macro should not be called outside this file.)
  744 AC_DEFUN([AM_AUTOMAKE_VERSION],
  745 [am__api_version='1.16'
  746 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  747 dnl require some minimum version.  Point them to the right macro.
  748 m4_if([$1], [1.16.1], [],
  749       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  750 ])
  751 
  752 # _AM_AUTOCONF_VERSION(VERSION)
  753 # -----------------------------
  754 # aclocal traces this macro to find the Autoconf version.
  755 # This is a private macro too.  Using m4_define simplifies
  756 # the logic in aclocal, which can simply ignore this definition.
  757 m4_define([_AM_AUTOCONF_VERSION], [])
  758 
  759 # AM_SET_CURRENT_AUTOMAKE_VERSION
  760 # -------------------------------
  761 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  762 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  763 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  764 [AM_AUTOMAKE_VERSION([1.16.1])dnl
  765 m4_ifndef([AC_AUTOCONF_VERSION],
  766   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  767 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  768 
  769 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
  770 
  771 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  772 #
  773 # This file is free software; the Free Software Foundation
  774 # gives unlimited permission to copy and/or distribute it,
  775 # with or without modifications, as long as this notice is preserved.
  776 
  777 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  778 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
  779 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  780 #
  781 # Of course, Automake must honor this variable whenever it calls a
  782 # tool from the auxiliary directory.  The problem is that $srcdir (and
  783 # therefore $ac_aux_dir as well) can be either absolute or relative,
  784 # depending on how configure is run.  This is pretty annoying, since
  785 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  786 # source directory, any form will work fine, but in subdirectories a
  787 # relative path needs to be adjusted first.
  788 #
  789 # $ac_aux_dir/missing
  790 #    fails when called from a subdirectory if $ac_aux_dir is relative
  791 # $top_srcdir/$ac_aux_dir/missing
  792 #    fails if $ac_aux_dir is absolute,
  793 #    fails when called from a subdirectory in a VPATH build with
  794 #          a relative $ac_aux_dir
  795 #
  796 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  797 # are both prefixed by $srcdir.  In an in-source build this is usually
  798 # harmless because $srcdir is '.', but things will broke when you
  799 # start a VPATH build or use an absolute $srcdir.
  800 #
  801 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  802 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
  803 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  804 # and then we would define $MISSING as
  805 #   MISSING="\${SHELL} $am_aux_dir/missing"
  806 # This will work as long as MISSING is not called from configure, because
  807 # unfortunately $(top_srcdir) has no meaning in configure.
  808 # However there are other variables, like CC, which are often used in
  809 # configure, and could therefore not use this "fixed" $ac_aux_dir.
  810 #
  811 # Another solution, used here, is to always expand $ac_aux_dir to an
  812 # absolute PATH.  The drawback is that using absolute paths prevent a
  813 # configured tree to be moved without reconfiguration.
  814 
  815 AC_DEFUN([AM_AUX_DIR_EXPAND],
  816 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  817 # Expand $ac_aux_dir to an absolute path.
  818 am_aux_dir=`cd "$ac_aux_dir" && pwd`
  819 ])
  820 
  821 # AM_CONDITIONAL                                            -*- Autoconf -*-
  822 
  823 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
  824 #
  825 # This file is free software; the Free Software Foundation
  826 # gives unlimited permission to copy and/or distribute it,
  827 # with or without modifications, as long as this notice is preserved.
  828 
  829 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  830 # -------------------------------------
  831 # Define a conditional.
  832 AC_DEFUN([AM_CONDITIONAL],
  833 [AC_PREREQ([2.52])dnl
  834  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
  835        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  836 AC_SUBST([$1_TRUE])dnl
  837 AC_SUBST([$1_FALSE])dnl
  838 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  839 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  840 m4_define([_AM_COND_VALUE_$1], [$2])dnl
  841 if $2; then
  842   $1_TRUE=
  843   $1_FALSE='#'
  844 else
  845   $1_TRUE='#'
  846   $1_FALSE=
  847 fi
  848 AC_CONFIG_COMMANDS_PRE(
  849 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  850   AC_MSG_ERROR([[conditional "$1" was never defined.
  851 Usually this means the macro was only invoked conditionally.]])
  852 fi])])
  853 
  854 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
  855 #
  856 # This file is free software; the Free Software Foundation
  857 # gives unlimited permission to copy and/or distribute it,
  858 # with or without modifications, as long as this notice is preserved.
  859 
  860 
  861 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  862 # written in clear, in which case automake, when reading aclocal.m4,
  863 # will think it sees a *use*, and therefore will trigger all it's
  864 # C support machinery.  Also note that it means that autoscan, seeing
  865 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  866 
  867 
  868 # _AM_DEPENDENCIES(NAME)
  869 # ----------------------
  870 # See how the compiler implements dependency checking.
  871 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  872 # We try a few techniques and use that to set a single cache variable.
  873 #
  874 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  875 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  876 # dependency, and given that the user is not expected to run this macro,
  877 # just rely on AC_PROG_CC.
  878 AC_DEFUN([_AM_DEPENDENCIES],
  879 [AC_REQUIRE([AM_SET_DEPDIR])dnl
  880 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  881 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  882 AC_REQUIRE([AM_DEP_TRACK])dnl
  883 
  884 m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
  885       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
  886       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  887       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  888       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
  889       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
  890                     [depcc="$$1"   am_compiler_list=])
  891 
  892 AC_CACHE_CHECK([dependency style of $depcc],
  893                [am_cv_$1_dependencies_compiler_type],
  894 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  895   # We make a subdir and do the tests there.  Otherwise we can end up
  896   # making bogus files that we don't know about and never remove.  For
  897   # instance it was reported that on HP-UX the gcc test will end up
  898   # making a dummy file named 'D' -- because '-MD' means "put the output
  899   # in D".
  900   rm -rf conftest.dir
  901   mkdir conftest.dir
  902   # Copy depcomp to subdir because otherwise we won't find it if we're
  903   # using a relative directory.
  904   cp "$am_depcomp" conftest.dir
  905   cd conftest.dir
  906   # We will build objects and dependencies in a subdirectory because
  907   # it helps to detect inapplicable dependency modes.  For instance
  908   # both Tru64's cc and ICC support -MD to output dependencies as a
  909   # side effect of compilation, but ICC will put the dependencies in
  910   # the current directory while Tru64 will put them in the object
  911   # directory.
  912   mkdir sub
  913 
  914   am_cv_$1_dependencies_compiler_type=none
  915   if test "$am_compiler_list" = ""; then
  916      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  917   fi
  918   am__universal=false
  919   m4_case([$1], [CC],
  920     [case " $depcc " in #(
  921      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  922      esac],
  923     [CXX],
  924     [case " $depcc " in #(
  925      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  926      esac])
  927 
  928   for depmode in $am_compiler_list; do
  929     # Setup a source with many dependencies, because some compilers
  930     # like to wrap large dependency lists on column 80 (with \), and
  931     # we should not choose a depcomp mode which is confused by this.
  932     #
  933     # We need to recreate these files for each test, as the compiler may
  934     # overwrite some of them when testing with obscure command lines.
  935     # This happens at least with the AIX C compiler.
  936     : > sub/conftest.c
  937     for i in 1 2 3 4 5 6; do
  938       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  939       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  940       # Solaris 10 /bin/sh.
  941       echo '/* dummy */' > sub/conftst$i.h
  942     done
  943     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  944 
  945     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  946     # mode.  It turns out that the SunPro C++ compiler does not properly
  947     # handle '-M -o', and we need to detect this.  Also, some Intel
  948     # versions had trouble with output in subdirs.
  949     am__obj=sub/conftest.${OBJEXT-o}
  950     am__minus_obj="-o $am__obj"
  951     case $depmode in
  952     gcc)
  953       # This depmode causes a compiler race in universal mode.
  954       test "$am__universal" = false || continue
  955       ;;
  956     nosideeffect)
  957       # After this tag, mechanisms are not by side-effect, so they'll
  958       # only be used when explicitly requested.
  959       if test "x$enable_dependency_tracking" = xyes; then
  960     continue
  961       else
  962     break
  963       fi
  964       ;;
  965     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  966       # This compiler won't grok '-c -o', but also, the minuso test has
  967       # not run yet.  These depmodes are late enough in the game, and
  968       # so weak that their functioning should not be impacted.
  969       am__obj=conftest.${OBJEXT-o}
  970       am__minus_obj=
  971       ;;
  972     none) break ;;
  973     esac
  974     if depmode=$depmode \
  975        source=sub/conftest.c object=$am__obj \
  976        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  977        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  978          >/dev/null 2>conftest.err &&
  979        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  980        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  981        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  982        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  983       # icc doesn't choke on unknown options, it will just issue warnings
  984       # or remarks (even with -Werror).  So we grep stderr for any message
  985       # that says an option was ignored or not supported.
  986       # When given -MP, icc 7.0 and 7.1 complain thusly:
  987       #   icc: Command line warning: ignoring option '-M'; no argument required
  988       # The diagnosis changed in icc 8.0:
  989       #   icc: Command line remark: option '-MP' not supported
  990       if (grep 'ignoring option' conftest.err ||
  991           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  992         am_cv_$1_dependencies_compiler_type=$depmode
  993         break
  994       fi
  995     fi
  996   done
  997 
  998   cd ..
  999   rm -rf conftest.dir
 1000 else
 1001   am_cv_$1_dependencies_compiler_type=none
 1002 fi
 1003 ])
 1004 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 1005 AM_CONDITIONAL([am__fastdep$1], [
 1006   test "x$enable_dependency_tracking" != xno \
 1007   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 1008 ])
 1009 
 1010 
 1011 # AM_SET_DEPDIR
 1012 # -------------
 1013 # Choose a directory name for dependency files.
 1014 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
 1015 AC_DEFUN([AM_SET_DEPDIR],
 1016 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 1017 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 1018 ])
 1019 
 1020 
 1021 # AM_DEP_TRACK
 1022 # ------------
 1023 AC_DEFUN([AM_DEP_TRACK],
 1024 [AC_ARG_ENABLE([dependency-tracking], [dnl
 1025 AS_HELP_STRING(
 1026   [--enable-dependency-tracking],
 1027   [do not reject slow dependency extractors])
 1028 AS_HELP_STRING(
 1029   [--disable-dependency-tracking],
 1030   [speeds up one-time build])])
 1031 if test "x$enable_dependency_tracking" != xno; then
 1032   am_depcomp="$ac_aux_dir/depcomp"
 1033   AMDEPBACKSLASH='\'
 1034   am__nodep='_no'
 1035 fi
 1036 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 1037 AC_SUBST([AMDEPBACKSLASH])dnl
 1038 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 1039 AC_SUBST([am__nodep])dnl
 1040 _AM_SUBST_NOTMAKE([am__nodep])dnl
 1041 ])
 1042 
 1043 # Generate code to set up dependency tracking.              -*- Autoconf -*-
 1044 
 1045 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
 1046 #
 1047 # This file is free software; the Free Software Foundation
 1048 # gives unlimited permission to copy and/or distribute it,
 1049 # with or without modifications, as long as this notice is preserved.
 1050 
 1051 # _AM_OUTPUT_DEPENDENCY_COMMANDS
 1052 # ------------------------------
 1053 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 1054 [{
 1055   # Older Autoconf quotes --file arguments for eval, but not when files
 1056   # are listed without --file.  Let's play safe and only enable the eval
 1057   # if we detect the quoting.
 1058   # TODO: see whether this extra hack can be removed once we start
 1059   # requiring Autoconf 2.70 or later.
 1060   AS_CASE([$CONFIG_FILES],
 1061           [*\'*], [eval set x "$CONFIG_FILES"],
 1062           [*], [set x $CONFIG_FILES])
 1063   shift
 1064   # Used to flag and report bootstrapping failures.
 1065   am_rc=0
 1066   for am_mf
 1067   do
 1068     # Strip MF so we end up with the name of the file.
 1069     am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
 1070     # Check whether this is an Automake generated Makefile which includes
 1071     # dependency-tracking related rules and includes.
 1072     # Grep'ing the whole file directly is not great: AIX grep has a line
 1073     # limit of 2048, but all sed's we know have understand at least 4000.
 1074     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
 1075       || continue
 1076     am_dirpart=`AS_DIRNAME(["$am_mf"])`
 1077     am_filepart=`AS_BASENAME(["$am_mf"])`
 1078     AM_RUN_LOG([cd "$am_dirpart" \
 1079       && sed -e '/# am--include-marker/d' "$am_filepart" \
 1080         | $MAKE -f - am--depfiles]) || am_rc=$?
 1081   done
 1082   if test $am_rc -ne 0; then
 1083     AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
 1084     for automatic dependency tracking.  Try re-running configure with the
 1085     '--disable-dependency-tracking' option to at least be able to build
 1086     the package (albeit without support for automatic dependency tracking).])
 1087   fi
 1088   AS_UNSET([am_dirpart])
 1089   AS_UNSET([am_filepart])
 1090   AS_UNSET([am_mf])
 1091   AS_UNSET([am_rc])
 1092   rm -f conftest-deps.mk
 1093 }
 1094 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 1095 
 1096 
 1097 # AM_OUTPUT_DEPENDENCY_COMMANDS
 1098 # -----------------------------
 1099 # This macro should only be invoked once -- use via AC_REQUIRE.
 1100 #
 1101 # This code is only required when automatic dependency tracking is enabled.
 1102 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
 1103 # order to bootstrap the dependency handling code.
 1104 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 1105 [AC_CONFIG_COMMANDS([depfiles],
 1106      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 1107      [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
 1108 
 1109 # Do all the work for Automake.                             -*- Autoconf -*-
 1110 
 1111 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
 1112 #
 1113 # This file is free software; the Free Software Foundation
 1114 # gives unlimited permission to copy and/or distribute it,
 1115 # with or without modifications, as long as this notice is preserved.
 1116 
 1117 # This macro actually does too much.  Some checks are only needed if
 1118 # your package does certain things.  But this isn't really a big deal.
 1119 
 1120 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 1121 m4_define([AC_PROG_CC],
 1122 m4_defn([AC_PROG_CC])
 1123 [_AM_PROG_CC_C_O
 1124 ])
 1125 
 1126 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 1127 # AM_INIT_AUTOMAKE([OPTIONS])
 1128 # -----------------------------------------------
 1129 # The call with PACKAGE and VERSION arguments is the old style
 1130 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
 1131 # and VERSION should now be passed to AC_INIT and removed from
 1132 # the call to AM_INIT_AUTOMAKE.
 1133 # We support both call styles for the transition.  After
 1134 # the next Automake release, Autoconf can make the AC_INIT
 1135 # arguments mandatory, and then we can depend on a new Autoconf
 1136 # release and drop the old call support.
 1137 AC_DEFUN([AM_INIT_AUTOMAKE],
 1138 [AC_PREREQ([2.65])dnl
 1139 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 1140 dnl the ones we care about.
 1141 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 1142 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 1143 AC_REQUIRE([AC_PROG_INSTALL])dnl
 1144 if test "`cd $srcdir && pwd`" != "`pwd`"; then
 1145   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 1146   # is not polluted with repeated "-I."
 1147   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 1148   # test to see if srcdir already configured
 1149   if test -f $srcdir/config.status; then
 1150     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 1151   fi
 1152 fi
 1153 
 1154 # test whether we have cygpath
 1155 if test -z "$CYGPATH_W"; then
 1156   if (cygpath --version) >/dev/null 2>/dev/null; then
 1157     CYGPATH_W='cygpath -w'
 1158   else
 1159     CYGPATH_W=echo
 1160   fi
 1161 fi
 1162 AC_SUBST([CYGPATH_W])
 1163 
 1164 # Define the identity of the package.
 1165 dnl Distinguish between old-style and new-style calls.
 1166 m4_ifval([$2],
 1167 [AC_DIAGNOSE([obsolete],
 1168              [$0: two- and three-arguments forms are deprecated.])
 1169 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 1170  AC_SUBST([PACKAGE], [$1])dnl
 1171  AC_SUBST([VERSION], [$2])],
 1172 [_AM_SET_OPTIONS([$1])dnl
 1173 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 1174 m4_if(
 1175   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 1176   [ok:ok],,
 1177   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 1178  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 1179  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 1180 
 1181 _AM_IF_OPTION([no-define],,
 1182 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 1183  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
 1184 
 1185 # Some tools Automake needs.
 1186 AC_REQUIRE([AM_SANITY_CHECK])dnl
 1187 AC_REQUIRE([AC_ARG_PROGRAM])dnl
 1188 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 1189 AM_MISSING_PROG([AUTOCONF], [autoconf])
 1190 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 1191 AM_MISSING_PROG([AUTOHEADER], [autoheader])
 1192 AM_MISSING_PROG([MAKEINFO], [makeinfo])
 1193 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 1194 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 1195 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 1196 # For better backward compatibility.  To be removed once Automake 1.9.x
 1197 # dies out for good.  For more background, see:
 1198 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 1199 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 1200 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
 1201 # We need awk for the "check" target (and possibly the TAP driver).  The
 1202 # system "awk" is bad on some platforms.
 1203 AC_REQUIRE([AC_PROG_AWK])dnl
 1204 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 1205 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 1206 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 1207           [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 1208                  [_AM_PROG_TAR([v7])])])
 1209 _AM_IF_OPTION([no-dependencies],,
 1210 [AC_PROVIDE_IFELSE([AC_PROG_CC],
 1211           [_AM_DEPENDENCIES([CC])],
 1212           [m4_define([AC_PROG_CC],
 1213                  m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
 1214 AC_PROVIDE_IFELSE([AC_PROG_CXX],
 1215           [_AM_DEPENDENCIES([CXX])],
 1216           [m4_define([AC_PROG_CXX],
 1217                  m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
 1218 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 1219           [_AM_DEPENDENCIES([OBJC])],
 1220           [m4_define([AC_PROG_OBJC],
 1221                  m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 1222 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 1223           [_AM_DEPENDENCIES([OBJCXX])],
 1224           [m4_define([AC_PROG_OBJCXX],
 1225                  m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
 1226 ])
 1227 AC_REQUIRE([AM_SILENT_RULES])dnl
 1228 dnl The testsuite driver may need to know about EXEEXT, so add the
 1229 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 1230 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
 1231 AC_CONFIG_COMMANDS_PRE(dnl
 1232 [m4_provide_if([_AM_COMPILER_EXEEXT],
 1233   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 1234 
 1235 # POSIX will say in a future version that running "rm -f" with no argument
 1236 # is OK; and we want to be able to make that assumption in our Makefile
 1237 # recipes.  So use an aggressive probe to check that the usage we want is
 1238 # actually supported "in the wild" to an acceptable degree.
 1239 # See automake bug#10828.
 1240 # To make any issue more visible, cause the running configure to be aborted
 1241 # by default if the 'rm' program in use doesn't match our expectations; the
 1242 # user can still override this though.
 1243 if rm -f && rm -fr && rm -rf; then : OK; else
 1244   cat >&2 <<'END'
 1245 Oops!
 1246 
 1247 Your 'rm' program seems unable to run without file operands specified
 1248 on the command line, even when the '-f' option is present.  This is contrary
 1249 to the behaviour of most rm programs out there, and not conforming with
 1250 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 1251 
 1252 Please tell bug-automake@gnu.org about your system, including the value
 1253 of your $PATH and any error possibly output before this message.  This
 1254 can help us improve future automake versions.
 1255 
 1256 END
 1257   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 1258     echo 'Configuration will proceed anyway, since you have set the' >&2
 1259     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 1260     echo >&2
 1261   else
 1262     cat >&2 <<'END'
 1263 Aborting the configuration process, to ensure you take notice of the issue.
 1264 
 1265 You can download and install GNU coreutils to get an 'rm' implementation
 1266 that behaves properly: <https://www.gnu.org/software/coreutils/>.
 1267 
 1268 If you want to complete the configuration process using your problematic
 1269 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 1270 to "yes", and re-run configure.
 1271 
 1272 END
 1273     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 1274   fi
 1275 fi
 1276 dnl The trailing newline in this macro's definition is deliberate, for
 1277 dnl backward compatibility and to allow trailing 'dnl'-style comments
 1278 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
 1279 ])
 1280 
 1281 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 1282 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 1283 dnl mangled by Autoconf and run in a shell conditional statement.
 1284 m4_define([_AC_COMPILER_EXEEXT],
 1285 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 1286 
 1287 # When config.status generates a header, we must update the stamp-h file.
 1288 # This file resides in the same directory as the config header
 1289 # that is generated.  The stamp files are numbered to have different names.
 1290 
 1291 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 1292 # loop where config.status creates the headers, so we can generate
 1293 # our stamp files there.
 1294 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 1295 [# Compute $1's index in $config_headers.
 1296 _am_arg=$1
 1297 _am_stamp_count=1
 1298 for _am_header in $config_headers :; do
 1299   case $_am_header in
 1300     $_am_arg | $_am_arg:* )
 1301       break ;;
 1302     * )
 1303       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 1304   esac
 1305 done
 1306 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 1307 
 1308 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
 1309 #
 1310 # This file is free software; the Free Software Foundation
 1311 # gives unlimited permission to copy and/or distribute it,
 1312 # with or without modifications, as long as this notice is preserved.
 1313 
 1314 # AM_PROG_INSTALL_SH
 1315 # ------------------
 1316 # Define $install_sh.
 1317 AC_DEFUN([AM_PROG_INSTALL_SH],
 1318 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 1319 if test x"${install_sh+set}" != xset; then
 1320   case $am_aux_dir in
 1321   *\ * | *\ *)
 1322     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 1323   *)
 1324     install_sh="\${SHELL} $am_aux_dir/install-sh"
 1325   esac
 1326 fi
 1327 AC_SUBST([install_sh])])
 1328 
 1329 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
 1330 #
 1331 # This file is free software; the Free Software Foundation
 1332 # gives unlimited permission to copy and/or distribute it,
 1333 # with or without modifications, as long as this notice is preserved.
 1334 
 1335 # Check whether the underlying file-system supports filenames
 1336 # with a leading dot.  For instance MS-DOS doesn't.
 1337 AC_DEFUN([AM_SET_LEADING_DOT],
 1338 [rm -rf .tst 2>/dev/null
 1339 mkdir .tst 2>/dev/null
 1340 if test -d .tst; then
 1341   am__leading_dot=.
 1342 else
 1343   am__leading_dot=_
 1344 fi
 1345 rmdir .tst 2>/dev/null
 1346 AC_SUBST([am__leading_dot])])
 1347 
 1348 # Check to see how 'make' treats includes.              -*- Autoconf -*-
 1349 
 1350 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
 1351 #
 1352 # This file is free software; the Free Software Foundation
 1353 # gives unlimited permission to copy and/or distribute it,
 1354 # with or without modifications, as long as this notice is preserved.
 1355 
 1356 # AM_MAKE_INCLUDE()
 1357 # -----------------
 1358 # Check whether make has an 'include' directive that can support all
 1359 # the idioms we need for our automatic dependency tracking code.
 1360 AC_DEFUN([AM_MAKE_INCLUDE],
 1361 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
 1362 cat > confinc.mk << 'END'
 1363 am__doit:
 1364     @echo this is the am__doit target >confinc.out
 1365 .PHONY: am__doit
 1366 END
 1367 am__include="#"
 1368 am__quote=
 1369 # BSD make does it like this.
 1370 echo '.include "confinc.mk" # ignored' > confmf.BSD
 1371 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
 1372 echo 'include confinc.mk # ignored' > confmf.GNU
 1373 _am_result=no
 1374 for s in GNU BSD; do
 1375   AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
 1376   AS_CASE([$?:`cat confinc.out 2>/dev/null`],
 1377       ['0:this is the am__doit target'],
 1378       [AS_CASE([$s],
 1379           [BSD], [am__include='.include' am__quote='"'],
 1380           [am__include='include' am__quote=''])])
 1381   if test "$am__include" != "#"; then
 1382     _am_result="yes ($s style)"
 1383     break
 1384   fi
 1385 done
 1386 rm -f confinc.* confmf.*
 1387 AC_MSG_RESULT([${_am_result}])
 1388 AC_SUBST([am__include])])
 1389 AC_SUBST([am__quote])])
 1390 
 1391 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 1392 
 1393 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
 1394 #
 1395 # This file is free software; the Free Software Foundation
 1396 # gives unlimited permission to copy and/or distribute it,
 1397 # with or without modifications, as long as this notice is preserved.
 1398 
 1399 # AM_MISSING_PROG(NAME, PROGRAM)
 1400 # ------------------------------
 1401 AC_DEFUN([AM_MISSING_PROG],
 1402 [AC_REQUIRE([AM_MISSING_HAS_RUN])
 1403 $1=${$1-"${am_missing_run}$2"}
 1404 AC_SUBST($1)])
 1405 
 1406 # AM_MISSING_HAS_RUN
 1407 # ------------------
 1408 # Define MISSING if not defined so far and test if it is modern enough.
 1409 # If it is, set am_missing_run to use it, otherwise, to nothing.
 1410 AC_DEFUN([AM_MISSING_HAS_RUN],
 1411 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 1412 AC_REQUIRE_AUX_FILE([missing])dnl
 1413 if test x"${MISSING+set}" != xset; then
 1414   case $am_aux_dir in
 1415   *\ * | *\ *)
 1416     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 1417   *)
 1418     MISSING="\${SHELL} $am_aux_dir/missing" ;;
 1419   esac
 1420 fi
 1421 # Use eval to expand $SHELL
 1422 if eval "$MISSING --is-lightweight"; then
 1423   am_missing_run="$MISSING "
 1424 else
 1425   am_missing_run=
 1426   AC_MSG_WARN(['missing' script is too old or missing])
 1427 fi
 1428 ])
 1429 
 1430 # Helper functions for option handling.                     -*- Autoconf -*-
 1431 
 1432 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
 1433 #
 1434 # This file is free software; the Free Software Foundation
 1435 # gives unlimited permission to copy and/or distribute it,
 1436 # with or without modifications, as long as this notice is preserved.
 1437 
 1438 # _AM_MANGLE_OPTION(NAME)
 1439 # -----------------------
 1440 AC_DEFUN([_AM_MANGLE_OPTION],
 1441 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 1442 
 1443 # _AM_SET_OPTION(NAME)
 1444 # --------------------
 1445 # Set option NAME.  Presently that only means defining a flag for this option.
 1446 AC_DEFUN([_AM_SET_OPTION],
 1447 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
 1448 
 1449 # _AM_SET_OPTIONS(OPTIONS)
 1450 # ------------------------
 1451 # OPTIONS is a space-separated list of Automake options.
 1452 AC_DEFUN([_AM_SET_OPTIONS],
 1453 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 1454 
 1455 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 1456 # -------------------------------------------
 1457 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 1458 AC_DEFUN([_AM_IF_OPTION],
 1459 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 1460 
 1461 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
 1462 #
 1463 # This file is free software; the Free Software Foundation
 1464 # gives unlimited permission to copy and/or distribute it,
 1465 # with or without modifications, as long as this notice is preserved.
 1466 
 1467 # _AM_PROG_CC_C_O
 1468 # ---------------
 1469 # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 1470 # to automatically call this.
 1471 AC_DEFUN([_AM_PROG_CC_C_O],
 1472 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 1473 AC_REQUIRE_AUX_FILE([compile])dnl
 1474 AC_LANG_PUSH([C])dnl
 1475 AC_CACHE_CHECK(
 1476   [whether $CC understands -c and -o together],
 1477   [am_cv_prog_cc_c_o],
 1478   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 1479   # Make sure it works both with $CC and with simple cc.
 1480   # Following AC_PROG_CC_C_O, we do the test twice because some
 1481   # compilers refuse to overwrite an existing .o file with -o,
 1482   # though they will create one.
 1483   am_cv_prog_cc_c_o=yes
 1484   for am_i in 1 2; do
 1485     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 1486          && test -f conftest2.$ac_objext; then
 1487       : OK
 1488     else
 1489       am_cv_prog_cc_c_o=no
 1490       break
 1491     fi
 1492   done
 1493   rm -f core conftest*
 1494   unset am_i])
 1495 if test "$am_cv_prog_cc_c_o" != yes; then
 1496    # Losing compiler, so override with the script.
 1497    # FIXME: It is wrong to rewrite CC.
 1498    # But if we don't then we get into trouble of one sort or another.
 1499    # A longer-term fix would be to have automake use am__CC in this case,
 1500    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 1501    CC="$am_aux_dir/compile $CC"
 1502 fi
 1503 AC_LANG_POP([C])])
 1504 
 1505 # For backward compatibility.
 1506 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 1507 
 1508 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
 1509 #
 1510 # This file is free software; the Free Software Foundation
 1511 # gives unlimited permission to copy and/or distribute it,
 1512 # with or without modifications, as long as this notice is preserved.
 1513 
 1514 # AM_RUN_LOG(COMMAND)
 1515 # -------------------
 1516 # Run COMMAND, save the exit status in ac_status, and log it.
 1517 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 1518 AC_DEFUN([AM_RUN_LOG],
 1519 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 1520    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 1521    ac_status=$?
 1522    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 1523    (exit $ac_status); }])
 1524 
 1525 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
 1526 
 1527 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
 1528 #
 1529 # This file is free software; the Free Software Foundation
 1530 # gives unlimited permission to copy and/or distribute it,
 1531 # with or without modifications, as long as this notice is preserved.
 1532 
 1533 # AM_SANITY_CHECK
 1534 # ---------------
 1535 AC_DEFUN([AM_SANITY_CHECK],
 1536 [AC_MSG_CHECKING([whether build environment is sane])
 1537 # Reject unsafe characters in $srcdir or the absolute working directory
 1538 # name.  Accept space and tab only in the latter.
 1539 am_lf='
 1540 '
 1541 case `pwd` in
 1542   *[[\\\"\#\$\&\'\`$am_lf]]*)
 1543     AC_MSG_ERROR([unsafe absolute working directory name]);;
 1544 esac
 1545 case $srcdir in
 1546   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 1547     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
 1548 esac
 1549 
 1550 # Do 'set' in a subshell so we don't clobber the current shell's
 1551 # arguments.  Must try -L first in case configure is actually a
 1552 # symlink; some systems play weird games with the mod time of symlinks
 1553 # (eg FreeBSD returns the mod time of the symlink's containing
 1554 # directory).
 1555 if (
 1556    am_has_slept=no
 1557    for am_try in 1 2; do
 1558      echo "timestamp, slept: $am_has_slept" > conftest.file
 1559      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 1560      if test "$[*]" = "X"; then
 1561     # -L didn't work.
 1562     set X `ls -t "$srcdir/configure" conftest.file`
 1563      fi
 1564      if test "$[*]" != "X $srcdir/configure conftest.file" \
 1565     && test "$[*]" != "X conftest.file $srcdir/configure"; then
 1566 
 1567     # If neither matched, then we have a broken ls.  This can happen
 1568     # if, for instance, CONFIG_SHELL is bash and it inherits a
 1569     # broken ls alias from the environment.  This has actually
 1570     # happened.  Such a system could not be considered "sane".
 1571     AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 1572   alias in your environment])
 1573      fi
 1574      if test "$[2]" = conftest.file || test $am_try -eq 2; then
 1575        break
 1576      fi
 1577      # Just in case.
 1578      sleep 1
 1579      am_has_slept=yes
 1580    done
 1581    test "$[2]" = conftest.file
 1582    )
 1583 then
 1584    # Ok.
 1585    :
 1586 else
 1587    AC_MSG_ERROR([newly created file is older than distributed files!
 1588 Check your system clock])
 1589 fi
 1590 AC_MSG_RESULT([yes])
 1591 # If we didn't sleep, we still need to ensure time stamps of config.status and
 1592 # generated files are strictly newer.
 1593 am_sleep_pid=
 1594 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 1595   ( sleep 1 ) &
 1596   am_sleep_pid=$!
 1597 fi
 1598 AC_CONFIG_COMMANDS_PRE(
 1599   [AC_MSG_CHECKING([that generated files are newer than configure])
 1600    if test -n "$am_sleep_pid"; then
 1601      # Hide warnings about reused PIDs.
 1602      wait $am_sleep_pid 2>/dev/null
 1603    fi
 1604    AC_MSG_RESULT([done])])
 1605 rm -f conftest.file
 1606 ])
 1607 
 1608 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
 1609 #
 1610 # This file is free software; the Free Software Foundation
 1611 # gives unlimited permission to copy and/or distribute it,
 1612 # with or without modifications, as long as this notice is preserved.
 1613 
 1614 # AM_SILENT_RULES([DEFAULT])
 1615 # --------------------------
 1616 # Enable less verbose build rules; with the default set to DEFAULT
 1617 # ("yes" being less verbose, "no" or empty being verbose).
 1618 AC_DEFUN([AM_SILENT_RULES],
 1619 [AC_ARG_ENABLE([silent-rules], [dnl
 1620 AS_HELP_STRING(
 1621   [--enable-silent-rules],
 1622   [less verbose build output (undo: "make V=1")])
 1623 AS_HELP_STRING(
 1624   [--disable-silent-rules],
 1625   [verbose build output (undo: "make V=0")])dnl
 1626 ])
 1627 case $enable_silent_rules in @%:@ (((
 1628   yes) AM_DEFAULT_VERBOSITY=0;;
 1629    no) AM_DEFAULT_VERBOSITY=1;;
 1630     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 1631 esac
 1632 dnl
 1633 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 1634 dnl do not support nested variable expansions.
 1635 dnl See automake bug#9928 and bug#10237.
 1636 am_make=${MAKE-make}
 1637 AC_CACHE_CHECK([whether $am_make supports nested variables],
 1638    [am_cv_make_support_nested_variables],
 1639    [if AS_ECHO([['TRUE=$(BAR$(V))
 1640 BAR0=false
 1641 BAR1=true
 1642 V=1
 1643 am__doit:
 1644     @$(TRUE)
 1645 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 1646   am_cv_make_support_nested_variables=yes
 1647 else
 1648   am_cv_make_support_nested_variables=no
 1649 fi])
 1650 if test $am_cv_make_support_nested_variables = yes; then
 1651   dnl Using '$V' instead of '$(V)' breaks IRIX make.
 1652   AM_V='$(V)'
 1653   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 1654 else
 1655   AM_V=$AM_DEFAULT_VERBOSITY
 1656   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 1657 fi
 1658 AC_SUBST([AM_V])dnl
 1659 AM_SUBST_NOTMAKE([AM_V])dnl
 1660 AC_SUBST([AM_DEFAULT_V])dnl
 1661 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 1662 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 1663 AM_BACKSLASH='\'
 1664 AC_SUBST([AM_BACKSLASH])dnl
 1665 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 1666 ])
 1667 
 1668 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
 1669 #
 1670 # This file is free software; the Free Software Foundation
 1671 # gives unlimited permission to copy and/or distribute it,
 1672 # with or without modifications, as long as this notice is preserved.
 1673 
 1674 # AM_PROG_INSTALL_STRIP
 1675 # ---------------------
 1676 # One issue with vendor 'install' (even GNU) is that you can't
 1677 # specify the program used to strip binaries.  This is especially
 1678 # annoying in cross-compiling environments, where the build's strip
 1679 # is unlikely to handle the host's binaries.
 1680 # Fortunately install-sh will honor a STRIPPROG variable, so we
 1681 # always use install-sh in "make install-strip", and initialize
 1682 # STRIPPROG with the value of the STRIP variable (set by the user).
 1683 AC_DEFUN([AM_PROG_INSTALL_STRIP],
 1684 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 1685 # Installed binaries are usually stripped using 'strip' when the user
 1686 # run "make install-strip".  However 'strip' might not be the right
 1687 # tool to use in cross-compilation environments, therefore Automake
 1688 # will honor the 'STRIP' environment variable to overrule this program.
 1689 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
 1690 if test "$cross_compiling" != no; then
 1691   AC_CHECK_TOOL([STRIP], [strip], :)
 1692 fi
 1693 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 1694 AC_SUBST([INSTALL_STRIP_PROGRAM])])
 1695 
 1696 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
 1697 #
 1698 # This file is free software; the Free Software Foundation
 1699 # gives unlimited permission to copy and/or distribute it,
 1700 # with or without modifications, as long as this notice is preserved.
 1701 
 1702 # _AM_SUBST_NOTMAKE(VARIABLE)
 1703 # ---------------------------
 1704 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 1705 # This macro is traced by Automake.
 1706 AC_DEFUN([_AM_SUBST_NOTMAKE])
 1707 
 1708 # AM_SUBST_NOTMAKE(VARIABLE)
 1709 # --------------------------
 1710 # Public sister of _AM_SUBST_NOTMAKE.
 1711 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 1712 
 1713 # Check how to create a tarball.                            -*- Autoconf -*-
 1714 
 1715 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
 1716 #
 1717 # This file is free software; the Free Software Foundation
 1718 # gives unlimited permission to copy and/or distribute it,
 1719 # with or without modifications, as long as this notice is preserved.
 1720 
 1721 # _AM_PROG_TAR(FORMAT)
 1722 # --------------------
 1723 # Check how to create a tarball in format FORMAT.
 1724 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
 1725 #
 1726 # Substitute a variable $(am__tar) that is a command
 1727 # writing to stdout a FORMAT-tarball containing the directory
 1728 # $tardir.
 1729 #     tardir=directory && $(am__tar) > result.tar
 1730 #
 1731 # Substitute a variable $(am__untar) that extract such
 1732 # a tarball read from stdin.
 1733 #     $(am__untar) < result.tar
 1734 #
 1735 AC_DEFUN([_AM_PROG_TAR],
 1736 [# Always define AMTAR for backward compatibility.  Yes, it's still used
 1737 # in the wild :-(  We should find a proper way to deprecate it ...
 1738 AC_SUBST([AMTAR], ['$${TAR-tar}'])
 1739 
 1740 # We'll loop over all known methods to create a tar archive until one works.
 1741 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 1742 
 1743 m4_if([$1], [v7],
 1744   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 1745 
 1746   [m4_case([$1],
 1747     [ustar],
 1748      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 1749       # There is notably a 21 bits limit for the UID and the GID.  In fact,
 1750       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 1751       # and bug#13588).
 1752       am_max_uid=2097151 # 2^21 - 1
 1753       am_max_gid=$am_max_uid
 1754       # The $UID and $GID variables are not portable, so we need to resort
 1755       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 1756       # below are definitely unexpected, so allow the users to see them
 1757       # (that is, avoid stderr redirection).
 1758       am_uid=`id -u || echo unknown`
 1759       am_gid=`id -g || echo unknown`
 1760       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 1761       if test $am_uid -le $am_max_uid; then
 1762          AC_MSG_RESULT([yes])
 1763       else
 1764          AC_MSG_RESULT([no])
 1765          _am_tools=none
 1766       fi
 1767       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 1768       if test $am_gid -le $am_max_gid; then
 1769          AC_MSG_RESULT([yes])
 1770       else
 1771         AC_MSG_RESULT([no])
 1772         _am_tools=none
 1773       fi],
 1774 
 1775   [pax],
 1776     [],
 1777 
 1778   [m4_fatal([Unknown tar format])])
 1779 
 1780   AC_MSG_CHECKING([how to create a $1 tar archive])
 1781 
 1782   # Go ahead even if we have the value already cached.  We do so because we
 1783   # need to set the values for the 'am__tar' and 'am__untar' variables.
 1784   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 1785 
 1786   for _am_tool in $_am_tools; do
 1787     case $_am_tool in
 1788     gnutar)
 1789       for _am_tar in tar gnutar gtar; do
 1790         AM_RUN_LOG([$_am_tar --version]) && break
 1791       done
 1792       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 1793       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 1794       am__untar="$_am_tar -xf -"
 1795       ;;
 1796     plaintar)
 1797       # Must skip GNU tar: if it does not support --format= it doesn't create
 1798       # ustar tarball either.
 1799       (tar --version) >/dev/null 2>&1 && continue
 1800       am__tar='tar chf - "$$tardir"'
 1801       am__tar_='tar chf - "$tardir"'
 1802       am__untar='tar xf -'
 1803       ;;
 1804     pax)
 1805       am__tar='pax -L -x $1 -w "$$tardir"'
 1806       am__tar_='pax -L -x $1 -w "$tardir"'
 1807       am__untar='pax -r'
 1808       ;;
 1809     cpio)
 1810       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 1811       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 1812       am__untar='cpio -i -H $1 -d'
 1813       ;;
 1814     none)
 1815       am__tar=false
 1816       am__tar_=false
 1817       am__untar=false
 1818       ;;
 1819     esac
 1820 
 1821     # If the value was cached, stop now.  We just wanted to have am__tar
 1822     # and am__untar set.
 1823     test -n "${am_cv_prog_tar_$1}" && break
 1824 
 1825     # tar/untar a dummy directory, and stop if the command works.
 1826     rm -rf conftest.dir
 1827     mkdir conftest.dir
 1828     echo GrepMe > conftest.dir/file
 1829     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 1830     rm -rf conftest.dir
 1831     if test -s conftest.tar; then
 1832       AM_RUN_LOG([$am__untar <conftest.tar])
 1833       AM_RUN_LOG([cat conftest.dir/file])
 1834       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 1835     fi
 1836   done
 1837   rm -rf conftest.dir
 1838 
 1839   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 1840   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 1841 
 1842 AC_SUBST([am__tar])
 1843 AC_SUBST([am__untar])
 1844 ]) # _AM_PROG_TAR
 1845 
 1846 m4_include([m4/pkg.m4])
 1847 m4_include([acinclude.m4])