Debian Codegraph @

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 # po.m4 serial 31 (gettext-0.20.2)
24 dnl Copyright (C) 1995-2014, 2016, 2018-2020 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 Lesser 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 Lesser 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 Authors:
39 dnl Ulrich Drepper <[email protected]>, 1995-2000.
40 dnl Bruno Haible <[email protected]>, 2000-2003.
41
42 AC_PREREQ([2.60])
43
44 dnl Checks for all prerequisites of the po subdirectory.
45 AC_DEFUN([AM_PO_SUBDIRS],
46 [
47 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
48 AC_REQUIRE([AC_PROG_INSTALL])dnl
49 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
50 AC_REQUIRE([AC_PROG_SED])dnl
51 AC_REQUIRE([AM_NLS])dnl
52
53 dnl Release version of the gettext macros. This is used to ensure that
54 dnl the gettext macros and po/Makefile.in.in are in sync.
55 AC_SUBST([GETTEXT_MACRO_VERSION], [0.20])
56
57 dnl Perform the following tests also if --disable-nls has been given,
58 dnl because they are needed for "make dist" to work.
59
60 dnl Search for GNU msgfmt in the PATH.
61 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
62 dnl The second test excludes FreeBSD msgfmt.
63 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
64 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
65 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
66 :)
67 AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
68
69 dnl Test whether it is GNU msgfmt >= 0.15.
70 changequote(,)dnl
71 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
72 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
73 *) GMSGFMT_015=$GMSGFMT ;;
74 esac
75 changequote([,])dnl
76 AC_SUBST([GMSGFMT_015])
77
78 dnl Search for GNU xgettext 0.12 or newer in the PATH.
79 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
80 dnl The second test excludes FreeBSD xgettext.
81 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
82 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
83 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
84 :)
85 dnl Remove leftover from FreeBSD xgettext call.
86 rm -f messages.po
87
88 dnl Test whether it is GNU xgettext >= 0.15.
89 changequote(,)dnl
90 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
91 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
92 *) XGETTEXT_015=$XGETTEXT ;;
93 esac
94 changequote([,])dnl
95 AC_SUBST([XGETTEXT_015])
96
97 dnl Search for GNU msgmerge 0.11 or newer in the PATH.
98 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
99 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
100
101 dnl Test whether it is GNU msgmerge >= 0.20.
102 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
103 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
104 else
105 dnl Test whether it is GNU msgmerge >= 0.12.
106 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
107 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
108 else
109 dnl With these old versions, $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) is
110 dnl slow. But this is not a big problem, as such old gettext versions are
111 dnl hardly in use any more.
112 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
113 fi
114 fi
115 AC_SUBST([MSGMERGE_FOR_MSGFMT_OPTION])
116
117 dnl Support for AM_XGETTEXT_OPTION.
118 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
119 AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
120
121 AC_CONFIG_COMMANDS([po-directories], [[
122 for ac_file in $CONFIG_FILES; do
123 # Support "outfile[:infile[:infile...]]"
124 case "$ac_file" in
125 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
126 esac
127 # PO directories have a Makefile.in generated from Makefile.in.in.
128 case "$ac_file" in */Makefile.in)
129 # Adjust a relative srcdir.
130 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
131 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
132 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
133 # In autoconf-2.13 it is called $ac_given_srcdir.
134 # In autoconf-2.50 it is called $srcdir.
135 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
136 case "$ac_given_srcdir" in
137 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
138 /*) top_srcdir="$ac_given_srcdir" ;;
139 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
140 esac
141 # Treat a directory as a PO directory if and only if it has a
142 # POTFILES.in file. This allows packages to have multiple PO
143 # directories under different names or in different locations.
144 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
145 rm -f "$ac_dir/POTFILES"
146 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
147 gt_tab=`printf '\t'`
148 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
149 POMAKEFILEDEPS="POTFILES.in"
150 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
151 # on $ac_dir but don't depend on user-specified configuration
152 # parameters.
153 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
154 # The LINGUAS file contains the set of available languages.
155 if test -n "$OBSOLETE_ALL_LINGUAS"; then
156 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
157 fi
158 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
159 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
160 else
161 # The set of available languages was given in configure.in.
162 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
163 fi
164 # Compute POFILES
165 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
166 # Compute UPDATEPOFILES
167 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
168 # Compute DUMMYPOFILES
169 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
170 # Compute GMOFILES
171 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
172 case "$ac_given_srcdir" in
173 .) srcdirpre= ;;
174 *) srcdirpre='$(srcdir)/' ;;
175 esac
176 POFILES=
177 UPDATEPOFILES=
178 DUMMYPOFILES=
179 GMOFILES=
180 for lang in $ALL_LINGUAS; do
181 POFILES="$POFILES $srcdirpre$lang.po"
182 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
183 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
184 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
185 done
186 # CATALOGS depends on both $ac_dir and the user's LINGUAS
187 # environment variable.
188 INST_LINGUAS=
189 if test -n "$ALL_LINGUAS"; then
190 for presentlang in $ALL_LINGUAS; do
191 useit=no
192 if test "%UNSET%" != "$LINGUAS"; then
193 desiredlanguages="$LINGUAS"
194 else
195 desiredlanguages="$ALL_LINGUAS"
196 fi
197 for desiredlang in $desiredlanguages; do
198 # Use the presentlang catalog if desiredlang is
199 # a. equal to presentlang, or
200 # b. a variant of presentlang (because in this case,
201 # presentlang can be used as a fallback for messages
202 # which are not translated in the desiredlang catalog).
203 case "$desiredlang" in
204 "$presentlang"*) useit=yes;;
205 esac
206 done
207 if test $useit = yes; then
208 INST_LINGUAS="$INST_LINGUAS $presentlang"
209 fi
210 done
211 fi
212 CATALOGS=
213 if test -n "$INST_LINGUAS"; then
214 for lang in $INST_LINGUAS; do
215 CATALOGS="$CATALOGS $lang.gmo"
216 done
217 fi
218 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
219 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
220 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
221 if test -f "$f"; then
222 case "$f" in
223 *.orig | *.bak | *~) ;;
224 *) cat "$f" >> "$ac_dir/Makefile" ;;
225 esac
226 fi
227 done
228 fi
229 ;;
230 esac
231 done]],
232 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
233 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
234 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
235 # Capture the value of LINGUAS because we need it to compute CATALOGS.
236 LINGUAS="${LINGUAS-%UNSET%}"
237 ])
238 ])
239
240 dnl Postprocesses a Makefile in a directory containing PO files.
241 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
242 [
243 # When this code is run, in config.status, two variables have already been
244 # set:
245 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
246 # - LINGUAS is the value of the environment variable LINGUAS at configure
247 # time.
248
249 changequote(,)dnl
250 # Adjust a relative srcdir.
251 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
252 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
253 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
254 # In autoconf-2.13 it is called $ac_given_srcdir.
255 # In autoconf-2.50 it is called $srcdir.
256 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
257 case "$ac_given_srcdir" in
258 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
259 /*) top_srcdir="$ac_given_srcdir" ;;
260 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
261 esac
262
263 # Find a way to echo strings without interpreting backslash.
264 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
265 gt_echo='echo'
266 else
267 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
268 gt_echo='printf %s\n'
269 else
270 echo_func () {
271 cat <<EOT
272 $*
273 EOT
274 }
275 gt_echo='echo_func'
276 fi
277 fi
278
279 # A sed script that extracts the value of VARIABLE from a Makefile.
280 tab=`printf '\t'`
281 sed_x_variable='
282 # Test if the hold space is empty.
283 x
284 s/P/P/
285 x
286 ta
287 # Yes it was empty. Look if we have the expected variable definition.
288 /^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
289 # Seen the first line of the variable definition.
290 s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
291 ba
292 }
293 bd
294 :a
295 # Here we are processing a line from the variable definition.
296 # Remove comment, more precisely replace it with a space.
297 s/#.*$/ /
298 # See if the line ends in a backslash.
299 tb
300 :b
301 s/\\$//
302 # Print the line, without the trailing backslash.
303 p
304 tc
305 # There was no trailing backslash. The end of the variable definition is
306 # reached. Clear the hold space.
307 s/^.*$//
308 x
309 bd
310 :c
311 # A trailing backslash means that the variable definition continues in the
312 # next line. Put a nonempty string into the hold space to indicate this.
313 s/^.*$/P/
314 x
315 :d
316 '
317 changequote([,])dnl
318
319 # Set POTFILES to the value of the Makefile variable POTFILES.
320 sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
321 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
322 # Compute POTFILES_DEPS as
323 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
324 POTFILES_DEPS=
325 for file in $POTFILES; do
326 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
327 done
328 POMAKEFILEDEPS=""
329
330 if test -n "$OBSOLETE_ALL_LINGUAS"; then
331 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
332 fi
333 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
334 # The LINGUAS file contains the set of available languages.
335 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
336 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
337 else
338 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
339 sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
340 ALL_LINGUAS=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
341 fi
342 # Compute POFILES
343 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
344 # Compute UPDATEPOFILES
345 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
346 # Compute DUMMYPOFILES
347 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
348 # Compute GMOFILES
349 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
350 # Compute PROPERTIESFILES
351 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(DOMAIN)_$(lang).properties)
352 # Compute CLASSFILES
353 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(DOMAIN)_$(lang).class)
354 # Compute QMFILES
355 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
356 # Compute MSGFILES
357 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
358 # Compute RESOURCESDLLFILES
359 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
360 case "$ac_given_srcdir" in
361 .) srcdirpre= ;;
362 *) srcdirpre='$(srcdir)/' ;;
363 esac
364 POFILES=
365 UPDATEPOFILES=
366 DUMMYPOFILES=
367 GMOFILES=
368 PROPERTIESFILES=
369 CLASSFILES=
370 QMFILES=
371 MSGFILES=
372 RESOURCESDLLFILES=
373 for lang in $ALL_LINGUAS; do
374 POFILES="$POFILES $srcdirpre$lang.po"
375 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
376 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
377 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
378 PROPERTIESFILES="$PROPERTIESFILES \$(srcdir)/\$(DOMAIN)_$lang.properties"
379 CLASSFILES="$CLASSFILES \$(srcdir)/\$(DOMAIN)_$lang.class"
380 QMFILES="$QMFILES $srcdirpre$lang.qm"
381 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
382 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
383 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
384 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
385 done
386 # CATALOGS depends on both $ac_dir and the user's LINGUAS
387 # environment variable.
388 INST_LINGUAS=
389 if test -n "$ALL_LINGUAS"; then
390 for presentlang in $ALL_LINGUAS; do
391 useit=no
392 if test "%UNSET%" != "$LINGUAS"; then
393 desiredlanguages="$LINGUAS"
394 else
395 desiredlanguages="$ALL_LINGUAS"
396 fi
397 for desiredlang in $desiredlanguages; do
398 # Use the presentlang catalog if desiredlang is
399 # a. equal to presentlang, or
400 # b. a variant of presentlang (because in this case,
401 # presentlang can be used as a fallback for messages
402 # which are not translated in the desiredlang catalog).
403 case "$desiredlang" in
404 "$presentlang"*) useit=yes;;
405 esac
406 done
407 if test $useit = yes; then
408 INST_LINGUAS="$INST_LINGUAS $presentlang"
409 fi
410 done
411 fi
412 CATALOGS=
413 JAVACATALOGS=
414 QTCATALOGS=
415 TCLCATALOGS=
416 CSHARPCATALOGS=
417 if test -n "$INST_LINGUAS"; then
418 for lang in $INST_LINGUAS; do
419 CATALOGS="$CATALOGS $lang.gmo"
420 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
421 QTCATALOGS="$QTCATALOGS $lang.qm"
422 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
423 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
424 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
425 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
426 done
427 fi
428
429 sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
430 tab=`printf '\t'`
431 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
432 # Add dependencies that cannot be formulated as a simple suffix rule.
433 for lang in $ALL_LINGUAS; do
434 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
435 cat >> "$ac_file.tmp" <<EOF
436 $frobbedlang.msg: $lang.po
437 ${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
438 ${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
439 EOF
440 done
441 fi
442 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
443 # Add dependencies that cannot be formulated as a simple suffix rule.
444 for lang in $ALL_LINGUAS; do
445 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
446 cat >> "$ac_file.tmp" <<EOF
447 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
448 ${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
449 ${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
450 EOF
451 done
452 fi
453 if test -n "$POMAKEFILEDEPS"; then
454 cat >> "$ac_file.tmp" <<EOF
455 Makefile: $POMAKEFILEDEPS
456 EOF
457 fi
458 mv "$ac_file.tmp" "$ac_file"
459 ])
460
461 dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
462 AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
463 [
464 XGETTEXT_EXTRA_OPTIONS=
465 ])
466
467 dnl Registers an option to be passed to xgettext in the po subdirectory.
468 AC_DEFUN([AM_XGETTEXT_OPTION],
469 [
470 AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
471 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
472 ])
473
474 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
475 #
476 # This file is free software; the Free Software Foundation
477 # gives unlimited permission to copy and/or distribute it,
478 # with or without modifications, as long as this notice is preserved.
479
480 # AM_AUTOMAKE_VERSION(VERSION)
481 # ----------------------------
482 # Automake X.Y traces this macro to ensure aclocal.m4 has been
483 # generated from the m4 files accompanying Automake X.Y.
484 # (This private macro should not be called outside this file.)
485 AC_DEFUN([AM_AUTOMAKE_VERSION],
486 [am__api_version='1.16'
487 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
488 dnl require some minimum version. Point them to the right macro.
489 m4_if([$1], [1.16.5], [],
490 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
491 ])
492
493 # _AM_AUTOCONF_VERSION(VERSION)
494 # -----------------------------
495 # aclocal traces this macro to find the Autoconf version.
496 # This is a private macro too. Using m4_define simplifies
497 # the logic in aclocal, which can simply ignore this definition.
498 m4_define([_AM_AUTOCONF_VERSION], [])
499
500 # AM_SET_CURRENT_AUTOMAKE_VERSION
501 # -------------------------------
502 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
503 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
504 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
505 [AM_AUTOMAKE_VERSION([1.16.5])dnl
506 m4_ifndef([AC_AUTOCONF_VERSION],
507 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
508 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
509
510 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
511
512 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
513 #
514 # This file is free software; the Free Software Foundation
515 # gives unlimited permission to copy and/or distribute it,
516 # with or without modifications, as long as this notice is preserved.
517
518 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
519 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
520 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
521 #
522 # Of course, Automake must honor this variable whenever it calls a
523 # tool from the auxiliary directory. The problem is that $srcdir (and
524 # therefore $ac_aux_dir as well) can be either absolute or relative,
525 # depending on how configure is run. This is pretty annoying, since
526 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
527 # source directory, any form will work fine, but in subdirectories a
528 # relative path needs to be adjusted first.
529 #
530 # $ac_aux_dir/missing
531 # fails when called from a subdirectory if $ac_aux_dir is relative
532 # $top_srcdir/$ac_aux_dir/missing
533 # fails if $ac_aux_dir is absolute,
534 # fails when called from a subdirectory in a VPATH build with
535 # a relative $ac_aux_dir
536 #
537 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
538 # are both prefixed by $srcdir. In an in-source build this is usually
539 # harmless because $srcdir is '.', but things will broke when you
540 # start a VPATH build or use an absolute $srcdir.
541 #
542 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
543 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
544 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
545 # and then we would define $MISSING as
546 # MISSING="\${SHELL} $am_aux_dir/missing"
547 # This will work as long as MISSING is not called from configure, because
548 # unfortunately $(top_srcdir) has no meaning in configure.
549 # However there are other variables, like CC, which are often used in
550 # configure, and could therefore not use this "fixed" $ac_aux_dir.
551 #
552 # Another solution, used here, is to always expand $ac_aux_dir to an
553 # absolute PATH. The drawback is that using absolute paths prevent a
554 # configured tree to be moved without reconfiguration.
555
556 AC_DEFUN([AM_AUX_DIR_EXPAND],
557 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
558 # Expand $ac_aux_dir to an absolute path.
559 am_aux_dir=`cd "$ac_aux_dir" && pwd`
560 ])
561
562 # AM_COND_IF -*- Autoconf -*-
563
564 # Copyright (C) 2008-2021 Free Software Foundation, Inc.
565 #
566 # This file is free software; the Free Software Foundation
567 # gives unlimited permission to copy and/or distribute it,
568 # with or without modifications, as long as this notice is preserved.
569
570 # _AM_COND_IF
571 # _AM_COND_ELSE
572 # _AM_COND_ENDIF
573 # --------------
574 # These macros are only used for tracing.
575 m4_define([_AM_COND_IF])
576 m4_define([_AM_COND_ELSE])
577 m4_define([_AM_COND_ENDIF])
578
579 # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
580 # ---------------------------------------
581 # If the shell condition COND is true, execute IF-TRUE, otherwise execute
582 # IF-FALSE. Allow automake to learn about conditional instantiating macros
583 # (the AC_CONFIG_FOOS).
584 AC_DEFUN([AM_COND_IF],
585 [m4_ifndef([_AM_COND_VALUE_$1],
586 [m4_fatal([$0: no such condition "$1"])])dnl
587 _AM_COND_IF([$1])dnl
588 if test -z "$$1_TRUE"; then :
589 m4_n([$2])[]dnl
590 m4_ifval([$3],
591 [_AM_COND_ELSE([$1])dnl
592 else
593 $3
594 ])dnl
595 _AM_COND_ENDIF([$1])dnl
596 fi[]dnl
597 ])
598
599 # AM_CONDITIONAL -*- Autoconf -*-
600
601 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
602 #
603 # This file is free software; the Free Software Foundation
604 # gives unlimited permission to copy and/or distribute it,
605 # with or without modifications, as long as this notice is preserved.
606
607 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
608 # -------------------------------------
609 # Define a conditional.
610 AC_DEFUN([AM_CONDITIONAL],
611 [AC_PREREQ([2.52])dnl
612 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
613 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
614 AC_SUBST([$1_TRUE])dnl
615 AC_SUBST([$1_FALSE])dnl
616 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
617 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
618 m4_define([_AM_COND_VALUE_$1], [$2])dnl
619 if $2; then
620 $1_TRUE=
621 $1_FALSE='#'
622 else
623 $1_TRUE='#'
624 $1_FALSE=
625 fi
626 AC_CONFIG_COMMANDS_PRE(
627 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
628 AC_MSG_ERROR([[conditional "$1" was never defined.
629 Usually this means the macro was only invoked conditionally.]])
630 fi])])
631
632 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
633 #
634 # This file is free software; the Free Software Foundation
635 # gives unlimited permission to copy and/or distribute it,
636 # with or without modifications, as long as this notice is preserved.
637
638
639 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
640 # written in clear, in which case automake, when reading aclocal.m4,
641 # will think it sees a *use*, and therefore will trigger all it's
642 # C support machinery. Also note that it means that autoscan, seeing
643 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
644
645
646 # _AM_DEPENDENCIES(NAME)
647 # ----------------------
648 # See how the compiler implements dependency checking.
649 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
650 # We try a few techniques and use that to set a single cache variable.
651 #
652 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
653 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
654 # dependency, and given that the user is not expected to run this macro,
655 # just rely on AC_PROG_CC.
656 AC_DEFUN([_AM_DEPENDENCIES],
657 [AC_REQUIRE([AM_SET_DEPDIR])dnl
658 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
659 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
660 AC_REQUIRE([AM_DEP_TRACK])dnl
661
662 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
663 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
664 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
665 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
666 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
667 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
668 [depcc="$$1" am_compiler_list=])
669
670 AC_CACHE_CHECK([dependency style of $depcc],
671 [am_cv_$1_dependencies_compiler_type],
672 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
673 # We make a subdir and do the tests there. Otherwise we can end up
674 # making bogus files that we don't know about and never remove. For
675 # instance it was reported that on HP-UX the gcc test will end up
676 # making a dummy file named 'D' -- because '-MD' means "put the output
677 # in D".
678 rm -rf conftest.dir
679 mkdir conftest.dir
680 # Copy depcomp to subdir because otherwise we won't find it if we're
681 # using a relative directory.
682 cp "$am_depcomp" conftest.dir
683 cd conftest.dir
684 # We will build objects and dependencies in a subdirectory because
685 # it helps to detect inapplicable dependency modes. For instance
686 # both Tru64's cc and ICC support -MD to output dependencies as a
687 # side effect of compilation, but ICC will put the dependencies in
688 # the current directory while Tru64 will put them in the object
689 # directory.
690 mkdir sub
691
692 am_cv_$1_dependencies_compiler_type=none
693 if test "$am_compiler_list" = ""; then
694 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
695 fi
696 am__universal=false
697 m4_case([$1], [CC],
698 [case " $depcc " in #(
699 *\ -arch\ *\ -arch\ *) am__universal=true ;;
700 esac],
701 [CXX],
702 [case " $depcc " in #(
703 *\ -arch\ *\ -arch\ *) am__universal=true ;;
704 esac])
705
706 for depmode in $am_compiler_list; do
707 # Setup a source with many dependencies, because some compilers
708 # like to wrap large dependency lists on column 80 (with \), and
709 # we should not choose a depcomp mode which is confused by this.
710 #
711 # We need to recreate these files for each test, as the compiler may
712 # overwrite some of them when testing with obscure command lines.
713 # This happens at least with the AIX C compiler.
714 : > sub/conftest.c
715 for i in 1 2 3 4 5 6; do
716 echo '#include "conftst'$i'.h"' >> sub/conftest.c
717 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
718 # Solaris 10 /bin/sh.
719 echo '/* dummy */' > sub/conftst$i.h
720 done
721 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
722
723 # We check with '-c' and '-o' for the sake of the "dashmstdout"
724 # mode. It turns out that the SunPro C++ compiler does not properly
725 # handle '-M -o', and we need to detect this. Also, some Intel
726 # versions had trouble with output in subdirs.
727 am__obj=sub/conftest.${OBJEXT-o}
728 am__minus_obj="-o $am__obj"
729 case $depmode in
730 gcc)
731 # This depmode causes a compiler race in universal mode.
732 test "$am__universal" = false || continue
733 ;;
734 nosideeffect)
735 # After this tag, mechanisms are not by side-effect, so they'll
736 # only be used when explicitly requested.
737 if test "x$enable_dependency_tracking" = xyes; then
738 continue
739 else
740 break
741 fi
742 ;;
743 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
744 # This compiler won't grok '-c -o', but also, the minuso test has
745 # not run yet. These depmodes are late enough in the game, and
746 # so weak that their functioning should not be impacted.
747 am__obj=conftest.${OBJEXT-o}
748 am__minus_obj=
749 ;;
750 none) break ;;
751 esac
752 if depmode=$depmode \
753 source=sub/conftest.c object=$am__obj \
754 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
755 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
756 >/dev/null 2>conftest.err &&
757 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
758 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
759 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
760 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
761 # icc doesn't choke on unknown options, it will just issue warnings
762 # or remarks (even with -Werror). So we grep stderr for any message
763 # that says an option was ignored or not supported.
764 # When given -MP, icc 7.0 and 7.1 complain thusly:
765 # icc: Command line warning: ignoring option '-M'; no argument required
766 # The diagnosis changed in icc 8.0:
767 # icc: Command line remark: option '-MP' not supported
768 if (grep 'ignoring option' conftest.err ||
769 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
770 am_cv_$1_dependencies_compiler_type=$depmode
771 break
772 fi
773 fi
774 done
775
776 cd ..
777 rm -rf conftest.dir
778 else
779 am_cv_$1_dependencies_compiler_type=none
780 fi
781 ])
782 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
783 AM_CONDITIONAL([am__fastdep$1], [
784 test "x$enable_dependency_tracking" != xno \
785 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
786 ])
787
788
789 # AM_SET_DEPDIR
790 # -------------
791 # Choose a directory name for dependency files.
792 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
793 AC_DEFUN([AM_SET_DEPDIR],
794 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
795 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
796 ])
797
798
799 # AM_DEP_TRACK
800 # ------------
801 AC_DEFUN([AM_DEP_TRACK],
802 [AC_ARG_ENABLE([dependency-tracking], [dnl
803 AS_HELP_STRING(
804 [--enable-dependency-tracking],
805 [do not reject slow dependency extractors])
806 AS_HELP_STRING(
807 [--disable-dependency-tracking],
808 [speeds up one-time build])])
809 if test "x$enable_dependency_tracking" != xno; then
810 am_depcomp="$ac_aux_dir/depcomp"
811 AMDEPBACKSLASH='\'
812 am__nodep='_no'
813 fi
814 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
815 AC_SUBST([AMDEPBACKSLASH])dnl
816 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
817 AC_SUBST([am__nodep])dnl
818 _AM_SUBST_NOTMAKE([am__nodep])dnl
819 ])
820
821 # Generate code to set up dependency tracking. -*- Autoconf -*-
822
823 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
824 #
825 # This file is free software; the Free Software Foundation
826 # gives unlimited permission to copy and/or distribute it,
827 # with or without modifications, as long as this notice is preserved.
828
829 # _AM_OUTPUT_DEPENDENCY_COMMANDS
830 # ------------------------------
831 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
832 [{
833 # Older Autoconf quotes --file arguments for eval, but not when files
834 # are listed without --file. Let's play safe and only enable the eval
835 # if we detect the quoting.
836 # TODO: see whether this extra hack can be removed once we start
837 # requiring Autoconf 2.70 or later.
838 AS_CASE([$CONFIG_FILES],
839 [*\'*], [eval set x "$CONFIG_FILES"],
840 [*], [set x $CONFIG_FILES])
841 shift
842 # Used to flag and report bootstrapping failures.
843 am_rc=0
844 for am_mf
845 do
846 # Strip MF so we end up with the name of the file.
847 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
848 # Check whether this is an Automake generated Makefile which includes
849 # dependency-tracking related rules and includes.
850 # Grep'ing the whole file directly is not great: AIX grep has a line
851 # limit of 2048, but all sed's we know have understand at least 4000.
852 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
853 || continue
854 am_dirpart=`AS_DIRNAME(["$am_mf"])`
855 am_filepart=`AS_BASENAME(["$am_mf"])`
856 AM_RUN_LOG([cd "$am_dirpart" \
857 && sed -e '/# am--include-marker/d' "$am_filepart" \
858 | $MAKE -f - am--depfiles]) || am_rc=$?
859 done
860 if test $am_rc -ne 0; then
861 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
862 for automatic dependency tracking. If GNU make was not used, consider
863 re-running the configure script with MAKE="gmake" (or whatever is
864 necessary). You can also try re-running configure with the
865 '--disable-dependency-tracking' option to at least be able to build
866 the package (albeit without support for automatic dependency tracking).])
867 fi
868 AS_UNSET([am_dirpart])
869 AS_UNSET([am_filepart])
870 AS_UNSET([am_mf])
871 AS_UNSET([am_rc])
872 rm -f conftest-deps.mk
873 }
874 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
875
876
877 # AM_OUTPUT_DEPENDENCY_COMMANDS
878 # -----------------------------
879 # This macro should only be invoked once -- use via AC_REQUIRE.
880 #
881 # This code is only required when automatic dependency tracking is enabled.
882 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
883 # order to bootstrap the dependency handling code.
884 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
885 [AC_CONFIG_COMMANDS([depfiles],
886 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
887 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
888
889 # Do all the work for Automake. -*- Autoconf -*-
890
891 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
892 #
893 # This file is free software; the Free Software Foundation
894 # gives unlimited permission to copy and/or distribute it,
895 # with or without modifications, as long as this notice is preserved.
896
897 # This macro actually does too much. Some checks are only needed if
898 # your package does certain things. But this isn't really a big deal.
899
900 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
901 m4_define([AC_PROG_CC],
902 m4_defn([AC_PROG_CC])
903 [_AM_PROG_CC_C_O
904 ])
905
906 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
907 # AM_INIT_AUTOMAKE([OPTIONS])
908 # -----------------------------------------------
909 # The call with PACKAGE and VERSION arguments is the old style
910 # call (pre autoconf-2.50), which is being phased out. PACKAGE
911 # and VERSION should now be passed to AC_INIT and removed from
912 # the call to AM_INIT_AUTOMAKE.
913 # We support both call styles for the transition. After
914 # the next Automake release, Autoconf can make the AC_INIT
915 # arguments mandatory, and then we can depend on a new Autoconf
916 # release and drop the old call support.
917 AC_DEFUN([AM_INIT_AUTOMAKE],
918 [AC_PREREQ([2.65])dnl
919 m4_ifdef([_$0_ALREADY_INIT],
920 [m4_fatal([$0 expanded multiple times
921 ]m4_defn([_$0_ALREADY_INIT]))],
922 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
923 dnl Autoconf wants to disallow AM_ names. We explicitly allow
924 dnl the ones we care about.
925 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
926 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
927 AC_REQUIRE([AC_PROG_INSTALL])dnl
928 if test "`cd $srcdir && pwd`" != "`pwd`"; then
929 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
930 # is not polluted with repeated "-I."
931 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
932 # test to see if srcdir already configured
933 if test -f $srcdir/config.status; then
934 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
935 fi
936 fi
937
938 # test whether we have cygpath
939 if test -z "$CYGPATH_W"; then
940 if (cygpath --version) >/dev/null 2>/dev/null; then
941 CYGPATH_W='cygpath -w'
942 else
943 CYGPATH_W=echo
944 fi
945 fi
946 AC_SUBST([CYGPATH_W])
947
948 # Define the identity of the package.
949 dnl Distinguish between old-style and new-style calls.
950 m4_ifval([$2],
951 [AC_DIAGNOSE([obsolete],
952 [$0: two- and three-arguments forms are deprecated.])
953 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
954 AC_SUBST([PACKAGE], [$1])dnl
955 AC_SUBST([VERSION], [$2])],
956 [_AM_SET_OPTIONS([$1])dnl
957 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
958 m4_if(
959 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
960 [ok:ok],,
961 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
962 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
963 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
964
965 _AM_IF_OPTION([no-define],,
966 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
967 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
968
969 # Some tools Automake needs.
970 AC_REQUIRE([AM_SANITY_CHECK])dnl
971 AC_REQUIRE([AC_ARG_PROGRAM])dnl
972 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
973 AM_MISSING_PROG([AUTOCONF], [autoconf])
974 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
975 AM_MISSING_PROG([AUTOHEADER], [autoheader])
976 AM_MISSING_PROG([MAKEINFO], [makeinfo])
977 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
978 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
979 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
980 # For better backward compatibility. To be removed once Automake 1.9.x
981 # dies out for good. For more background, see:
982 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
983 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
984 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
985 # We need awk for the "check" target (and possibly the TAP driver). The
986 # system "awk" is bad on some platforms.
987 AC_REQUIRE([AC_PROG_AWK])dnl
988 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
989 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
990 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
991 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
992 [_AM_PROG_TAR([v7])])])
993 _AM_IF_OPTION([no-dependencies],,
994 [AC_PROVIDE_IFELSE([AC_PROG_CC],
995 [_AM_DEPENDENCIES([CC])],
996 [m4_define([AC_PROG_CC],
997 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
998 AC_PROVIDE_IFELSE([AC_PROG_CXX],
999 [_AM_DEPENDENCIES([CXX])],
1000 [m4_define([AC_PROG_CXX],
1001 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1002 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1003 [_AM_DEPENDENCIES([OBJC])],
1004 [m4_define([AC_PROG_OBJC],
1005 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1006 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1007 [_AM_DEPENDENCIES([OBJCXX])],
1008 [m4_define([AC_PROG_OBJCXX],
1009 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1010 ])
1011 # Variables for tags utilities; see am/tags.am
1012 if test -z "$CTAGS"; then
1013 CTAGS=ctags
1014 fi
1015 AC_SUBST([CTAGS])
1016 if test -z "$ETAGS"; then
1017 ETAGS=etags
1018 fi
1019 AC_SUBST([ETAGS])
1020 if test -z "$CSCOPE"; then
1021 CSCOPE=cscope
1022 fi
1023 AC_SUBST([CSCOPE])
1024
1025 AC_REQUIRE([AM_SILENT_RULES])dnl
1026 dnl The testsuite driver may need to know about EXEEXT, so add the
1027 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
1028 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1029 AC_CONFIG_COMMANDS_PRE(dnl
1030 [m4_provide_if([_AM_COMPILER_EXEEXT],
1031 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1032
1033 # POSIX will say in a future version that running "rm -f" with no argument
1034 # is OK; and we want to be able to make that assumption in our Makefile
1035 # recipes. So use an aggressive probe to check that the usage we want is
1036 # actually supported "in the wild" to an acceptable degree.
1037 # See automake bug#10828.
1038 # To make any issue more visible, cause the running configure to be aborted
1039 # by default if the 'rm' program in use doesn't match our expectations; the
1040 # user can still override this though.
1041 if rm -f && rm -fr && rm -rf; then : OK; else
1042 cat >&2 <<'END'
1043 Oops!
1044
1045 Your 'rm' program seems unable to run without file operands specified
1046 on the command line, even when the '-f' option is present. This is contrary
1047 to the behaviour of most rm programs out there, and not conforming with
1048 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
1049
1050 Please tell [email protected] about your system, including the value
1051 of your $PATH and any error possibly output before this message. This
1052 can help us improve future automake versions.
1053
1054 END
1055 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
1056 echo 'Configuration will proceed anyway, since you have set the' >&2
1057 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
1058 echo >&2
1059 else
1060 cat >&2 <<'END'
1061 Aborting the configuration process, to ensure you take notice of the issue.
1062
1063 You can download and install GNU coreutils to get an 'rm' implementation
1064 that behaves properly: <https://www.gnu.org/software/coreutils/>.
1065
1066 If you want to complete the configuration process using your problematic
1067 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
1068 to "yes", and re-run configure.
1069
1070 END
1071 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
1072 fi
1073 fi
1074 dnl The trailing newline in this macro's definition is deliberate, for
1075 dnl backward compatibility and to allow trailing 'dnl'-style comments
1076 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
1077 ])
1078
1079 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1080 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1081 dnl mangled by Autoconf and run in a shell conditional statement.
1082 m4_define([_AC_COMPILER_EXEEXT],
1083 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1084
1085 # When config.status generates a header, we must update the stamp-h file.
1086 # This file resides in the same directory as the config header
1087 # that is generated. The stamp files are numbered to have different names.
1088
1089 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1090 # loop where config.status creates the headers, so we can generate
1091 # our stamp files there.
1092 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1093 [# Compute $1's index in $config_headers.
1094 _am_arg=$1
1095 _am_stamp_count=1
1096 for _am_header in $config_headers :; do
1097 case $_am_header in
1098 $_am_arg | $_am_arg:* )
1099 break ;;
1100 * )
1101 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1102 esac
1103 done
1104 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1105
1106 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1107 #
1108 # This file is free software; the Free Software Foundation
1109 # gives unlimited permission to copy and/or distribute it,
1110 # with or without modifications, as long as this notice is preserved.
1111
1112 # AM_PROG_INSTALL_SH
1113 # ------------------
1114 # Define $install_sh.
1115 AC_DEFUN([AM_PROG_INSTALL_SH],
1116 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1117 if test x"${install_sh+set}" != xset; then
1118 case $am_aux_dir in
1119 *\ * | *\ *)
1120 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1121 *)
1122 install_sh="\${SHELL} $am_aux_dir/install-sh"
1123 esac
1124 fi
1125 AC_SUBST([install_sh])])
1126
1127 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
1128 #
1129 # This file is free software; the Free Software Foundation
1130 # gives unlimited permission to copy and/or distribute it,
1131 # with or without modifications, as long as this notice is preserved.
1132
1133 # Check whether the underlying file-system supports filenames
1134 # with a leading dot. For instance MS-DOS doesn't.
1135 AC_DEFUN([AM_SET_LEADING_DOT],
1136 [rm -rf .tst 2>/dev/null
1137 mkdir .tst 2>/dev/null
1138 if test -d .tst; then
1139 am__leading_dot=.
1140 else
1141 am__leading_dot=_
1142 fi
1143 rmdir .tst 2>/dev/null
1144 AC_SUBST([am__leading_dot])])
1145
1146 # Check to see how 'make' treats includes. -*- Autoconf -*-
1147
1148 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1149 #
1150 # This file is free software; the Free Software Foundation
1151 # gives unlimited permission to copy and/or distribute it,
1152 # with or without modifications, as long as this notice is preserved.
1153
1154 # AM_MAKE_INCLUDE()
1155 # -----------------
1156 # Check whether make has an 'include' directive that can support all
1157 # the idioms we need for our automatic dependency tracking code.
1158 AC_DEFUN([AM_MAKE_INCLUDE],
1159 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
1160 cat > confinc.mk << 'END'
1161 am__doit:
1162 @echo this is the am__doit target >confinc.out
1163 .PHONY: am__doit
1164 END
1165 am__include="#"
1166 am__quote=
1167 # BSD make does it like this.
1168 echo '.include "confinc.mk" # ignored' > confmf.BSD
1169 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
1170 echo 'include confinc.mk # ignored' > confmf.GNU
1171 _am_result=no
1172 for s in GNU BSD; do
1173 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
1174 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
1175 ['0:this is the am__doit target'],
1176 [AS_CASE([$s],
1177 [BSD], [am__include='.include' am__quote='"'],
1178 [am__include='include' am__quote=''])])
1179 if test "$am__include" != "#"; then
1180 _am_result="yes ($s style)"
1181 break
1182 fi
1183 done
1184 rm -f confinc.* confmf.*
1185 AC_MSG_RESULT([${_am_result}])
1186 AC_SUBST([am__include])])
1187 AC_SUBST([am__quote])])
1188
1189 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1190
1191 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
1192 #
1193 # This file is free software; the Free Software Foundation
1194 # gives unlimited permission to copy and/or distribute it,
1195 # with or without modifications, as long as this notice is preserved.
1196
1197 # AM_MISSING_PROG(NAME, PROGRAM)
1198 # ------------------------------
1199 AC_DEFUN([AM_MISSING_PROG],
1200 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1201 $1=${$1-"${am_missing_run}$2"}
1202 AC_SUBST($1)])
1203
1204 # AM_MISSING_HAS_RUN
1205 # ------------------
1206 # Define MISSING if not defined so far and test if it is modern enough.
1207 # If it is, set am_missing_run to use it, otherwise, to nothing.
1208 AC_DEFUN([AM_MISSING_HAS_RUN],
1209 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1210 AC_REQUIRE_AUX_FILE([missing])dnl
1211 if test x"${MISSING+set}" != xset; then
1212 MISSING="\${SHELL} '$am_aux_dir/missing'"
1213 fi
1214 # Use eval to expand $SHELL
1215 if eval "$MISSING --is-lightweight"; then
1216 am_missing_run="$MISSING "
1217 else
1218 am_missing_run=
1219 AC_MSG_WARN(['missing' script is too old or missing])
1220 fi
1221 ])
1222
1223 # Helper functions for option handling. -*- Autoconf -*-
1224
1225 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1226 #
1227 # This file is free software; the Free Software Foundation
1228 # gives unlimited permission to copy and/or distribute it,
1229 # with or without modifications, as long as this notice is preserved.
1230
1231 # _AM_MANGLE_OPTION(NAME)
1232 # -----------------------
1233 AC_DEFUN([_AM_MANGLE_OPTION],
1234 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1235
1236 # _AM_SET_OPTION(NAME)
1237 # --------------------
1238 # Set option NAME. Presently that only means defining a flag for this option.
1239 AC_DEFUN([_AM_SET_OPTION],
1240 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1241
1242 # _AM_SET_OPTIONS(OPTIONS)
1243 # ------------------------
1244 # OPTIONS is a space-separated list of Automake options.
1245 AC_DEFUN([_AM_SET_OPTIONS],
1246 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1247
1248 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1249 # -------------------------------------------
1250 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1251 AC_DEFUN([_AM_IF_OPTION],
1252 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1253
1254 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
1255 #
1256 # This file is free software; the Free Software Foundation
1257 # gives unlimited permission to copy and/or distribute it,
1258 # with or without modifications, as long as this notice is preserved.
1259
1260 # _AM_PROG_CC_C_O
1261 # ---------------
1262 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1263 # to automatically call this.
1264 AC_DEFUN([_AM_PROG_CC_C_O],
1265 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1266 AC_REQUIRE_AUX_FILE([compile])dnl
1267 AC_LANG_PUSH([C])dnl
1268 AC_CACHE_CHECK(
1269 [whether $CC understands -c and -o together],
1270 [am_cv_prog_cc_c_o],
1271 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1272 # Make sure it works both with $CC and with simple cc.
1273 # Following AC_PROG_CC_C_O, we do the test twice because some
1274 # compilers refuse to overwrite an existing .o file with -o,
1275 # though they will create one.
1276 am_cv_prog_cc_c_o=yes
1277 for am_i in 1 2; do
1278 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1279 && test -f conftest2.$ac_objext; then
1280 : OK
1281 else
1282 am_cv_prog_cc_c_o=no
1283 break
1284 fi
1285 done
1286 rm -f core conftest*
1287 unset am_i])
1288 if test "$am_cv_prog_cc_c_o" != yes; then
1289 # Losing compiler, so override with the script.
1290 # FIXME: It is wrong to rewrite CC.
1291 # But if we don't then we get into trouble of one sort or another.
1292 # A longer-term fix would be to have automake use am__CC in this case,
1293 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1294 CC="$am_aux_dir/compile $CC"
1295 fi
1296 AC_LANG_POP([C])])
1297
1298 # For backward compatibility.
1299 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1300
1301 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1302 #
1303 # This file is free software; the Free Software Foundation
1304 # gives unlimited permission to copy and/or distribute it,
1305 # with or without modifications, as long as this notice is preserved.
1306
1307 # AM_RUN_LOG(COMMAND)
1308 # -------------------
1309 # Run COMMAND, save the exit status in ac_status, and log it.
1310 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1311 AC_DEFUN([AM_RUN_LOG],
1312 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1313 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1314 ac_status=$?
1315 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1316 (exit $ac_status); }])
1317
1318 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1319
1320 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
1321 #
1322 # This file is free software; the Free Software Foundation
1323 # gives unlimited permission to copy and/or distribute it,
1324 # with or without modifications, as long as this notice is preserved.
1325
1326 # AM_SANITY_CHECK
1327 # ---------------
1328 AC_DEFUN([AM_SANITY_CHECK],
1329 [AC_MSG_CHECKING([whether build environment is sane])
1330 # Reject unsafe characters in $srcdir or the absolute working directory
1331 # name. Accept space and tab only in the latter.
1332 am_lf='
1333 '
1334 case `pwd` in
1335 *[[\\\"\#\$\&\'\`$am_lf]]*)
1336 AC_MSG_ERROR([unsafe absolute working directory name]);;
1337 esac
1338 case $srcdir in
1339 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1340 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1341 esac
1342
1343 # Do 'set' in a subshell so we don't clobber the current shell's
1344 # arguments. Must try -L first in case configure is actually a
1345 # symlink; some systems play weird games with the mod time of symlinks
1346 # (eg FreeBSD returns the mod time of the symlink's containing
1347 # directory).
1348 if (
1349 am_has_slept=no
1350 for am_try in 1 2; do
1351 echo "timestamp, slept: $am_has_slept" > conftest.file
1352 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1353 if test "$[*]" = "X"; then
1354 # -L didn't work.
1355 set X `ls -t "$srcdir/configure" conftest.file`
1356 fi
1357 if test "$[*]" != "X $srcdir/configure conftest.file" \
1358 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1359
1360 # If neither matched, then we have a broken ls. This can happen
1361 # if, for instance, CONFIG_SHELL is bash and it inherits a
1362 # broken ls alias from the environment. This has actually
1363 # happened. Such a system could not be considered "sane".
1364 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1365 alias in your environment])
1366 fi
1367 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1368 break
1369 fi
1370 # Just in case.
1371 sleep 1
1372 am_has_slept=yes
1373 done
1374 test "$[2]" = conftest.file
1375 )
1376 then
1377 # Ok.
1378 :
1379 else
1380 AC_MSG_ERROR([newly created file is older than distributed files!
1381 Check your system clock])
1382 fi
1383 AC_MSG_RESULT([yes])
1384 # If we didn't sleep, we still need to ensure time stamps of config.status and
1385 # generated files are strictly newer.
1386 am_sleep_pid=
1387 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1388 ( sleep 1 ) &
1389 am_sleep_pid=$!
1390 fi
1391 AC_CONFIG_COMMANDS_PRE(
1392 [AC_MSG_CHECKING([that generated files are newer than configure])
1393 if test -n "$am_sleep_pid"; then
1394 # Hide warnings about reused PIDs.
1395 wait $am_sleep_pid 2>/dev/null
1396 fi
1397 AC_MSG_RESULT([done])])
1398 rm -f conftest.file
1399 ])
1400
1401 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
1402 #
1403 # This file is free software; the Free Software Foundation
1404 # gives unlimited permission to copy and/or distribute it,
1405 # with or without modifications, as long as this notice is preserved.
1406
1407 # AM_SILENT_RULES([DEFAULT])
1408 # --------------------------
1409 # Enable less verbose build rules; with the default set to DEFAULT
1410 # ("yes" being less verbose, "no" or empty being verbose).
1411 AC_DEFUN([AM_SILENT_RULES],
1412 [AC_ARG_ENABLE([silent-rules], [dnl
1413 AS_HELP_STRING(
1414 [--enable-silent-rules],
1415 [less verbose build output (undo: "make V=1")])
1416 AS_HELP_STRING(
1417 [--disable-silent-rules],
1418 [verbose build output (undo: "make V=0")])dnl
1419 ])
1420 case $enable_silent_rules in @%:@ (((
1421 yes) AM_DEFAULT_VERBOSITY=0;;
1422 no) AM_DEFAULT_VERBOSITY=1;;
1423 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1424 esac
1425 dnl
1426 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1427 dnl do not support nested variable expansions.
1428 dnl See automake bug#9928 and bug#10237.
1429 am_make=${MAKE-make}
1430 AC_CACHE_CHECK([whether $am_make supports nested variables],
1431 [am_cv_make_support_nested_variables],
1432 [if AS_ECHO([['TRUE=$(BAR$(V))
1433 BAR0=false
1434 BAR1=true
1435 V=1
1436 am__doit:
1437 @$(TRUE)
1438 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1439 am_cv_make_support_nested_variables=yes
1440 else
1441 am_cv_make_support_nested_variables=no
1442 fi])
1443 if test $am_cv_make_support_nested_variables = yes; then
1444 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1445 AM_V='$(V)'
1446 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1447 else
1448 AM_V=$AM_DEFAULT_VERBOSITY
1449 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1450 fi
1451 AC_SUBST([AM_V])dnl
1452 AM_SUBST_NOTMAKE([AM_V])dnl
1453 AC_SUBST([AM_DEFAULT_V])dnl
1454 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1455 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1456 AM_BACKSLASH='\'
1457 AC_SUBST([AM_BACKSLASH])dnl
1458 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1459 ])
1460
1461 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1462 #
1463 # This file is free software; the Free Software Foundation
1464 # gives unlimited permission to copy and/or distribute it,
1465 # with or without modifications, as long as this notice is preserved.
1466
1467 # AM_PROG_INSTALL_STRIP
1468 # ---------------------
1469 # One issue with vendor 'install' (even GNU) is that you can't
1470 # specify the program used to strip binaries. This is especially
1471 # annoying in cross-compiling environments, where the build's strip
1472 # is unlikely to handle the host's binaries.
1473 # Fortunately install-sh will honor a STRIPPROG variable, so we
1474 # always use install-sh in "make install-strip", and initialize
1475 # STRIPPROG with the value of the STRIP variable (set by the user).
1476 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1477 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1478 # Installed binaries are usually stripped using 'strip' when the user
1479 # run "make install-strip". However 'strip' might not be the right
1480 # tool to use in cross-compilation environments, therefore Automake
1481 # will honor the 'STRIP' environment variable to overrule this program.
1482 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1483 if test "$cross_compiling" != no; then
1484 AC_CHECK_TOOL([STRIP], [strip], :)
1485 fi
1486 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1487 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1488
1489 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
1490 #
1491 # This file is free software; the Free Software Foundation
1492 # gives unlimited permission to copy and/or distribute it,
1493 # with or without modifications, as long as this notice is preserved.
1494
1495 # _AM_SUBST_NOTMAKE(VARIABLE)
1496 # ---------------------------
1497 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1498 # This macro is traced by Automake.
1499 AC_DEFUN([_AM_SUBST_NOTMAKE])
1500
1501 # AM_SUBST_NOTMAKE(VARIABLE)
1502 # --------------------------
1503 # Public sister of _AM_SUBST_NOTMAKE.
1504 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1505
1506 # Check how to create a tarball. -*- Autoconf -*-
1507
1508 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
1509 #
1510 # This file is free software; the Free Software Foundation
1511 # gives unlimited permission to copy and/or distribute it,
1512 # with or without modifications, as long as this notice is preserved.
1513
1514 # _AM_PROG_TAR(FORMAT)
1515 # --------------------
1516 # Check how to create a tarball in format FORMAT.
1517 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1518 #
1519 # Substitute a variable $(am__tar) that is a command
1520 # writing to stdout a FORMAT-tarball containing the directory
1521 # $tardir.
1522 # tardir=directory && $(am__tar) > result.tar
1523 #
1524 # Substitute a variable $(am__untar) that extract such
1525 # a tarball read from stdin.
1526 # $(am__untar) < result.tar
1527 #
1528 AC_DEFUN([_AM_PROG_TAR],
1529 [# Always define AMTAR for backward compatibility. Yes, it's still used
1530 # in the wild :-( We should find a proper way to deprecate it ...
1531 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1532
1533 # We'll loop over all known methods to create a tar archive until one works.
1534 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1535
1536 m4_if([$1], [v7],
1537 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1538
1539 [m4_case([$1],
1540 [ustar],
1541 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1542 # There is notably a 21 bits limit for the UID and the GID. In fact,
1543 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1544 # and bug#13588).
1545 am_max_uid=2097151 # 2^21 - 1
1546 am_max_gid=$am_max_uid
1547 # The $UID and $GID variables are not portable, so we need to resort
1548 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1549 # below are definitely unexpected, so allow the users to see them
1550 # (that is, avoid stderr redirection).
1551 am_uid=`id -u || echo unknown`
1552 am_gid=`id -g || echo unknown`
1553 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1554 if test $am_uid -le $am_max_uid; then
1555 AC_MSG_RESULT([yes])
1556 else
1557 AC_MSG_RESULT([no])
1558 _am_tools=none
1559 fi
1560 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1561 if test $am_gid -le $am_max_gid; then
1562 AC_MSG_RESULT([yes])
1563 else
1564 AC_MSG_RESULT([no])
1565 _am_tools=none
1566 fi],
1567
1568 [pax],
1569 [],
1570
1571 [m4_fatal([Unknown tar format])])
1572
1573 AC_MSG_CHECKING([how to create a $1 tar archive])
1574
1575 # Go ahead even if we have the value already cached. We do so because we
1576 # need to set the values for the 'am__tar' and 'am__untar' variables.
1577 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1578
1579 for _am_tool in $_am_tools; do
1580 case $_am_tool in
1581 gnutar)
1582 for _am_tar in tar gnutar gtar; do
1583 AM_RUN_LOG([$_am_tar --version]) && break
1584 done
1585 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1586 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1587 am__untar="$_am_tar -xf -"
1588 ;;
1589 plaintar)
1590 # Must skip GNU tar: if it does not support --format= it doesn't create
1591 # ustar tarball either.
1592 (tar --version) >/dev/null 2>&1 && continue
1593 am__tar='tar chf - "$$tardir"'
1594 am__tar_='tar chf - "$tardir"'
1595 am__untar='tar xf -'
1596 ;;
1597 pax)
1598 am__tar='pax -L -x $1 -w "$$tardir"'
1599 am__tar_='pax -L -x $1 -w "$tardir"'
1600 am__untar='pax -r'
1601 ;;
1602 cpio)
1603 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1604 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1605 am__untar='cpio -i -H $1 -d'
1606 ;;
1607 none)
1608 am__tar=false
1609 am__tar_=false
1610 am__untar=false
1611 ;;
1612 esac
1613
1614 # If the value was cached, stop now. We just wanted to have am__tar
1615 # and am__untar set.
1616 test -n "${am_cv_prog_tar_$1}" && break
1617
1618 # tar/untar a dummy directory, and stop if the command works.
1619 rm -rf conftest.dir
1620 mkdir conftest.dir
1621 echo GrepMe > conftest.dir/file
1622 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1623 rm -rf conftest.dir
1624 if test -s conftest.tar; then
1625 AM_RUN_LOG([$am__untar <conftest.tar])
1626 AM_RUN_LOG([cat conftest.dir/file])
1627 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1628 fi
1629 done
1630 rm -rf conftest.dir
1631
1632 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1633 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1634
1635 AC_SUBST([am__tar])
1636 AC_SUBST([am__untar])
1637 ]) # _AM_PROG_TAR
1638
1639 m4_include([m4/00gnulib.m4])
1640 m4_include([m4/__inline.m4])
1641 m4_include([m4/absolute-header.m4])
1642 m4_include([m4/alloca.m4])
1643 m4_include([m4/arpa_inet_h.m4])
1644 m4_include([m4/builtin-expect.m4])
1645 m4_include([m4/calloc.m4])
1646 m4_include([m4/close.m4])
1647 m4_include([m4/codeset.m4])
1648 m4_include([m4/double-slash-root.m4])
1649 m4_include([m4/dup2.m4])
1650 m4_include([m4/eealloc.m4])
1651 m4_include([m4/environ.m4])
1652 m4_include([m4/errno_h.m4])
1653 m4_include([m4/error.m4])
1654 m4_include([m4/exponentd.m4])
1655 m4_include([m4/exponentf.m4])
1656 m4_include([m4/exponentl.m4])
1657 m4_include([m4/extensions.m4])
1658 m4_include([m4/extern-inline.m4])
1659 m4_include([m4/fclose.m4])
1660 m4_include([m4/fcntl-o.m4])
1661 m4_include([m4/fcntl.m4])
1662 m4_include([m4/fcntl_h.m4])
1663 m4_include([m4/fdopen.m4])
1664 m4_include([m4/fflush.m4])
1665 m4_include([m4/flexmember.m4])
1666 m4_include([m4/float_h.m4])
1667 m4_include([m4/fopen.m4])
1668 m4_include([m4/fpending.m4])
1669 m4_include([m4/fpieee.m4])
1670 m4_include([m4/fpurge.m4])
1671 m4_include([m4/freading.m4])
1672 m4_include([m4/free.m4])
1673 m4_include([m4/fseek.m4])
1674 m4_include([m4/fseeko.m4])
1675 m4_include([m4/fstat.m4])
1676 m4_include([m4/ftell.m4])
1677 m4_include([m4/ftello.m4])
1678 m4_include([m4/getdtablesize.m4])
1679 m4_include([m4/getopt.m4])
1680 m4_include([m4/getprogname.m4])
1681 m4_include([m4/gnulib-common.m4])
1682 m4_include([m4/gnulib-comp.m4])
1683 m4_include([m4/include_next.m4])
1684 m4_include([m4/inet_pton.m4])
1685 m4_include([m4/inttypes.m4])
1686 m4_include([m4/isnan.m4])
1687 m4_include([m4/isnand.m4])
1688 m4_include([m4/isnanf.m4])
1689 m4_include([m4/isnanl.m4])
1690 m4_include([m4/largefile.m4])
1691 m4_include([m4/ldexp.m4])
1692 m4_include([m4/libtool.m4])
1693 m4_include([m4/limits-h.m4])
1694 m4_include([m4/localcharset.m4])
1695 m4_include([m4/locale-fr.m4])
1696 m4_include([m4/locale-ja.m4])
1697 m4_include([m4/locale-zh.m4])
1698 m4_include([m4/locale_h.m4])
1699 m4_include([m4/lseek.m4])
1700 m4_include([m4/ltoptions.m4])
1701 m4_include([m4/ltsugar.m4])
1702 m4_include([m4/ltversion.m4])
1703 m4_include([m4/lt~obsolete.m4])
1704 m4_include([m4/malloc.m4])
1705 m4_include([m4/malloca.m4])
1706 m4_include([m4/math_h.m4])
1707 m4_include([m4/mbrtowc.m4])
1708 m4_include([m4/mbsinit.m4])
1709 m4_include([m4/mbstate_t.m4])
1710 m4_include([m4/memchr.m4])
1711 m4_include([m4/minmax.m4])
1712 m4_include([m4/mktime.m4])
1713 m4_include([m4/mmap-anon.m4])
1714 m4_include([m4/mode_t.m4])
1715 m4_include([m4/msvc-inval.m4])
1716 m4_include([m4/msvc-nothrow.m4])
1717 m4_include([m4/multiarch.m4])
1718 m4_include([m4/netinet_in_h.m4])
1719 m4_include([m4/nocrash.m4])
1720 m4_include([m4/nstrftime.m4])
1721 m4_include([m4/off_t.m4])
1722 m4_include([m4/open-cloexec.m4])
1723 m4_include([m4/open-slash.m4])
1724 m4_include([m4/open.m4])
1725 m4_include([m4/pathmax.m4])
1726 m4_include([m4/quote.m4])
1727 m4_include([m4/quotearg.m4])
1728 m4_include([m4/realloc.m4])
1729 m4_include([m4/reallocarray.m4])
1730 m4_include([m4/setenv.m4])
1731 m4_include([m4/setlocale_null.m4])
1732 m4_include([m4/socklen.m4])
1733 m4_include([m4/sockpfaf.m4])
1734 m4_include([m4/ssize_t.m4])
1735 m4_include([m4/stat-time.m4])
1736 m4_include([m4/stat.m4])
1737 m4_include([m4/stdalign.m4])
1738 m4_include([m4/stdbool.m4])
1739 m4_include([m4/stddef_h.m4])
1740 m4_include([m4/stdint.m4])
1741 m4_include([m4/stdio_h.m4])
1742 m4_include([m4/stdlib_h.m4])
1743 m4_include([m4/stpncpy.m4])
1744 m4_include([m4/strdup.m4])
1745 m4_include([m4/strerror.m4])
1746 m4_include([m4/string_h.m4])
1747 m4_include([m4/strstr.m4])
1748 m4_include([m4/strtod.m4])
1749 m4_include([m4/sys_socket_h.m4])
1750 m4_include([m4/sys_stat_h.m4])
1751 m4_include([m4/sys_types_h.m4])
1752 m4_include([m4/sys_uio_h.m4])
1753 m4_include([m4/threadlib.m4])
1754 m4_include([m4/time_h.m4])
1755 m4_include([m4/time_r.m4])
1756 m4_include([m4/time_rz.m4])
1757 m4_include([m4/timegm.m4])
1758 m4_include([m4/tm_gmtoff.m4])
1759 m4_include([m4/tzset.m4])
1760 m4_include([m4/ungetc.m4])
1761 m4_include([m4/unistd_h.m4])
1762 m4_include([m4/visibility.m4])
1763 m4_include([m4/warn-on-use.m4])
1764 m4_include([m4/wchar_h.m4])
1765 m4_include([m4/wchar_t.m4])
1766 m4_include([m4/wctype_h.m4])
1767 m4_include([m4/wint_t.m4])
1768 m4_include([m4/xalloc.m4])
1769 m4_include([m4/year2038.m4])
1770 m4_include([m4/zzgnulib.m4])