blob: dd610a768d9ce29ebe753407cfeeeafe7e07c1fe [file] [log] [blame]
xf.li84027492024-04-09 00:17:51 -07001#! /bin/sh
2# Generated from autoconf.as by GNU Autoconf 2.71.
3# Generated from bin/autoconf.in; do not edit by hand.
4# autoconf -- create 'configure' using m4 macros.
5
6# Copyright (C) 1992-1994, 1996, 1999-2017, 2020-2021 Free Software
7# Foundation, Inc.
8
9# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18
19# You should have received a copy of the GNU General Public License
20# along with this program. If not, see <https://www.gnu.org/licenses/>.
21
22## -------------------- ##
23## M4sh Initialization. ##
24## -------------------- ##
25
26# Be more Bourne compatible
27DUALCASE=1; export DUALCASE # for MKS sh
28as_nop=:
29if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
30then :
31 emulate sh
32 NULLCMD=:
33 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34 # is contrary to our usage. Disable this feature.
35 alias -g '${1+"$@"}'='"$@"'
36 setopt NO_GLOB_SUBST
37else $as_nop
38 case `(set -o) 2>/dev/null` in #(
39 *posix*) :
40 set -o posix ;; #(
41 *) :
42 ;;
43esac
44fi
45
46
47
48# Reset variables that may have inherited troublesome values from
49# the environment.
50
51# IFS needs to be set, to space, tab, and newline, in precisely that order.
52# (If _AS_PATH_WALK were called with IFS unset, it would have the
53# side effect of setting IFS to empty, thus disabling word splitting.)
54# Quoting is to prevent editors from complaining about space-tab.
55as_nl='
56'
57export as_nl
58IFS=" "" $as_nl"
59
60PS1='$ '
61PS2='> '
62PS4='+ '
63
64# Ensure predictable behavior from utilities with locale-dependent output.
65LC_ALL=C
66export LC_ALL
67LANGUAGE=C
68export LANGUAGE
69
70# We cannot yet rely on "unset" to work, but we need these variables
71# to be unset--not just set to an empty or harmless value--now, to
72# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
73# also avoids known problems related to "unset" and subshell syntax
74# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
75for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
76do eval test \${$as_var+y} \
77 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
78done
79
80# Ensure that fds 0, 1, and 2 are open.
81if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
82if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
83if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
84
85# The user is always right.
86if ${PATH_SEPARATOR+false} :; then
87 PATH_SEPARATOR=:
88 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
89 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
90 PATH_SEPARATOR=';'
91 }
92fi
93
94
95# Find who we are. Look in the path if we contain no directory separator.
96as_myself=
97case $0 in #((
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 case $as_dir in #(((
104 '') as_dir=./ ;;
105 */) ;;
106 *) as_dir=$as_dir/ ;;
107 esac
108 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
109 done
110IFS=$as_save_IFS
111
112 ;;
113esac
114# We did not find ourselves, most probably we were run as `sh COMMAND'
115# in which case we are not to be found in the path.
116if test "x$as_myself" = x; then
117 as_myself=$0
118fi
119if test ! -f "$as_myself"; then
120 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 exit 1
122fi
123
124
125if test "x$CONFIG_SHELL" = x; then
126 as_bourne_compatible="as_nop=:
127if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
128then :
129 emulate sh
130 NULLCMD=:
131 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
132 # is contrary to our usage. Disable this feature.
133 alias -g '\${1+\"\$@\"}'='\"\$@\"'
134 setopt NO_GLOB_SUBST
135else \$as_nop
136 case \`(set -o) 2>/dev/null\` in #(
137 *posix*) :
138 set -o posix ;; #(
139 *) :
140 ;;
141esac
142fi
143"
144 as_required="as_fn_return () { (exit \$1); }
145as_fn_success () { as_fn_return 0; }
146as_fn_failure () { as_fn_return 1; }
147as_fn_ret_success () { return 0; }
148as_fn_ret_failure () { return 1; }
149
150exitcode=0
151as_fn_success || { exitcode=1; echo as_fn_success failed.; }
152as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
153as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
154as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
155if ( set x; as_fn_ret_success y && test x = \"\$1\" )
156then :
157
158else \$as_nop
159 exitcode=1; echo positional parameters were not saved.
160fi
161test x\$exitcode = x0 || exit 1
162blah=\$(echo \$(echo blah))
163test x\"\$blah\" = xblah || exit 1
164test -x / || exit 1"
165 as_suggested=""
166 if (eval "$as_required") 2>/dev/null
167then :
168 as_have_required=yes
169else $as_nop
170 as_have_required=no
171fi
172 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
173then :
174
175else $as_nop
176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
177as_found=false
178for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
179do
180 IFS=$as_save_IFS
181 case $as_dir in #(((
182 '') as_dir=./ ;;
183 */) ;;
184 *) as_dir=$as_dir/ ;;
185 esac
186 as_found=:
187 case $as_dir in #(
188 /*)
189 for as_base in sh bash ksh sh5; do
190 # Try only shells that exist, to save several forks.
191 as_shell=$as_dir$as_base
192 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
193 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
194then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 break 2
197fi
198 done;;
199 esac
200 as_found=false
201done
202IFS=$as_save_IFS
203if $as_found
204then :
205
206else $as_nop
207 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
209then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi
212fi
213
214
215 if test "x$CONFIG_SHELL" != x
216then :
217 export CONFIG_SHELL
218 # We cannot yet assume a decent shell, so we have to provide a
219# neutralization value for shells without unset; and this also
220# works around shells that cannot unset nonexistent variables.
221# Preserve -v and -x to the replacement shell.
222BASH_ENV=/dev/null
223ENV=/dev/null
224(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230esac
231exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
232# Admittedly, this is quite paranoid, since all the known shells bail
233# out after a failed `exec'.
234printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
235exit 255
236fi
237
238 if test x$as_have_required = xno
239then :
240 printf "%s\n" "$0: This script requires a shell more modern than all"
241 printf "%s\n" "$0: the shells that I found on your system."
242 if test ${ZSH_VERSION+y} ; then
243 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
244 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
245 else
246 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
247$0: including any error possibly output before this
248$0: message. Then install a modern shell, or manually run
249$0: the script under such a shell if you do have one."
250 fi
251 exit 1
252fi
253fi
254fi
255SHELL=${CONFIG_SHELL-/bin/sh}
256export SHELL
257# Unset more variables known to interfere with behavior of common tools.
258CLICOLOR_FORCE= GREP_OPTIONS=
259unset CLICOLOR_FORCE GREP_OPTIONS
260
261## --------------------- ##
262## M4sh Shell Functions. ##
263## --------------------- ##
264# as_fn_unset VAR
265# ---------------
266# Portably unset VAR.
267as_fn_unset ()
268{
269 { eval $1=; unset $1;}
270}
271as_unset=as_fn_unset
272
273# as_fn_nop
274# ---------
275# Do nothing but, unlike ":", preserve the value of $?.
276as_fn_nop ()
277{
278 return $?
279}
280as_nop=as_fn_nop
281
282# as_fn_set_status STATUS
283# -----------------------
284# Set $? to STATUS, without forking.
285as_fn_set_status ()
286{
287 return $1
288} # as_fn_set_status
289
290# as_fn_exit STATUS
291# -----------------
292# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
293as_fn_exit ()
294{
295 set +e
296 as_fn_set_status $1
297 exit $1
298} # as_fn_exit
299
300
301# as_fn_error STATUS ERROR
302# ------------------------
303# Output "`basename $0`: error: ERROR" to stderr. Then exit the script with
304# STATUS, using 1 if that was 0.
305as_fn_error ()
306{
307 as_status=$1; test $as_status -eq 0 && as_status=1
308 printf "%s\n" "$as_me: error: $2" >&2
309 as_fn_exit $as_status
310} # as_fn_error
311
312if expr a : '\(a\)' >/dev/null 2>&1 &&
313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
314 as_expr=expr
315else
316 as_expr=false
317fi
318
319if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
320 as_basename=basename
321else
322 as_basename=false
323fi
324
325as_me=`$as_basename -- "$0" ||
326$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
327 X"$0" : 'X\(//\)$' \| \
328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
329printf "%s\n" X/"$0" |
330 sed '/^.*\/\([^/][^/]*\)\/*$/{
331 s//\1/
332 q
333 }
334 /^X\/\(\/\/\)$/{
335 s//\1/
336 q
337 }
338 /^X\/\(\/\).*/{
339 s//\1/
340 q
341 }
342 s/.*/./; q'`
343
344
345## -------------------- ##
346## Main body of script. ##
347## -------------------- ##
348
349help="\
350Usage: $0 [OPTION]... [TEMPLATE-FILE]
351
352Generate a configuration script from a TEMPLATE-FILE if given, or
353'configure.ac' if present, or else 'configure.in'. Output is sent
354to the standard output if TEMPLATE-FILE is given, else into
355'configure'.
356
357Operation modes:
358 -h, --help print this help, then exit
359 -V, --version print version number, then exit
360 -v, --verbose verbosely report processing
361 -d, --debug don't remove temporary files
362 -f, --force consider all files obsolete
363 -o, --output=FILE save output in FILE (stdout is the default)
364 -W, --warnings=CATEGORY report the warnings falling in CATEGORY
365
366Warning categories include:
367 cross cross compilation issues
368 gnu GNU coding standards (default in gnu and gnits modes)
369 obsolete obsolete features or constructions (default)
370 override user redefinitions of Automake rules or variables
371 portability portability issues (default in gnu and gnits modes)
372 portability-recursive nested Make variables (default with -Wportability)
373 extra-portability extra portability issues related to obscure tools
374 syntax dubious syntactic constructs (default)
375 unsupported unsupported or incomplete features (default)
376 all all the warnings
377 no-CATEGORY turn off warnings in CATEGORY
378 none turn off all the warnings
379
380The environment variables 'M4' and 'WARNINGS' are honored.
381
382Library directories:
383 -B, --prepend-include=DIR prepend directory DIR to search path
384 -I, --include=DIR append directory DIR to search path
385
386Tracing:
387 -t, --trace=MACRO[:FORMAT] report the list of calls to MACRO
388 -i, --initialization also trace Autoconf's initialization process
389
390In tracing mode, no configuration script is created. FORMAT defaults
391to '\$f:\$l:\$n:\$%'; see 'autom4te --help' for information about FORMAT.
392
393Report bugs to <bug-autoconf@gnu.org>.
394GNU Autoconf home page: <https://www.gnu.org/software/autoconf/>.
395General help using GNU software: <https://www.gnu.org/gethelp/>."
396
397version="\
398autoconf (GNU Autoconf) 2.71
399Copyright (C) 2021 Free Software Foundation, Inc.
400License GPLv3+/Autoconf: GNU GPL version 3 or later
401<https://gnu.org/licenses/gpl.html>, <https://gnu.org/licenses/exceptions.html>
402This is free software: you are free to change and redistribute it.
403There is NO WARRANTY, to the extent permitted by law.
404
405Written by David J. MacKenzie and Akim Demaille."
406
407usage_err="\
408Try '$as_me --help' for more information."
409
410exit_missing_arg='
411 as_fn_error $? "option '\''$1'\'' requires an argument$as_nl$usage_err"'
412# restore font-lock: '
413
414# Variables.
415: ${AUTOM4TE='/home/zhouguopo/code2/0616/ap/project/zx297520v3/prj_mdl/build/../../../../build/depends/install/bin/autom4te'}
416: ${trailer_m4='/home/zhouguopo/code2/0616/ap/project/zx297520v3/prj_mdl/build/../../../../build/depends/install/share/autoconf/autoconf/trailer.m4'}
417autom4te_options=
418outfile=
419verbose=false
420
421# Parse command line.
422while test $# -gt 0 ; do
423 option=`expr "x$1" : 'x\(--[^=]*\)' \| \
424 "x$1" : 'x\(-.\)'`
425 optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
426 "x$1" : 'x-.\(.*\)'`
427 case $1 in
428 --version | -V )
429 printf "%s\n" "$version"; exit ;;
430 --help | -h )
431 printf "%s\n" "$help"; exit ;;
432
433 --verbose | -v )
434 verbose=:
435 autom4te_options="$autom4te_options $1"; shift ;;
436
437 # Arguments passed as is to autom4te.
438 --debug | -d | \
439 --force | -f | \
440 --include=* | -I?* | \
441 --prepend-include=* | -B?* | \
442 --warnings=* | -W?* )
443 case $1 in
444 *\'*) arg=`printf "%s\n" "$1" | sed "s/'/'\\\\\\\\''/g"` ;; #'
445 *) arg=$1 ;;
446 esac
447 autom4te_options="$autom4te_options '$arg'"; shift ;;
448 # Options with separated arg passed as is to autom4te.
449 --include | -I | \
450 --prepend-include | -B | \
451 --warnings | -W )
452 test $# = 1 && eval "$exit_missing_arg"
453 case $2 in
454 *\'*) arg=`printf "%s\n" "$2" | sed "s/'/'\\\\\\\\''/g"` ;; #'
455 *) arg=$2 ;;
456 esac
457 autom4te_options="$autom4te_options $option '$arg'"
458 shift; shift ;;
459
460 --trace=* | -t?* )
461 traces="$traces --trace='"`printf "%s\n" "$optarg" | sed "s/'/'\\\\\\\\''/g"`"'"
462 shift ;;
463 --trace | -t )
464 test $# = 1 && eval "$exit_missing_arg"
465 traces="$traces --trace='"`printf "%s\n" "$2" | sed "s/'/'\\\\\\\\''/g"`"'"
466 shift; shift ;;
467 --initialization | -i )
468 autom4te_options="$autom4te_options --melt"
469 shift;;
470
471 --output=* | -o?* )
472 outfile=$optarg
473 shift ;;
474 --output | -o )
475 test $# = 1 && eval "$exit_missing_arg"
476 outfile=$2
477 shift; shift ;;
478
479 -- ) # Stop option processing
480 shift; break ;;
481 - ) # Use stdin as input.
482 break ;;
483 -* )
484 exec >&2
485 as_fn_error $? "invalid option '$1'$as_nl$usage_err" ;;
486 * )
487 break ;;
488 esac
489done
490
491# Find the input file.
492case $# in
493 0)
494 if test -f configure.ac; then
495 if test -f configure.in; then
496 printf "%s\n" "$as_me: warning: both 'configure.ac' and 'configure.in' are present." >&2
497 printf "%s\n" "$as_me: warning: proceeding with 'configure.ac'." >&2
498 fi
499 infile=configure.ac
500 elif test -f configure.in; then
501 infile=configure.in
502 else
503 as_fn_error $? "no input file"
504 fi
505 test -z "$traces" && test -z "$outfile" && outfile=configure;;
506 1)
507 infile=$1 ;;
508 *) exec >&2
509 as_fn_error $? "invalid number of arguments$as_nl$usage_err" ;;
510esac
511
512# Unless specified, the output is stdout.
513test -z "$outfile" && outfile=-
514
515# Don't read trailer.m4 if we are tracing.
516if test -n "$traces"; then
517 trailer_m4=""
518else
519 # The extra quotes will be stripped by eval.
520 trailer_m4=\""$trailer_m4"\"
521fi
522
523# Run autom4te with expansion.
524# trailer.m4 is read _before_ $infile, despite the name,
525# because putting it afterward screws up autom4te's location tracing.
526eval set x "$autom4te_options" \
527 --language=autoconf --output=\"\$outfile\" "$traces" \
528 $trailer_m4 \"\$infile\"
529shift
530$verbose && printf "%s\n" "$as_me: running $AUTOM4TE $*" >&2
531exec "$AUTOM4TE" "$@"