Debian Codegraph @

auxdir/auxsub/aclocal.m4

raw
1 # generated automatically by aclocal 1.18.1 -*- Autoconf -*-
2
3 # Copyright (C) 1996-2025 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.72],,
18 [m4_warning([this file was generated for autoconf 2.72.
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-2025 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.18'
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.18.1], [],
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.18.1])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-2025 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 # AM_CONDITIONAL -*- Autoconf -*-
112
113 # Copyright (C) 1997-2025 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 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
120 # -------------------------------------
121 # Define a conditional.
122 AC_DEFUN([AM_CONDITIONAL],
123 [AC_PREREQ([2.52])dnl
124 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
125 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
126 AC_SUBST([$1_TRUE])dnl
127 AC_SUBST([$1_FALSE])dnl
128 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
129 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
130 m4_define([_AM_COND_VALUE_$1], [$2])dnl
131 if $2; then
132 $1_TRUE=
133 $1_FALSE='#'
134 else
135 $1_TRUE='#'
136 $1_FALSE=
137 fi
138 AC_CONFIG_COMMANDS_PRE(
139 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
140 AC_MSG_ERROR([[conditional "$1" was never defined.
141 Usually this means the macro was only invoked conditionally.]])
142 fi])])
143
144 # Do all the work for Automake. -*- Autoconf -*-
145
146 # Copyright (C) 1996-2025 Free Software Foundation, Inc.
147 #
148 # This file is free software; the Free Software Foundation
149 # gives unlimited permission to copy and/or distribute it,
150 # with or without modifications, as long as this notice is preserved.
151
152 # This macro actually does too much. Some checks are only needed if
153 # your package does certain things. But this isn't really a big deal.
154
155 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
156 m4_define([AC_PROG_CC],
157 m4_defn([AC_PROG_CC])
158 [_AM_PROG_CC_C_O
159 ])
160
161 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
162 # AM_INIT_AUTOMAKE([OPTIONS])
163 # -----------------------------------------------
164 # The call with PACKAGE and VERSION arguments is the old style
165 # call (pre autoconf-2.50), which is being phased out. PACKAGE
166 # and VERSION should now be passed to AC_INIT and removed from
167 # the call to AM_INIT_AUTOMAKE.
168 # We support both call styles for the transition. After
169 # the next Automake release, Autoconf can make the AC_INIT
170 # arguments mandatory, and then we can depend on a new Autoconf
171 # release and drop the old call support.
172 AC_DEFUN([AM_INIT_AUTOMAKE],
173 [AC_PREREQ([2.65])dnl
174 m4_ifdef([_$0_ALREADY_INIT],
175 [m4_fatal([$0 expanded multiple times
176 ]m4_defn([_$0_ALREADY_INIT]))],
177 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
178 dnl Autoconf wants to disallow AM_ names. We explicitly allow
179 dnl the ones we care about.
180 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
181 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
182 AC_REQUIRE([AC_PROG_INSTALL])dnl
183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
185 # is not polluted with repeated "-I."
186 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
187 # test to see if srcdir already configured
188 if test -f $srcdir/config.status; then
189 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
190 fi
191 fi
192
193 # test whether we have cygpath
194 if test -z "$CYGPATH_W"; then
195 if (cygpath --version) >/dev/null 2>/dev/null; then
196 CYGPATH_W='cygpath -w'
197 else
198 CYGPATH_W=echo
199 fi
200 fi
201 AC_SUBST([CYGPATH_W])
202
203 # Define the identity of the package.
204 dnl Distinguish between old-style and new-style calls.
205 m4_ifval([$2],
206 [AC_DIAGNOSE([obsolete],
207 [$0: two- and three-arguments forms are deprecated.])
208 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
209 AC_SUBST([PACKAGE], [$1])dnl
210 AC_SUBST([VERSION], [$2])],
211 [_AM_SET_OPTIONS([$1])dnl
212 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
213 m4_if(
214 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
215 [ok:ok],,
216 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
217 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
218 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
219
220 _AM_IF_OPTION([no-define],,
221 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
222 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
223
224 # Some tools Automake needs.
225 AC_REQUIRE([AM_SANITY_CHECK])dnl
226 AC_REQUIRE([AC_ARG_PROGRAM])dnl
227 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
228 AM_MISSING_PROG([AUTOCONF], [autoconf])
229 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
230 AM_MISSING_PROG([AUTOHEADER], [autoheader])
231 AM_MISSING_PROG([MAKEINFO], [makeinfo])
232 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
233 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
234 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
235 # For better backward compatibility. To be removed once Automake 1.9.x
236 # dies out for good. For more background, see:
237 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
238 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
239 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
240 # We need awk for the "check" target (and possibly the TAP driver). The
241 # system "awk" is bad on some platforms.
242 AC_REQUIRE([AC_PROG_AWK])dnl
243 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
244 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
245 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
246 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
247 [_AM_IF_OPTION([tar-v7], [_AM_PROG_TAR([v7])],
248 [_AM_PROG_TAR([ustar])])])])
249 _AM_IF_OPTION([no-dependencies],,
250 [AC_PROVIDE_IFELSE([AC_PROG_CC],
251 [_AM_DEPENDENCIES([CC])],
252 [m4_define([AC_PROG_CC],
253 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
254 AC_PROVIDE_IFELSE([AC_PROG_CXX],
255 [_AM_DEPENDENCIES([CXX])],
256 [m4_define([AC_PROG_CXX],
257 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
258 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
259 [_AM_DEPENDENCIES([OBJC])],
260 [m4_define([AC_PROG_OBJC],
261 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
262 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
263 [_AM_DEPENDENCIES([OBJCXX])],
264 [m4_define([AC_PROG_OBJCXX],
265 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
266 ])
267 # Variables for tags utilities; see am/tags.am
268 if test -z "$CTAGS"; then
269 CTAGS=ctags
270 fi
271 AC_SUBST([CTAGS])
272 if test -z "$ETAGS"; then
273 ETAGS=etags
274 fi
275 AC_SUBST([ETAGS])
276 if test -z "$CSCOPE"; then
277 CSCOPE=cscope
278 fi
279 AC_SUBST([CSCOPE])
280
281 AC_REQUIRE([_AM_SILENT_RULES])dnl
282 dnl The testsuite driver may need to know about EXEEXT, so add the
283 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
284 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
285 AC_CONFIG_COMMANDS_PRE(dnl
286 [m4_provide_if([_AM_COMPILER_EXEEXT],
287 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
288
289 AC_REQUIRE([_AM_PROG_RM_F])
290 AC_REQUIRE([_AM_PROG_XARGS_N])
291
292 dnl The trailing newline in this macro's definition is deliberate, for
293 dnl backward compatibility and to allow trailing 'dnl'-style comments
294 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
295 ])
296
297 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
298 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
299 dnl mangled by Autoconf and run in a shell conditional statement.
300 m4_define([_AC_COMPILER_EXEEXT],
301 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
302
303 # When config.status generates a header, we must update the stamp-h file.
304 # This file resides in the same directory as the config header
305 # that is generated. The stamp files are numbered to have different names.
306
307 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
308 # loop where config.status creates the headers, so we can generate
309 # our stamp files there.
310 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
311 [# Compute $1's index in $config_headers.
312 _am_arg=$1
313 _am_stamp_count=1
314 for _am_header in $config_headers :; do
315 case $_am_header in
316 $_am_arg | $_am_arg:* )
317 break ;;
318 * )
319 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
320 esac
321 done
322 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
323
324 # Copyright (C) 2001-2025 Free Software Foundation, Inc.
325 #
326 # This file is free software; the Free Software Foundation
327 # gives unlimited permission to copy and/or distribute it,
328 # with or without modifications, as long as this notice is preserved.
329
330 # AM_PROG_INSTALL_SH
331 # ------------------
332 # Define $install_sh.
333 AC_DEFUN([AM_PROG_INSTALL_SH],
334 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
335 if test x"${install_sh+set}" != xset; then
336 case $am_aux_dir in
337 *\ * | *\ *)
338 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
339 *)
340 install_sh="\${SHELL} $am_aux_dir/install-sh"
341 esac
342 fi
343 AC_SUBST([install_sh])])
344
345 # Copyright (C) 2003-2025 Free Software Foundation, Inc.
346 #
347 # This file is free software; the Free Software Foundation
348 # gives unlimited permission to copy and/or distribute it,
349 # with or without modifications, as long as this notice is preserved.
350
351 # Check whether the underlying file-system supports filenames
352 # with a leading dot. For instance MS-DOS doesn't.
353 AC_DEFUN([AM_SET_LEADING_DOT],
354 [rm -rf .tst 2>/dev/null
355 mkdir .tst 2>/dev/null
356 if test -d .tst; then
357 am__leading_dot=.
358 else
359 am__leading_dot=_
360 fi
361 rmdir .tst 2>/dev/null
362 AC_SUBST([am__leading_dot])])
363
364 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
365 # From Jim Meyering
366
367 # Copyright (C) 1996-2025 Free Software Foundation, Inc.
368 #
369 # This file is free software; the Free Software Foundation
370 # gives unlimited permission to copy and/or distribute it,
371 # with or without modifications, as long as this notice is preserved.
372
373 # AM_MAINTAINER_MODE([DEFAULT-MODE])
374 # ----------------------------------
375 # Control maintainer-specific portions of Makefiles.
376 # Default is to disable them, unless 'enable' is passed literally.
377 # For symmetry, 'disable' may be passed as well. Anyway, the user
378 # can override the default with the --enable/--disable switch.
379 AC_DEFUN([AM_MAINTAINER_MODE],
380 [m4_case(m4_default([$1], [disable]),
381 [enable], [m4_define([am_maintainer_other], [disable])],
382 [disable], [m4_define([am_maintainer_other], [enable])],
383 [m4_define([am_maintainer_other], [enable])
384 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
385 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
386 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
387 AC_ARG_ENABLE([maintainer-mode],
388 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
389 am_maintainer_other[ make rules and dependencies not useful
390 (and sometimes confusing) to the casual installer])],
391 [USE_MAINTAINER_MODE=$enableval],
392 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
393 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
394 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
395 MAINT=$MAINTAINER_MODE_TRUE
396 AC_SUBST([MAINT])dnl
397 ]
398 )
399
400 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
401
402 # Copyright (C) 1997-2025 Free Software Foundation, Inc.
403 #
404 # This file is free software; the Free Software Foundation
405 # gives unlimited permission to copy and/or distribute it,
406 # with or without modifications, as long as this notice is preserved.
407
408 # AM_MISSING_PROG(NAME, PROGRAM)
409 # ------------------------------
410 AC_DEFUN([AM_MISSING_PROG],
411 [AC_REQUIRE([AM_MISSING_HAS_RUN])
412 $1=${$1-"${am_missing_run}$2"}
413 AC_SUBST($1)])
414
415 # AM_MISSING_HAS_RUN
416 # ------------------
417 # Define MISSING if not defined so far and test if it is modern enough.
418 # If it is, set am_missing_run to use it, otherwise, to nothing.
419 AC_DEFUN([AM_MISSING_HAS_RUN],
420 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
421 AC_REQUIRE_AUX_FILE([missing])dnl
422 if test x"${MISSING+set}" != xset; then
423 MISSING="\${SHELL} '$am_aux_dir/missing'"
424 fi
425 # Use eval to expand $SHELL
426 if eval "$MISSING --is-lightweight"; then
427 am_missing_run="$MISSING "
428 else
429 am_missing_run=
430 AC_MSG_WARN(['missing' script is too old or missing])
431 fi
432 ])
433
434 # Helper functions for option handling. -*- Autoconf -*-
435
436 # Copyright (C) 2001-2025 Free Software Foundation, Inc.
437 #
438 # This file is free software; the Free Software Foundation
439 # gives unlimited permission to copy and/or distribute it,
440 # with or without modifications, as long as this notice is preserved.
441
442 # _AM_MANGLE_OPTION(NAME)
443 # -----------------------
444 AC_DEFUN([_AM_MANGLE_OPTION],
445 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
446
447 # _AM_SET_OPTION(NAME)
448 # --------------------
449 # Set option NAME. Presently that only means defining a flag for this option.
450 AC_DEFUN([_AM_SET_OPTION],
451 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
452
453 # _AM_SET_OPTIONS(OPTIONS)
454 # ------------------------
455 # OPTIONS is a space-separated list of Automake options.
456 AC_DEFUN([_AM_SET_OPTIONS],
457 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
458
459 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
460 # -------------------------------------------
461 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
462 AC_DEFUN([_AM_IF_OPTION],
463 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
464
465 # Copyright (C) 2022-2025 Free Software Foundation, Inc.
466 #
467 # This file is free software; the Free Software Foundation
468 # gives unlimited permission to copy and/or distribute it,
469 # with or without modifications, as long as this notice is preserved.
470
471 # _AM_PROG_RM_F
472 # ---------------
473 # Check whether 'rm -f' without any arguments works.
474 # https://bugs.gnu.org/10828
475 AC_DEFUN([_AM_PROG_RM_F],
476 [am__rm_f_notfound=
477 AS_IF([(rm -f && rm -fr && rm -rf) 2>/dev/null], [], [am__rm_f_notfound='""'])
478 AC_SUBST(am__rm_f_notfound)
479 ])
480
481 # Copyright (C) 2001-2025 Free Software Foundation, Inc.
482 #
483 # This file is free software; the Free Software Foundation
484 # gives unlimited permission to copy and/or distribute it,
485 # with or without modifications, as long as this notice is preserved.
486
487 # AM_RUN_LOG(COMMAND)
488 # -------------------
489 # Run COMMAND, save the exit status in ac_status, and log it.
490 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
491 AC_DEFUN([AM_RUN_LOG],
492 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
493 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
494 ac_status=$?
495 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
496 (exit $ac_status); }])
497
498 # Check to make sure that the build environment is sane. -*- Autoconf -*-
499
500 # Copyright (C) 1996-2025 Free Software Foundation, Inc.
501 #
502 # This file is free software; the Free Software Foundation
503 # gives unlimited permission to copy and/or distribute it,
504 # with or without modifications, as long as this notice is preserved.
505
506 # _AM_SLEEP_FRACTIONAL_SECONDS
507 # ----------------------------
508 AC_DEFUN([_AM_SLEEP_FRACTIONAL_SECONDS], [dnl
509 AC_CACHE_CHECK([whether sleep supports fractional seconds],
510 am_cv_sleep_fractional_seconds, [dnl
511 AS_IF([sleep 0.001 2>/dev/null], [am_cv_sleep_fractional_seconds=yes],
512 [am_cv_sleep_fractional_seconds=no])
513 ])])
514
515 # _AM_FILESYSTEM_TIMESTAMP_RESOLUTION
516 # -----------------------------------
517 # Determine the filesystem's resolution for file modification
518 # timestamps. The coarsest we know of is FAT, with a resolution
519 # of only two seconds, even with the most recent "exFAT" extensions.
520 # The finest (e.g. ext4 with large inodes, XFS, ZFS) is one
521 # nanosecond, matching clock_gettime. However, it is probably not
522 # possible to delay execution of a shell script for less than one
523 # millisecond, due to process creation overhead and scheduling
524 # granularity, so we don't check for anything finer than that. (See below.)
525 AC_DEFUN([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION], [dnl
526 AC_REQUIRE([_AM_SLEEP_FRACTIONAL_SECONDS])
527 AC_CACHE_CHECK([filesystem timestamp resolution],
528 am_cv_filesystem_timestamp_resolution, [dnl
529 # Default to the worst case.
530 am_cv_filesystem_timestamp_resolution=2
531
532 # Only try to go finer than 1 sec if sleep can do it.
533 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
534 # - 1 sec is not much of a win compared to 2 sec, and
535 # - it takes 2 seconds to perform the test whether 1 sec works.
536 #
537 # Instead, just use the default 2s on platforms that have 1s resolution,
538 # accept the extra 1s delay when using $sleep in the Automake tests, in
539 # exchange for not incurring the 2s delay for running the test for all
540 # packages.
541 #
542 am_try_resolutions=
543 if test "$am_cv_sleep_fractional_seconds" = yes; then
544 # Even a millisecond often causes a bunch of false positives,
545 # so just try a hundredth of a second. The time saved between .001 and
546 # .01 is not terribly consequential.
547 am_try_resolutions="0.01 0.1 $am_try_resolutions"
548 fi
549
550 # In order to catch current-generation FAT out, we must *modify* files
551 # that already exist; the *creation* timestamp is finer. Use names
552 # that make ls -t sort them differently when they have equal
553 # timestamps than when they have distinct timestamps, keeping
554 # in mind that ls -t prints the *newest* file first.
555 rm -f conftest.ts?
556 : > conftest.ts1
557 : > conftest.ts2
558 : > conftest.ts3
559
560 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
561 # clobber the current shell's arguments. (Outer-level square brackets
562 # are removed by m4; they're present so that m4 does not expand
563 # <dollar><star>; be careful, easy to get confused.)
564 if (
565 set X `[ls -t conftest.ts[12]]` &&
566 {
567 test "$[]*" != "X conftest.ts1 conftest.ts2" ||
568 test "$[]*" != "X conftest.ts2 conftest.ts1";
569 }
570 ); then :; else
571 # If neither matched, then we have a broken ls. This can happen
572 # if, for instance, CONFIG_SHELL is bash and it inherits a
573 # broken ls alias from the environment. This has actually
574 # happened. Such a system could not be considered "sane".
575 _AS_ECHO_UNQUOTED(
576 ["Bad output from ls -t: \"`[ls -t conftest.ts[12]]`\""],
577 [AS_MESSAGE_LOG_FD])
578 AC_MSG_FAILURE([ls -t produces unexpected output.
579 Make sure there is not a broken ls alias in your environment.])
580 fi
581
582 for am_try_res in $am_try_resolutions; do
583 # Any one fine-grained sleep might happen to cross the boundary
584 # between two values of a coarser actual resolution, but if we do
585 # two fine-grained sleeps in a row, at least one of them will fall
586 # entirely within a coarse interval.
587 echo alpha > conftest.ts1
588 sleep $am_try_res
589 echo beta > conftest.ts2
590 sleep $am_try_res
591 echo gamma > conftest.ts3
592
593 # We assume that 'ls -t' will make use of high-resolution
594 # timestamps if the operating system supports them at all.
595 if (set X `ls -t conftest.ts?` &&
596 test "$[]2" = conftest.ts3 &&
597 test "$[]3" = conftest.ts2 &&
598 test "$[]4" = conftest.ts1); then
599 #
600 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
601 # because we don't need to test make.
602 make_ok=true
603 if test $am_try_res != 1; then
604 # But if we've succeeded so far with a subsecond resolution, we
605 # have one more thing to check: make. It can happen that
606 # everything else supports the subsecond mtimes, but make doesn't;
607 # notably on macOS, which ships make 3.81 from 2006 (the last one
608 # released under GPLv2). https://bugs.gnu.org/68808
609 #
610 # We test $MAKE if it is defined in the environment, else "make".
611 # It might get overridden later, but our hope is that in practice
612 # it does not matter: it is the system "make" which is (by far)
613 # the most likely to be broken, whereas if the user overrides it,
614 # probably they did so with a better, or at least not worse, make.
615 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
616 #
617 # Create a Makefile (real tab character here):
618 rm -f conftest.mk
619 echo 'conftest.ts1: conftest.ts2' >conftest.mk
620 echo ' touch conftest.ts2' >>conftest.mk
621 #
622 # Now, running
623 # touch conftest.ts1; touch conftest.ts2; make
624 # should touch ts1 because ts2 is newer. This could happen by luck,
625 # but most often, it will fail if make's support is insufficient. So
626 # test for several consecutive successes.
627 #
628 # (We reuse conftest.ts[12] because we still want to modify existing
629 # files, not create new ones, per above.)
630 n=0
631 make=${MAKE-make}
632 until test $n -eq 3; do
633 echo one > conftest.ts1
634 sleep $am_try_res
635 echo two > conftest.ts2 # ts2 should now be newer than ts1
636 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
637 make_ok=false
638 break # out of $n loop
639 fi
640 n=`expr $n + 1`
641 done
642 fi
643 #
644 if $make_ok; then
645 # Everything we know to check worked out, so call this resolution good.
646 am_cv_filesystem_timestamp_resolution=$am_try_res
647 break # out of $am_try_res loop
648 fi
649 # Otherwise, we'll go on to check the next resolution.
650 fi
651 done
652 rm -f conftest.ts?
653 # (end _am_filesystem_timestamp_resolution)
654 ])])
655
656 # AM_SANITY_CHECK
657 # ---------------
658 AC_DEFUN([AM_SANITY_CHECK],
659 [AC_REQUIRE([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION])
660 # This check should not be cached, as it may vary across builds of
661 # different projects.
662 AC_MSG_CHECKING([whether build environment is sane])
663 # Reject unsafe characters in $srcdir or the absolute working directory
664 # name. Accept space and tab only in the latter.
665 am_lf='
666 '
667 case `pwd` in
668 *[[\\\"\#\$\&\'\`$am_lf]]*)
669 AC_MSG_RESULT([no])
670 AC_MSG_ERROR([unsafe absolute working directory name]);;
671 esac
672 case $srcdir in
673 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
674 AC_MSG_RESULT([no])
675 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
676 esac
677
678 # Do 'set' in a subshell so we don't clobber the current shell's
679 # arguments. Must try -L first in case configure is actually a
680 # symlink; some systems play weird games with the mod time of symlinks
681 # (eg FreeBSD returns the mod time of the symlink's containing
682 # directory).
683 am_build_env_is_sane=no
684 am_has_slept=no
685 rm -f conftest.file
686 for am_try in 1 2; do
687 echo "timestamp, slept: $am_has_slept" > conftest.file
688 if (
689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
690 if test "$[]*" = "X"; then
691 # -L didn't work.
692 set X `ls -t "$srcdir/configure" conftest.file`
693 fi
694 test "$[]2" = conftest.file
695 ); then
696 am_build_env_is_sane=yes
697 break
698 fi
699 # Just in case.
700 sleep "$am_cv_filesystem_timestamp_resolution"
701 am_has_slept=yes
702 done
703
704 AC_MSG_RESULT([$am_build_env_is_sane])
705 if test "$am_build_env_is_sane" = no; then
706 AC_MSG_ERROR([newly created file is older than distributed files!
707 Check your system clock])
708 fi
709
710 # If we didn't sleep, we still need to ensure time stamps of config.status and
711 # generated files are strictly newer.
712 am_sleep_pid=
713 AS_IF([test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1],, [dnl
714 ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
715 am_sleep_pid=$!
716 ])
717 AC_CONFIG_COMMANDS_PRE(
718 [AC_MSG_CHECKING([that generated files are newer than configure])
719 if test -n "$am_sleep_pid"; then
720 # Hide warnings about reused PIDs.
721 wait $am_sleep_pid 2>/dev/null
722 fi
723 AC_MSG_RESULT([done])])
724 rm -f conftest.file
725 ])
726
727 # Copyright (C) 2009-2025 Free Software Foundation, Inc.
728 #
729 # This file is free software; the Free Software Foundation
730 # gives unlimited permission to copy and/or distribute it,
731 # with or without modifications, as long as this notice is preserved.
732
733 # _AM_SILENT_RULES
734 # ----------------
735 # Enable less verbose build rules support.
736 AC_DEFUN([_AM_SILENT_RULES],
737 [AM_DEFAULT_VERBOSITY=1
738 AC_ARG_ENABLE([silent-rules], [dnl
739 AS_HELP_STRING(
740 [--enable-silent-rules],
741 [less verbose build output (undo: "make V=1")])
742 AS_HELP_STRING(
743 [--disable-silent-rules],
744 [verbose build output (undo: "make V=0")])dnl
745 ])
746 dnl
747 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
748 dnl do not support nested variable expansions.
749 dnl See automake bug#9928 and bug#10237.
750 am_make=${MAKE-make}
751 AC_CACHE_CHECK([whether $am_make supports nested variables],
752 [am_cv_make_support_nested_variables],
753 [if AS_ECHO([['TRUE=$(BAR$(V))
754 BAR0=false
755 BAR1=true
756 V=1
757 am__doit:
758 @$(TRUE)
759 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
760 am_cv_make_support_nested_variables=yes
761 else
762 am_cv_make_support_nested_variables=no
763 fi])
764 AC_SUBST([AM_V])dnl
765 AM_SUBST_NOTMAKE([AM_V])dnl
766 AC_SUBST([AM_DEFAULT_V])dnl
767 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
768 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
769 AM_BACKSLASH='\'
770 AC_SUBST([AM_BACKSLASH])dnl
771 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
772 dnl Delay evaluation of AM_DEFAULT_VERBOSITY to the end to allow multiple calls
773 dnl to AM_SILENT_RULES to change the default value.
774 AC_CONFIG_COMMANDS_PRE([dnl
775 case $enable_silent_rules in @%:@ (((
776 yes) AM_DEFAULT_VERBOSITY=0;;
777 no) AM_DEFAULT_VERBOSITY=1;;
778 esac
779 if test $am_cv_make_support_nested_variables = yes; then
780 dnl Using '$V' instead of '$(V)' breaks IRIX make.
781 AM_V='$(V)'
782 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
783 else
784 AM_V=$AM_DEFAULT_VERBOSITY
785 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
786 fi
787 ])dnl
788 ])
789
790 # AM_SILENT_RULES([DEFAULT])
791 # --------------------------
792 # Set the default verbosity level to DEFAULT ("yes" being less verbose, "no" or
793 # empty being verbose).
794 AC_DEFUN([AM_SILENT_RULES],
795 [AC_REQUIRE([_AM_SILENT_RULES])
796 AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1])m4_newline
797 dnl We intentionally force a newline after the assignment, since a) nothing
798 dnl good can come of more text following, and b) that was the behavior
799 dnl before 1.17. See https://bugs.gnu.org/72267.
800 ])
801
802 # Copyright (C) 2001-2025 Free Software Foundation, Inc.
803 #
804 # This file is free software; the Free Software Foundation
805 # gives unlimited permission to copy and/or distribute it,
806 # with or without modifications, as long as this notice is preserved.
807
808 # AM_PROG_INSTALL_STRIP
809 # ---------------------
810 # One issue with vendor 'install' (even GNU) is that you can't
811 # specify the program used to strip binaries. This is especially
812 # annoying in cross-compiling environments, where the build's strip
813 # is unlikely to handle the host's binaries.
814 # Fortunately install-sh will honor a STRIPPROG variable, so we
815 # always use install-sh in "make install-strip", and initialize
816 # STRIPPROG with the value of the STRIP variable (set by the user).
817 AC_DEFUN([AM_PROG_INSTALL_STRIP],
818 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
819 # Installed binaries are usually stripped using 'strip' when the user
820 # run "make install-strip". However 'strip' might not be the right
821 # tool to use in cross-compilation environments, therefore Automake
822 # will honor the 'STRIP' environment variable to overrule this program.
823 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
824 if test "$cross_compiling" != no; then
825 AC_CHECK_TOOL([STRIP], [strip], :)
826 fi
827 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
828 AC_SUBST([INSTALL_STRIP_PROGRAM])])
829
830 # Copyright (C) 2006-2025 Free Software Foundation, Inc.
831 #
832 # This file is free software; the Free Software Foundation
833 # gives unlimited permission to copy and/or distribute it,
834 # with or without modifications, as long as this notice is preserved.
835
836 # _AM_SUBST_NOTMAKE(VARIABLE)
837 # ---------------------------
838 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
839 # This macro is traced by Automake.
840 AC_DEFUN([_AM_SUBST_NOTMAKE])
841
842 # AM_SUBST_NOTMAKE(VARIABLE)
843 # --------------------------
844 # Public sister of _AM_SUBST_NOTMAKE.
845 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
846
847 # Check how to create a tarball. -*- Autoconf -*-
848
849 # Copyright (C) 2004-2025 Free Software Foundation, Inc.
850 #
851 # This file is free software; the Free Software Foundation
852 # gives unlimited permission to copy and/or distribute it,
853 # with or without modifications, as long as this notice is preserved.
854
855 # _AM_PROG_TAR(FORMAT)
856 # --------------------
857 # Check how to create a tarball in format FORMAT.
858 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
859 #
860 # Substitute a variable $(am__tar) that is a command
861 # writing to stdout a FORMAT-tarball containing the directory
862 # $tardir.
863 # tardir=directory && $(am__tar) > result.tar
864 #
865 # Substitute a variable $(am__untar) that extract such
866 # a tarball read from stdin.
867 # $(am__untar) < result.tar
868 #
869 AC_DEFUN([_AM_PROG_TAR],
870 [# Always define AMTAR for backward compatibility. Yes, it's still used
871 # in the wild :-( We should find a proper way to deprecate it ...
872 AC_SUBST([AMTAR], ['$${TAR-tar}'])
873
874 # We'll loop over all known methods to create a tar archive until one works.
875 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
876
877 m4_if([$1], [v7],
878 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
879
880 [m4_case([$1],
881 [ustar],
882 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
883 # There is notably a 21 bits limit for the UID and the GID. In fact,
884 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
885 # and bug#13588).
886 am_max_uid=2097151 # 2^21 - 1
887 am_max_gid=$am_max_uid
888 # The $UID and $GID variables are not portable, so we need to resort
889 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
890 # below are definitely unexpected, so allow the users to see them
891 # (that is, avoid stderr redirection).
892 am_uid=`id -u || echo unknown`
893 am_gid=`id -g || echo unknown`
894 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
895 if test x$am_uid = xunknown; then
896 AC_MSG_WARN([ancient id detected; assuming current UID is ok, but dist-ustar might not work])
897 elif test $am_uid -le $am_max_uid; then
898 AC_MSG_RESULT([yes])
899 else
900 AC_MSG_RESULT([no])
901 _am_tools=none
902 fi
903 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
904 if test x$gm_gid = xunknown; then
905 AC_MSG_WARN([ancient id detected; assuming current GID is ok, but dist-ustar might not work])
906 elif test $am_gid -le $am_max_gid; then
907 AC_MSG_RESULT([yes])
908 else
909 AC_MSG_RESULT([no])
910 _am_tools=none
911 fi],
912
913 [pax],
914 [],
915
916 [m4_fatal([Unknown tar format])])
917
918 AC_MSG_CHECKING([how to create a $1 tar archive])
919
920 # Go ahead even if we have the value already cached. We do so because we
921 # need to set the values for the 'am__tar' and 'am__untar' variables.
922 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
923
924 for _am_tool in $_am_tools; do
925 case $_am_tool in
926 gnutar)
927 for _am_tar in tar gnutar gtar; do
928 AM_RUN_LOG([$_am_tar --version]) && break
929 done
930 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
931 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
932 am__untar="$_am_tar -xf -"
933 ;;
934 plaintar)
935 # Must skip GNU tar: if it does not support --format= it doesn't create
936 # ustar tarball either.
937 (tar --version) >/dev/null 2>&1 && continue
938 am__tar='tar chf - "$$tardir"'
939 am__tar_='tar chf - "$tardir"'
940 am__untar='tar xf -'
941 ;;
942 pax)
943 am__tar='pax -L -x $1 -w "$$tardir"'
944 am__tar_='pax -L -x $1 -w "$tardir"'
945 am__untar='pax -r'
946 ;;
947 cpio)
948 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
949 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
950 am__untar='cpio -i -H $1 -d'
951 ;;
952 none)
953 am__tar=false
954 am__tar_=false
955 am__untar=false
956 ;;
957 esac
958
959 # If the value was cached, stop now. We just wanted to have am__tar
960 # and am__untar set.
961 test -n "${am_cv_prog_tar_$1}" && break
962
963 # tar/untar a dummy directory, and stop if the command works.
964 rm -rf conftest.dir
965 mkdir conftest.dir
966 echo GrepMe > conftest.dir/file
967 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
968 rm -rf conftest.dir
969 if test -s conftest.tar; then
970 AM_RUN_LOG([$am__untar <conftest.tar])
971 AM_RUN_LOG([cat conftest.dir/file])
972 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
973 fi
974 done
975 rm -rf conftest.dir
976
977 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
978 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
979
980 AC_SUBST([am__tar])
981 AC_SUBST([am__untar])
982 ]) # _AM_PROG_TAR
983
984 # Copyright (C) 2022-2025 Free Software Foundation, Inc.
985 #
986 # This file is free software; the Free Software Foundation
987 # gives unlimited permission to copy and/or distribute it,
988 # with or without modifications, as long as this notice is preserved.
989
990 # _AM_PROG_XARGS_N
991 # ----------------
992 # Check whether 'xargs -n' works. It should work everywhere, so the fallback
993 # is not optimized at all as we never expect to use it.
994 AC_DEFUN([_AM_PROG_XARGS_N],
995 [AC_CACHE_CHECK([xargs -n works], am_cv_xargs_n_works, [dnl
996 AS_IF([test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
997 3"], [am_cv_xargs_n_works=yes], [am_cv_xargs_n_works=no])])
998 AS_IF([test "$am_cv_xargs_n_works" = yes], [am__xargs_n='xargs -n'], [dnl
999 am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "$@" "$am__xargs_n_arg"; done; }'
1000 ])dnl
1001 AC_SUBST(am__xargs_n)
1002 ])
1003