"Fossies" - the Fresh Open Source Software Archive 
Member "libextractor-1.11/aclocal.m4" (30 Jan 2021, 45087 Bytes) of package /linux/privat/libextractor-1.11.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.10_vs_1.11.
1 # generated automatically by aclocal 1.16.3 -*- Autoconf -*-
2
3 # Copyright (C) 1996-2020 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 # intlmacosx.m4 serial 5 (gettext-0.18.2)
24 dnl Copyright (C) 2004-2014, 2016 Free Software Foundation, Inc.
25 dnl This file is free software; the Free Software Foundation
26 dnl gives unlimited permission to copy and/or distribute it,
27 dnl with or without modifications, as long as this notice is preserved.
28 dnl
29 dnl This file can be used in projects which are not available under
30 dnl the GNU General Public License or the GNU Library General Public
31 dnl License but which still want to provide support for the GNU gettext
32 dnl functionality.
33 dnl Please note that the actual code of the GNU gettext library is covered
34 dnl by the GNU Library General Public License, and the rest of the GNU
35 dnl gettext package is covered by the GNU General Public License.
36 dnl They are *not* in the public domain.
37
38 dnl Checks for special options needed on Mac OS X.
39 dnl Defines INTL_MACOSX_LIBS.
40 AC_DEFUN([gt_INTL_MACOSX],
41 [
42 dnl Check for API introduced in Mac OS X 10.2.
43 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
44 [gt_cv_func_CFPreferencesCopyAppValue],
45 [gt_save_LIBS="$LIBS"
46 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
47 AC_LINK_IFELSE(
48 [AC_LANG_PROGRAM(
49 [[#include <CoreFoundation/CFPreferences.h>]],
50 [[CFPreferencesCopyAppValue(NULL, NULL)]])],
51 [gt_cv_func_CFPreferencesCopyAppValue=yes],
52 [gt_cv_func_CFPreferencesCopyAppValue=no])
53 LIBS="$gt_save_LIBS"])
54 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
55 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
56 [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
57 fi
58 dnl Check for API introduced in Mac OS X 10.3.
59 AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent],
60 [gt_save_LIBS="$LIBS"
61 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
62 AC_LINK_IFELSE(
63 [AC_LANG_PROGRAM(
64 [[#include <CoreFoundation/CFLocale.h>]],
65 [[CFLocaleCopyCurrent();]])],
66 [gt_cv_func_CFLocaleCopyCurrent=yes],
67 [gt_cv_func_CFLocaleCopyCurrent=no])
68 LIBS="$gt_save_LIBS"])
69 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
70 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1],
71 [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
72 fi
73 INTL_MACOSX_LIBS=
74 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
75 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
76 fi
77 AC_SUBST([INTL_MACOSX_LIBS])
78 ])
79
80 # Copyright (C) 2002-2020 Free Software Foundation, Inc.
81 #
82 # This file is free software; the Free Software Foundation
83 # gives unlimited permission to copy and/or distribute it,
84 # with or without modifications, as long as this notice is preserved.
85
86 # AM_AUTOMAKE_VERSION(VERSION)
87 # ----------------------------
88 # Automake X.Y traces this macro to ensure aclocal.m4 has been
89 # generated from the m4 files accompanying Automake X.Y.
90 # (This private macro should not be called outside this file.)
91 AC_DEFUN([AM_AUTOMAKE_VERSION],
92 [am__api_version='1.16'
93 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
94 dnl require some minimum version. Point them to the right macro.
95 m4_if([$1], [1.16.3], [],
96 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
97 ])
98
99 # _AM_AUTOCONF_VERSION(VERSION)
100 # -----------------------------
101 # aclocal traces this macro to find the Autoconf version.
102 # This is a private macro too. Using m4_define simplifies
103 # the logic in aclocal, which can simply ignore this definition.
104 m4_define([_AM_AUTOCONF_VERSION], [])
105
106 # AM_SET_CURRENT_AUTOMAKE_VERSION
107 # -------------------------------
108 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
109 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
110 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
111 [AM_AUTOMAKE_VERSION([1.16.3])dnl
112 m4_ifndef([AC_AUTOCONF_VERSION],
113 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
114 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
115
116 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
117
118 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
119 #
120 # This file is free software; the Free Software Foundation
121 # gives unlimited permission to copy and/or distribute it,
122 # with or without modifications, as long as this notice is preserved.
123
124 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
125 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
126 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
127 #
128 # Of course, Automake must honor this variable whenever it calls a
129 # tool from the auxiliary directory. The problem is that $srcdir (and
130 # therefore $ac_aux_dir as well) can be either absolute or relative,
131 # depending on how configure is run. This is pretty annoying, since
132 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
133 # source directory, any form will work fine, but in subdirectories a
134 # relative path needs to be adjusted first.
135 #
136 # $ac_aux_dir/missing
137 # fails when called from a subdirectory if $ac_aux_dir is relative
138 # $top_srcdir/$ac_aux_dir/missing
139 # fails if $ac_aux_dir is absolute,
140 # fails when called from a subdirectory in a VPATH build with
141 # a relative $ac_aux_dir
142 #
143 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
144 # are both prefixed by $srcdir. In an in-source build this is usually
145 # harmless because $srcdir is '.', but things will broke when you
146 # start a VPATH build or use an absolute $srcdir.
147 #
148 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
149 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
150 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
151 # and then we would define $MISSING as
152 # MISSING="\${SHELL} $am_aux_dir/missing"
153 # This will work as long as MISSING is not called from configure, because
154 # unfortunately $(top_srcdir) has no meaning in configure.
155 # However there are other variables, like CC, which are often used in
156 # configure, and could therefore not use this "fixed" $ac_aux_dir.
157 #
158 # Another solution, used here, is to always expand $ac_aux_dir to an
159 # absolute PATH. The drawback is that using absolute paths prevent a
160 # configured tree to be moved without reconfiguration.
161
162 AC_DEFUN([AM_AUX_DIR_EXPAND],
163 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
164 # Expand $ac_aux_dir to an absolute path.
165 am_aux_dir=`cd "$ac_aux_dir" && pwd`
166 ])
167
168 # AM_CONDITIONAL -*- Autoconf -*-
169
170 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
171 #
172 # This file is free software; the Free Software Foundation
173 # gives unlimited permission to copy and/or distribute it,
174 # with or without modifications, as long as this notice is preserved.
175
176 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
177 # -------------------------------------
178 # Define a conditional.
179 AC_DEFUN([AM_CONDITIONAL],
180 [AC_PREREQ([2.52])dnl
181 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
182 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
183 AC_SUBST([$1_TRUE])dnl
184 AC_SUBST([$1_FALSE])dnl
185 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
186 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
187 m4_define([_AM_COND_VALUE_$1], [$2])dnl
188 if $2; then
189 $1_TRUE=
190 $1_FALSE='#'
191 else
192 $1_TRUE='#'
193 $1_FALSE=
194 fi
195 AC_CONFIG_COMMANDS_PRE(
196 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
197 AC_MSG_ERROR([[conditional "$1" was never defined.
198 Usually this means the macro was only invoked conditionally.]])
199 fi])])
200
201 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
202 #
203 # This file is free software; the Free Software Foundation
204 # gives unlimited permission to copy and/or distribute it,
205 # with or without modifications, as long as this notice is preserved.
206
207
208 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
209 # written in clear, in which case automake, when reading aclocal.m4,
210 # will think it sees a *use*, and therefore will trigger all it's
211 # C support machinery. Also note that it means that autoscan, seeing
212 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
213
214
215 # _AM_DEPENDENCIES(NAME)
216 # ----------------------
217 # See how the compiler implements dependency checking.
218 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
219 # We try a few techniques and use that to set a single cache variable.
220 #
221 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
222 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
223 # dependency, and given that the user is not expected to run this macro,
224 # just rely on AC_PROG_CC.
225 AC_DEFUN([_AM_DEPENDENCIES],
226 [AC_REQUIRE([AM_SET_DEPDIR])dnl
227 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
228 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
229 AC_REQUIRE([AM_DEP_TRACK])dnl
230
231 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
232 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
233 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
234 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
235 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
236 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
237 [depcc="$$1" am_compiler_list=])
238
239 AC_CACHE_CHECK([dependency style of $depcc],
240 [am_cv_$1_dependencies_compiler_type],
241 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
242 # We make a subdir and do the tests there. Otherwise we can end up
243 # making bogus files that we don't know about and never remove. For
244 # instance it was reported that on HP-UX the gcc test will end up
245 # making a dummy file named 'D' -- because '-MD' means "put the output
246 # in D".
247 rm -rf conftest.dir
248 mkdir conftest.dir
249 # Copy depcomp to subdir because otherwise we won't find it if we're
250 # using a relative directory.
251 cp "$am_depcomp" conftest.dir
252 cd conftest.dir
253 # We will build objects and dependencies in a subdirectory because
254 # it helps to detect inapplicable dependency modes. For instance
255 # both Tru64's cc and ICC support -MD to output dependencies as a
256 # side effect of compilation, but ICC will put the dependencies in
257 # the current directory while Tru64 will put them in the object
258 # directory.
259 mkdir sub
260
261 am_cv_$1_dependencies_compiler_type=none
262 if test "$am_compiler_list" = ""; then
263 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
264 fi
265 am__universal=false
266 m4_case([$1], [CC],
267 [case " $depcc " in #(
268 *\ -arch\ *\ -arch\ *) am__universal=true ;;
269 esac],
270 [CXX],
271 [case " $depcc " in #(
272 *\ -arch\ *\ -arch\ *) am__universal=true ;;
273 esac])
274
275 for depmode in $am_compiler_list; do
276 # Setup a source with many dependencies, because some compilers
277 # like to wrap large dependency lists on column 80 (with \), and
278 # we should not choose a depcomp mode which is confused by this.
279 #
280 # We need to recreate these files for each test, as the compiler may
281 # overwrite some of them when testing with obscure command lines.
282 # This happens at least with the AIX C compiler.
283 : > sub/conftest.c
284 for i in 1 2 3 4 5 6; do
285 echo '#include "conftst'$i'.h"' >> sub/conftest.c
286 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
287 # Solaris 10 /bin/sh.
288 echo '/* dummy */' > sub/conftst$i.h
289 done
290 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
291
292 # We check with '-c' and '-o' for the sake of the "dashmstdout"
293 # mode. It turns out that the SunPro C++ compiler does not properly
294 # handle '-M -o', and we need to detect this. Also, some Intel
295 # versions had trouble with output in subdirs.
296 am__obj=sub/conftest.${OBJEXT-o}
297 am__minus_obj="-o $am__obj"
298 case $depmode in
299 gcc)
300 # This depmode causes a compiler race in universal mode.
301 test "$am__universal" = false || continue
302 ;;
303 nosideeffect)
304 # After this tag, mechanisms are not by side-effect, so they'll
305 # only be used when explicitly requested.
306 if test "x$enable_dependency_tracking" = xyes; then
307 continue
308 else
309 break
310 fi
311 ;;
312 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
313 # This compiler won't grok '-c -o', but also, the minuso test has
314 # not run yet. These depmodes are late enough in the game, and
315 # so weak that their functioning should not be impacted.
316 am__obj=conftest.${OBJEXT-o}
317 am__minus_obj=
318 ;;
319 none) break ;;
320 esac
321 if depmode=$depmode \
322 source=sub/conftest.c object=$am__obj \
323 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
324 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
325 >/dev/null 2>conftest.err &&
326 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
327 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
328 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
329 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
330 # icc doesn't choke on unknown options, it will just issue warnings
331 # or remarks (even with -Werror). So we grep stderr for any message
332 # that says an option was ignored or not supported.
333 # When given -MP, icc 7.0 and 7.1 complain thusly:
334 # icc: Command line warning: ignoring option '-M'; no argument required
335 # The diagnosis changed in icc 8.0:
336 # icc: Command line remark: option '-MP' not supported
337 if (grep 'ignoring option' conftest.err ||
338 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
339 am_cv_$1_dependencies_compiler_type=$depmode
340 break
341 fi
342 fi
343 done
344
345 cd ..
346 rm -rf conftest.dir
347 else
348 am_cv_$1_dependencies_compiler_type=none
349 fi
350 ])
351 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
352 AM_CONDITIONAL([am__fastdep$1], [
353 test "x$enable_dependency_tracking" != xno \
354 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
355 ])
356
357
358 # AM_SET_DEPDIR
359 # -------------
360 # Choose a directory name for dependency files.
361 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
362 AC_DEFUN([AM_SET_DEPDIR],
363 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
364 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
365 ])
366
367
368 # AM_DEP_TRACK
369 # ------------
370 AC_DEFUN([AM_DEP_TRACK],
371 [AC_ARG_ENABLE([dependency-tracking], [dnl
372 AS_HELP_STRING(
373 [--enable-dependency-tracking],
374 [do not reject slow dependency extractors])
375 AS_HELP_STRING(
376 [--disable-dependency-tracking],
377 [speeds up one-time build])])
378 if test "x$enable_dependency_tracking" != xno; then
379 am_depcomp="$ac_aux_dir/depcomp"
380 AMDEPBACKSLASH='\'
381 am__nodep='_no'
382 fi
383 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
384 AC_SUBST([AMDEPBACKSLASH])dnl
385 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
386 AC_SUBST([am__nodep])dnl
387 _AM_SUBST_NOTMAKE([am__nodep])dnl
388 ])
389
390 # Generate code to set up dependency tracking. -*- Autoconf -*-
391
392 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
393 #
394 # This file is free software; the Free Software Foundation
395 # gives unlimited permission to copy and/or distribute it,
396 # with or without modifications, as long as this notice is preserved.
397
398 # _AM_OUTPUT_DEPENDENCY_COMMANDS
399 # ------------------------------
400 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
401 [{
402 # Older Autoconf quotes --file arguments for eval, but not when files
403 # are listed without --file. Let's play safe and only enable the eval
404 # if we detect the quoting.
405 # TODO: see whether this extra hack can be removed once we start
406 # requiring Autoconf 2.70 or later.
407 AS_CASE([$CONFIG_FILES],
408 [*\'*], [eval set x "$CONFIG_FILES"],
409 [*], [set x $CONFIG_FILES])
410 shift
411 # Used to flag and report bootstrapping failures.
412 am_rc=0
413 for am_mf
414 do
415 # Strip MF so we end up with the name of the file.
416 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
417 # Check whether this is an Automake generated Makefile which includes
418 # dependency-tracking related rules and includes.
419 # Grep'ing the whole file directly is not great: AIX grep has a line
420 # limit of 2048, but all sed's we know have understand at least 4000.
421 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
422 || continue
423 am_dirpart=`AS_DIRNAME(["$am_mf"])`
424 am_filepart=`AS_BASENAME(["$am_mf"])`
425 AM_RUN_LOG([cd "$am_dirpart" \
426 && sed -e '/# am--include-marker/d' "$am_filepart" \
427 | $MAKE -f - am--depfiles]) || am_rc=$?
428 done
429 if test $am_rc -ne 0; then
430 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
431 for automatic dependency tracking. If GNU make was not used, consider
432 re-running the configure script with MAKE="gmake" (or whatever is
433 necessary). You can also try re-running configure with the
434 '--disable-dependency-tracking' option to at least be able to build
435 the package (albeit without support for automatic dependency tracking).])
436 fi
437 AS_UNSET([am_dirpart])
438 AS_UNSET([am_filepart])
439 AS_UNSET([am_mf])
440 AS_UNSET([am_rc])
441 rm -f conftest-deps.mk
442 }
443 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
444
445
446 # AM_OUTPUT_DEPENDENCY_COMMANDS
447 # -----------------------------
448 # This macro should only be invoked once -- use via AC_REQUIRE.
449 #
450 # This code is only required when automatic dependency tracking is enabled.
451 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
452 # order to bootstrap the dependency handling code.
453 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
454 [AC_CONFIG_COMMANDS([depfiles],
455 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
456 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
457
458 # Do all the work for Automake. -*- Autoconf -*-
459
460 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
461 #
462 # This file is free software; the Free Software Foundation
463 # gives unlimited permission to copy and/or distribute it,
464 # with or without modifications, as long as this notice is preserved.
465
466 # This macro actually does too much. Some checks are only needed if
467 # your package does certain things. But this isn't really a big deal.
468
469 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
470 m4_define([AC_PROG_CC],
471 m4_defn([AC_PROG_CC])
472 [_AM_PROG_CC_C_O
473 ])
474
475 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
476 # AM_INIT_AUTOMAKE([OPTIONS])
477 # -----------------------------------------------
478 # The call with PACKAGE and VERSION arguments is the old style
479 # call (pre autoconf-2.50), which is being phased out. PACKAGE
480 # and VERSION should now be passed to AC_INIT and removed from
481 # the call to AM_INIT_AUTOMAKE.
482 # We support both call styles for the transition. After
483 # the next Automake release, Autoconf can make the AC_INIT
484 # arguments mandatory, and then we can depend on a new Autoconf
485 # release and drop the old call support.
486 AC_DEFUN([AM_INIT_AUTOMAKE],
487 [AC_PREREQ([2.65])dnl
488 dnl Autoconf wants to disallow AM_ names. We explicitly allow
489 dnl the ones we care about.
490 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
491 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
492 AC_REQUIRE([AC_PROG_INSTALL])dnl
493 if test "`cd $srcdir && pwd`" != "`pwd`"; then
494 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
495 # is not polluted with repeated "-I."
496 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
497 # test to see if srcdir already configured
498 if test -f $srcdir/config.status; then
499 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
500 fi
501 fi
502
503 # test whether we have cygpath
504 if test -z "$CYGPATH_W"; then
505 if (cygpath --version) >/dev/null 2>/dev/null; then
506 CYGPATH_W='cygpath -w'
507 else
508 CYGPATH_W=echo
509 fi
510 fi
511 AC_SUBST([CYGPATH_W])
512
513 # Define the identity of the package.
514 dnl Distinguish between old-style and new-style calls.
515 m4_ifval([$2],
516 [AC_DIAGNOSE([obsolete],
517 [$0: two- and three-arguments forms are deprecated.])
518 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
519 AC_SUBST([PACKAGE], [$1])dnl
520 AC_SUBST([VERSION], [$2])],
521 [_AM_SET_OPTIONS([$1])dnl
522 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
523 m4_if(
524 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
525 [ok:ok],,
526 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
527 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
528 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
529
530 _AM_IF_OPTION([no-define],,
531 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
532 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
533
534 # Some tools Automake needs.
535 AC_REQUIRE([AM_SANITY_CHECK])dnl
536 AC_REQUIRE([AC_ARG_PROGRAM])dnl
537 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
538 AM_MISSING_PROG([AUTOCONF], [autoconf])
539 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
540 AM_MISSING_PROG([AUTOHEADER], [autoheader])
541 AM_MISSING_PROG([MAKEINFO], [makeinfo])
542 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
543 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
544 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
545 # For better backward compatibility. To be removed once Automake 1.9.x
546 # dies out for good. For more background, see:
547 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
548 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
549 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
550 # We need awk for the "check" target (and possibly the TAP driver). The
551 # system "awk" is bad on some platforms.
552 AC_REQUIRE([AC_PROG_AWK])dnl
553 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
554 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
555 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
556 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
557 [_AM_PROG_TAR([v7])])])
558 _AM_IF_OPTION([no-dependencies],,
559 [AC_PROVIDE_IFELSE([AC_PROG_CC],
560 [_AM_DEPENDENCIES([CC])],
561 [m4_define([AC_PROG_CC],
562 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
563 AC_PROVIDE_IFELSE([AC_PROG_CXX],
564 [_AM_DEPENDENCIES([CXX])],
565 [m4_define([AC_PROG_CXX],
566 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
567 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
568 [_AM_DEPENDENCIES([OBJC])],
569 [m4_define([AC_PROG_OBJC],
570 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
571 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
572 [_AM_DEPENDENCIES([OBJCXX])],
573 [m4_define([AC_PROG_OBJCXX],
574 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
575 ])
576 AC_REQUIRE([AM_SILENT_RULES])dnl
577 dnl The testsuite driver may need to know about EXEEXT, so add the
578 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
579 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
580 AC_CONFIG_COMMANDS_PRE(dnl
581 [m4_provide_if([_AM_COMPILER_EXEEXT],
582 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
583
584 # POSIX will say in a future version that running "rm -f" with no argument
585 # is OK; and we want to be able to make that assumption in our Makefile
586 # recipes. So use an aggressive probe to check that the usage we want is
587 # actually supported "in the wild" to an acceptable degree.
588 # See automake bug#10828.
589 # To make any issue more visible, cause the running configure to be aborted
590 # by default if the 'rm' program in use doesn't match our expectations; the
591 # user can still override this though.
592 if rm -f && rm -fr && rm -rf; then : OK; else
593 cat >&2 <<'END'
594 Oops!
595
596 Your 'rm' program seems unable to run without file operands specified
597 on the command line, even when the '-f' option is present. This is contrary
598 to the behaviour of most rm programs out there, and not conforming with
599 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
600
601 Please tell bug-automake@gnu.org about your system, including the value
602 of your $PATH and any error possibly output before this message. This
603 can help us improve future automake versions.
604
605 END
606 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
607 echo 'Configuration will proceed anyway, since you have set the' >&2
608 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
609 echo >&2
610 else
611 cat >&2 <<'END'
612 Aborting the configuration process, to ensure you take notice of the issue.
613
614 You can download and install GNU coreutils to get an 'rm' implementation
615 that behaves properly: <https://www.gnu.org/software/coreutils/>.
616
617 If you want to complete the configuration process using your problematic
618 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
619 to "yes", and re-run configure.
620
621 END
622 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
623 fi
624 fi
625 dnl The trailing newline in this macro's definition is deliberate, for
626 dnl backward compatibility and to allow trailing 'dnl'-style comments
627 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
628 ])
629
630 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
631 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
632 dnl mangled by Autoconf and run in a shell conditional statement.
633 m4_define([_AC_COMPILER_EXEEXT],
634 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
635
636 # When config.status generates a header, we must update the stamp-h file.
637 # This file resides in the same directory as the config header
638 # that is generated. The stamp files are numbered to have different names.
639
640 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
641 # loop where config.status creates the headers, so we can generate
642 # our stamp files there.
643 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
644 [# Compute $1's index in $config_headers.
645 _am_arg=$1
646 _am_stamp_count=1
647 for _am_header in $config_headers :; do
648 case $_am_header in
649 $_am_arg | $_am_arg:* )
650 break ;;
651 * )
652 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
653 esac
654 done
655 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
656
657 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
658 #
659 # This file is free software; the Free Software Foundation
660 # gives unlimited permission to copy and/or distribute it,
661 # with or without modifications, as long as this notice is preserved.
662
663 # AM_PROG_INSTALL_SH
664 # ------------------
665 # Define $install_sh.
666 AC_DEFUN([AM_PROG_INSTALL_SH],
667 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
668 if test x"${install_sh+set}" != xset; then
669 case $am_aux_dir in
670 *\ * | *\ *)
671 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
672 *)
673 install_sh="\${SHELL} $am_aux_dir/install-sh"
674 esac
675 fi
676 AC_SUBST([install_sh])])
677
678 # Copyright (C) 2003-2020 Free Software Foundation, Inc.
679 #
680 # This file is free software; the Free Software Foundation
681 # gives unlimited permission to copy and/or distribute it,
682 # with or without modifications, as long as this notice is preserved.
683
684 # Check whether the underlying file-system supports filenames
685 # with a leading dot. For instance MS-DOS doesn't.
686 AC_DEFUN([AM_SET_LEADING_DOT],
687 [rm -rf .tst 2>/dev/null
688 mkdir .tst 2>/dev/null
689 if test -d .tst; then
690 am__leading_dot=.
691 else
692 am__leading_dot=_
693 fi
694 rmdir .tst 2>/dev/null
695 AC_SUBST([am__leading_dot])])
696
697 # Check to see how 'make' treats includes. -*- Autoconf -*-
698
699 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
700 #
701 # This file is free software; the Free Software Foundation
702 # gives unlimited permission to copy and/or distribute it,
703 # with or without modifications, as long as this notice is preserved.
704
705 # AM_MAKE_INCLUDE()
706 # -----------------
707 # Check whether make has an 'include' directive that can support all
708 # the idioms we need for our automatic dependency tracking code.
709 AC_DEFUN([AM_MAKE_INCLUDE],
710 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
711 cat > confinc.mk << 'END'
712 am__doit:
713 @echo this is the am__doit target >confinc.out
714 .PHONY: am__doit
715 END
716 am__include="#"
717 am__quote=
718 # BSD make does it like this.
719 echo '.include "confinc.mk" # ignored' > confmf.BSD
720 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
721 echo 'include confinc.mk # ignored' > confmf.GNU
722 _am_result=no
723 for s in GNU BSD; do
724 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
725 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
726 ['0:this is the am__doit target'],
727 [AS_CASE([$s],
728 [BSD], [am__include='.include' am__quote='"'],
729 [am__include='include' am__quote=''])])
730 if test "$am__include" != "#"; then
731 _am_result="yes ($s style)"
732 break
733 fi
734 done
735 rm -f confinc.* confmf.*
736 AC_MSG_RESULT([${_am_result}])
737 AC_SUBST([am__include])])
738 AC_SUBST([am__quote])])
739
740 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
741
742 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
743 #
744 # This file is free software; the Free Software Foundation
745 # gives unlimited permission to copy and/or distribute it,
746 # with or without modifications, as long as this notice is preserved.
747
748 # AM_MISSING_PROG(NAME, PROGRAM)
749 # ------------------------------
750 AC_DEFUN([AM_MISSING_PROG],
751 [AC_REQUIRE([AM_MISSING_HAS_RUN])
752 $1=${$1-"${am_missing_run}$2"}
753 AC_SUBST($1)])
754
755 # AM_MISSING_HAS_RUN
756 # ------------------
757 # Define MISSING if not defined so far and test if it is modern enough.
758 # If it is, set am_missing_run to use it, otherwise, to nothing.
759 AC_DEFUN([AM_MISSING_HAS_RUN],
760 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
761 AC_REQUIRE_AUX_FILE([missing])dnl
762 if test x"${MISSING+set}" != xset; then
763 MISSING="\${SHELL} '$am_aux_dir/missing'"
764 fi
765 # Use eval to expand $SHELL
766 if eval "$MISSING --is-lightweight"; then
767 am_missing_run="$MISSING "
768 else
769 am_missing_run=
770 AC_MSG_WARN(['missing' script is too old or missing])
771 fi
772 ])
773
774 # Helper functions for option handling. -*- Autoconf -*-
775
776 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
777 #
778 # This file is free software; the Free Software Foundation
779 # gives unlimited permission to copy and/or distribute it,
780 # with or without modifications, as long as this notice is preserved.
781
782 # _AM_MANGLE_OPTION(NAME)
783 # -----------------------
784 AC_DEFUN([_AM_MANGLE_OPTION],
785 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
786
787 # _AM_SET_OPTION(NAME)
788 # --------------------
789 # Set option NAME. Presently that only means defining a flag for this option.
790 AC_DEFUN([_AM_SET_OPTION],
791 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
792
793 # _AM_SET_OPTIONS(OPTIONS)
794 # ------------------------
795 # OPTIONS is a space-separated list of Automake options.
796 AC_DEFUN([_AM_SET_OPTIONS],
797 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
798
799 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
800 # -------------------------------------------
801 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
802 AC_DEFUN([_AM_IF_OPTION],
803 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
804
805 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
806 #
807 # This file is free software; the Free Software Foundation
808 # gives unlimited permission to copy and/or distribute it,
809 # with or without modifications, as long as this notice is preserved.
810
811 # _AM_PROG_CC_C_O
812 # ---------------
813 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
814 # to automatically call this.
815 AC_DEFUN([_AM_PROG_CC_C_O],
816 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
817 AC_REQUIRE_AUX_FILE([compile])dnl
818 AC_LANG_PUSH([C])dnl
819 AC_CACHE_CHECK(
820 [whether $CC understands -c and -o together],
821 [am_cv_prog_cc_c_o],
822 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
823 # Make sure it works both with $CC and with simple cc.
824 # Following AC_PROG_CC_C_O, we do the test twice because some
825 # compilers refuse to overwrite an existing .o file with -o,
826 # though they will create one.
827 am_cv_prog_cc_c_o=yes
828 for am_i in 1 2; do
829 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
830 && test -f conftest2.$ac_objext; then
831 : OK
832 else
833 am_cv_prog_cc_c_o=no
834 break
835 fi
836 done
837 rm -f core conftest*
838 unset am_i])
839 if test "$am_cv_prog_cc_c_o" != yes; then
840 # Losing compiler, so override with the script.
841 # FIXME: It is wrong to rewrite CC.
842 # But if we don't then we get into trouble of one sort or another.
843 # A longer-term fix would be to have automake use am__CC in this case,
844 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
845 CC="$am_aux_dir/compile $CC"
846 fi
847 AC_LANG_POP([C])])
848
849 # For backward compatibility.
850 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
851
852 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
853 #
854 # This file is free software; the Free Software Foundation
855 # gives unlimited permission to copy and/or distribute it,
856 # with or without modifications, as long as this notice is preserved.
857
858 # AM_RUN_LOG(COMMAND)
859 # -------------------
860 # Run COMMAND, save the exit status in ac_status, and log it.
861 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
862 AC_DEFUN([AM_RUN_LOG],
863 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
864 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
865 ac_status=$?
866 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
867 (exit $ac_status); }])
868
869 # Check to make sure that the build environment is sane. -*- Autoconf -*-
870
871 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
872 #
873 # This file is free software; the Free Software Foundation
874 # gives unlimited permission to copy and/or distribute it,
875 # with or without modifications, as long as this notice is preserved.
876
877 # AM_SANITY_CHECK
878 # ---------------
879 AC_DEFUN([AM_SANITY_CHECK],
880 [AC_MSG_CHECKING([whether build environment is sane])
881 # Reject unsafe characters in $srcdir or the absolute working directory
882 # name. Accept space and tab only in the latter.
883 am_lf='
884 '
885 case `pwd` in
886 *[[\\\"\#\$\&\'\`$am_lf]]*)
887 AC_MSG_ERROR([unsafe absolute working directory name]);;
888 esac
889 case $srcdir in
890 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
891 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
892 esac
893
894 # Do 'set' in a subshell so we don't clobber the current shell's
895 # arguments. Must try -L first in case configure is actually a
896 # symlink; some systems play weird games with the mod time of symlinks
897 # (eg FreeBSD returns the mod time of the symlink's containing
898 # directory).
899 if (
900 am_has_slept=no
901 for am_try in 1 2; do
902 echo "timestamp, slept: $am_has_slept" > conftest.file
903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
904 if test "$[*]" = "X"; then
905 # -L didn't work.
906 set X `ls -t "$srcdir/configure" conftest.file`
907 fi
908 if test "$[*]" != "X $srcdir/configure conftest.file" \
909 && test "$[*]" != "X conftest.file $srcdir/configure"; then
910
911 # If neither matched, then we have a broken ls. This can happen
912 # if, for instance, CONFIG_SHELL is bash and it inherits a
913 # broken ls alias from the environment. This has actually
914 # happened. Such a system could not be considered "sane".
915 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
916 alias in your environment])
917 fi
918 if test "$[2]" = conftest.file || test $am_try -eq 2; then
919 break
920 fi
921 # Just in case.
922 sleep 1
923 am_has_slept=yes
924 done
925 test "$[2]" = conftest.file
926 )
927 then
928 # Ok.
929 :
930 else
931 AC_MSG_ERROR([newly created file is older than distributed files!
932 Check your system clock])
933 fi
934 AC_MSG_RESULT([yes])
935 # If we didn't sleep, we still need to ensure time stamps of config.status and
936 # generated files are strictly newer.
937 am_sleep_pid=
938 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
939 ( sleep 1 ) &
940 am_sleep_pid=$!
941 fi
942 AC_CONFIG_COMMANDS_PRE(
943 [AC_MSG_CHECKING([that generated files are newer than configure])
944 if test -n "$am_sleep_pid"; then
945 # Hide warnings about reused PIDs.
946 wait $am_sleep_pid 2>/dev/null
947 fi
948 AC_MSG_RESULT([done])])
949 rm -f conftest.file
950 ])
951
952 # Copyright (C) 2009-2020 Free Software Foundation, Inc.
953 #
954 # This file is free software; the Free Software Foundation
955 # gives unlimited permission to copy and/or distribute it,
956 # with or without modifications, as long as this notice is preserved.
957
958 # AM_SILENT_RULES([DEFAULT])
959 # --------------------------
960 # Enable less verbose build rules; with the default set to DEFAULT
961 # ("yes" being less verbose, "no" or empty being verbose).
962 AC_DEFUN([AM_SILENT_RULES],
963 [AC_ARG_ENABLE([silent-rules], [dnl
964 AS_HELP_STRING(
965 [--enable-silent-rules],
966 [less verbose build output (undo: "make V=1")])
967 AS_HELP_STRING(
968 [--disable-silent-rules],
969 [verbose build output (undo: "make V=0")])dnl
970 ])
971 case $enable_silent_rules in @%:@ (((
972 yes) AM_DEFAULT_VERBOSITY=0;;
973 no) AM_DEFAULT_VERBOSITY=1;;
974 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
975 esac
976 dnl
977 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
978 dnl do not support nested variable expansions.
979 dnl See automake bug#9928 and bug#10237.
980 am_make=${MAKE-make}
981 AC_CACHE_CHECK([whether $am_make supports nested variables],
982 [am_cv_make_support_nested_variables],
983 [if AS_ECHO([['TRUE=$(BAR$(V))
984 BAR0=false
985 BAR1=true
986 V=1
987 am__doit:
988 @$(TRUE)
989 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
990 am_cv_make_support_nested_variables=yes
991 else
992 am_cv_make_support_nested_variables=no
993 fi])
994 if test $am_cv_make_support_nested_variables = yes; then
995 dnl Using '$V' instead of '$(V)' breaks IRIX make.
996 AM_V='$(V)'
997 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
998 else
999 AM_V=$AM_DEFAULT_VERBOSITY
1000 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1001 fi
1002 AC_SUBST([AM_V])dnl
1003 AM_SUBST_NOTMAKE([AM_V])dnl
1004 AC_SUBST([AM_DEFAULT_V])dnl
1005 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1006 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1007 AM_BACKSLASH='\'
1008 AC_SUBST([AM_BACKSLASH])dnl
1009 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1010 ])
1011
1012 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
1013 #
1014 # This file is free software; the Free Software Foundation
1015 # gives unlimited permission to copy and/or distribute it,
1016 # with or without modifications, as long as this notice is preserved.
1017
1018 # AM_PROG_INSTALL_STRIP
1019 # ---------------------
1020 # One issue with vendor 'install' (even GNU) is that you can't
1021 # specify the program used to strip binaries. This is especially
1022 # annoying in cross-compiling environments, where the build's strip
1023 # is unlikely to handle the host's binaries.
1024 # Fortunately install-sh will honor a STRIPPROG variable, so we
1025 # always use install-sh in "make install-strip", and initialize
1026 # STRIPPROG with the value of the STRIP variable (set by the user).
1027 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1028 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1029 # Installed binaries are usually stripped using 'strip' when the user
1030 # run "make install-strip". However 'strip' might not be the right
1031 # tool to use in cross-compilation environments, therefore Automake
1032 # will honor the 'STRIP' environment variable to overrule this program.
1033 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1034 if test "$cross_compiling" != no; then
1035 AC_CHECK_TOOL([STRIP], [strip], :)
1036 fi
1037 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1038 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1039
1040 # Copyright (C) 2006-2020 Free Software Foundation, Inc.
1041 #
1042 # This file is free software; the Free Software Foundation
1043 # gives unlimited permission to copy and/or distribute it,
1044 # with or without modifications, as long as this notice is preserved.
1045
1046 # _AM_SUBST_NOTMAKE(VARIABLE)
1047 # ---------------------------
1048 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1049 # This macro is traced by Automake.
1050 AC_DEFUN([_AM_SUBST_NOTMAKE])
1051
1052 # AM_SUBST_NOTMAKE(VARIABLE)
1053 # --------------------------
1054 # Public sister of _AM_SUBST_NOTMAKE.
1055 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1056
1057 # Check how to create a tarball. -*- Autoconf -*-
1058
1059 # Copyright (C) 2004-2020 Free Software Foundation, Inc.
1060 #
1061 # This file is free software; the Free Software Foundation
1062 # gives unlimited permission to copy and/or distribute it,
1063 # with or without modifications, as long as this notice is preserved.
1064
1065 # _AM_PROG_TAR(FORMAT)
1066 # --------------------
1067 # Check how to create a tarball in format FORMAT.
1068 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1069 #
1070 # Substitute a variable $(am__tar) that is a command
1071 # writing to stdout a FORMAT-tarball containing the directory
1072 # $tardir.
1073 # tardir=directory && $(am__tar) > result.tar
1074 #
1075 # Substitute a variable $(am__untar) that extract such
1076 # a tarball read from stdin.
1077 # $(am__untar) < result.tar
1078 #
1079 AC_DEFUN([_AM_PROG_TAR],
1080 [# Always define AMTAR for backward compatibility. Yes, it's still used
1081 # in the wild :-( We should find a proper way to deprecate it ...
1082 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1083
1084 # We'll loop over all known methods to create a tar archive until one works.
1085 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1086
1087 m4_if([$1], [v7],
1088 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1089
1090 [m4_case([$1],
1091 [ustar],
1092 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1093 # There is notably a 21 bits limit for the UID and the GID. In fact,
1094 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1095 # and bug#13588).
1096 am_max_uid=2097151 # 2^21 - 1
1097 am_max_gid=$am_max_uid
1098 # The $UID and $GID variables are not portable, so we need to resort
1099 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1100 # below are definitely unexpected, so allow the users to see them
1101 # (that is, avoid stderr redirection).
1102 am_uid=`id -u || echo unknown`
1103 am_gid=`id -g || echo unknown`
1104 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1105 if test $am_uid -le $am_max_uid; then
1106 AC_MSG_RESULT([yes])
1107 else
1108 AC_MSG_RESULT([no])
1109 _am_tools=none
1110 fi
1111 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1112 if test $am_gid -le $am_max_gid; then
1113 AC_MSG_RESULT([yes])
1114 else
1115 AC_MSG_RESULT([no])
1116 _am_tools=none
1117 fi],
1118
1119 [pax],
1120 [],
1121
1122 [m4_fatal([Unknown tar format])])
1123
1124 AC_MSG_CHECKING([how to create a $1 tar archive])
1125
1126 # Go ahead even if we have the value already cached. We do so because we
1127 # need to set the values for the 'am__tar' and 'am__untar' variables.
1128 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1129
1130 for _am_tool in $_am_tools; do
1131 case $_am_tool in
1132 gnutar)
1133 for _am_tar in tar gnutar gtar; do
1134 AM_RUN_LOG([$_am_tar --version]) && break
1135 done
1136 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1137 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1138 am__untar="$_am_tar -xf -"
1139 ;;
1140 plaintar)
1141 # Must skip GNU tar: if it does not support --format= it doesn't create
1142 # ustar tarball either.
1143 (tar --version) >/dev/null 2>&1 && continue
1144 am__tar='tar chf - "$$tardir"'
1145 am__tar_='tar chf - "$tardir"'
1146 am__untar='tar xf -'
1147 ;;
1148 pax)
1149 am__tar='pax -L -x $1 -w "$$tardir"'
1150 am__tar_='pax -L -x $1 -w "$tardir"'
1151 am__untar='pax -r'
1152 ;;
1153 cpio)
1154 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1155 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1156 am__untar='cpio -i -H $1 -d'
1157 ;;
1158 none)
1159 am__tar=false
1160 am__tar_=false
1161 am__untar=false
1162 ;;
1163 esac
1164
1165 # If the value was cached, stop now. We just wanted to have am__tar
1166 # and am__untar set.
1167 test -n "${am_cv_prog_tar_$1}" && break
1168
1169 # tar/untar a dummy directory, and stop if the command works.
1170 rm -rf conftest.dir
1171 mkdir conftest.dir
1172 echo GrepMe > conftest.dir/file
1173 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1174 rm -rf conftest.dir
1175 if test -s conftest.tar; then
1176 AM_RUN_LOG([$am__untar <conftest.tar])
1177 AM_RUN_LOG([cat conftest.dir/file])
1178 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1179 fi
1180 done
1181 rm -rf conftest.dir
1182
1183 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1184 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1185
1186 AC_SUBST([am__tar])
1187 AC_SUBST([am__untar])
1188 ]) # _AM_PROG_TAR
1189
1190 m4_include([m4/abi-gsf.m4])
1191 m4_include([m4/ac_define_dir.m4])
1192 m4_include([m4/ax_check_compile_flag.m4])
1193 m4_include([m4/ax_check_link_flag.m4])
1194 m4_include([m4/ax_create_pkgconfig_info.m4])
1195 m4_include([m4/gettext.m4])
1196 m4_include([m4/glib-2.0.m4])
1197 m4_include([m4/iconv.m4])
1198 m4_include([m4/lib-ld.m4])
1199 m4_include([m4/lib-link.m4])
1200 m4_include([m4/lib-prefix.m4])
1201 m4_include([m4/libtool.m4])
1202 m4_include([m4/ltoptions.m4])
1203 m4_include([m4/ltsugar.m4])
1204 m4_include([m4/ltversion.m4])
1205 m4_include([m4/lt~obsolete.m4])
1206 m4_include([m4/nls.m4])
1207 m4_include([m4/pkg.m4])
1208 m4_include([m4/po.m4])
1209 m4_include([m4/progtest.m4])
1210 m4_include([acinclude.m4])