"Fossies" - the Fresh Open Source Software Archive

Member "gparted-1.3.1/aclocal.m4" (19 Jul 2021, 80281 Bytes) of package /linux/misc/gparted-1.3.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. 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": 1.3.0_vs_1.3.1.

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