Debian Codegraph @

check_hpasm/src/aclocal.m4

raw
1 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
2
3 # Copyright (C) 1996-2021 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.71],,
18 [m4_warning([this file was generated for autoconf 2.71.
19 You have another version of autoconf. It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
23 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
24 #
25 # This file is free software; the Free Software Foundation
26 # gives unlimited permission to copy and/or distribute it,
27 # with or without modifications, as long as this notice is preserved.
28
29 # AM_AUTOMAKE_VERSION(VERSION)
30 # ----------------------------
31 # Automake X.Y traces this macro to ensure aclocal.m4 has been
32 # generated from the m4 files accompanying Automake X.Y.
33 # (This private macro should not be called outside this file.)
34 AC_DEFUN([AM_AUTOMAKE_VERSION],
35 [am__api_version='1.16'
36 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
37 dnl require some minimum version. Point them to the right macro.
38 m4_if([$1], [1.16.5], [],
39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
40 ])
41
42 # _AM_AUTOCONF_VERSION(VERSION)
43 # -----------------------------
44 # aclocal traces this macro to find the Autoconf version.
45 # This is a private macro too. Using m4_define simplifies
46 # the logic in aclocal, which can simply ignore this definition.
47 m4_define([_AM_AUTOCONF_VERSION], [])
48
49 # AM_SET_CURRENT_AUTOMAKE_VERSION
50 # -------------------------------
51 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54 [AM_AUTOMAKE_VERSION([1.16.5])dnl
55 m4_ifndef([AC_AUTOCONF_VERSION],
56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58
59 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
60
61 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
62 #
63 # This file is free software; the Free Software Foundation
64 # gives unlimited permission to copy and/or distribute it,
65 # with or without modifications, as long as this notice is preserved.
66
67 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
68 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
69 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
70 #
71 # Of course, Automake must honor this variable whenever it calls a
72 # tool from the auxiliary directory. The problem is that $srcdir (and
73 # therefore $ac_aux_dir as well) can be either absolute or relative,
74 # depending on how configure is run. This is pretty annoying, since
75 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
76 # source directory, any form will work fine, but in subdirectories a
77 # relative path needs to be adjusted first.
78 #
79 # $ac_aux_dir/missing
80 # fails when called from a subdirectory if $ac_aux_dir is relative
81 # $top_srcdir/$ac_aux_dir/missing
82 # fails if $ac_aux_dir is absolute,
83 # fails when called from a subdirectory in a VPATH build with
84 # a relative $ac_aux_dir
85 #
86 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
87 # are both prefixed by $srcdir. In an in-source build this is usually
88 # harmless because $srcdir is '.', but things will broke when you
89 # start a VPATH build or use an absolute $srcdir.
90 #
91 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
92 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
93 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
94 # and then we would define $MISSING as
95 # MISSING="\${SHELL} $am_aux_dir/missing"
96 # This will work as long as MISSING is not called from configure, because
97 # unfortunately $(top_srcdir) has no meaning in configure.
98 # However there are other variables, like CC, which are often used in
99 # configure, and could therefore not use this "fixed" $ac_aux_dir.
100 #
101 # Another solution, used here, is to always expand $ac_aux_dir to an
102 # absolute PATH. The drawback is that using absolute paths prevent a
103 # configured tree to be moved without reconfiguration.
104
105 AC_DEFUN([AM_AUX_DIR_EXPAND],
106 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
107 # Expand $ac_aux_dir to an absolute path.
108 am_aux_dir=`cd "$ac_aux_dir" && pwd`
109 ])
110
111 # Do all the work for Automake. -*- Autoconf -*-
112
113 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
114 #
115 # This file is free software; the Free Software Foundation
116 # gives unlimited permission to copy and/or distribute it,
117 # with or without modifications, as long as this notice is preserved.
118
119 # This macro actually does too much. Some checks are only needed if
120 # your package does certain things. But this isn't really a big deal.
121
122 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
123 m4_define([AC_PROG_CC],
124 m4_defn([AC_PROG_CC])
125 [_AM_PROG_CC_C_O
126 ])
127
128 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
129 # AM_INIT_AUTOMAKE([OPTIONS])
130 # -----------------------------------------------
131 # The call with PACKAGE and VERSION arguments is the old style
132 # call (pre autoconf-2.50), which is being phased out. PACKAGE
133 # and VERSION should now be passed to AC_INIT and removed from
134 # the call to AM_INIT_AUTOMAKE.
135 # We support both call styles for the transition. After
136 # the next Automake release, Autoconf can make the AC_INIT
137 # arguments mandatory, and then we can depend on a new Autoconf
138 # release and drop the old call support.
139 AC_DEFUN([AM_INIT_AUTOMAKE],
140 [AC_PREREQ([2.65])dnl
141 m4_ifdef([_$0_ALREADY_INIT],
142 [m4_fatal([$0 expanded multiple times
143 ]m4_defn([_$0_ALREADY_INIT]))],
144 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
145 dnl Autoconf wants to disallow AM_ names. We explicitly allow
146 dnl the ones we care about.
147 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
148 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
149 AC_REQUIRE([AC_PROG_INSTALL])dnl
150 if test "`cd $srcdir && pwd`" != "`pwd`"; then
151 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
152 # is not polluted with repeated "-I."
153 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
154 # test to see if srcdir already configured
155 if test -f $srcdir/config.status; then
156 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
157 fi
158 fi
159
160 # test whether we have cygpath
161 if test -z "$CYGPATH_W"; then
162 if (cygpath --version) >/dev/null 2>/dev/null; then
163 CYGPATH_W='cygpath -w'
164 else
165 CYGPATH_W=echo
166 fi
167 fi
168 AC_SUBST([CYGPATH_W])
169
170 # Define the identity of the package.
171 dnl Distinguish between old-style and new-style calls.
172 m4_ifval([$2],
173 [AC_DIAGNOSE([obsolete],
174 [$0: two- and three-arguments forms are deprecated.])
175 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
176 AC_SUBST([PACKAGE], [$1])dnl
177 AC_SUBST([VERSION], [$2])],
178 [_AM_SET_OPTIONS([$1])dnl
179 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
180 m4_if(
181 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
182 [ok:ok],,
183 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
184 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
185 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
186
187 _AM_IF_OPTION([no-define],,
188 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
189 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
190
191 # Some tools Automake needs.
192 AC_REQUIRE([AM_SANITY_CHECK])dnl
193 AC_REQUIRE([AC_ARG_PROGRAM])dnl
194 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
195 AM_MISSING_PROG([AUTOCONF], [autoconf])
196 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
197 AM_MISSING_PROG([AUTOHEADER], [autoheader])
198 AM_MISSING_PROG([MAKEINFO], [makeinfo])
199 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
200 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
201 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
202 # For better backward compatibility. To be removed once Automake 1.9.x
203 # dies out for good. For more background, see:
204 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
205 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
206 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
207 # We need awk for the "check" target (and possibly the TAP driver). The
208 # system "awk" is bad on some platforms.
209 AC_REQUIRE([AC_PROG_AWK])dnl
210 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
211 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
212 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
213 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
214 [_AM_PROG_TAR([v7])])])
215 _AM_IF_OPTION([no-dependencies],,
216 [AC_PROVIDE_IFELSE([AC_PROG_CC],
217 [_AM_DEPENDENCIES([CC])],
218 [m4_define([AC_PROG_CC],
219 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
220 AC_PROVIDE_IFELSE([AC_PROG_CXX],
221 [_AM_DEPENDENCIES([CXX])],
222 [m4_define([AC_PROG_CXX],
223 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
224 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
225 [_AM_DEPENDENCIES([OBJC])],
226 [m4_define([AC_PROG_OBJC],
227 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
228 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
229 [_AM_DEPENDENCIES([OBJCXX])],
230 [m4_define([AC_PROG_OBJCXX],
231 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
232 ])
233 # Variables for tags utilities; see am/tags.am
234 if test -z "$CTAGS"; then
235 CTAGS=ctags
236 fi
237 AC_SUBST([CTAGS])
238 if test -z "$ETAGS"; then
239 ETAGS=etags
240 fi
241 AC_SUBST([ETAGS])
242 if test -z "$CSCOPE"; then
243 CSCOPE=cscope
244 fi
245 AC_SUBST([CSCOPE])
246
247 AC_REQUIRE([AM_SILENT_RULES])dnl
248 dnl The testsuite driver may need to know about EXEEXT, so add the
249 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
250 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
251 AC_CONFIG_COMMANDS_PRE(dnl
252 [m4_provide_if([_AM_COMPILER_EXEEXT],
253 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
254
255 # POSIX will say in a future version that running "rm -f" with no argument
256 # is OK; and we want to be able to make that assumption in our Makefile
257 # recipes. So use an aggressive probe to check that the usage we want is
258 # actually supported "in the wild" to an acceptable degree.
259 # See automake bug#10828.
260 # To make any issue more visible, cause the running configure to be aborted
261 # by default if the 'rm' program in use doesn't match our expectations; the
262 # user can still override this though.
263 if rm -f && rm -fr && rm -rf; then : OK; else
264 cat >&2 <<'END'
265 Oops!
266
267 Your 'rm' program seems unable to run without file operands specified
268 on the command line, even when the '-f' option is present. This is contrary
269 to the behaviour of most rm programs out there, and not conforming with
270 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
271
272 Please tell [email protected] about your system, including the value
273 of your $PATH and any error possibly output before this message. This
274 can help us improve future automake versions.
275
276 END
277 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
278 echo 'Configuration will proceed anyway, since you have set the' >&2
279 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
280 echo >&2
281 else
282 cat >&2 <<'END'
283 Aborting the configuration process, to ensure you take notice of the issue.
284
285 You can download and install GNU coreutils to get an 'rm' implementation
286 that behaves properly: <https://www.gnu.org/software/coreutils/>.
287
288 If you want to complete the configuration process using your problematic
289 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
290 to "yes", and re-run configure.
291
292 END
293 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
294 fi
295 fi
296 dnl The trailing newline in this macro's definition is deliberate, for
297 dnl backward compatibility and to allow trailing 'dnl'-style comments
298 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
299 ])
300
301 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
302 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
303 dnl mangled by Autoconf and run in a shell conditional statement.
304 m4_define([_AC_COMPILER_EXEEXT],
305 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
306
307 # When config.status generates a header, we must update the stamp-h file.
308 # This file resides in the same directory as the config header
309 # that is generated. The stamp files are numbered to have different names.
310
311 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
312 # loop where config.status creates the headers, so we can generate
313 # our stamp files there.
314 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
315 [# Compute $1's index in $config_headers.
316 _am_arg=$1
317 _am_stamp_count=1
318 for _am_header in $config_headers :; do
319 case $_am_header in
320 $_am_arg | $_am_arg:* )
321 break ;;
322 * )
323 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
324 esac
325 done
326 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
327
328 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
329 #
330 # This file is free software; the Free Software Foundation
331 # gives unlimited permission to copy and/or distribute it,
332 # with or without modifications, as long as this notice is preserved.
333
334 # AM_PROG_INSTALL_SH
335 # ------------------
336 # Define $install_sh.
337 AC_DEFUN([AM_PROG_INSTALL_SH],
338 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
339 if test x"${install_sh+set}" != xset; then
340 case $am_aux_dir in
341 *\ * | *\ *)
342 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
343 *)
344 install_sh="\${SHELL} $am_aux_dir/install-sh"
345 esac
346 fi
347 AC_SUBST([install_sh])])
348
349 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
350 #
351 # This file is free software; the Free Software Foundation
352 # gives unlimited permission to copy and/or distribute it,
353 # with or without modifications, as long as this notice is preserved.
354
355 # Check whether the underlying file-system supports filenames
356 # with a leading dot. For instance MS-DOS doesn't.
357 AC_DEFUN([AM_SET_LEADING_DOT],
358 [rm -rf .tst 2>/dev/null
359 mkdir .tst 2>/dev/null
360 if test -d .tst; then
361 am__leading_dot=.
362 else
363 am__leading_dot=_
364 fi
365 rmdir .tst 2>/dev/null
366 AC_SUBST([am__leading_dot])])
367
368 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
369
370 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
371 #
372 # This file is free software; the Free Software Foundation
373 # gives unlimited permission to copy and/or distribute it,
374 # with or without modifications, as long as this notice is preserved.
375
376 # AM_MISSING_PROG(NAME, PROGRAM)
377 # ------------------------------
378 AC_DEFUN([AM_MISSING_PROG],
379 [AC_REQUIRE([AM_MISSING_HAS_RUN])
380 $1=${$1-"${am_missing_run}$2"}
381 AC_SUBST($1)])
382
383 # AM_MISSING_HAS_RUN
384 # ------------------
385 # Define MISSING if not defined so far and test if it is modern enough.
386 # If it is, set am_missing_run to use it, otherwise, to nothing.
387 AC_DEFUN([AM_MISSING_HAS_RUN],
388 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
389 AC_REQUIRE_AUX_FILE([missing])dnl
390 if test x"${MISSING+set}" != xset; then
391 MISSING="\${SHELL} '$am_aux_dir/missing'"
392 fi
393 # Use eval to expand $SHELL
394 if eval "$MISSING --is-lightweight"; then
395 am_missing_run="$MISSING "
396 else
397 am_missing_run=
398 AC_MSG_WARN(['missing' script is too old or missing])
399 fi
400 ])
401
402 # Helper functions for option handling. -*- Autoconf -*-
403
404 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
405 #
406 # This file is free software; the Free Software Foundation
407 # gives unlimited permission to copy and/or distribute it,
408 # with or without modifications, as long as this notice is preserved.
409
410 # _AM_MANGLE_OPTION(NAME)
411 # -----------------------
412 AC_DEFUN([_AM_MANGLE_OPTION],
413 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
414
415 # _AM_SET_OPTION(NAME)
416 # --------------------
417 # Set option NAME. Presently that only means defining a flag for this option.
418 AC_DEFUN([_AM_SET_OPTION],
419 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
420
421 # _AM_SET_OPTIONS(OPTIONS)
422 # ------------------------
423 # OPTIONS is a space-separated list of Automake options.
424 AC_DEFUN([_AM_SET_OPTIONS],
425 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
426
427 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
428 # -------------------------------------------
429 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
430 AC_DEFUN([_AM_IF_OPTION],
431 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
432
433 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
434 #
435 # This file is free software; the Free Software Foundation
436 # gives unlimited permission to copy and/or distribute it,
437 # with or without modifications, as long as this notice is preserved.
438
439 # AM_RUN_LOG(COMMAND)
440 # -------------------
441 # Run COMMAND, save the exit status in ac_status, and log it.
442 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
443 AC_DEFUN([AM_RUN_LOG],
444 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
445 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
446 ac_status=$?
447 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
448 (exit $ac_status); }])
449
450 # Check to make sure that the build environment is sane. -*- Autoconf -*-
451
452 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
453 #
454 # This file is free software; the Free Software Foundation
455 # gives unlimited permission to copy and/or distribute it,
456 # with or without modifications, as long as this notice is preserved.
457
458 # AM_SANITY_CHECK
459 # ---------------
460 AC_DEFUN([AM_SANITY_CHECK],
461 [AC_MSG_CHECKING([whether build environment is sane])
462 # Reject unsafe characters in $srcdir or the absolute working directory
463 # name. Accept space and tab only in the latter.
464 am_lf='
465 '
466 case `pwd` in
467 *[[\\\"\#\$\&\'\`$am_lf]]*)
468 AC_MSG_ERROR([unsafe absolute working directory name]);;
469 esac
470 case $srcdir in
471 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
472 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
473 esac
474
475 # Do 'set' in a subshell so we don't clobber the current shell's
476 # arguments. Must try -L first in case configure is actually a
477 # symlink; some systems play weird games with the mod time of symlinks
478 # (eg FreeBSD returns the mod time of the symlink's containing
479 # directory).
480 if (
481 am_has_slept=no
482 for am_try in 1 2; do
483 echo "timestamp, slept: $am_has_slept" > conftest.file
484 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
485 if test "$[*]" = "X"; then
486 # -L didn't work.
487 set X `ls -t "$srcdir/configure" conftest.file`
488 fi
489 if test "$[*]" != "X $srcdir/configure conftest.file" \
490 && test "$[*]" != "X conftest.file $srcdir/configure"; then
491
492 # If neither matched, then we have a broken ls. This can happen
493 # if, for instance, CONFIG_SHELL is bash and it inherits a
494 # broken ls alias from the environment. This has actually
495 # happened. Such a system could not be considered "sane".
496 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
497 alias in your environment])
498 fi
499 if test "$[2]" = conftest.file || test $am_try -eq 2; then
500 break
501 fi
502 # Just in case.
503 sleep 1
504 am_has_slept=yes
505 done
506 test "$[2]" = conftest.file
507 )
508 then
509 # Ok.
510 :
511 else
512 AC_MSG_ERROR([newly created file is older than distributed files!
513 Check your system clock])
514 fi
515 AC_MSG_RESULT([yes])
516 # If we didn't sleep, we still need to ensure time stamps of config.status and
517 # generated files are strictly newer.
518 am_sleep_pid=
519 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
520 ( sleep 1 ) &
521 am_sleep_pid=$!
522 fi
523 AC_CONFIG_COMMANDS_PRE(
524 [AC_MSG_CHECKING([that generated files are newer than configure])
525 if test -n "$am_sleep_pid"; then
526 # Hide warnings about reused PIDs.
527 wait $am_sleep_pid 2>/dev/null
528 fi
529 AC_MSG_RESULT([done])])
530 rm -f conftest.file
531 ])
532
533 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
534 #
535 # This file is free software; the Free Software Foundation
536 # gives unlimited permission to copy and/or distribute it,
537 # with or without modifications, as long as this notice is preserved.
538
539 # AM_SILENT_RULES([DEFAULT])
540 # --------------------------
541 # Enable less verbose build rules; with the default set to DEFAULT
542 # ("yes" being less verbose, "no" or empty being verbose).
543 AC_DEFUN([AM_SILENT_RULES],
544 [AC_ARG_ENABLE([silent-rules], [dnl
545 AS_HELP_STRING(
546 [--enable-silent-rules],
547 [less verbose build output (undo: "make V=1")])
548 AS_HELP_STRING(
549 [--disable-silent-rules],
550 [verbose build output (undo: "make V=0")])dnl
551 ])
552 case $enable_silent_rules in @%:@ (((
553 yes) AM_DEFAULT_VERBOSITY=0;;
554 no) AM_DEFAULT_VERBOSITY=1;;
555 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
556 esac
557 dnl
558 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
559 dnl do not support nested variable expansions.
560 dnl See automake bug#9928 and bug#10237.
561 am_make=${MAKE-make}
562 AC_CACHE_CHECK([whether $am_make supports nested variables],
563 [am_cv_make_support_nested_variables],
564 [if AS_ECHO([['TRUE=$(BAR$(V))
565 BAR0=false
566 BAR1=true
567 V=1
568 am__doit:
569 @$(TRUE)
570 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
571 am_cv_make_support_nested_variables=yes
572 else
573 am_cv_make_support_nested_variables=no
574 fi])
575 if test $am_cv_make_support_nested_variables = yes; then
576 dnl Using '$V' instead of '$(V)' breaks IRIX make.
577 AM_V='$(V)'
578 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
579 else
580 AM_V=$AM_DEFAULT_VERBOSITY
581 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
582 fi
583 AC_SUBST([AM_V])dnl
584 AM_SUBST_NOTMAKE([AM_V])dnl
585 AC_SUBST([AM_DEFAULT_V])dnl
586 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
587 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
588 AM_BACKSLASH='\'
589 AC_SUBST([AM_BACKSLASH])dnl
590 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
591 ])
592
593 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
594 #
595 # This file is free software; the Free Software Foundation
596 # gives unlimited permission to copy and/or distribute it,
597 # with or without modifications, as long as this notice is preserved.
598
599 # AM_PROG_INSTALL_STRIP
600 # ---------------------
601 # One issue with vendor 'install' (even GNU) is that you can't
602 # specify the program used to strip binaries. This is especially
603 # annoying in cross-compiling environments, where the build's strip
604 # is unlikely to handle the host's binaries.
605 # Fortunately install-sh will honor a STRIPPROG variable, so we
606 # always use install-sh in "make install-strip", and initialize
607 # STRIPPROG with the value of the STRIP variable (set by the user).
608 AC_DEFUN([AM_PROG_INSTALL_STRIP],
609 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
610 # Installed binaries are usually stripped using 'strip' when the user
611 # run "make install-strip". However 'strip' might not be the right
612 # tool to use in cross-compilation environments, therefore Automake
613 # will honor the 'STRIP' environment variable to overrule this program.
614 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
615 if test "$cross_compiling" != no; then
616 AC_CHECK_TOOL([STRIP], [strip], :)
617 fi
618 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
619 AC_SUBST([INSTALL_STRIP_PROGRAM])])
620
621 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
622 #
623 # This file is free software; the Free Software Foundation
624 # gives unlimited permission to copy and/or distribute it,
625 # with or without modifications, as long as this notice is preserved.
626
627 # _AM_SUBST_NOTMAKE(VARIABLE)
628 # ---------------------------
629 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
630 # This macro is traced by Automake.
631 AC_DEFUN([_AM_SUBST_NOTMAKE])
632
633 # AM_SUBST_NOTMAKE(VARIABLE)
634 # --------------------------
635 # Public sister of _AM_SUBST_NOTMAKE.
636 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
637
638 # Check how to create a tarball. -*- Autoconf -*-
639
640 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
641 #
642 # This file is free software; the Free Software Foundation
643 # gives unlimited permission to copy and/or distribute it,
644 # with or without modifications, as long as this notice is preserved.
645
646 # _AM_PROG_TAR(FORMAT)
647 # --------------------
648 # Check how to create a tarball in format FORMAT.
649 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
650 #
651 # Substitute a variable $(am__tar) that is a command
652 # writing to stdout a FORMAT-tarball containing the directory
653 # $tardir.
654 # tardir=directory && $(am__tar) > result.tar
655 #
656 # Substitute a variable $(am__untar) that extract such
657 # a tarball read from stdin.
658 # $(am__untar) < result.tar
659 #
660 AC_DEFUN([_AM_PROG_TAR],
661 [# Always define AMTAR for backward compatibility. Yes, it's still used
662 # in the wild :-( We should find a proper way to deprecate it ...
663 AC_SUBST([AMTAR], ['$${TAR-tar}'])
664
665 # We'll loop over all known methods to create a tar archive until one works.
666 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
667
668 m4_if([$1], [v7],
669 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
670
671 [m4_case([$1],
672 [ustar],
673 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
674 # There is notably a 21 bits limit for the UID and the GID. In fact,
675 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
676 # and bug#13588).
677 am_max_uid=2097151 # 2^21 - 1
678 am_max_gid=$am_max_uid
679 # The $UID and $GID variables are not portable, so we need to resort
680 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
681 # below are definitely unexpected, so allow the users to see them
682 # (that is, avoid stderr redirection).
683 am_uid=`id -u || echo unknown`
684 am_gid=`id -g || echo unknown`
685 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
686 if test $am_uid -le $am_max_uid; then
687 AC_MSG_RESULT([yes])
688 else
689 AC_MSG_RESULT([no])
690 _am_tools=none
691 fi
692 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
693 if test $am_gid -le $am_max_gid; then
694 AC_MSG_RESULT([yes])
695 else
696 AC_MSG_RESULT([no])
697 _am_tools=none
698 fi],
699
700 [pax],
701 [],
702
703 [m4_fatal([Unknown tar format])])
704
705 AC_MSG_CHECKING([how to create a $1 tar archive])
706
707 # Go ahead even if we have the value already cached. We do so because we
708 # need to set the values for the 'am__tar' and 'am__untar' variables.
709 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
710
711 for _am_tool in $_am_tools; do
712 case $_am_tool in
713 gnutar)
714 for _am_tar in tar gnutar gtar; do
715 AM_RUN_LOG([$_am_tar --version]) && break
716 done
717 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
718 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
719 am__untar="$_am_tar -xf -"
720 ;;
721 plaintar)
722 # Must skip GNU tar: if it does not support --format= it doesn't create
723 # ustar tarball either.
724 (tar --version) >/dev/null 2>&1 && continue
725 am__tar='tar chf - "$$tardir"'
726 am__tar_='tar chf - "$tardir"'
727 am__untar='tar xf -'
728 ;;
729 pax)
730 am__tar='pax -L -x $1 -w "$$tardir"'
731 am__tar_='pax -L -x $1 -w "$tardir"'
732 am__untar='pax -r'
733 ;;
734 cpio)
735 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
736 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
737 am__untar='cpio -i -H $1 -d'
738 ;;
739 none)
740 am__tar=false
741 am__tar_=false
742 am__untar=false
743 ;;
744 esac
745
746 # If the value was cached, stop now. We just wanted to have am__tar
747 # and am__untar set.
748 test -n "${am_cv_prog_tar_$1}" && break
749
750 # tar/untar a dummy directory, and stop if the command works.
751 rm -rf conftest.dir
752 mkdir conftest.dir
753 echo GrepMe > conftest.dir/file
754 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
755 rm -rf conftest.dir
756 if test -s conftest.tar; then
757 AM_RUN_LOG([$am__untar <conftest.tar])
758 AM_RUN_LOG([cat conftest.dir/file])
759 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
760 fi
761 done
762 rm -rf conftest.dir
763
764 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
765 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
766
767 AC_SUBST([am__tar])
768 AC_SUBST([am__untar])
769 ]) # _AM_PROG_TAR
770
771 m4_include([acinclude.m4])