Debian Codegraph @

mingw-w64-crt/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for mingw-w64-runtime 4.0b.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and
274 $0: [email protected] about your
275 $0: system, including any error possibly output before this
276 $0: message. Then install a modern shell, or manually run
277 $0: the script under such a shell if you do have one."
278 fi
279 exit 1
280 fi ;;
281 esac
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else case e in #(
389 e) as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 } ;;
393 esac
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else case e in #(
408 e) as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 } ;;
412 esac
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 t clear
489 :clear
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C= ECHO_N= ECHO_T=
520 case `echo -n x` in #(((((
521 -n*)
522 case `echo 'xy\c'` in
523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 xy) ECHO_C='\c';;
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 ECHO_T=' ';;
527 esac;;
528 *)
529 ECHO_N='-n';;
530 esac
531
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo='printf %s\n'
536 as_echo_n='printf %s'
537
538 rm -f conf$$ conf$$.exe conf$$.file
539 if test -d conf$$.dir; then
540 rm -f conf$$.dir/conf$$.file
541 else
542 rm -f conf$$.dir
543 mkdir conf$$.dir 2>/dev/null
544 fi
545 if (echo >conf$$.file) 2>/dev/null; then
546 if ln -s conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s='ln -s'
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 as_ln_s='cp -pR'
554 elif ln conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s=ln
556 else
557 as_ln_s='cp -pR'
558 fi
559 else
560 as_ln_s='cp -pR'
561 fi
562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 rmdir conf$$.dir 2>/dev/null
564
565 if mkdir -p . 2>/dev/null; then
566 as_mkdir_p='mkdir -p "$as_dir"'
567 else
568 test -d ./-p && rmdir ./-p
569 as_mkdir_p=false
570 fi
571
572 as_test_x='test -x'
573 as_executable_p=as_fn_executable_p
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582
583
584 test -n "$DJDIR" || exec 7<&0 </dev/null
585 exec 6>&1
586
587 # Name of the host.
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591
592 #
593 # Initializations.
594 #
595 ac_default_prefix=/usr/local
596 ac_clean_files=
597 ac_config_libobj_dir=.
598 LIBOBJS=
599 cross_compiling=no
600 subdirs=
601 MFLAGS=
602 MAKEFLAGS=
603
604 # Identity of this package.
605 PACKAGE_NAME='mingw-w64-runtime'
606 PACKAGE_TARNAME='mingw-w64-runtime'
607 PACKAGE_VERSION='4.0b'
608 PACKAGE_STRING='mingw-w64-runtime 4.0b'
609 PACKAGE_BUGREPORT='[email protected]'
610 PACKAGE_URL=''
611
612 ac_unique_file="ChangeLog"
613 ac_no_link=no
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 ac_subst_vars='am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 LIBOBJS
650 ADD_CXX_ONLY_WARNING_FLAGS
651 ADD_C_CXX_WARNING_FLAGS
652 ADD_C_ONLY_WARNING_FLAGS
653 IMAGEBASE_CFLAGS
654 ENABLE_TESTS_UNICODE_FALSE
655 ENABLE_TESTS_UNICODE_TRUE
656 ENABLE_REGISTEREDPRINTF_FALSE
657 ENABLE_REGISTEREDPRINTF_TRUE
658 ENABLE_PRINTF128_FALSE
659 ENABLE_PRINTF128_TRUE
660 ENABLE_DFP_FALSE
661 ENABLE_DFP_TRUE
662 CFGUARD_CFLAGS
663 MSVCRT_LIB
664 DELAY_IMPORT_LIBS_FALSE
665 DELAY_IMPORT_LIBS_TRUE
666 PRIVATE_EXPORTS_FALSE
667 PRIVATE_EXPORTS_TRUE
668 ARM64EC_FALSE
669 ARM64EC_TRUE
670 LIBARM32SUFFIXDIR
671 LIBARM64SUFFIXDIR
672 LIBX8632SUFFIXDIR
673 LIBX8664SUFFIXDIR
674 LIBARM64_FALSE
675 LIBARM64_TRUE
676 LIBARM32_FALSE
677 LIBARM32_TRUE
678 LIB64_FALSE
679 LIB64_TRUE
680 LIB32_FALSE
681 LIB32_TRUE
682 W32API_FALSE
683 W32API_TRUE
684 DLLTOOL_HAS_TEMP_PREFIX_FALSE
685 DLLTOOL_HAS_TEMP_PREFIX_TRUE
686 AS
687 am__fastdepCCAS_FALSE
688 am__fastdepCCAS_TRUE
689 CCASDEPMODE
690 CCASFLAGS
691 CCAS
692 ac_ct_AR
693 AR
694 DLLTOOL
695 RANLIB
696 CPP
697 am__fastdepCXX_FALSE
698 am__fastdepCXX_TRUE
699 CXXDEPMODE
700 ac_ct_CXX
701 CXXFLAGS
702 CXX
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 SED
720 WITHSYSROOT_FALSE
721 WITHSYSROOT_TRUE
722 TARGET_SYSTEM_ROOT
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 MAINT
732 MAINTAINER_MODE_FALSE
733 MAINTAINER_MODE_TRUE
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 CSCOPE
739 ETAGS
740 CTAGS
741 am__untar
742 am__tar
743 AMTAR
744 am__leading_dot
745 SET_MAKE
746 AWK
747 mkdir_p
748 MKDIR_P
749 INSTALL_STRIP_PROGRAM
750 STRIP
751 install_sh
752 MAKEINFO
753 AUTOHEADER
754 AUTOMAKE
755 AUTOCONF
756 ACLOCAL
757 VERSION
758 PACKAGE
759 CYGPATH_W
760 am__isrc
761 INSTALL_DATA
762 INSTALL_SCRIPT
763 INSTALL_PROGRAM
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 runstatedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL
803 am__quote'
804 ac_subst_files=''
805 ac_user_opts='
806 enable_option_checking
807 enable_silent_rules
808 enable_maintainer_mode
809 with_sysroot
810 enable_dependency_tracking
811 enable_w32api
812 enable_lib32
813 enable_lib64
814 enable_libarm32
815 enable_libarm64
816 enable_wildcard
817 enable_private_exports
818 enable_delay_import_libs
819 with_default_msvcrt
820 enable_cfguard
821 enable_experimental
822 enable_tests_unicode
823 enable_warnings
824 '
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 CXX
834 CXXFLAGS
835 CCC
836 CPP
837 CCAS
838 CCASFLAGS'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 runstatedir='${localstatedir}/run'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
899 fi
900
901 case $ac_option in
902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *=) ac_optarg= ;;
904 *) ac_optarg=yes ;;
905 esac
906
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
935
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: '$ac_useropt'"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: '$ac_useropt'"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -runstatedir | --runstatedir | --runstatedi | --runstated \
1129 | --runstate | --runstat | --runsta | --runst | --runs \
1130 | --run | --ru | --r)
1131 ac_prev=runstatedir ;;
1132 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134 | --run=* | --ru=* | --r=*)
1135 runstatedir=$ac_optarg ;;
1136
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 ac_prev=sbindir ;;
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 | --sbi=* | --sb=*)
1141 sbindir=$ac_optarg ;;
1142
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1146 | --sha | --sh)
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 | --sha=* | --sh=*)
1152 sharedstatedir=$ac_optarg ;;
1153
1154 -site | --site | --sit)
1155 ac_prev=site ;;
1156 -site=* | --site=* | --sit=*)
1157 site=$ac_optarg ;;
1158
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 ac_prev=srcdir ;;
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1163
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1170
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1175
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 verbose=yes ;;
1178
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1181
1182 -with-* | --with-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: '$ac_useropt'"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=\$ac_optarg ;;
1197
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: '$ac_useropt'"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
1213
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1217
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1224
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1231
1232 -*) as_fn_error $? "unrecognized option: '$ac_option'
1233 Try '$0 --help' for more information"
1234 ;;
1235
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1242 esac
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1245
1246 *)
1247 # FIXME: should be removed in autoconf 3.0.
1248 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 ;;
1253
1254 esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error $? "missing argument to $ac_option"
1260 fi
1261
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1264 no) ;;
1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 esac
1268 fi
1269
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir runstatedir
1275 do
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1278 case $ac_val in
1279 */ )
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1282 esac
1283 # Be sure to have absolute directory names.
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289 done
1290
1291 # There might be people who depend on the old broken behavior: '$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error $? "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 printf "%s\n" X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1351 fi
1352 else
1353 ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 'configure' configures mingw-w64-runtime 4.0b to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print 'checking ...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for '--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or '..']
1406
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1412
1413 By default, 'make install' will install all the files in
1414 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than '$ac_default_prefix' using '--prefix',
1416 for instance '--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root
1437 [DATAROOTDIR/doc/mingw-w64-runtime]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442 _ACEOF
1443
1444 cat <<\_ACEOF
1445
1446 Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450
1451 System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 _ACEOF
1455 fi
1456
1457 if test -n "$ac_init_help"; then
1458 case $ac_init_help in
1459 short | recursive ) echo "Configuration of mingw-w64-runtime 4.0b:";;
1460 esac
1461 cat <<\_ACEOF
1462
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-silent-rules less verbose build output (undo: "make V=1")
1468 --disable-silent-rules verbose build output (undo: "make V=0")
1469 --enable-maintainer-mode
1470 enable make rules and dependencies not useful (and
1471 sometimes confusing) to the casual installer
1472 --enable-dependency-tracking
1473 do not reject slow dependency extractors
1474 --disable-dependency-tracking
1475 speeds up one-time build
1476 --enable-w32api Enable building a w32api package for Cygwin
1477 --enable-lib32 Build the Win32 libraries
1478 --enable-lib64 Build the Win64 libraries
1479 --enable-libarm32 Build the WinARM32 libraries
1480 --enable-libarm64 Build the WinARM64 libraries
1481 --enable-wildcard Enable command line globbing
1482 --enable-private-exports
1483 Enable exporting private internal functions
1484 --enable-delay-import-libs
1485 Enable creation of delay-import libraries
1486 --enable-cfguard Enable building with Control Flow Guard support
1487 (Clang)
1488 --enable-experimental Enable experimental features, valid options are
1489 comma separated combination of all, dfp, printf128,
1490 registeredprintf.
1491 --enable-tests-unicode Enable the unicode testsuite without testing the
1492 compiler for support.
1493 --enable-warnings[=0-5] Enable compile time warnings [default=3]
1494
1495 Optional Packages:
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-sysroot=DIR Search for headers within DIR/include (default:
1499 prefix)
1500 --with-default-msvcrt=LIB
1501 Lib to provide as libmsvcrt.a (default: ucrt)
1502
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 CPP C preprocessor
1514 CCAS assembler compiler command (defaults to CC)
1515 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1516
1517 Use these variables to override the choices made by 'configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1519
1520 Report bugs to <[email protected]>.
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for configure.gnu first; this name is used for a wrapper for
1567 # Metaconfig's "Configure" on case-insensitive file systems.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1574 else
1575 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 fi || ac_status=$?
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1578 done
1579 fi
1580
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1583 cat <<\_ACEOF
1584 mingw-w64-runtime configure 4.0b
1585 generated by GNU Autoconf 2.72
1586
1587 Copyright (C) 2023 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591 exit
1592 fi
1593
1594 ## ------------------------ ##
1595 ## Autoconf initialization. ##
1596 ## ------------------------ ##
1597
1598 # ac_fn_c_try_compile LINENO
1599 # --------------------------
1600 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest.beam
1605 if { { ac_try="$ac_compile"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 printf "%s\n" "$ac_try_echo"; } >&5
1612 (eval "$ac_compile") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest.$ac_objext
1624 then :
1625 ac_retval=0
1626 else case e in #(
1627 e) printf "%s\n" "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1 ;;
1631 esac
1632 fi
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1635
1636 } # ac_fn_c_try_compile
1637
1638 # ac_fn_cxx_try_compile LINENO
1639 # ----------------------------
1640 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_cxx_try_compile ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 rm -f conftest.$ac_objext conftest.beam
1645 if { { ac_try="$ac_compile"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 printf "%s\n" "$ac_try_echo"; } >&5
1652 (eval "$ac_compile") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && {
1661 test -z "$ac_cxx_werror_flag" ||
1662 test ! -s conftest.err
1663 } && test -s conftest.$ac_objext
1664 then :
1665 ac_retval=0
1666 else case e in #(
1667 e) printf "%s\n" "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1 ;;
1671 esac
1672 fi
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_cxx_try_compile
1677
1678 # ac_fn_c_try_cpp LINENO
1679 # ----------------------
1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_cpp ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_cpp conftest.$ac_ext"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 printf "%s\n" "$ac_try_echo"; } >&5
1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } > conftest.i && {
1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 }
1703 then :
1704 ac_retval=0
1705 else case e in #(
1706 e) printf "%s\n" "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1 ;;
1710 esac
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_cpp
1716
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 printf %s "checking for $2... " >&6; }
1726 if eval test \${$3+y}
1727 then :
1728 printf %s "(cached) " >&6
1729 else case e in #(
1730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 $4
1733 #include <$2>
1734 _ACEOF
1735 if ac_fn_c_try_compile "$LINENO"
1736 then :
1737 eval "$3=yes"
1738 else case e in #(
1739 e) eval "$3=no" ;;
1740 esac
1741 fi
1742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1743 esac
1744 fi
1745 eval ac_res=\$$3
1746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 printf "%s\n" "$ac_res" >&6; }
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
1750 } # ac_fn_c_check_header_compile
1751 ac_configure_args_raw=
1752 for ac_arg
1753 do
1754 case $ac_arg in
1755 *\'*)
1756 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757 esac
1758 as_fn_append ac_configure_args_raw " '$ac_arg'"
1759 done
1760
1761 case $ac_configure_args_raw in
1762 *$as_nl*)
1763 ac_safe_unquote= ;;
1764 *)
1765 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1766 ac_unsafe_a="$ac_unsafe_z#~"
1767 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1768 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1769 esac
1770
1771 cat >config.log <<_ACEOF
1772 This file contains any messages produced by compilers while
1773 running configure, to aid debugging if configure makes a mistake.
1774
1775 It was created by mingw-w64-runtime $as_me 4.0b, which was
1776 generated by GNU Autoconf 2.72. Invocation command line was
1777
1778 $ $0$ac_configure_args_raw
1779
1780 _ACEOF
1781 exec 5>>config.log
1782 {
1783 cat <<_ASUNAME
1784 ## --------- ##
1785 ## Platform. ##
1786 ## --------- ##
1787
1788 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1789 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1790 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1791 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1792 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1793
1794 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1795 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1796
1797 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1798 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1799 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1800 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1801 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1802 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1803 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1804
1805 _ASUNAME
1806
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1809 do
1810 IFS=$as_save_IFS
1811 case $as_dir in #(((
1812 '') as_dir=./ ;;
1813 */) ;;
1814 *) as_dir=$as_dir/ ;;
1815 esac
1816 printf "%s\n" "PATH: $as_dir"
1817 done
1818 IFS=$as_save_IFS
1819
1820 } >&5
1821
1822 cat >&5 <<_ACEOF
1823
1824
1825 ## ----------- ##
1826 ## Core tests. ##
1827 ## ----------- ##
1828
1829 _ACEOF
1830
1831
1832 # Keep a trace of the command line.
1833 # Strip out --no-create and --no-recursion so they do not pile up.
1834 # Strip out --silent because we don't want to record it for future runs.
1835 # Also quote any args containing shell meta-characters.
1836 # Make two passes to allow for proper duplicate-argument suppression.
1837 ac_configure_args=
1838 ac_configure_args0=
1839 ac_configure_args1=
1840 ac_must_keep_next=false
1841 for ac_pass in 1 2
1842 do
1843 for ac_arg
1844 do
1845 case $ac_arg in
1846 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1847 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1848 | -silent | --silent | --silen | --sile | --sil)
1849 continue ;;
1850 *\'*)
1851 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1852 esac
1853 case $ac_pass in
1854 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1855 2)
1856 as_fn_append ac_configure_args1 " '$ac_arg'"
1857 if test $ac_must_keep_next = true; then
1858 ac_must_keep_next=false # Got value, back to normal.
1859 else
1860 case $ac_arg in
1861 *=* | --config-cache | -C | -disable-* | --disable-* \
1862 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1863 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1864 | -with-* | --with-* | -without-* | --without-* | --x)
1865 case "$ac_configure_args0 " in
1866 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1867 esac
1868 ;;
1869 -* ) ac_must_keep_next=true ;;
1870 esac
1871 fi
1872 as_fn_append ac_configure_args " '$ac_arg'"
1873 ;;
1874 esac
1875 done
1876 done
1877 { ac_configure_args0=; unset ac_configure_args0;}
1878 { ac_configure_args1=; unset ac_configure_args1;}
1879
1880 # When interrupted or exit'd, cleanup temporary files, and complete
1881 # config.log. We remove comments because anyway the quotes in there
1882 # would cause problems or look ugly.
1883 # WARNING: Use '\'' to represent an apostrophe within the trap.
1884 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1885 trap 'exit_status=$?
1886 # Sanitize IFS.
1887 IFS=" "" $as_nl"
1888 # Save into config.log some information that might help in debugging.
1889 {
1890 echo
1891
1892 printf "%s\n" "## ---------------- ##
1893 ## Cache variables. ##
1894 ## ---------------- ##"
1895 echo
1896 # The following way of writing the cache mishandles newlines in values,
1897 (
1898 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1899 eval ac_val=\$$ac_var
1900 case $ac_val in #(
1901 *${as_nl}*)
1902 case $ac_var in #(
1903 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1904 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1905 esac
1906 case $ac_var in #(
1907 _ | IFS | as_nl) ;; #(
1908 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1909 *) { eval $ac_var=; unset $ac_var;} ;;
1910 esac ;;
1911 esac
1912 done
1913 (set) 2>&1 |
1914 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1915 *${as_nl}ac_space=\ *)
1916 sed -n \
1917 "s/'\''/'\''\\\\'\'''\''/g;
1918 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1919 ;; #(
1920 *)
1921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1922 ;;
1923 esac |
1924 sort
1925 )
1926 echo
1927
1928 printf "%s\n" "## ----------------- ##
1929 ## Output variables. ##
1930 ## ----------------- ##"
1931 echo
1932 for ac_var in $ac_subst_vars
1933 do
1934 eval ac_val=\$$ac_var
1935 case $ac_val in
1936 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1937 esac
1938 printf "%s\n" "$ac_var='\''$ac_val'\''"
1939 done | sort
1940 echo
1941
1942 if test -n "$ac_subst_files"; then
1943 printf "%s\n" "## ------------------- ##
1944 ## File substitutions. ##
1945 ## ------------------- ##"
1946 echo
1947 for ac_var in $ac_subst_files
1948 do
1949 eval ac_val=\$$ac_var
1950 case $ac_val in
1951 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952 esac
1953 printf "%s\n" "$ac_var='\''$ac_val'\''"
1954 done | sort
1955 echo
1956 fi
1957
1958 if test -s confdefs.h; then
1959 printf "%s\n" "## ----------- ##
1960 ## confdefs.h. ##
1961 ## ----------- ##"
1962 echo
1963 cat confdefs.h
1964 echo
1965 fi
1966 test "$ac_signal" != 0 &&
1967 printf "%s\n" "$as_me: caught signal $ac_signal"
1968 printf "%s\n" "$as_me: exit $exit_status"
1969 } >&5
1970 rm -f core *.core core.conftest.* &&
1971 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1972 exit $exit_status
1973 ' 0
1974 for ac_signal in 1 2 13 15; do
1975 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1976 done
1977 ac_signal=0
1978
1979 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1980 rm -f -r conftest* confdefs.h
1981
1982 printf "%s\n" "/* confdefs.h */" > confdefs.h
1983
1984 # Predefined preprocessor variables.
1985
1986 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1987
1988 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1989
1990 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1991
1992 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1993
1994 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1995
1996 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1997
1998
1999 # Let the site file select an alternate cache file if it wants to.
2000 # Prefer an explicitly selected file to automatically selected ones.
2001 if test -n "$CONFIG_SITE"; then
2002 ac_site_files="$CONFIG_SITE"
2003 elif test "x$prefix" != xNONE; then
2004 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2005 else
2006 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2007 fi
2008
2009 for ac_site_file in $ac_site_files
2010 do
2011 case $ac_site_file in #(
2012 */*) :
2013 ;; #(
2014 *) :
2015 ac_site_file=./$ac_site_file ;;
2016 esac
2017 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2019 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2020 sed 's/^/| /' "$ac_site_file" >&5
2021 . "$ac_site_file" \
2022 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2023 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2024 as_fn_error $? "failed to load site script $ac_site_file
2025 See 'config.log' for more details" "$LINENO" 5; }
2026 fi
2027 done
2028
2029 if test -r "$cache_file"; then
2030 # Some versions of bash will fail to source /dev/null (special files
2031 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2032 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2034 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2035 case $cache_file in
2036 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2037 *) . "./$cache_file";;
2038 esac
2039 fi
2040 else
2041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2042 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2043 >$cache_file
2044 fi
2045
2046 # Test code for whether the C compiler supports C89 (global declarations)
2047 ac_c_conftest_c89_globals='
2048 /* Does the compiler advertise C89 conformance?
2049 Do not test the value of __STDC__, because some compilers set it to 0
2050 while being otherwise adequately conformant. */
2051 #if !defined __STDC__
2052 # error "Compiler does not advertise C89 conformance"
2053 #endif
2054
2055 #include <stddef.h>
2056 #include <stdarg.h>
2057 struct stat;
2058 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2059 struct buf { int x; };
2060 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2061 static char *e (char **p, int i)
2062 {
2063 return p[i];
2064 }
2065 static char *f (char * (*g) (char **, int), char **p, ...)
2066 {
2067 char *s;
2068 va_list v;
2069 va_start (v,p);
2070 s = g (p, va_arg (v,int));
2071 va_end (v);
2072 return s;
2073 }
2074
2075 /* C89 style stringification. */
2076 #define noexpand_stringify(a) #a
2077 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2078
2079 /* C89 style token pasting. Exercises some of the corner cases that
2080 e.g. old MSVC gets wrong, but not very hard. */
2081 #define noexpand_concat(a,b) a##b
2082 #define expand_concat(a,b) noexpand_concat(a,b)
2083 extern int vA;
2084 extern int vbee;
2085 #define aye A
2086 #define bee B
2087 int *pvA = &expand_concat(v,aye);
2088 int *pvbee = &noexpand_concat(v,bee);
2089
2090 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2091 function prototypes and stuff, but not \xHH hex character constants.
2092 These do not provoke an error unfortunately, instead are silently treated
2093 as an "x". The following induces an error, until -std is added to get
2094 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2095 array size at least. It is necessary to write \x00 == 0 to get something
2096 that is true only with -std. */
2097 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2098
2099 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2100 inside strings and character constants. */
2101 #define FOO(x) '\''x'\''
2102 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2103
2104 int test (int i, double x);
2105 struct s1 {int (*f) (int a);};
2106 struct s2 {int (*f) (double a);};
2107 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2108 int, int);'
2109
2110 # Test code for whether the C compiler supports C89 (body of main).
2111 ac_c_conftest_c89_main='
2112 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2113 '
2114
2115 # Test code for whether the C compiler supports C99 (global declarations)
2116 ac_c_conftest_c99_globals='
2117 /* Does the compiler advertise C99 conformance? */
2118 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2119 # error "Compiler does not advertise C99 conformance"
2120 #endif
2121
2122 // See if C++-style comments work.
2123
2124 #include <stdbool.h>
2125 extern int puts (const char *);
2126 extern int printf (const char *, ...);
2127 extern int dprintf (int, const char *, ...);
2128 extern void *malloc (size_t);
2129 extern void free (void *);
2130
2131 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2132 // dprintf is used instead of fprintf to avoid needing to declare
2133 // FILE and stderr.
2134 #define debug(...) dprintf (2, __VA_ARGS__)
2135 #define showlist(...) puts (#__VA_ARGS__)
2136 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2137 static void
2138 test_varargs_macros (void)
2139 {
2140 int x = 1234;
2141 int y = 5678;
2142 debug ("Flag");
2143 debug ("X = %d\n", x);
2144 showlist (The first, second, and third items.);
2145 report (x>y, "x is %d but y is %d", x, y);
2146 }
2147
2148 // Check long long types.
2149 #define BIG64 18446744073709551615ull
2150 #define BIG32 4294967295ul
2151 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2152 #if !BIG_OK
2153 #error "your preprocessor is broken"
2154 #endif
2155 #if BIG_OK
2156 #else
2157 #error "your preprocessor is broken"
2158 #endif
2159 static long long int bignum = -9223372036854775807LL;
2160 static unsigned long long int ubignum = BIG64;
2161
2162 struct incomplete_array
2163 {
2164 int datasize;
2165 double data[];
2166 };
2167
2168 struct named_init {
2169 int number;
2170 const wchar_t *name;
2171 double average;
2172 };
2173
2174 typedef const char *ccp;
2175
2176 static inline int
2177 test_restrict (ccp restrict text)
2178 {
2179 // Iterate through items via the restricted pointer.
2180 // Also check for declarations in for loops.
2181 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2182 continue;
2183 return 0;
2184 }
2185
2186 // Check varargs and va_copy.
2187 static bool
2188 test_varargs (const char *format, ...)
2189 {
2190 va_list args;
2191 va_start (args, format);
2192 va_list args_copy;
2193 va_copy (args_copy, args);
2194
2195 const char *str = "";
2196 int number = 0;
2197 float fnumber = 0;
2198
2199 while (*format)
2200 {
2201 switch (*format++)
2202 {
2203 case '\''s'\'': // string
2204 str = va_arg (args_copy, const char *);
2205 break;
2206 case '\''d'\'': // int
2207 number = va_arg (args_copy, int);
2208 break;
2209 case '\''f'\'': // float
2210 fnumber = va_arg (args_copy, double);
2211 break;
2212 default:
2213 break;
2214 }
2215 }
2216 va_end (args_copy);
2217 va_end (args);
2218
2219 return *str && number && fnumber;
2220 }
2221 '
2222
2223 # Test code for whether the C compiler supports C99 (body of main).
2224 ac_c_conftest_c99_main='
2225 // Check bool.
2226 _Bool success = false;
2227 success |= (argc != 0);
2228
2229 // Check restrict.
2230 if (test_restrict ("String literal") == 0)
2231 success = true;
2232 char *restrict newvar = "Another string";
2233
2234 // Check varargs.
2235 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2236 test_varargs_macros ();
2237
2238 // Check flexible array members.
2239 struct incomplete_array *ia =
2240 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2241 ia->datasize = 10;
2242 for (int i = 0; i < ia->datasize; ++i)
2243 ia->data[i] = i * 1.234;
2244 // Work around memory leak warnings.
2245 free (ia);
2246
2247 // Check named initializers.
2248 struct named_init ni = {
2249 .number = 34,
2250 .name = L"Test wide string",
2251 .average = 543.34343,
2252 };
2253
2254 ni.number = 58;
2255
2256 int dynamic_array[ni.number];
2257 dynamic_array[0] = argv[0][0];
2258 dynamic_array[ni.number - 1] = 543;
2259
2260 // work around unused variable warnings
2261 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2262 || dynamic_array[ni.number - 1] != 543);
2263 '
2264
2265 # Test code for whether the C compiler supports C11 (global declarations)
2266 ac_c_conftest_c11_globals='
2267 /* Does the compiler advertise C11 conformance? */
2268 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2269 # error "Compiler does not advertise C11 conformance"
2270 #endif
2271
2272 // Check _Alignas.
2273 char _Alignas (double) aligned_as_double;
2274 char _Alignas (0) no_special_alignment;
2275 extern char aligned_as_int;
2276 char _Alignas (0) _Alignas (int) aligned_as_int;
2277
2278 // Check _Alignof.
2279 enum
2280 {
2281 int_alignment = _Alignof (int),
2282 int_array_alignment = _Alignof (int[100]),
2283 char_alignment = _Alignof (char)
2284 };
2285 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2286
2287 // Check _Noreturn.
2288 int _Noreturn does_not_return (void) { for (;;) continue; }
2289
2290 // Check _Static_assert.
2291 struct test_static_assert
2292 {
2293 int x;
2294 _Static_assert (sizeof (int) <= sizeof (long int),
2295 "_Static_assert does not work in struct");
2296 long int y;
2297 };
2298
2299 // Check UTF-8 literals.
2300 #define u8 syntax error!
2301 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2302
2303 // Check duplicate typedefs.
2304 typedef long *long_ptr;
2305 typedef long int *long_ptr;
2306 typedef long_ptr long_ptr;
2307
2308 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2309 struct anonymous
2310 {
2311 union {
2312 struct { int i; int j; };
2313 struct { int k; long int l; } w;
2314 };
2315 int m;
2316 } v1;
2317 '
2318
2319 # Test code for whether the C compiler supports C11 (body of main).
2320 ac_c_conftest_c11_main='
2321 _Static_assert ((offsetof (struct anonymous, i)
2322 == offsetof (struct anonymous, w.k)),
2323 "Anonymous union alignment botch");
2324 v1.i = 2;
2325 v1.w.k = 5;
2326 ok |= v1.i != 5;
2327 '
2328
2329 # Test code for whether the C compiler supports C11 (complete).
2330 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2331 ${ac_c_conftest_c99_globals}
2332 ${ac_c_conftest_c11_globals}
2333
2334 int
2335 main (int argc, char **argv)
2336 {
2337 int ok = 0;
2338 ${ac_c_conftest_c89_main}
2339 ${ac_c_conftest_c99_main}
2340 ${ac_c_conftest_c11_main}
2341 return ok;
2342 }
2343 "
2344
2345 # Test code for whether the C compiler supports C99 (complete).
2346 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2347 ${ac_c_conftest_c99_globals}
2348
2349 int
2350 main (int argc, char **argv)
2351 {
2352 int ok = 0;
2353 ${ac_c_conftest_c89_main}
2354 ${ac_c_conftest_c99_main}
2355 return ok;
2356 }
2357 "
2358
2359 # Test code for whether the C compiler supports C89 (complete).
2360 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2361
2362 int
2363 main (int argc, char **argv)
2364 {
2365 int ok = 0;
2366 ${ac_c_conftest_c89_main}
2367 return ok;
2368 }
2369 "
2370
2371 # Test code for whether the C++ compiler supports C++98 (global declarations)
2372 ac_cxx_conftest_cxx98_globals='
2373 // Does the compiler advertise C++98 conformance?
2374 #if !defined __cplusplus || __cplusplus < 199711L
2375 # error "Compiler does not advertise C++98 conformance"
2376 #endif
2377
2378 // These inclusions are to reject old compilers that
2379 // lack the unsuffixed header files.
2380 #include <cstdlib>
2381 #include <exception>
2382
2383 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2384 extern void assert (int);
2385 namespace std {
2386 extern int strcmp (const char *, const char *);
2387 }
2388
2389 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2390 using std::exception;
2391 using std::strcmp;
2392
2393 namespace {
2394
2395 void test_exception_syntax()
2396 {
2397 try {
2398 throw "test";
2399 } catch (const char *s) {
2400 // Extra parentheses suppress a warning when building autoconf itself,
2401 // due to lint rules shared with more typical C programs.
2402 assert (!(strcmp) (s, "test"));
2403 }
2404 }
2405
2406 template <typename T> struct test_template
2407 {
2408 T const val;
2409 explicit test_template(T t) : val(t) {}
2410 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2411 };
2412
2413 } // anonymous namespace
2414 '
2415
2416 # Test code for whether the C++ compiler supports C++98 (body of main)
2417 ac_cxx_conftest_cxx98_main='
2418 assert (argc);
2419 assert (! argv[0]);
2420 {
2421 test_exception_syntax ();
2422 test_template<double> tt (2.0);
2423 assert (tt.add (4) == 6.0);
2424 assert (true && !false);
2425 }
2426 '
2427
2428 # Test code for whether the C++ compiler supports C++11 (global declarations)
2429 ac_cxx_conftest_cxx11_globals='
2430 // Does the compiler advertise C++ 2011 conformance?
2431 #if !defined __cplusplus || __cplusplus < 201103L
2432 # error "Compiler does not advertise C++11 conformance"
2433 #endif
2434
2435 namespace cxx11test
2436 {
2437 constexpr int get_val() { return 20; }
2438
2439 struct testinit
2440 {
2441 int i;
2442 double d;
2443 };
2444
2445 class delegate
2446 {
2447 public:
2448 delegate(int n) : n(n) {}
2449 delegate(): delegate(2354) {}
2450
2451 virtual int getval() { return this->n; };
2452 protected:
2453 int n;
2454 };
2455
2456 class overridden : public delegate
2457 {
2458 public:
2459 overridden(int n): delegate(n) {}
2460 virtual int getval() override final { return this->n * 2; }
2461 };
2462
2463 class nocopy
2464 {
2465 public:
2466 nocopy(int i): i(i) {}
2467 nocopy() = default;
2468 nocopy(const nocopy&) = delete;
2469 nocopy & operator=(const nocopy&) = delete;
2470 private:
2471 int i;
2472 };
2473
2474 // for testing lambda expressions
2475 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2476 {
2477 return f(v);
2478 }
2479
2480 // for testing variadic templates and trailing return types
2481 template <typename V> auto sum(V first) -> V
2482 {
2483 return first;
2484 }
2485 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2486 {
2487 return first + sum(rest...);
2488 }
2489 }
2490 '
2491
2492 # Test code for whether the C++ compiler supports C++11 (body of main)
2493 ac_cxx_conftest_cxx11_main='
2494 {
2495 // Test auto and decltype
2496 auto a1 = 6538;
2497 auto a2 = 48573953.4;
2498 auto a3 = "String literal";
2499
2500 int total = 0;
2501 for (auto i = a3; *i; ++i) { total += *i; }
2502
2503 decltype(a2) a4 = 34895.034;
2504 }
2505 {
2506 // Test constexpr
2507 short sa[cxx11test::get_val()] = { 0 };
2508 }
2509 {
2510 // Test initializer lists
2511 cxx11test::testinit il = { 4323, 435234.23544 };
2512 }
2513 {
2514 // Test range-based for
2515 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2516 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2517 for (auto &x : array) { x += 23; }
2518 }
2519 {
2520 // Test lambda expressions
2521 using cxx11test::eval;
2522 assert (eval ([](int x) { return x*2; }, 21) == 42);
2523 double d = 2.0;
2524 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2525 assert (d == 5.0);
2526 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2527 assert (d == 5.0);
2528 }
2529 {
2530 // Test use of variadic templates
2531 using cxx11test::sum;
2532 auto a = sum(1);
2533 auto b = sum(1, 2);
2534 auto c = sum(1.0, 2.0, 3.0);
2535 }
2536 {
2537 // Test constructor delegation
2538 cxx11test::delegate d1;
2539 cxx11test::delegate d2();
2540 cxx11test::delegate d3(45);
2541 }
2542 {
2543 // Test override and final
2544 cxx11test::overridden o1(55464);
2545 }
2546 {
2547 // Test nullptr
2548 char *c = nullptr;
2549 }
2550 {
2551 // Test template brackets
2552 test_template<::test_template<int>> v(test_template<int>(12));
2553 }
2554 {
2555 // Unicode literals
2556 char const *utf8 = u8"UTF-8 string \u2500";
2557 char16_t const *utf16 = u"UTF-8 string \u2500";
2558 char32_t const *utf32 = U"UTF-32 string \u2500";
2559 }
2560 '
2561
2562 # Test code for whether the C compiler supports C++11 (complete).
2563 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2564 ${ac_cxx_conftest_cxx11_globals}
2565
2566 int
2567 main (int argc, char **argv)
2568 {
2569 int ok = 0;
2570 ${ac_cxx_conftest_cxx98_main}
2571 ${ac_cxx_conftest_cxx11_main}
2572 return ok;
2573 }
2574 "
2575
2576 # Test code for whether the C compiler supports C++98 (complete).
2577 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2578 int
2579 main (int argc, char **argv)
2580 {
2581 int ok = 0;
2582 ${ac_cxx_conftest_cxx98_main}
2583 return ok;
2584 }
2585 "
2586
2587 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2588 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2589 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2590 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2591 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2592 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2593 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2594 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2595 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2596
2597 # Auxiliary files required by this configure script.
2598 ac_aux_files="ar-lib compile config.guess config.sub missing install-sh"
2599
2600 # Locations in which to look for auxiliary files.
2601 ac_aux_dir_candidates="${srcdir}/build-aux"
2602
2603 # Search for a directory containing all of the required auxiliary files,
2604 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2605 # If we don't find one directory that contains all the files we need,
2606 # we report the set of missing files from the *first* directory in
2607 # $ac_aux_dir_candidates and give up.
2608 ac_missing_aux_files=""
2609 ac_first_candidate=:
2610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 as_found=false
2613 for as_dir in $ac_aux_dir_candidates
2614 do
2615 IFS=$as_save_IFS
2616 case $as_dir in #(((
2617 '') as_dir=./ ;;
2618 */) ;;
2619 *) as_dir=$as_dir/ ;;
2620 esac
2621 as_found=:
2622
2623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2624 ac_aux_dir_found=yes
2625 ac_install_sh=
2626 for ac_aux in $ac_aux_files
2627 do
2628 # As a special case, if "install-sh" is required, that requirement
2629 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2630 # and $ac_install_sh is set appropriately for whichever one is found.
2631 if test x"$ac_aux" = x"install-sh"
2632 then
2633 if test -f "${as_dir}install-sh"; then
2634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2635 ac_install_sh="${as_dir}install-sh -c"
2636 elif test -f "${as_dir}install.sh"; then
2637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2638 ac_install_sh="${as_dir}install.sh -c"
2639 elif test -f "${as_dir}shtool"; then
2640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2641 ac_install_sh="${as_dir}shtool install -c"
2642 else
2643 ac_aux_dir_found=no
2644 if $ac_first_candidate; then
2645 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2646 else
2647 break
2648 fi
2649 fi
2650 else
2651 if test -f "${as_dir}${ac_aux}"; then
2652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2653 else
2654 ac_aux_dir_found=no
2655 if $ac_first_candidate; then
2656 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2657 else
2658 break
2659 fi
2660 fi
2661 fi
2662 done
2663 if test "$ac_aux_dir_found" = yes; then
2664 ac_aux_dir="$as_dir"
2665 break
2666 fi
2667 ac_first_candidate=false
2668
2669 as_found=false
2670 done
2671 IFS=$as_save_IFS
2672 if $as_found
2673 then :
2674
2675 else case e in #(
2676 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2677 esac
2678 fi
2679
2680
2681 # These three variables are undocumented and unsupported,
2682 # and are intended to be withdrawn in a future Autoconf release.
2683 # They can cause serious problems if a builder's source tree is in a directory
2684 # whose full name contains unusual characters.
2685 if test -f "${ac_aux_dir}config.guess"; then
2686 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2687 fi
2688 if test -f "${ac_aux_dir}config.sub"; then
2689 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2690 fi
2691 if test -f "$ac_aux_dir/configure"; then
2692 ac_configure="$SHELL ${ac_aux_dir}configure"
2693 fi
2694
2695 # Check that the precious variables saved in the cache have kept the same
2696 # value.
2697 ac_cache_corrupted=false
2698 for ac_var in $ac_precious_vars; do
2699 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2700 eval ac_new_set=\$ac_env_${ac_var}_set
2701 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2702 eval ac_new_val=\$ac_env_${ac_var}_value
2703 case $ac_old_set,$ac_new_set in
2704 set,)
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2706 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2707 ac_cache_corrupted=: ;;
2708 ,set)
2709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2710 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2711 ac_cache_corrupted=: ;;
2712 ,);;
2713 *)
2714 if test "x$ac_old_val" != "x$ac_new_val"; then
2715 # differences in whitespace do not lead to failure.
2716 ac_old_val_w=`echo x $ac_old_val`
2717 ac_new_val_w=`echo x $ac_new_val`
2718 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2720 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2721 ac_cache_corrupted=:
2722 else
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2724 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2725 eval $ac_var=\$ac_old_val
2726 fi
2727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2728 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2730 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2731 fi;;
2732 esac
2733 # Pass precious variables to config.status.
2734 if test "$ac_new_set" = set; then
2735 case $ac_new_val in
2736 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2737 *) ac_arg=$ac_var=$ac_new_val ;;
2738 esac
2739 case " $ac_configure_args " in
2740 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2741 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2742 esac
2743 fi
2744 done
2745 if $ac_cache_corrupted; then
2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2747 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2749 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2750 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2751 and start over" "$LINENO" 5
2752 fi
2753 ## -------------------- ##
2754 ## Main body of script. ##
2755 ## -------------------- ##
2756
2757 ac_ext=c
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762
2763
2764
2765
2766 ac_config_headers="$ac_config_headers config.h"
2767
2768
2769 am__api_version='1.16'
2770
2771
2772
2773 # Find a good install program. We prefer a C program (faster),
2774 # so one script is as good as another. But avoid the broken or
2775 # incompatible versions:
2776 # SysV /etc/install, /usr/sbin/install
2777 # SunOS /usr/etc/install
2778 # IRIX /sbin/install
2779 # AIX /bin/install
2780 # AmigaOS /C/install, which installs bootblocks on floppy discs
2781 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2782 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2783 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2784 # OS/2's system install, which has a completely different semantic
2785 # ./install, which can be erroneously created by make from ./install.sh.
2786 # Reject install programs that cannot install multiple files.
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2788 printf %s "checking for a BSD-compatible install... " >&6; }
2789 if test -z "$INSTALL"; then
2790 if test ${ac_cv_path_install+y}
2791 then :
2792 printf %s "(cached) " >&6
2793 else case e in #(
2794 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 case $as_dir in #(((
2799 '') as_dir=./ ;;
2800 */) ;;
2801 *) as_dir=$as_dir/ ;;
2802 esac
2803 # Account for fact that we put trailing slashes in our PATH walk.
2804 case $as_dir in #((
2805 ./ | /[cC]/* | \
2806 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2807 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2808 /usr/ucb/* ) ;;
2809 *)
2810 # OSF1 and SCO ODT 3.0 have their own names for install.
2811 # Don't use installbsd from OSF since it installs stuff as root
2812 # by default.
2813 for ac_prog in ginstall scoinst install; do
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2816 if test $ac_prog = install &&
2817 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2818 # AIX install. It has an incompatible calling convention.
2819 :
2820 elif test $ac_prog = install &&
2821 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2822 # program-specific install script used by HP pwplus--don't use.
2823 :
2824 else
2825 rm -rf conftest.one conftest.two conftest.dir
2826 echo one > conftest.one
2827 echo two > conftest.two
2828 mkdir conftest.dir
2829 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2830 test -s conftest.one && test -s conftest.two &&
2831 test -s conftest.dir/conftest.one &&
2832 test -s conftest.dir/conftest.two
2833 then
2834 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2835 break 3
2836 fi
2837 fi
2838 fi
2839 done
2840 done
2841 ;;
2842 esac
2843
2844 done
2845 IFS=$as_save_IFS
2846
2847 rm -rf conftest.one conftest.two conftest.dir
2848 ;;
2849 esac
2850 fi
2851 if test ${ac_cv_path_install+y}; then
2852 INSTALL=$ac_cv_path_install
2853 else
2854 # As a last resort, use the slow shell script. Don't cache a
2855 # value for INSTALL within a source directory, because that will
2856 # break other packages using the cache if that directory is
2857 # removed, or if the value is a relative name.
2858 INSTALL=$ac_install_sh
2859 fi
2860 fi
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2862 printf "%s\n" "$INSTALL" >&6; }
2863
2864 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2865 # It thinks the first close brace ends the variable substitution.
2866 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2867
2868 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2869
2870 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2871
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2873 printf %s "checking whether build environment is sane... " >&6; }
2874 # Reject unsafe characters in $srcdir or the absolute working directory
2875 # name. Accept space and tab only in the latter.
2876 am_lf='
2877 '
2878 case `pwd` in
2879 *[\\\"\#\$\&\'\`$am_lf]*)
2880 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2881 esac
2882 case $srcdir in
2883 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2884 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2885 esac
2886
2887 # Do 'set' in a subshell so we don't clobber the current shell's
2888 # arguments. Must try -L first in case configure is actually a
2889 # symlink; some systems play weird games with the mod time of symlinks
2890 # (eg FreeBSD returns the mod time of the symlink's containing
2891 # directory).
2892 if (
2893 am_has_slept=no
2894 for am_try in 1 2; do
2895 echo "timestamp, slept: $am_has_slept" > conftest.file
2896 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2897 if test "$*" = "X"; then
2898 # -L didn't work.
2899 set X `ls -t "$srcdir/configure" conftest.file`
2900 fi
2901 if test "$*" != "X $srcdir/configure conftest.file" \
2902 && test "$*" != "X conftest.file $srcdir/configure"; then
2903
2904 # If neither matched, then we have a broken ls. This can happen
2905 # if, for instance, CONFIG_SHELL is bash and it inherits a
2906 # broken ls alias from the environment. This has actually
2907 # happened. Such a system could not be considered "sane".
2908 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2909 alias in your environment" "$LINENO" 5
2910 fi
2911 if test "$2" = conftest.file || test $am_try -eq 2; then
2912 break
2913 fi
2914 # Just in case.
2915 sleep 1
2916 am_has_slept=yes
2917 done
2918 test "$2" = conftest.file
2919 )
2920 then
2921 # Ok.
2922 :
2923 else
2924 as_fn_error $? "newly created file is older than distributed files!
2925 Check your system clock" "$LINENO" 5
2926 fi
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2928 printf "%s\n" "yes" >&6; }
2929 # If we didn't sleep, we still need to ensure time stamps of config.status and
2930 # generated files are strictly newer.
2931 am_sleep_pid=
2932 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2933 ( sleep 1 ) &
2934 am_sleep_pid=$!
2935 fi
2936
2937 rm -f conftest.file
2938
2939 test "$program_prefix" != NONE &&
2940 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2941 # Use a double $ so make ignores it.
2942 test "$program_suffix" != NONE &&
2943 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2944 # Double any \ or $.
2945 # By default was 's,x,x', remove it if useless.
2946 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2947 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2948
2949
2950 # Expand $ac_aux_dir to an absolute path.
2951 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2952
2953
2954 if test x"${MISSING+set}" != xset; then
2955 MISSING="\${SHELL} '$am_aux_dir/missing'"
2956 fi
2957 # Use eval to expand $SHELL
2958 if eval "$MISSING --is-lightweight"; then
2959 am_missing_run="$MISSING "
2960 else
2961 am_missing_run=
2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2963 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2964 fi
2965
2966 if test x"${install_sh+set}" != xset; then
2967 case $am_aux_dir in
2968 *\ * | *\ *)
2969 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2970 *)
2971 install_sh="\${SHELL} $am_aux_dir/install-sh"
2972 esac
2973 fi
2974
2975 # Installed binaries are usually stripped using 'strip' when the user
2976 # run "make install-strip". However 'strip' might not be the right
2977 # tool to use in cross-compilation environments, therefore Automake
2978 # will honor the 'STRIP' environment variable to overrule this program.
2979 if test "$cross_compiling" != no; then
2980 if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}strip; ac_word=$2
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 printf %s "checking for $ac_word... " >&6; }
2985 if test ${ac_cv_prog_STRIP+y}
2986 then :
2987 printf %s "(cached) " >&6
2988 else case e in #(
2989 e) if test -n "$STRIP"; then
2990 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 case $as_dir in #(((
2997 '') as_dir=./ ;;
2998 */) ;;
2999 *) as_dir=$as_dir/ ;;
3000 esac
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 fi ;;
3012 esac
3013 fi
3014 STRIP=$ac_cv_prog_STRIP
3015 if test -n "$STRIP"; then
3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3017 printf "%s\n" "$STRIP" >&6; }
3018 else
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 printf "%s\n" "no" >&6; }
3021 fi
3022
3023
3024 fi
3025 if test -z "$ac_cv_prog_STRIP"; then
3026 ac_ct_STRIP=$STRIP
3027 # Extract the first word of "strip", so it can be a program name with args.
3028 set dummy strip; ac_word=$2
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 printf %s "checking for $ac_word... " >&6; }
3031 if test ${ac_cv_prog_ac_ct_STRIP+y}
3032 then :
3033 printf %s "(cached) " >&6
3034 else case e in #(
3035 e) if test -n "$ac_ct_STRIP"; then
3036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 case $as_dir in #(((
3043 '') as_dir=./ ;;
3044 */) ;;
3045 *) as_dir=$as_dir/ ;;
3046 esac
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_ac_ct_STRIP="strip"
3050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi ;;
3058 esac
3059 fi
3060 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3061 if test -n "$ac_ct_STRIP"; then
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3063 printf "%s\n" "$ac_ct_STRIP" >&6; }
3064 else
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 printf "%s\n" "no" >&6; }
3067 fi
3068
3069 if test "x$ac_ct_STRIP" = x; then
3070 STRIP=":"
3071 else
3072 case $cross_compiling:$ac_tool_warned in
3073 yes:)
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076 ac_tool_warned=yes ;;
3077 esac
3078 STRIP=$ac_ct_STRIP
3079 fi
3080 else
3081 STRIP="$ac_cv_prog_STRIP"
3082 fi
3083
3084 fi
3085 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3086
3087
3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3089 printf %s "checking for a race-free mkdir -p... " >&6; }
3090 if test -z "$MKDIR_P"; then
3091 if test ${ac_cv_path_mkdir+y}
3092 then :
3093 printf %s "(cached) " >&6
3094 else case e in #(
3095 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3097 do
3098 IFS=$as_save_IFS
3099 case $as_dir in #(((
3100 '') as_dir=./ ;;
3101 */) ;;
3102 *) as_dir=$as_dir/ ;;
3103 esac
3104 for ac_prog in mkdir gmkdir; do
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3107 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3108 'mkdir ('*'coreutils) '* | \
3109 *'BusyBox '* | \
3110 'mkdir (fileutils) '4.1*)
3111 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3112 break 3;;
3113 esac
3114 done
3115 done
3116 done
3117 IFS=$as_save_IFS
3118 ;;
3119 esac
3120 fi
3121
3122 test -d ./--version && rmdir ./--version
3123 if test ${ac_cv_path_mkdir+y}; then
3124 MKDIR_P="$ac_cv_path_mkdir -p"
3125 else
3126 # As a last resort, use plain mkdir -p,
3127 # in the hope it doesn't have the bugs of ancient mkdir.
3128 MKDIR_P='mkdir -p'
3129 fi
3130 fi
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3132 printf "%s\n" "$MKDIR_P" >&6; }
3133
3134 for ac_prog in gawk mawk nawk awk
3135 do
3136 # Extract the first word of "$ac_prog", so it can be a program name with args.
3137 set dummy $ac_prog; ac_word=$2
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 printf %s "checking for $ac_word... " >&6; }
3140 if test ${ac_cv_prog_AWK+y}
3141 then :
3142 printf %s "(cached) " >&6
3143 else case e in #(
3144 e) if test -n "$AWK"; then
3145 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 case $as_dir in #(((
3152 '') as_dir=./ ;;
3153 */) ;;
3154 *) as_dir=$as_dir/ ;;
3155 esac
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_AWK="$ac_prog"
3159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162 done
3163 done
3164 IFS=$as_save_IFS
3165
3166 fi ;;
3167 esac
3168 fi
3169 AWK=$ac_cv_prog_AWK
3170 if test -n "$AWK"; then
3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3172 printf "%s\n" "$AWK" >&6; }
3173 else
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 printf "%s\n" "no" >&6; }
3176 fi
3177
3178
3179 test -n "$AWK" && break
3180 done
3181
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3183 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3184 set x ${MAKE-make}
3185 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3186 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3187 then :
3188 printf %s "(cached) " >&6
3189 else case e in #(
3190 e) cat >conftest.make <<\_ACEOF
3191 SHELL = /bin/sh
3192 all:
3193 @echo '@@@%%%=$(MAKE)=@@@%%%'
3194 _ACEOF
3195 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3196 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3197 *@@@%%%=?*=@@@%%%*)
3198 eval ac_cv_prog_make_${ac_make}_set=yes;;
3199 *)
3200 eval ac_cv_prog_make_${ac_make}_set=no;;
3201 esac
3202 rm -f conftest.make ;;
3203 esac
3204 fi
3205 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 printf "%s\n" "yes" >&6; }
3208 SET_MAKE=
3209 else
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 printf "%s\n" "no" >&6; }
3212 SET_MAKE="MAKE=${MAKE-make}"
3213 fi
3214
3215 rm -rf .tst 2>/dev/null
3216 mkdir .tst 2>/dev/null
3217 if test -d .tst; then
3218 am__leading_dot=.
3219 else
3220 am__leading_dot=_
3221 fi
3222 rmdir .tst 2>/dev/null
3223
3224 # Check whether --enable-silent-rules was given.
3225 if test ${enable_silent_rules+y}
3226 then :
3227 enableval=$enable_silent_rules;
3228 fi
3229
3230 case $enable_silent_rules in # (((
3231 yes) AM_DEFAULT_VERBOSITY=0;;
3232 no) AM_DEFAULT_VERBOSITY=1;;
3233 *) AM_DEFAULT_VERBOSITY=1;;
3234 esac
3235 am_make=${MAKE-make}
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3237 printf %s "checking whether $am_make supports nested variables... " >&6; }
3238 if test ${am_cv_make_support_nested_variables+y}
3239 then :
3240 printf %s "(cached) " >&6
3241 else case e in #(
3242 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3243 BAR0=false
3244 BAR1=true
3245 V=1
3246 am__doit:
3247 @$(TRUE)
3248 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3249 am_cv_make_support_nested_variables=yes
3250 else
3251 am_cv_make_support_nested_variables=no
3252 fi ;;
3253 esac
3254 fi
3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3256 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3257 if test $am_cv_make_support_nested_variables = yes; then
3258 AM_V='$(V)'
3259 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3260 else
3261 AM_V=$AM_DEFAULT_VERBOSITY
3262 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3263 fi
3264 AM_BACKSLASH='\'
3265
3266 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3267 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3268 # is not polluted with repeated "-I."
3269 am__isrc=' -I$(srcdir)'
3270 # test to see if srcdir already configured
3271 if test -f $srcdir/config.status; then
3272 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3273 fi
3274 fi
3275
3276 # test whether we have cygpath
3277 if test -z "$CYGPATH_W"; then
3278 if (cygpath --version) >/dev/null 2>/dev/null; then
3279 CYGPATH_W='cygpath -w'
3280 else
3281 CYGPATH_W=echo
3282 fi
3283 fi
3284
3285
3286 # Define the identity of the package.
3287 PACKAGE='mingw-w64-runtime'
3288 VERSION='4.0b'
3289
3290
3291 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3292
3293
3294 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3295
3296 # Some tools Automake needs.
3297
3298 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3299
3300
3301 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3302
3303
3304 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3305
3306
3307 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3308
3309
3310 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3311
3312 # For better backward compatibility. To be removed once Automake 1.9.x
3313 # dies out for good. For more background, see:
3314 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3315 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3316 mkdir_p='$(MKDIR_P)'
3317
3318 # We need awk for the "check" target (and possibly the TAP driver). The
3319 # system "awk" is bad on some platforms.
3320 # Always define AMTAR for backward compatibility. Yes, it's still used
3321 # in the wild :-( We should find a proper way to deprecate it ...
3322 AMTAR='$${TAR-tar}'
3323
3324
3325 # We'll loop over all known methods to create a tar archive until one works.
3326 _am_tools='gnutar pax cpio none'
3327
3328 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3329
3330
3331
3332
3333
3334 # Variables for tags utilities; see am/tags.am
3335 if test -z "$CTAGS"; then
3336 CTAGS=ctags
3337 fi
3338
3339 if test -z "$ETAGS"; then
3340 ETAGS=etags
3341 fi
3342
3343 if test -z "$CSCOPE"; then
3344 CSCOPE=cscope
3345 fi
3346
3347
3348
3349 # POSIX will say in a future version that running "rm -f" with no argument
3350 # is OK; and we want to be able to make that assumption in our Makefile
3351 # recipes. So use an aggressive probe to check that the usage we want is
3352 # actually supported "in the wild" to an acceptable degree.
3353 # See automake bug#10828.
3354 # To make any issue more visible, cause the running configure to be aborted
3355 # by default if the 'rm' program in use doesn't match our expectations; the
3356 # user can still override this though.
3357 if rm -f && rm -fr && rm -rf; then : OK; else
3358 cat >&2 <<'END'
3359 Oops!
3360
3361 Your 'rm' program seems unable to run without file operands specified
3362 on the command line, even when the '-f' option is present. This is contrary
3363 to the behaviour of most rm programs out there, and not conforming with
3364 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3365
3366 Please tell [email protected] about your system, including the value
3367 of your $PATH and any error possibly output before this message. This
3368 can help us improve future automake versions.
3369
3370 END
3371 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3372 echo 'Configuration will proceed anyway, since you have set the' >&2
3373 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3374 echo >&2
3375 else
3376 cat >&2 <<'END'
3377 Aborting the configuration process, to ensure you take notice of the issue.
3378
3379 You can download and install GNU coreutils to get an 'rm' implementation
3380 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3381
3382 If you want to complete the configuration process using your problematic
3383 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3384 to "yes", and re-run configure.
3385
3386 END
3387 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3388 fi
3389 fi
3390
3391
3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3393 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3394 # Check whether --enable-maintainer-mode was given.
3395 if test ${enable_maintainer_mode+y}
3396 then :
3397 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3398 else case e in #(
3399 e) USE_MAINTAINER_MODE=no ;;
3400 esac
3401 fi
3402
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3404 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3405 if test $USE_MAINTAINER_MODE = yes; then
3406 MAINTAINER_MODE_TRUE=
3407 MAINTAINER_MODE_FALSE='#'
3408 else
3409 MAINTAINER_MODE_TRUE='#'
3410 MAINTAINER_MODE_FALSE=
3411 fi
3412
3413 MAINT=$MAINTAINER_MODE_TRUE
3414
3415
3416
3417
3418
3419 # Make sure we can run config.sub.
3420 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3421 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3422
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3424 printf %s "checking build system type... " >&6; }
3425 if test ${ac_cv_build+y}
3426 then :
3427 printf %s "(cached) " >&6
3428 else case e in #(
3429 e) ac_build_alias=$build_alias
3430 test "x$ac_build_alias" = x &&
3431 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3432 test "x$ac_build_alias" = x &&
3433 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3434 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3435 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3436 ;;
3437 esac
3438 fi
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3440 printf "%s\n" "$ac_cv_build" >&6; }
3441 case $ac_cv_build in
3442 *-*-*) ;;
3443 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3444 esac
3445 build=$ac_cv_build
3446 ac_save_IFS=$IFS; IFS='-'
3447 set x $ac_cv_build
3448 shift
3449 build_cpu=$1
3450 build_vendor=$2
3451 shift; shift
3452 # Remember, the first character of IFS is used to create $*,
3453 # except with old shells:
3454 build_os=$*
3455 IFS=$ac_save_IFS
3456 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3457
3458
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3460 printf %s "checking host system type... " >&6; }
3461 if test ${ac_cv_host+y}
3462 then :
3463 printf %s "(cached) " >&6
3464 else case e in #(
3465 e) if test "x$host_alias" = x; then
3466 ac_cv_host=$ac_cv_build
3467 else
3468 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3469 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3470 fi
3471 ;;
3472 esac
3473 fi
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3475 printf "%s\n" "$ac_cv_host" >&6; }
3476 case $ac_cv_host in
3477 *-*-*) ;;
3478 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3479 esac
3480 host=$ac_cv_host
3481 ac_save_IFS=$IFS; IFS='-'
3482 set x $ac_cv_host
3483 shift
3484 host_cpu=$1
3485 host_vendor=$2
3486 shift; shift
3487 # Remember, the first character of IFS is used to create $*,
3488 # except with old shells:
3489 host_os=$*
3490 IFS=$ac_save_IFS
3491 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3492
3493
3494
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
3496 printf %s "checking for sysroot... " >&6; }
3497
3498 # Check whether --with-sysroot was given.
3499 if test ${with_sysroot+y}
3500 then :
3501 withval=$with_sysroot;
3502 else case e in #(
3503 e) with_sysroot=yes ;;
3504 esac
3505 fi
3506
3507 case $with_sysroot in #(
3508 no) :
3509 ;; #(
3510 yes) :
3511 with_sysroot=$prefix ;; #(
3512 *) :
3513 ;;
3514 esac
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
3516 printf "%s\n" "$with_sysroot" >&6; }
3517 if test "x$with_sysroot" = xno
3518 then :
3519
3520 else case e in #(
3521 e) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3522 esac
3523 fi
3524
3525 if test ${TARGET_SYSTEM_ROOT+y}; then
3526 WITHSYSROOT_TRUE=
3527 WITHSYSROOT_FALSE='#'
3528 else
3529 WITHSYSROOT_TRUE='#'
3530 WITHSYSROOT_FALSE=
3531 fi
3532
3533
3534
3535 # Checks for programs.
3536 # Checks for headers, libs, etc need to utilize the sysroot... no idea how
3537
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3539 printf %s "checking for a sed that does not truncate output... " >&6; }
3540 if test ${ac_cv_path_SED+y}
3541 then :
3542 printf %s "(cached) " >&6
3543 else case e in #(
3544 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3545 for ac_i in 1 2 3 4 5 6 7; do
3546 ac_script="$ac_script$as_nl$ac_script"
3547 done
3548 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3549 { ac_script=; unset ac_script;}
3550 if test -z "$SED"; then
3551 ac_path_SED_found=false
3552 # Loop through the user's path and test for each of PROGNAME-LIST
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 case $as_dir in #(((
3558 '') as_dir=./ ;;
3559 */) ;;
3560 *) as_dir=$as_dir/ ;;
3561 esac
3562 for ac_prog in sed gsed
3563 do
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
3566 as_fn_executable_p "$ac_path_SED" || continue
3567 # Check for GNU ac_path_SED and select it if it is found.
3568 # Check for GNU $ac_path_SED
3569 case `"$ac_path_SED" --version 2>&1` in #(
3570 *GNU*)
3571 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3572 #(
3573 *)
3574 ac_count=0
3575 printf %s 0123456789 >"conftest.in"
3576 while :
3577 do
3578 cat "conftest.in" "conftest.in" >"conftest.tmp"
3579 mv "conftest.tmp" "conftest.in"
3580 cp "conftest.in" "conftest.nl"
3581 printf "%s\n" '' >> "conftest.nl"
3582 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584 as_fn_arith $ac_count + 1 && ac_count=$as_val
3585 if test $ac_count -gt ${ac_path_SED_max-0}; then
3586 # Best one so far, save it but keep looking for a better one
3587 ac_cv_path_SED="$ac_path_SED"
3588 ac_path_SED_max=$ac_count
3589 fi
3590 # 10*(2^10) chars as input seems more than enough
3591 test $ac_count -gt 10 && break
3592 done
3593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594 esac
3595
3596 $ac_path_SED_found && break 3
3597 done
3598 done
3599 done
3600 IFS=$as_save_IFS
3601 if test -z "$ac_cv_path_SED"; then
3602 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3603 fi
3604 else
3605 ac_cv_path_SED=$SED
3606 fi
3607 ;;
3608 esac
3609 fi
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3611 printf "%s\n" "$ac_cv_path_SED" >&6; }
3612 SED="$ac_cv_path_SED"
3613 rm -f conftest.sed
3614
3615 for ac_prog in gawk mawk nawk awk
3616 do
3617 # Extract the first word of "$ac_prog", so it can be a program name with args.
3618 set dummy $ac_prog; ac_word=$2
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 printf %s "checking for $ac_word... " >&6; }
3621 if test ${ac_cv_prog_AWK+y}
3622 then :
3623 printf %s "(cached) " >&6
3624 else case e in #(
3625 e) if test -n "$AWK"; then
3626 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631 IFS=$as_save_IFS
3632 case $as_dir in #(((
3633 '') as_dir=./ ;;
3634 */) ;;
3635 *) as_dir=$as_dir/ ;;
3636 esac
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_AWK="$ac_prog"
3640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3641 break 2
3642 fi
3643 done
3644 done
3645 IFS=$as_save_IFS
3646
3647 fi ;;
3648 esac
3649 fi
3650 AWK=$ac_cv_prog_AWK
3651 if test -n "$AWK"; then
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3653 printf "%s\n" "$AWK" >&6; }
3654 else
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 printf "%s\n" "no" >&6; }
3657 fi
3658
3659
3660 test -n "$AWK" && break
3661 done
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672 ac_ext=c
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677 if test -n "$ac_tool_prefix"; then
3678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 printf %s "checking for $ac_word... " >&6; }
3682 if test ${ac_cv_prog_CC+y}
3683 then :
3684 printf %s "(cached) " >&6
3685 else case e in #(
3686 e) if test -n "$CC"; then
3687 ac_cv_prog_CC="$CC" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692 IFS=$as_save_IFS
3693 case $as_dir in #(((
3694 '') as_dir=./ ;;
3695 */) ;;
3696 *) as_dir=$as_dir/ ;;
3697 esac
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3700 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704 done
3705 done
3706 IFS=$as_save_IFS
3707
3708 fi ;;
3709 esac
3710 fi
3711 CC=$ac_cv_prog_CC
3712 if test -n "$CC"; then
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3714 printf "%s\n" "$CC" >&6; }
3715 else
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 printf "%s\n" "no" >&6; }
3718 fi
3719
3720
3721 fi
3722 if test -z "$ac_cv_prog_CC"; then
3723 ac_ct_CC=$CC
3724 # Extract the first word of "gcc", so it can be a program name with args.
3725 set dummy gcc; ac_word=$2
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 printf %s "checking for $ac_word... " >&6; }
3728 if test ${ac_cv_prog_ac_ct_CC+y}
3729 then :
3730 printf %s "(cached) " >&6
3731 else case e in #(
3732 e) if test -n "$ac_ct_CC"; then
3733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738 IFS=$as_save_IFS
3739 case $as_dir in #(((
3740 '') as_dir=./ ;;
3741 */) ;;
3742 *) as_dir=$as_dir/ ;;
3743 esac
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_ac_ct_CC="gcc"
3747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750 done
3751 done
3752 IFS=$as_save_IFS
3753
3754 fi ;;
3755 esac
3756 fi
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 printf "%s\n" "$ac_ct_CC" >&6; }
3761 else
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 printf "%s\n" "no" >&6; }
3764 fi
3765
3766 if test "x$ac_ct_CC" = x; then
3767 CC=""
3768 else
3769 case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775 CC=$ac_ct_CC
3776 fi
3777 else
3778 CC="$ac_cv_prog_CC"
3779 fi
3780
3781 if test -z "$CC"; then
3782 if test -n "$ac_tool_prefix"; then
3783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}cc; ac_word=$2
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 printf %s "checking for $ac_word... " >&6; }
3787 if test ${ac_cv_prog_CC+y}
3788 then :
3789 printf %s "(cached) " >&6
3790 else case e in #(
3791 e) if test -n "$CC"; then
3792 ac_cv_prog_CC="$CC" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797 IFS=$as_save_IFS
3798 case $as_dir in #(((
3799 '') as_dir=./ ;;
3800 */) ;;
3801 *) as_dir=$as_dir/ ;;
3802 esac
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3805 ac_cv_prog_CC="${ac_tool_prefix}cc"
3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809 done
3810 done
3811 IFS=$as_save_IFS
3812
3813 fi ;;
3814 esac
3815 fi
3816 CC=$ac_cv_prog_CC
3817 if test -n "$CC"; then
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819 printf "%s\n" "$CC" >&6; }
3820 else
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 printf "%s\n" "no" >&6; }
3823 fi
3824
3825
3826 fi
3827 fi
3828 if test -z "$CC"; then
3829 # Extract the first word of "cc", so it can be a program name with args.
3830 set dummy cc; ac_word=$2
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 printf %s "checking for $ac_word... " >&6; }
3833 if test ${ac_cv_prog_CC+y}
3834 then :
3835 printf %s "(cached) " >&6
3836 else case e in #(
3837 e) if test -n "$CC"; then
3838 ac_cv_prog_CC="$CC" # Let the user override the test.
3839 else
3840 ac_prog_rejected=no
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844 IFS=$as_save_IFS
3845 case $as_dir in #(((
3846 '') as_dir=./ ;;
3847 */) ;;
3848 *) as_dir=$as_dir/ ;;
3849 esac
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3852 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3853 ac_prog_rejected=yes
3854 continue
3855 fi
3856 ac_cv_prog_CC="cc"
3857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3858 break 2
3859 fi
3860 done
3861 done
3862 IFS=$as_save_IFS
3863
3864 if test $ac_prog_rejected = yes; then
3865 # We found a bogon in the path, so make sure we never use it.
3866 set dummy $ac_cv_prog_CC
3867 shift
3868 if test $# != 0; then
3869 # We chose a different compiler from the bogus one.
3870 # However, it has the same basename, so the bogon will be chosen
3871 # first if we set CC to just the basename; use the full file name.
3872 shift
3873 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3874 fi
3875 fi
3876 fi ;;
3877 esac
3878 fi
3879 CC=$ac_cv_prog_CC
3880 if test -n "$CC"; then
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 printf "%s\n" "$CC" >&6; }
3883 else
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 printf "%s\n" "no" >&6; }
3886 fi
3887
3888
3889 fi
3890 if test -z "$CC"; then
3891 if test -n "$ac_tool_prefix"; then
3892 for ac_prog in cl.exe
3893 do
3894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 printf %s "checking for $ac_word... " >&6; }
3898 if test ${ac_cv_prog_CC+y}
3899 then :
3900 printf %s "(cached) " >&6
3901 else case e in #(
3902 e) if test -n "$CC"; then
3903 ac_cv_prog_CC="$CC" # Let the user override the test.
3904 else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908 IFS=$as_save_IFS
3909 case $as_dir in #(((
3910 '') as_dir=./ ;;
3911 */) ;;
3912 *) as_dir=$as_dir/ ;;
3913 esac
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3916 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920 done
3921 done
3922 IFS=$as_save_IFS
3923
3924 fi ;;
3925 esac
3926 fi
3927 CC=$ac_cv_prog_CC
3928 if test -n "$CC"; then
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3930 printf "%s\n" "$CC" >&6; }
3931 else
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 printf "%s\n" "no" >&6; }
3934 fi
3935
3936
3937 test -n "$CC" && break
3938 done
3939 fi
3940 if test -z "$CC"; then
3941 ac_ct_CC=$CC
3942 for ac_prog in cl.exe
3943 do
3944 # Extract the first word of "$ac_prog", so it can be a program name with args.
3945 set dummy $ac_prog; ac_word=$2
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 printf %s "checking for $ac_word... " >&6; }
3948 if test ${ac_cv_prog_ac_ct_CC+y}
3949 then :
3950 printf %s "(cached) " >&6
3951 else case e in #(
3952 e) if test -n "$ac_ct_CC"; then
3953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958 IFS=$as_save_IFS
3959 case $as_dir in #(((
3960 '') as_dir=./ ;;
3961 */) ;;
3962 *) as_dir=$as_dir/ ;;
3963 esac
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_ac_ct_CC="$ac_prog"
3967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970 done
3971 done
3972 IFS=$as_save_IFS
3973
3974 fi ;;
3975 esac
3976 fi
3977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3978 if test -n "$ac_ct_CC"; then
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3980 printf "%s\n" "$ac_ct_CC" >&6; }
3981 else
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 printf "%s\n" "no" >&6; }
3984 fi
3985
3986
3987 test -n "$ac_ct_CC" && break
3988 done
3989
3990 if test "x$ac_ct_CC" = x; then
3991 CC=""
3992 else
3993 case $cross_compiling:$ac_tool_warned in
3994 yes:)
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3996 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3997 ac_tool_warned=yes ;;
3998 esac
3999 CC=$ac_ct_CC
4000 fi
4001 fi
4002
4003 fi
4004 if test -z "$CC"; then
4005 if test -n "$ac_tool_prefix"; then
4006 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4007 set dummy ${ac_tool_prefix}clang; ac_word=$2
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 printf %s "checking for $ac_word... " >&6; }
4010 if test ${ac_cv_prog_CC+y}
4011 then :
4012 printf %s "(cached) " >&6
4013 else case e in #(
4014 e) if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020 IFS=$as_save_IFS
4021 case $as_dir in #(((
4022 '') as_dir=./ ;;
4023 */) ;;
4024 *) as_dir=$as_dir/ ;;
4025 esac
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4028 ac_cv_prog_CC="${ac_tool_prefix}clang"
4029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4030 break 2
4031 fi
4032 done
4033 done
4034 IFS=$as_save_IFS
4035
4036 fi ;;
4037 esac
4038 fi
4039 CC=$ac_cv_prog_CC
4040 if test -n "$CC"; then
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4042 printf "%s\n" "$CC" >&6; }
4043 else
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 printf "%s\n" "no" >&6; }
4046 fi
4047
4048
4049 fi
4050 if test -z "$ac_cv_prog_CC"; then
4051 ac_ct_CC=$CC
4052 # Extract the first word of "clang", so it can be a program name with args.
4053 set dummy clang; ac_word=$2
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 printf %s "checking for $ac_word... " >&6; }
4056 if test ${ac_cv_prog_ac_ct_CC+y}
4057 then :
4058 printf %s "(cached) " >&6
4059 else case e in #(
4060 e) if test -n "$ac_ct_CC"; then
4061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066 IFS=$as_save_IFS
4067 case $as_dir in #(((
4068 '') as_dir=./ ;;
4069 */) ;;
4070 *) as_dir=$as_dir/ ;;
4071 esac
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_ac_ct_CC="clang"
4075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4076 break 2
4077 fi
4078 done
4079 done
4080 IFS=$as_save_IFS
4081
4082 fi ;;
4083 esac
4084 fi
4085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4086 if test -n "$ac_ct_CC"; then
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4088 printf "%s\n" "$ac_ct_CC" >&6; }
4089 else
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 printf "%s\n" "no" >&6; }
4092 fi
4093
4094 if test "x$ac_ct_CC" = x; then
4095 CC=""
4096 else
4097 case $cross_compiling:$ac_tool_warned in
4098 yes:)
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4100 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4101 ac_tool_warned=yes ;;
4102 esac
4103 CC=$ac_ct_CC
4104 fi
4105 else
4106 CC="$ac_cv_prog_CC"
4107 fi
4108
4109 fi
4110
4111
4112 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4113 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4114 as_fn_error $? "no acceptable C compiler found in \$PATH
4115 See 'config.log' for more details" "$LINENO" 5; }
4116
4117 # Provide some information about the compiler.
4118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4119 set X $ac_compile
4120 ac_compiler=$2
4121 for ac_option in --version -v -V -qversion -version; do
4122 { { ac_try="$ac_compiler $ac_option >&5"
4123 case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 printf "%s\n" "$ac_try_echo"; } >&5
4129 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4130 ac_status=$?
4131 if test -s conftest.err; then
4132 sed '10a\
4133 ... rest of stderr output deleted ...
4134 10q' conftest.err >conftest.er1
4135 cat conftest.er1 >&5
4136 fi
4137 rm -f conftest.er1 conftest.err
4138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }
4140 done
4141
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144
4145 int
4146 main (void)
4147 {
4148
4149 ;
4150 return 0;
4151 }
4152 _ACEOF
4153 if { { ac_try="$ac_link"
4154 case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157 esac
4158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4159 printf "%s\n" "$ac_try_echo"; } >&5
4160 (eval "$ac_link") 2>&5
4161 ac_status=$?
4162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4163 test $ac_status = 0; }; then
4164 ac_no_link=no
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167
4168 int
4169 main (void)
4170 {
4171
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 ac_clean_files_save=$ac_clean_files
4177 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4178 # Try to create an executable without -o first, disregard a.out.
4179 # It will help us diagnose broken compilers, and finding out an intuition
4180 # of exeext.
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4182 printf %s "checking whether the C compiler works... " >&6; }
4183 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4184
4185 # The possible output files:
4186 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4187
4188 ac_rmfiles=
4189 for ac_file in $ac_files
4190 do
4191 case $ac_file in
4192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4193 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4194 esac
4195 done
4196 rm -f $ac_rmfiles
4197
4198 if { { ac_try="$ac_link_default"
4199 case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 printf "%s\n" "$ac_try_echo"; } >&5
4205 (eval "$ac_link_default") 2>&5
4206 ac_status=$?
4207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }
4209 then :
4210 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4211 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4212 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4213 # so that the user can short-circuit this test for compilers unknown to
4214 # Autoconf.
4215 for ac_file in $ac_files ''
4216 do
4217 test -f "$ac_file" || continue
4218 case $ac_file in
4219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4220 ;;
4221 [ab].out )
4222 # We found the default executable, but exeext='' is most
4223 # certainly right.
4224 break;;
4225 *.* )
4226 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4227 then :; else
4228 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4229 fi
4230 # We set ac_cv_exeext here because the later test for it is not
4231 # safe: cross compilers may not add the suffix if given an '-o'
4232 # argument, so we may need to know it at that point already.
4233 # Even if this section looks crufty: it has the advantage of
4234 # actually working.
4235 break;;
4236 * )
4237 break;;
4238 esac
4239 done
4240 test "$ac_cv_exeext" = no && ac_cv_exeext=
4241
4242 else case e in #(
4243 e) ac_file='' ;;
4244 esac
4245 fi
4246 if test -z "$ac_file"
4247 then :
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 printf "%s\n" "no" >&6; }
4250 printf "%s\n" "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4254 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4255 as_fn_error 77 "C compiler cannot create executables
4256 See 'config.log' for more details" "$LINENO" 5; }
4257 else case e in #(
4258 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4259 printf "%s\n" "yes" >&6; } ;;
4260 esac
4261 fi
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4263 printf %s "checking for C compiler default output file name... " >&6; }
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4265 printf "%s\n" "$ac_file" >&6; }
4266 ac_exeext=$ac_cv_exeext
4267
4268 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4269 ac_clean_files=$ac_clean_files_save
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4271 printf %s "checking for suffix of executables... " >&6; }
4272 if { { ac_try="$ac_link"
4273 case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276 esac
4277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4278 printf "%s\n" "$ac_try_echo"; } >&5
4279 (eval "$ac_link") 2>&5
4280 ac_status=$?
4281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282 test $ac_status = 0; }
4283 then :
4284 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4285 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4286 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4287 # 'rm'.
4288 for ac_file in conftest.exe conftest conftest.*; do
4289 test -f "$ac_file" || continue
4290 case $ac_file in
4291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4292 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4293 break;;
4294 * ) break;;
4295 esac
4296 done
4297 else case e in #(
4298 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4299 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4300 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4301 See 'config.log' for more details" "$LINENO" 5; } ;;
4302 esac
4303 fi
4304 rm -f conftest conftest$ac_cv_exeext
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4306 printf "%s\n" "$ac_cv_exeext" >&6; }
4307
4308 rm -f conftest.$ac_ext
4309 EXEEXT=$ac_cv_exeext
4310 ac_exeext=$EXEEXT
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313 #include <stdio.h>
4314 int
4315 main (void)
4316 {
4317 FILE *f = fopen ("conftest.out", "w");
4318 if (!f)
4319 return 1;
4320 return ferror (f) || fclose (f) != 0;
4321
4322 ;
4323 return 0;
4324 }
4325 _ACEOF
4326 ac_clean_files="$ac_clean_files conftest.out"
4327 # Check that the compiler produces executables we can run. If not, either
4328 # the compiler is broken, or we cross compile.
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4330 printf %s "checking whether we are cross compiling... " >&6; }
4331 if test "$cross_compiling" != yes; then
4332 { { ac_try="$ac_link"
4333 case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336 esac
4337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4338 printf "%s\n" "$ac_try_echo"; } >&5
4339 (eval "$ac_link") 2>&5
4340 ac_status=$?
4341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }
4343 if { ac_try='./conftest$ac_cv_exeext'
4344 { { case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347 esac
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 printf "%s\n" "$ac_try_echo"; } >&5
4350 (eval "$ac_try") 2>&5
4351 ac_status=$?
4352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353 test $ac_status = 0; }; }; then
4354 cross_compiling=no
4355 else
4356 if test "$cross_compiling" = maybe; then
4357 cross_compiling=yes
4358 else
4359 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4360 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4361 as_fn_error 77 "cannot run C compiled programs.
4362 If you meant to cross compile, use '--host'.
4363 See 'config.log' for more details" "$LINENO" 5; }
4364 fi
4365 fi
4366 fi
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4368 printf "%s\n" "$cross_compiling" >&6; }
4369
4370 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4371 conftest.o conftest.obj conftest.out
4372 ac_clean_files=$ac_clean_files_save
4373
4374 else
4375 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.o conftest.obj conftest.dSYM
4376 ac_no_link=yes
4377 # Setting cross_compile will disable run tests; it will
4378 # also disable AC_CHECK_FILE but that's generally
4379 # correct if we can't link.
4380 cross_compiling=yes
4381 EXEEXT=
4382 # Check that the compiler produces executables we can run. If not, either
4383 # the compiler is broken, or we cross compile.
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4385 printf %s "checking whether we are cross compiling... " >&6; }
4386 if test "$cross_compiling" != yes; then
4387 { { ac_try="$ac_link"
4388 case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 printf "%s\n" "$ac_try_echo"; } >&5
4394 (eval "$ac_link") 2>&5
4395 ac_status=$?
4396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; }
4398 if { ac_try='./conftest$ac_cv_exeext'
4399 { { case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 printf "%s\n" "$ac_try_echo"; } >&5
4405 (eval "$ac_try") 2>&5
4406 ac_status=$?
4407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408 test $ac_status = 0; }; }; then
4409 cross_compiling=no
4410 else
4411 if test "$cross_compiling" = maybe; then
4412 cross_compiling=yes
4413 else
4414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4415 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4416 as_fn_error 77 "cannot run C compiled programs.
4417 If you meant to cross compile, use '--host'.
4418 See 'config.log' for more details" "$LINENO" 5; }
4419 fi
4420 fi
4421 fi
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4423 printf "%s\n" "$cross_compiling" >&6; }
4424
4425 fi
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4427 printf %s "checking for suffix of object files... " >&6; }
4428 if test ${ac_cv_objext+y}
4429 then :
4430 printf %s "(cached) " >&6
4431 else case e in #(
4432 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434
4435 int
4436 main (void)
4437 {
4438
4439 ;
4440 return 0;
4441 }
4442 _ACEOF
4443 rm -f conftest.o conftest.obj
4444 if { { ac_try="$ac_compile"
4445 case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448 esac
4449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450 printf "%s\n" "$ac_try_echo"; } >&5
4451 (eval "$ac_compile") 2>&5
4452 ac_status=$?
4453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454 test $ac_status = 0; }
4455 then :
4456 for ac_file in conftest.o conftest.obj conftest.*; do
4457 test -f "$ac_file" || continue;
4458 case $ac_file in
4459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4460 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4461 break;;
4462 esac
4463 done
4464 else case e in #(
4465 e) printf "%s\n" "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4467
4468 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4469 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4470 as_fn_error $? "cannot compute suffix of object files: cannot compile
4471 See 'config.log' for more details" "$LINENO" 5; } ;;
4472 esac
4473 fi
4474 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4475 esac
4476 fi
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4478 printf "%s\n" "$ac_cv_objext" >&6; }
4479 OBJEXT=$ac_cv_objext
4480 ac_objext=$OBJEXT
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4482 printf %s "checking whether the compiler supports GNU C... " >&6; }
4483 if test ${ac_cv_c_compiler_gnu+y}
4484 then :
4485 printf %s "(cached) " >&6
4486 else case e in #(
4487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489
4490 int
4491 main (void)
4492 {
4493 #ifndef __GNUC__
4494 choke me
4495 #endif
4496
4497 ;
4498 return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_c_try_compile "$LINENO"
4502 then :
4503 ac_compiler_gnu=yes
4504 else case e in #(
4505 e) ac_compiler_gnu=no ;;
4506 esac
4507 fi
4508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4509 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4510 ;;
4511 esac
4512 fi
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4514 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4516
4517 if test $ac_compiler_gnu = yes; then
4518 GCC=yes
4519 else
4520 GCC=
4521 fi
4522 ac_test_CFLAGS=${CFLAGS+y}
4523 ac_save_CFLAGS=$CFLAGS
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4525 printf %s "checking whether $CC accepts -g... " >&6; }
4526 if test ${ac_cv_prog_cc_g+y}
4527 then :
4528 printf %s "(cached) " >&6
4529 else case e in #(
4530 e) ac_save_c_werror_flag=$ac_c_werror_flag
4531 ac_c_werror_flag=yes
4532 ac_cv_prog_cc_g=no
4533 CFLAGS="-g"
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536
4537 int
4538 main (void)
4539 {
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"
4546 then :
4547 ac_cv_prog_cc_g=yes
4548 else case e in #(
4549 e) CFLAGS=""
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552
4553 int
4554 main (void)
4555 {
4556
4557 ;
4558 return 0;
4559 }
4560 _ACEOF
4561 if ac_fn_c_try_compile "$LINENO"
4562 then :
4563
4564 else case e in #(
4565 e) ac_c_werror_flag=$ac_save_c_werror_flag
4566 CFLAGS="-g"
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569
4570 int
4571 main (void)
4572 {
4573
4574 ;
4575 return 0;
4576 }
4577 _ACEOF
4578 if ac_fn_c_try_compile "$LINENO"
4579 then :
4580 ac_cv_prog_cc_g=yes
4581 fi
4582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4583 esac
4584 fi
4585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4586 esac
4587 fi
4588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4589 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4590 esac
4591 fi
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4593 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4594 if test $ac_test_CFLAGS; then
4595 CFLAGS=$ac_save_CFLAGS
4596 elif test $ac_cv_prog_cc_g = yes; then
4597 if test "$GCC" = yes; then
4598 CFLAGS="-g -O2"
4599 else
4600 CFLAGS="-g"
4601 fi
4602 else
4603 if test "$GCC" = yes; then
4604 CFLAGS="-O2"
4605 else
4606 CFLAGS=
4607 fi
4608 fi
4609 ac_prog_cc_stdc=no
4610 if test x$ac_prog_cc_stdc = xno
4611 then :
4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4613 printf %s "checking for $CC option to enable C11 features... " >&6; }
4614 if test ${ac_cv_prog_cc_c11+y}
4615 then :
4616 printf %s "(cached) " >&6
4617 else case e in #(
4618 e) ac_cv_prog_cc_c11=no
4619 ac_save_CC=$CC
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622 $ac_c_conftest_c11_program
4623 _ACEOF
4624 for ac_arg in '' -std=gnu11
4625 do
4626 CC="$ac_save_CC $ac_arg"
4627 if ac_fn_c_try_compile "$LINENO"
4628 then :
4629 ac_cv_prog_cc_c11=$ac_arg
4630 fi
4631 rm -f core conftest.err conftest.$ac_objext conftest.beam
4632 test "x$ac_cv_prog_cc_c11" != "xno" && break
4633 done
4634 rm -f conftest.$ac_ext
4635 CC=$ac_save_CC ;;
4636 esac
4637 fi
4638
4639 if test "x$ac_cv_prog_cc_c11" = xno
4640 then :
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4642 printf "%s\n" "unsupported" >&6; }
4643 else case e in #(
4644 e) if test "x$ac_cv_prog_cc_c11" = x
4645 then :
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4647 printf "%s\n" "none needed" >&6; }
4648 else case e in #(
4649 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4650 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4651 CC="$CC $ac_cv_prog_cc_c11" ;;
4652 esac
4653 fi
4654 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4655 ac_prog_cc_stdc=c11 ;;
4656 esac
4657 fi
4658 fi
4659 if test x$ac_prog_cc_stdc = xno
4660 then :
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4662 printf %s "checking for $CC option to enable C99 features... " >&6; }
4663 if test ${ac_cv_prog_cc_c99+y}
4664 then :
4665 printf %s "(cached) " >&6
4666 else case e in #(
4667 e) ac_cv_prog_cc_c99=no
4668 ac_save_CC=$CC
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4671 $ac_c_conftest_c99_program
4672 _ACEOF
4673 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4674 do
4675 CC="$ac_save_CC $ac_arg"
4676 if ac_fn_c_try_compile "$LINENO"
4677 then :
4678 ac_cv_prog_cc_c99=$ac_arg
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext conftest.beam
4681 test "x$ac_cv_prog_cc_c99" != "xno" && break
4682 done
4683 rm -f conftest.$ac_ext
4684 CC=$ac_save_CC ;;
4685 esac
4686 fi
4687
4688 if test "x$ac_cv_prog_cc_c99" = xno
4689 then :
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4691 printf "%s\n" "unsupported" >&6; }
4692 else case e in #(
4693 e) if test "x$ac_cv_prog_cc_c99" = x
4694 then :
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4696 printf "%s\n" "none needed" >&6; }
4697 else case e in #(
4698 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4699 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4700 CC="$CC $ac_cv_prog_cc_c99" ;;
4701 esac
4702 fi
4703 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4704 ac_prog_cc_stdc=c99 ;;
4705 esac
4706 fi
4707 fi
4708 if test x$ac_prog_cc_stdc = xno
4709 then :
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4711 printf %s "checking for $CC option to enable C89 features... " >&6; }
4712 if test ${ac_cv_prog_cc_c89+y}
4713 then :
4714 printf %s "(cached) " >&6
4715 else case e in #(
4716 e) ac_cv_prog_cc_c89=no
4717 ac_save_CC=$CC
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720 $ac_c_conftest_c89_program
4721 _ACEOF
4722 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4723 do
4724 CC="$ac_save_CC $ac_arg"
4725 if ac_fn_c_try_compile "$LINENO"
4726 then :
4727 ac_cv_prog_cc_c89=$ac_arg
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.beam
4730 test "x$ac_cv_prog_cc_c89" != "xno" && break
4731 done
4732 rm -f conftest.$ac_ext
4733 CC=$ac_save_CC ;;
4734 esac
4735 fi
4736
4737 if test "x$ac_cv_prog_cc_c89" = xno
4738 then :
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4740 printf "%s\n" "unsupported" >&6; }
4741 else case e in #(
4742 e) if test "x$ac_cv_prog_cc_c89" = x
4743 then :
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4745 printf "%s\n" "none needed" >&6; }
4746 else case e in #(
4747 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4748 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4749 CC="$CC $ac_cv_prog_cc_c89" ;;
4750 esac
4751 fi
4752 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4753 ac_prog_cc_stdc=c89 ;;
4754 esac
4755 fi
4756 fi
4757
4758 ac_ext=c
4759 ac_cpp='$CPP $CPPFLAGS'
4760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4763
4764
4765 ac_ext=c
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4771 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4772 if test ${am_cv_prog_cc_c_o+y}
4773 then :
4774 printf %s "(cached) " >&6
4775 else case e in #(
4776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778
4779 int
4780 main (void)
4781 {
4782
4783 ;
4784 return 0;
4785 }
4786 _ACEOF
4787 # Make sure it works both with $CC and with simple cc.
4788 # Following AC_PROG_CC_C_O, we do the test twice because some
4789 # compilers refuse to overwrite an existing .o file with -o,
4790 # though they will create one.
4791 am_cv_prog_cc_c_o=yes
4792 for am_i in 1 2; do
4793 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4794 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4795 ac_status=$?
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } \
4798 && test -f conftest2.$ac_objext; then
4799 : OK
4800 else
4801 am_cv_prog_cc_c_o=no
4802 break
4803 fi
4804 done
4805 rm -f core conftest*
4806 unset am_i ;;
4807 esac
4808 fi
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4810 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4811 if test "$am_cv_prog_cc_c_o" != yes; then
4812 # Losing compiler, so override with the script.
4813 # FIXME: It is wrong to rewrite CC.
4814 # But if we don't then we get into trouble of one sort or another.
4815 # A longer-term fix would be to have automake use am__CC in this case,
4816 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4817 CC="$am_aux_dir/compile $CC"
4818 fi
4819 ac_ext=c
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824
4825 DEPDIR="${am__leading_dot}deps"
4826
4827 ac_config_commands="$ac_config_commands depfiles"
4828
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4830 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4831 cat > confinc.mk << 'END'
4832 am__doit:
4833 @echo this is the am__doit target >confinc.out
4834 .PHONY: am__doit
4835 END
4836 am__include="#"
4837 am__quote=
4838 # BSD make does it like this.
4839 echo '.include "confinc.mk" # ignored' > confmf.BSD
4840 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4841 echo 'include confinc.mk # ignored' > confmf.GNU
4842 _am_result=no
4843 for s in GNU BSD; do
4844 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4845 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }
4849 case $?:`cat confinc.out 2>/dev/null` in #(
4850 '0:this is the am__doit target') :
4851 case $s in #(
4852 BSD) :
4853 am__include='.include' am__quote='"' ;; #(
4854 *) :
4855 am__include='include' am__quote='' ;;
4856 esac ;; #(
4857 *) :
4858 ;;
4859 esac
4860 if test "$am__include" != "#"; then
4861 _am_result="yes ($s style)"
4862 break
4863 fi
4864 done
4865 rm -f confinc.* confmf.*
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4867 printf "%s\n" "${_am_result}" >&6; }
4868
4869 # Check whether --enable-dependency-tracking was given.
4870 if test ${enable_dependency_tracking+y}
4871 then :
4872 enableval=$enable_dependency_tracking;
4873 fi
4874
4875 if test "x$enable_dependency_tracking" != xno; then
4876 am_depcomp="$ac_aux_dir/depcomp"
4877 AMDEPBACKSLASH='\'
4878 am__nodep='_no'
4879 fi
4880 if test "x$enable_dependency_tracking" != xno; then
4881 AMDEP_TRUE=
4882 AMDEP_FALSE='#'
4883 else
4884 AMDEP_TRUE='#'
4885 AMDEP_FALSE=
4886 fi
4887
4888
4889
4890 depcc="$CC" am_compiler_list=
4891
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4893 printf %s "checking dependency style of $depcc... " >&6; }
4894 if test ${am_cv_CC_dependencies_compiler_type+y}
4895 then :
4896 printf %s "(cached) " >&6
4897 else case e in #(
4898 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4899 # We make a subdir and do the tests there. Otherwise we can end up
4900 # making bogus files that we don't know about and never remove. For
4901 # instance it was reported that on HP-UX the gcc test will end up
4902 # making a dummy file named 'D' -- because '-MD' means "put the output
4903 # in D".
4904 rm -rf conftest.dir
4905 mkdir conftest.dir
4906 # Copy depcomp to subdir because otherwise we won't find it if we're
4907 # using a relative directory.
4908 cp "$am_depcomp" conftest.dir
4909 cd conftest.dir
4910 # We will build objects and dependencies in a subdirectory because
4911 # it helps to detect inapplicable dependency modes. For instance
4912 # both Tru64's cc and ICC support -MD to output dependencies as a
4913 # side effect of compilation, but ICC will put the dependencies in
4914 # the current directory while Tru64 will put them in the object
4915 # directory.
4916 mkdir sub
4917
4918 am_cv_CC_dependencies_compiler_type=none
4919 if test "$am_compiler_list" = ""; then
4920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4921 fi
4922 am__universal=false
4923 case " $depcc " in #(
4924 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4925 esac
4926
4927 for depmode in $am_compiler_list; do
4928 # Setup a source with many dependencies, because some compilers
4929 # like to wrap large dependency lists on column 80 (with \), and
4930 # we should not choose a depcomp mode which is confused by this.
4931 #
4932 # We need to recreate these files for each test, as the compiler may
4933 # overwrite some of them when testing with obscure command lines.
4934 # This happens at least with the AIX C compiler.
4935 : > sub/conftest.c
4936 for i in 1 2 3 4 5 6; do
4937 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4938 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4939 # Solaris 10 /bin/sh.
4940 echo '/* dummy */' > sub/conftst$i.h
4941 done
4942 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4943
4944 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4945 # mode. It turns out that the SunPro C++ compiler does not properly
4946 # handle '-M -o', and we need to detect this. Also, some Intel
4947 # versions had trouble with output in subdirs.
4948 am__obj=sub/conftest.${OBJEXT-o}
4949 am__minus_obj="-o $am__obj"
4950 case $depmode in
4951 gcc)
4952 # This depmode causes a compiler race in universal mode.
4953 test "$am__universal" = false || continue
4954 ;;
4955 nosideeffect)
4956 # After this tag, mechanisms are not by side-effect, so they'll
4957 # only be used when explicitly requested.
4958 if test "x$enable_dependency_tracking" = xyes; then
4959 continue
4960 else
4961 break
4962 fi
4963 ;;
4964 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4965 # This compiler won't grok '-c -o', but also, the minuso test has
4966 # not run yet. These depmodes are late enough in the game, and
4967 # so weak that their functioning should not be impacted.
4968 am__obj=conftest.${OBJEXT-o}
4969 am__minus_obj=
4970 ;;
4971 none) break ;;
4972 esac
4973 if depmode=$depmode \
4974 source=sub/conftest.c object=$am__obj \
4975 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4976 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4977 >/dev/null 2>conftest.err &&
4978 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4979 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4980 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4981 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4982 # icc doesn't choke on unknown options, it will just issue warnings
4983 # or remarks (even with -Werror). So we grep stderr for any message
4984 # that says an option was ignored or not supported.
4985 # When given -MP, icc 7.0 and 7.1 complain thusly:
4986 # icc: Command line warning: ignoring option '-M'; no argument required
4987 # The diagnosis changed in icc 8.0:
4988 # icc: Command line remark: option '-MP' not supported
4989 if (grep 'ignoring option' conftest.err ||
4990 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4991 am_cv_CC_dependencies_compiler_type=$depmode
4992 break
4993 fi
4994 fi
4995 done
4996
4997 cd ..
4998 rm -rf conftest.dir
4999 else
5000 am_cv_CC_dependencies_compiler_type=none
5001 fi
5002 ;;
5003 esac
5004 fi
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5006 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5007 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5008
5009 if
5010 test "x$enable_dependency_tracking" != xno \
5011 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5012 am__fastdepCC_TRUE=
5013 am__fastdepCC_FALSE='#'
5014 else
5015 am__fastdepCC_TRUE='#'
5016 am__fastdepCC_FALSE=
5017 fi
5018
5019
5020
5021
5022
5023
5024
5025
5026 ac_ext=cpp
5027 ac_cpp='$CXXCPP $CPPFLAGS'
5028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5031 if test -z "$CXX"; then
5032 if test -n "$CCC"; then
5033 CXX=$CCC
5034 else
5035 if test -n "$ac_tool_prefix"; then
5036 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5037 do
5038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5039 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 printf %s "checking for $ac_word... " >&6; }
5042 if test ${ac_cv_prog_CXX+y}
5043 then :
5044 printf %s "(cached) " >&6
5045 else case e in #(
5046 e) if test -n "$CXX"; then
5047 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052 IFS=$as_save_IFS
5053 case $as_dir in #(((
5054 '') as_dir=./ ;;
5055 */) ;;
5056 *) as_dir=$as_dir/ ;;
5057 esac
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5060 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5062 break 2
5063 fi
5064 done
5065 done
5066 IFS=$as_save_IFS
5067
5068 fi ;;
5069 esac
5070 fi
5071 CXX=$ac_cv_prog_CXX
5072 if test -n "$CXX"; then
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5074 printf "%s\n" "$CXX" >&6; }
5075 else
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 printf "%s\n" "no" >&6; }
5078 fi
5079
5080
5081 test -n "$CXX" && break
5082 done
5083 fi
5084 if test -z "$CXX"; then
5085 ac_ct_CXX=$CXX
5086 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5087 do
5088 # Extract the first word of "$ac_prog", so it can be a program name with args.
5089 set dummy $ac_prog; ac_word=$2
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 printf %s "checking for $ac_word... " >&6; }
5092 if test ${ac_cv_prog_ac_ct_CXX+y}
5093 then :
5094 printf %s "(cached) " >&6
5095 else case e in #(
5096 e) if test -n "$ac_ct_CXX"; then
5097 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102 IFS=$as_save_IFS
5103 case $as_dir in #(((
5104 '') as_dir=./ ;;
5105 */) ;;
5106 *) as_dir=$as_dir/ ;;
5107 esac
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_ac_ct_CXX="$ac_prog"
5111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi ;;
5119 esac
5120 fi
5121 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5122 if test -n "$ac_ct_CXX"; then
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5124 printf "%s\n" "$ac_ct_CXX" >&6; }
5125 else
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 printf "%s\n" "no" >&6; }
5128 fi
5129
5130
5131 test -n "$ac_ct_CXX" && break
5132 done
5133
5134 if test "x$ac_ct_CXX" = x; then
5135 CXX="g++"
5136 else
5137 case $cross_compiling:$ac_tool_warned in
5138 yes:)
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5140 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5141 ac_tool_warned=yes ;;
5142 esac
5143 CXX=$ac_ct_CXX
5144 fi
5145 fi
5146
5147 fi
5148 fi
5149 # Provide some information about the compiler.
5150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5151 set X $ac_compile
5152 ac_compiler=$2
5153 for ac_option in --version -v -V -qversion; do
5154 { { ac_try="$ac_compiler $ac_option >&5"
5155 case "(($ac_try" in
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5158 esac
5159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5160 printf "%s\n" "$ac_try_echo"; } >&5
5161 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5162 ac_status=$?
5163 if test -s conftest.err; then
5164 sed '10a\
5165 ... rest of stderr output deleted ...
5166 10q' conftest.err >conftest.er1
5167 cat conftest.er1 >&5
5168 fi
5169 rm -f conftest.er1 conftest.err
5170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; }
5172 done
5173
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5175 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5176 if test ${ac_cv_cxx_compiler_gnu+y}
5177 then :
5178 printf %s "(cached) " >&6
5179 else case e in #(
5180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5182
5183 int
5184 main (void)
5185 {
5186 #ifndef __GNUC__
5187 choke me
5188 #endif
5189
5190 ;
5191 return 0;
5192 }
5193 _ACEOF
5194 if ac_fn_cxx_try_compile "$LINENO"
5195 then :
5196 ac_compiler_gnu=yes
5197 else case e in #(
5198 e) ac_compiler_gnu=no ;;
5199 esac
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5202 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5203 ;;
5204 esac
5205 fi
5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5207 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5209
5210 if test $ac_compiler_gnu = yes; then
5211 GXX=yes
5212 else
5213 GXX=
5214 fi
5215 ac_test_CXXFLAGS=${CXXFLAGS+y}
5216 ac_save_CXXFLAGS=$CXXFLAGS
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5218 printf %s "checking whether $CXX accepts -g... " >&6; }
5219 if test ${ac_cv_prog_cxx_g+y}
5220 then :
5221 printf %s "(cached) " >&6
5222 else case e in #(
5223 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5224 ac_cxx_werror_flag=yes
5225 ac_cv_prog_cxx_g=no
5226 CXXFLAGS="-g"
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229
5230 int
5231 main (void)
5232 {
5233
5234 ;
5235 return 0;
5236 }
5237 _ACEOF
5238 if ac_fn_cxx_try_compile "$LINENO"
5239 then :
5240 ac_cv_prog_cxx_g=yes
5241 else case e in #(
5242 e) CXXFLAGS=""
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245
5246 int
5247 main (void)
5248 {
5249
5250 ;
5251 return 0;
5252 }
5253 _ACEOF
5254 if ac_fn_cxx_try_compile "$LINENO"
5255 then :
5256
5257 else case e in #(
5258 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5259 CXXFLAGS="-g"
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262
5263 int
5264 main (void)
5265 {
5266
5267 ;
5268 return 0;
5269 }
5270 _ACEOF
5271 if ac_fn_cxx_try_compile "$LINENO"
5272 then :
5273 ac_cv_prog_cxx_g=yes
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5276 esac
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5279 esac
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5282 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
5283 esac
5284 fi
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5286 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5287 if test $ac_test_CXXFLAGS; then
5288 CXXFLAGS=$ac_save_CXXFLAGS
5289 elif test $ac_cv_prog_cxx_g = yes; then
5290 if test "$GXX" = yes; then
5291 CXXFLAGS="-g -O2"
5292 else
5293 CXXFLAGS="-g"
5294 fi
5295 else
5296 if test "$GXX" = yes; then
5297 CXXFLAGS="-O2"
5298 else
5299 CXXFLAGS=
5300 fi
5301 fi
5302 ac_prog_cxx_stdcxx=no
5303 if test x$ac_prog_cxx_stdcxx = xno
5304 then :
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5306 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5307 if test ${ac_cv_prog_cxx_cxx11+y}
5308 then :
5309 printf %s "(cached) " >&6
5310 else case e in #(
5311 e) ac_cv_prog_cxx_cxx11=no
5312 ac_save_CXX=$CXX
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 $ac_cxx_conftest_cxx11_program
5316 _ACEOF
5317 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5318 do
5319 CXX="$ac_save_CXX $ac_arg"
5320 if ac_fn_cxx_try_compile "$LINENO"
5321 then :
5322 ac_cv_prog_cxx_cxx11=$ac_arg
5323 fi
5324 rm -f core conftest.err conftest.$ac_objext conftest.beam
5325 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5326 done
5327 rm -f conftest.$ac_ext
5328 CXX=$ac_save_CXX ;;
5329 esac
5330 fi
5331
5332 if test "x$ac_cv_prog_cxx_cxx11" = xno
5333 then :
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5335 printf "%s\n" "unsupported" >&6; }
5336 else case e in #(
5337 e) if test "x$ac_cv_prog_cxx_cxx11" = x
5338 then :
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5340 printf "%s\n" "none needed" >&6; }
5341 else case e in #(
5342 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5343 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5344 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
5345 esac
5346 fi
5347 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5348 ac_prog_cxx_stdcxx=cxx11 ;;
5349 esac
5350 fi
5351 fi
5352 if test x$ac_prog_cxx_stdcxx = xno
5353 then :
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5355 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5356 if test ${ac_cv_prog_cxx_cxx98+y}
5357 then :
5358 printf %s "(cached) " >&6
5359 else case e in #(
5360 e) ac_cv_prog_cxx_cxx98=no
5361 ac_save_CXX=$CXX
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 $ac_cxx_conftest_cxx98_program
5365 _ACEOF
5366 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5367 do
5368 CXX="$ac_save_CXX $ac_arg"
5369 if ac_fn_cxx_try_compile "$LINENO"
5370 then :
5371 ac_cv_prog_cxx_cxx98=$ac_arg
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.beam
5374 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5375 done
5376 rm -f conftest.$ac_ext
5377 CXX=$ac_save_CXX ;;
5378 esac
5379 fi
5380
5381 if test "x$ac_cv_prog_cxx_cxx98" = xno
5382 then :
5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5384 printf "%s\n" "unsupported" >&6; }
5385 else case e in #(
5386 e) if test "x$ac_cv_prog_cxx_cxx98" = x
5387 then :
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5389 printf "%s\n" "none needed" >&6; }
5390 else case e in #(
5391 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5392 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5393 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
5394 esac
5395 fi
5396 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5397 ac_prog_cxx_stdcxx=cxx98 ;;
5398 esac
5399 fi
5400 fi
5401
5402 ac_ext=c
5403 ac_cpp='$CPP $CPPFLAGS'
5404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407
5408 depcc="$CXX" am_compiler_list=
5409
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5411 printf %s "checking dependency style of $depcc... " >&6; }
5412 if test ${am_cv_CXX_dependencies_compiler_type+y}
5413 then :
5414 printf %s "(cached) " >&6
5415 else case e in #(
5416 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5417 # We make a subdir and do the tests there. Otherwise we can end up
5418 # making bogus files that we don't know about and never remove. For
5419 # instance it was reported that on HP-UX the gcc test will end up
5420 # making a dummy file named 'D' -- because '-MD' means "put the output
5421 # in D".
5422 rm -rf conftest.dir
5423 mkdir conftest.dir
5424 # Copy depcomp to subdir because otherwise we won't find it if we're
5425 # using a relative directory.
5426 cp "$am_depcomp" conftest.dir
5427 cd conftest.dir
5428 # We will build objects and dependencies in a subdirectory because
5429 # it helps to detect inapplicable dependency modes. For instance
5430 # both Tru64's cc and ICC support -MD to output dependencies as a
5431 # side effect of compilation, but ICC will put the dependencies in
5432 # the current directory while Tru64 will put them in the object
5433 # directory.
5434 mkdir sub
5435
5436 am_cv_CXX_dependencies_compiler_type=none
5437 if test "$am_compiler_list" = ""; then
5438 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5439 fi
5440 am__universal=false
5441 case " $depcc " in #(
5442 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5443 esac
5444
5445 for depmode in $am_compiler_list; do
5446 # Setup a source with many dependencies, because some compilers
5447 # like to wrap large dependency lists on column 80 (with \), and
5448 # we should not choose a depcomp mode which is confused by this.
5449 #
5450 # We need to recreate these files for each test, as the compiler may
5451 # overwrite some of them when testing with obscure command lines.
5452 # This happens at least with the AIX C compiler.
5453 : > sub/conftest.c
5454 for i in 1 2 3 4 5 6; do
5455 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5456 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5457 # Solaris 10 /bin/sh.
5458 echo '/* dummy */' > sub/conftst$i.h
5459 done
5460 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5461
5462 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5463 # mode. It turns out that the SunPro C++ compiler does not properly
5464 # handle '-M -o', and we need to detect this. Also, some Intel
5465 # versions had trouble with output in subdirs.
5466 am__obj=sub/conftest.${OBJEXT-o}
5467 am__minus_obj="-o $am__obj"
5468 case $depmode in
5469 gcc)
5470 # This depmode causes a compiler race in universal mode.
5471 test "$am__universal" = false || continue
5472 ;;
5473 nosideeffect)
5474 # After this tag, mechanisms are not by side-effect, so they'll
5475 # only be used when explicitly requested.
5476 if test "x$enable_dependency_tracking" = xyes; then
5477 continue
5478 else
5479 break
5480 fi
5481 ;;
5482 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5483 # This compiler won't grok '-c -o', but also, the minuso test has
5484 # not run yet. These depmodes are late enough in the game, and
5485 # so weak that their functioning should not be impacted.
5486 am__obj=conftest.${OBJEXT-o}
5487 am__minus_obj=
5488 ;;
5489 none) break ;;
5490 esac
5491 if depmode=$depmode \
5492 source=sub/conftest.c object=$am__obj \
5493 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5494 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5495 >/dev/null 2>conftest.err &&
5496 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5497 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5498 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5499 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5500 # icc doesn't choke on unknown options, it will just issue warnings
5501 # or remarks (even with -Werror). So we grep stderr for any message
5502 # that says an option was ignored or not supported.
5503 # When given -MP, icc 7.0 and 7.1 complain thusly:
5504 # icc: Command line warning: ignoring option '-M'; no argument required
5505 # The diagnosis changed in icc 8.0:
5506 # icc: Command line remark: option '-MP' not supported
5507 if (grep 'ignoring option' conftest.err ||
5508 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5509 am_cv_CXX_dependencies_compiler_type=$depmode
5510 break
5511 fi
5512 fi
5513 done
5514
5515 cd ..
5516 rm -rf conftest.dir
5517 else
5518 am_cv_CXX_dependencies_compiler_type=none
5519 fi
5520 ;;
5521 esac
5522 fi
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5524 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5525 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5526
5527 if
5528 test "x$enable_dependency_tracking" != xno \
5529 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5530 am__fastdepCXX_TRUE=
5531 am__fastdepCXX_FALSE='#'
5532 else
5533 am__fastdepCXX_TRUE='#'
5534 am__fastdepCXX_FALSE=
5535 fi
5536
5537
5538 ac_ext=c
5539 ac_cpp='$CPP $CPPFLAGS'
5540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5544 printf %s "checking how to run the C preprocessor... " >&6; }
5545 # On Suns, sometimes $CPP names a directory.
5546 if test -n "$CPP" && test -d "$CPP"; then
5547 CPP=
5548 fi
5549 if test -z "$CPP"; then
5550 if test ${ac_cv_prog_CPP+y}
5551 then :
5552 printf %s "(cached) " >&6
5553 else case e in #(
5554 e) # Double quotes because $CC needs to be expanded
5555 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5556 do
5557 ac_preproc_ok=false
5558 for ac_c_preproc_warn_flag in '' yes
5559 do
5560 # Use a header file that comes with gcc, so configuring glibc
5561 # with a fresh cross-compiler works.
5562 # On the NeXT, cc -E runs the code through the compiler's parser,
5563 # not just through cpp. "Syntax error" is here to catch this case.
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #include <limits.h>
5567 Syntax error
5568 _ACEOF
5569 if ac_fn_c_try_cpp "$LINENO"
5570 then :
5571
5572 else case e in #(
5573 e) # Broken: fails on valid input.
5574 continue ;;
5575 esac
5576 fi
5577 rm -f conftest.err conftest.i conftest.$ac_ext
5578
5579 # OK, works on sane cases. Now check whether nonexistent headers
5580 # can be detected and how.
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 #include <ac_nonexistent.h>
5584 _ACEOF
5585 if ac_fn_c_try_cpp "$LINENO"
5586 then :
5587 # Broken: success on invalid input.
5588 continue
5589 else case e in #(
5590 e) # Passes both tests.
5591 ac_preproc_ok=:
5592 break ;;
5593 esac
5594 fi
5595 rm -f conftest.err conftest.i conftest.$ac_ext
5596
5597 done
5598 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5599 rm -f conftest.i conftest.err conftest.$ac_ext
5600 if $ac_preproc_ok
5601 then :
5602 break
5603 fi
5604
5605 done
5606 ac_cv_prog_CPP=$CPP
5607 ;;
5608 esac
5609 fi
5610 CPP=$ac_cv_prog_CPP
5611 else
5612 ac_cv_prog_CPP=$CPP
5613 fi
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5615 printf "%s\n" "$CPP" >&6; }
5616 ac_preproc_ok=false
5617 for ac_c_preproc_warn_flag in '' yes
5618 do
5619 # Use a header file that comes with gcc, so configuring glibc
5620 # with a fresh cross-compiler works.
5621 # On the NeXT, cc -E runs the code through the compiler's parser,
5622 # not just through cpp. "Syntax error" is here to catch this case.
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 #include <limits.h>
5626 Syntax error
5627 _ACEOF
5628 if ac_fn_c_try_cpp "$LINENO"
5629 then :
5630
5631 else case e in #(
5632 e) # Broken: fails on valid input.
5633 continue ;;
5634 esac
5635 fi
5636 rm -f conftest.err conftest.i conftest.$ac_ext
5637
5638 # OK, works on sane cases. Now check whether nonexistent headers
5639 # can be detected and how.
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 #include <ac_nonexistent.h>
5643 _ACEOF
5644 if ac_fn_c_try_cpp "$LINENO"
5645 then :
5646 # Broken: success on invalid input.
5647 continue
5648 else case e in #(
5649 e) # Passes both tests.
5650 ac_preproc_ok=:
5651 break ;;
5652 esac
5653 fi
5654 rm -f conftest.err conftest.i conftest.$ac_ext
5655
5656 done
5657 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5658 rm -f conftest.i conftest.err conftest.$ac_ext
5659 if $ac_preproc_ok
5660 then :
5661
5662 else case e in #(
5663 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5664 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5665 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5666 See 'config.log' for more details" "$LINENO" 5; } ;;
5667 esac
5668 fi
5669
5670 ac_ext=c
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675
5676
5677 if test -n "$ac_tool_prefix"; then
5678 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5679 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 printf %s "checking for $ac_word... " >&6; }
5682 if test ${ac_cv_prog_RANLIB+y}
5683 then :
5684 printf %s "(cached) " >&6
5685 else case e in #(
5686 e) if test -n "$RANLIB"; then
5687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 case $as_dir in #(((
5694 '') as_dir=./ ;;
5695 */) ;;
5696 *) as_dir=$as_dir/ ;;
5697 esac
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704 done
5705 done
5706 IFS=$as_save_IFS
5707
5708 fi ;;
5709 esac
5710 fi
5711 RANLIB=$ac_cv_prog_RANLIB
5712 if test -n "$RANLIB"; then
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5714 printf "%s\n" "$RANLIB" >&6; }
5715 else
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 printf "%s\n" "no" >&6; }
5718 fi
5719
5720
5721 fi
5722 if test -z "$ac_cv_prog_RANLIB"; then
5723 ac_ct_RANLIB=$RANLIB
5724 # Extract the first word of "ranlib", so it can be a program name with args.
5725 set dummy ranlib; ac_word=$2
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 printf %s "checking for $ac_word... " >&6; }
5728 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5729 then :
5730 printf %s "(cached) " >&6
5731 else case e in #(
5732 e) if test -n "$ac_ct_RANLIB"; then
5733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738 IFS=$as_save_IFS
5739 case $as_dir in #(((
5740 '') as_dir=./ ;;
5741 */) ;;
5742 *) as_dir=$as_dir/ ;;
5743 esac
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_ac_ct_RANLIB="ranlib"
5747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5748 break 2
5749 fi
5750 done
5751 done
5752 IFS=$as_save_IFS
5753
5754 fi ;;
5755 esac
5756 fi
5757 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5758 if test -n "$ac_ct_RANLIB"; then
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5760 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5761 else
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 printf "%s\n" "no" >&6; }
5764 fi
5765
5766 if test "x$ac_ct_RANLIB" = x; then
5767 RANLIB=":"
5768 else
5769 case $cross_compiling:$ac_tool_warned in
5770 yes:)
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5773 ac_tool_warned=yes ;;
5774 esac
5775 RANLIB=$ac_ct_RANLIB
5776 fi
5777 else
5778 RANLIB="$ac_cv_prog_RANLIB"
5779 fi
5780
5781 if test -n "$ac_tool_prefix"; then
5782 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 printf %s "checking for $ac_word... " >&6; }
5786 if test ${ac_cv_prog_DLLTOOL+y}
5787 then :
5788 printf %s "(cached) " >&6
5789 else case e in #(
5790 e) if test -n "$DLLTOOL"; then
5791 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796 IFS=$as_save_IFS
5797 case $as_dir in #(((
5798 '') as_dir=./ ;;
5799 */) ;;
5800 *) as_dir=$as_dir/ ;;
5801 esac
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5804 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808 done
5809 done
5810 IFS=$as_save_IFS
5811
5812 fi ;;
5813 esac
5814 fi
5815 DLLTOOL=$ac_cv_prog_DLLTOOL
5816 if test -n "$DLLTOOL"; then
5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5818 printf "%s\n" "$DLLTOOL" >&6; }
5819 else
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 printf "%s\n" "no" >&6; }
5822 fi
5823
5824
5825 fi
5826 if test -z "$ac_cv_prog_DLLTOOL"; then
5827 ac_ct_DLLTOOL=$DLLTOOL
5828 # Extract the first word of "dlltool", so it can be a program name with args.
5829 set dummy dlltool; ac_word=$2
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831 printf %s "checking for $ac_word... " >&6; }
5832 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5833 then :
5834 printf %s "(cached) " >&6
5835 else case e in #(
5836 e) if test -n "$ac_ct_DLLTOOL"; then
5837 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842 IFS=$as_save_IFS
5843 case $as_dir in #(((
5844 '') as_dir=./ ;;
5845 */) ;;
5846 *) as_dir=$as_dir/ ;;
5847 esac
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858 fi ;;
5859 esac
5860 fi
5861 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5862 if test -n "$ac_ct_DLLTOOL"; then
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5864 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5865 else
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 printf "%s\n" "no" >&6; }
5868 fi
5869
5870 if test "x$ac_ct_DLLTOOL" = x; then
5871 DLLTOOL=":"
5872 else
5873 case $cross_compiling:$ac_tool_warned in
5874 yes:)
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5877 ac_tool_warned=yes ;;
5878 esac
5879 DLLTOOL=$ac_ct_DLLTOOL
5880 fi
5881 else
5882 DLLTOOL="$ac_cv_prog_DLLTOOL"
5883 fi
5884
5885
5886
5887 if test -n "$ac_tool_prefix"; then
5888 for ac_prog in ar lib "link -lib"
5889 do
5890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5891 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 printf %s "checking for $ac_word... " >&6; }
5894 if test ${ac_cv_prog_AR+y}
5895 then :
5896 printf %s "(cached) " >&6
5897 else case e in #(
5898 e) if test -n "$AR"; then
5899 ac_cv_prog_AR="$AR" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904 IFS=$as_save_IFS
5905 case $as_dir in #(((
5906 '') as_dir=./ ;;
5907 */) ;;
5908 *) as_dir=$as_dir/ ;;
5909 esac
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916 done
5917 done
5918 IFS=$as_save_IFS
5919
5920 fi ;;
5921 esac
5922 fi
5923 AR=$ac_cv_prog_AR
5924 if test -n "$AR"; then
5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5926 printf "%s\n" "$AR" >&6; }
5927 else
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929 printf "%s\n" "no" >&6; }
5930 fi
5931
5932
5933 test -n "$AR" && break
5934 done
5935 fi
5936 if test -z "$AR"; then
5937 ac_ct_AR=$AR
5938 for ac_prog in ar lib "link -lib"
5939 do
5940 # Extract the first word of "$ac_prog", so it can be a program name with args.
5941 set dummy $ac_prog; ac_word=$2
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 printf %s "checking for $ac_word... " >&6; }
5944 if test ${ac_cv_prog_ac_ct_AR+y}
5945 then :
5946 printf %s "(cached) " >&6
5947 else case e in #(
5948 e) if test -n "$ac_ct_AR"; then
5949 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954 IFS=$as_save_IFS
5955 case $as_dir in #(((
5956 '') as_dir=./ ;;
5957 */) ;;
5958 *) as_dir=$as_dir/ ;;
5959 esac
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5962 ac_cv_prog_ac_ct_AR="$ac_prog"
5963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5964 break 2
5965 fi
5966 done
5967 done
5968 IFS=$as_save_IFS
5969
5970 fi ;;
5971 esac
5972 fi
5973 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5974 if test -n "$ac_ct_AR"; then
5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5976 printf "%s\n" "$ac_ct_AR" >&6; }
5977 else
5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 printf "%s\n" "no" >&6; }
5980 fi
5981
5982
5983 test -n "$ac_ct_AR" && break
5984 done
5985
5986 if test "x$ac_ct_AR" = x; then
5987 AR="false"
5988 else
5989 case $cross_compiling:$ac_tool_warned in
5990 yes:)
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5994 esac
5995 AR=$ac_ct_AR
5996 fi
5997 fi
5998
5999 : ${AR=ar}
6000
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6002 printf %s "checking the archiver ($AR) interface... " >&6; }
6003 if test ${am_cv_ar_interface+y}
6004 then :
6005 printf %s "(cached) " >&6
6006 else case e in #(
6007 e) ac_ext=c
6008 ac_cpp='$CPP $CPPFLAGS'
6009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6012
6013 am_cv_ar_interface=ar
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016 int some_variable = 0;
6017 _ACEOF
6018 if ac_fn_c_try_compile "$LINENO"
6019 then :
6020 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6022 (eval $am_ar_try) 2>&5
6023 ac_status=$?
6024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6025 test $ac_status = 0; }
6026 if test "$ac_status" -eq 0; then
6027 am_cv_ar_interface=ar
6028 else
6029 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6031 (eval $am_ar_try) 2>&5
6032 ac_status=$?
6033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6034 test $ac_status = 0; }
6035 if test "$ac_status" -eq 0; then
6036 am_cv_ar_interface=lib
6037 else
6038 am_cv_ar_interface=unknown
6039 fi
6040 fi
6041 rm -f conftest.lib libconftest.a
6042
6043 fi
6044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6045 ac_ext=c
6046 ac_cpp='$CPP $CPPFLAGS'
6047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6050 ;;
6051 esac
6052 fi
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6054 printf "%s\n" "$am_cv_ar_interface" >&6; }
6055
6056 case $am_cv_ar_interface in
6057 ar)
6058 ;;
6059 lib)
6060 # Microsoft lib, so override with the ar-lib wrapper script.
6061 # FIXME: It is wrong to rewrite AR.
6062 # But if we don't then we get into trouble of one sort or another.
6063 # A longer-term fix would be to have automake use am__AR in this case,
6064 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6065 # similar.
6066 AR="$am_aux_dir/ar-lib $AR"
6067 ;;
6068 unknown)
6069 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6070 ;;
6071 esac
6072
6073 # By default we simply use the C compiler to build assembly code.
6074
6075 test "${CCAS+set}" = set || CCAS=$CC
6076 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6077
6078
6079
6080 depcc="$CCAS" am_compiler_list=
6081
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6083 printf %s "checking dependency style of $depcc... " >&6; }
6084 if test ${am_cv_CCAS_dependencies_compiler_type+y}
6085 then :
6086 printf %s "(cached) " >&6
6087 else case e in #(
6088 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6089 # We make a subdir and do the tests there. Otherwise we can end up
6090 # making bogus files that we don't know about and never remove. For
6091 # instance it was reported that on HP-UX the gcc test will end up
6092 # making a dummy file named 'D' -- because '-MD' means "put the output
6093 # in D".
6094 rm -rf conftest.dir
6095 mkdir conftest.dir
6096 # Copy depcomp to subdir because otherwise we won't find it if we're
6097 # using a relative directory.
6098 cp "$am_depcomp" conftest.dir
6099 cd conftest.dir
6100 # We will build objects and dependencies in a subdirectory because
6101 # it helps to detect inapplicable dependency modes. For instance
6102 # both Tru64's cc and ICC support -MD to output dependencies as a
6103 # side effect of compilation, but ICC will put the dependencies in
6104 # the current directory while Tru64 will put them in the object
6105 # directory.
6106 mkdir sub
6107
6108 am_cv_CCAS_dependencies_compiler_type=none
6109 if test "$am_compiler_list" = ""; then
6110 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6111 fi
6112 am__universal=false
6113
6114
6115 for depmode in $am_compiler_list; do
6116 # Setup a source with many dependencies, because some compilers
6117 # like to wrap large dependency lists on column 80 (with \), and
6118 # we should not choose a depcomp mode which is confused by this.
6119 #
6120 # We need to recreate these files for each test, as the compiler may
6121 # overwrite some of them when testing with obscure command lines.
6122 # This happens at least with the AIX C compiler.
6123 : > sub/conftest.c
6124 for i in 1 2 3 4 5 6; do
6125 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6126 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6127 # Solaris 10 /bin/sh.
6128 echo '/* dummy */' > sub/conftst$i.h
6129 done
6130 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6131
6132 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6133 # mode. It turns out that the SunPro C++ compiler does not properly
6134 # handle '-M -o', and we need to detect this. Also, some Intel
6135 # versions had trouble with output in subdirs.
6136 am__obj=sub/conftest.${OBJEXT-o}
6137 am__minus_obj="-o $am__obj"
6138 case $depmode in
6139 gcc)
6140 # This depmode causes a compiler race in universal mode.
6141 test "$am__universal" = false || continue
6142 ;;
6143 nosideeffect)
6144 # After this tag, mechanisms are not by side-effect, so they'll
6145 # only be used when explicitly requested.
6146 if test "x$enable_dependency_tracking" = xyes; then
6147 continue
6148 else
6149 break
6150 fi
6151 ;;
6152 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6153 # This compiler won't grok '-c -o', but also, the minuso test has
6154 # not run yet. These depmodes are late enough in the game, and
6155 # so weak that their functioning should not be impacted.
6156 am__obj=conftest.${OBJEXT-o}
6157 am__minus_obj=
6158 ;;
6159 none) break ;;
6160 esac
6161 if depmode=$depmode \
6162 source=sub/conftest.c object=$am__obj \
6163 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6164 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6165 >/dev/null 2>conftest.err &&
6166 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6167 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6168 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6169 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6170 # icc doesn't choke on unknown options, it will just issue warnings
6171 # or remarks (even with -Werror). So we grep stderr for any message
6172 # that says an option was ignored or not supported.
6173 # When given -MP, icc 7.0 and 7.1 complain thusly:
6174 # icc: Command line warning: ignoring option '-M'; no argument required
6175 # The diagnosis changed in icc 8.0:
6176 # icc: Command line remark: option '-MP' not supported
6177 if (grep 'ignoring option' conftest.err ||
6178 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6179 am_cv_CCAS_dependencies_compiler_type=$depmode
6180 break
6181 fi
6182 fi
6183 done
6184
6185 cd ..
6186 rm -rf conftest.dir
6187 else
6188 am_cv_CCAS_dependencies_compiler_type=none
6189 fi
6190 ;;
6191 esac
6192 fi
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6194 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6195 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6196
6197 if
6198 test "x$enable_dependency_tracking" != xno \
6199 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6200 am__fastdepCCAS_TRUE=
6201 am__fastdepCCAS_FALSE='#'
6202 else
6203 am__fastdepCCAS_TRUE='#'
6204 am__fastdepCCAS_FALSE=
6205 fi
6206
6207
6208 if test -n "$ac_tool_prefix"; then
6209 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6210 set dummy ${ac_tool_prefix}as; ac_word=$2
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 printf %s "checking for $ac_word... " >&6; }
6213 if test ${ac_cv_prog_AS+y}
6214 then :
6215 printf %s "(cached) " >&6
6216 else case e in #(
6217 e) if test -n "$AS"; then
6218 ac_cv_prog_AS="$AS" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223 IFS=$as_save_IFS
6224 case $as_dir in #(((
6225 '') as_dir=./ ;;
6226 */) ;;
6227 *) as_dir=$as_dir/ ;;
6228 esac
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6231 ac_cv_prog_AS="${ac_tool_prefix}as"
6232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6233 break 2
6234 fi
6235 done
6236 done
6237 IFS=$as_save_IFS
6238
6239 fi ;;
6240 esac
6241 fi
6242 AS=$ac_cv_prog_AS
6243 if test -n "$AS"; then
6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6245 printf "%s\n" "$AS" >&6; }
6246 else
6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248 printf "%s\n" "no" >&6; }
6249 fi
6250
6251
6252 fi
6253 if test -z "$ac_cv_prog_AS"; then
6254 ac_ct_AS=$AS
6255 # Extract the first word of "as", so it can be a program name with args.
6256 set dummy as; ac_word=$2
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258 printf %s "checking for $ac_word... " >&6; }
6259 if test ${ac_cv_prog_ac_ct_AS+y}
6260 then :
6261 printf %s "(cached) " >&6
6262 else case e in #(
6263 e) if test -n "$ac_ct_AS"; then
6264 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269 IFS=$as_save_IFS
6270 case $as_dir in #(((
6271 '') as_dir=./ ;;
6272 */) ;;
6273 *) as_dir=$as_dir/ ;;
6274 esac
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_ac_ct_AS="as"
6278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6279 break 2
6280 fi
6281 done
6282 done
6283 IFS=$as_save_IFS
6284
6285 fi ;;
6286 esac
6287 fi
6288 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6289 if test -n "$ac_ct_AS"; then
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6291 printf "%s\n" "$ac_ct_AS" >&6; }
6292 else
6293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 printf "%s\n" "no" >&6; }
6295 fi
6296
6297 if test "x$ac_ct_AS" = x; then
6298 AS=":"
6299 else
6300 case $cross_compiling:$ac_tool_warned in
6301 yes:)
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6303 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6304 ac_tool_warned=yes ;;
6305 esac
6306 AS=$ac_ct_AS
6307 fi
6308 else
6309 AS="$ac_cv_prog_AS"
6310 fi
6311
6312
6313
6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dlltool supports --temp-prefix" >&5
6315 printf %s "checking whether dlltool supports --temp-prefix... " >&6; }
6316 cat > test.def <<EOF
6317 LIBRARY test.dll
6318 EXPORTS
6319 myfunc
6320 EOF
6321
6322 test_dlltool_flags=
6323
6324
6325 # First check if $DLLTOOL supports the -m option. LLVM dlltool might not
6326 # have a default arch (in older versions), so make sure we specify one.
6327
6328 test_dlltool_flags_save="$test_dlltool_flags"
6329 test_dlltool_flags="$test_dlltool_flags --as-flags=--64 -m i386:x86-64"
6330 printf "%s\n" "$DLLTOOL $test_dlltool_flags -d test.def -l libtest.a" >&5
6331 if $DLLTOOL $test_dlltool_flags -d test.def -l libtest.a >&5 2>&5
6332 then :
6333
6334
6335
6336 else case e in #(
6337 e)
6338 test_dlltool_flags="$test_dlltool_flags_save"
6339 ;;
6340 esac
6341 fi
6342
6343 # Now check if --temp-prefix is supported. GNU dlltool supports it,
6344 # LLVM dlltool doesn't, yet at least (but doesn't need it either).
6345 dlltool_has_temp_prefix=no
6346
6347 test_dlltool_flags_save="$test_dlltool_flags"
6348 test_dlltool_flags="$test_dlltool_flags --temp-prefix myprefix"
6349 printf "%s\n" "$DLLTOOL $test_dlltool_flags -d test.def -l libtest.a" >&5
6350 if $DLLTOOL $test_dlltool_flags -d test.def -l libtest.a >&5 2>&5
6351 then :
6352
6353 dlltool_has_temp_prefix=yes
6354
6355 else case e in #(
6356 e)
6357 test_dlltool_flags="$test_dlltool_flags_save"
6358 ;;
6359 esac
6360 fi
6361
6362
6363 rm -f test.def libtest.a
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dlltool_has_temp_prefix" >&5
6365 printf "%s\n" "$dlltool_has_temp_prefix" >&6; }
6366 if test $dlltool_has_temp_prefix = yes; then
6367 DLLTOOL_HAS_TEMP_PREFIX_TRUE=
6368 DLLTOOL_HAS_TEMP_PREFIX_FALSE='#'
6369 else
6370 DLLTOOL_HAS_TEMP_PREFIX_TRUE='#'
6371 DLLTOOL_HAS_TEMP_PREFIX_FALSE=
6372 fi
6373
6374
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build a w32api package for Cygwin" >&5
6376 printf %s "checking whether to build a w32api package for Cygwin... " >&6; }
6377 # Check whether --enable-w32api was given.
6378 if test ${enable_w32api+y}
6379 then :
6380 enableval=$enable_w32api;
6381 else case e in #(
6382 e) enable_w32api=no ;;
6383 esac
6384 fi
6385
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_w32api" >&5
6387 printf "%s\n" "$enable_w32api" >&6; }
6388 case $enable_w32api in #(
6389 no) :
6390 ;; #(
6391 yes) :
6392 W32API=
6393 includedir=${prefix}/include/w32api ;; #(
6394 *) :
6395 as_fn_error $? "invalid argument. Must be either yes or no." "$LINENO" 5 ;;
6396 esac
6397 if test ${W32API+y}; then
6398 W32API_TRUE=
6399 W32API_FALSE='#'
6400 else
6401 W32API_TRUE='#'
6402 W32API_FALSE=
6403 fi
6404
6405
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the Win32 libraries" >&5
6407 printf %s "checking whether to build the Win32 libraries... " >&6; }
6408 # Check whether --enable-lib32 was given.
6409 if test ${enable_lib32+y}
6410 then :
6411 enableval=$enable_lib32;
6412 else case e in #(
6413 e)
6414 _save_CFLAGS="$CFLAGS"
6415 CFLAGS="$CFLAGS -m32"
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6418 const char test[(sizeof(void*)==4)?0:-1];
6419 int
6420 main (void)
6421 {
6422
6423 ;
6424 return 0;
6425 }
6426 _ACEOF
6427 if ac_fn_c_try_compile "$LINENO"
6428 then :
6429 enable_lib32=yes
6430 else case e in #(
6431 e) enable_lib32=no ;;
6432 esac
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6435 CFLAGS="$_save_CFLAGS" ;;
6436 esac
6437 fi
6438
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lib32" >&5
6440 printf "%s\n" "$enable_lib32" >&6; }
6441 case $enable_lib32 in #(
6442 no) :
6443 ;; #(
6444 yes) :
6445 LIB32= ;; #(
6446 *) :
6447 as_fn_error $? "invalid argument. Must be either yes or no." "$LINENO" 5 ;;
6448 esac
6449 if test ${LIB32+y}; then
6450 LIB32_TRUE=
6451 LIB32_FALSE='#'
6452 else
6453 LIB32_TRUE='#'
6454 LIB32_FALSE=
6455 fi
6456
6457
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the Win64 libraries" >&5
6459 printf %s "checking whether to build the Win64 libraries... " >&6; }
6460 # Check whether --enable-lib64 was given.
6461 if test ${enable_lib64+y}
6462 then :
6463 enableval=$enable_lib64;
6464 else case e in #(
6465 e)
6466 _save_CFLAGS="$CFLAGS"
6467 CFLAGS="$CFLAGS -m64"
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6470 const char test[(sizeof(void*)==8)?0:-1];
6471 int
6472 main (void)
6473 {
6474
6475 ;
6476 return 0;
6477 }
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"
6480 then :
6481 enable_lib64=yes
6482 else case e in #(
6483 e) enable_lib64=no ;;
6484 esac
6485 fi
6486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6487 CFLAGS="$_save_CFLAGS" ;;
6488 esac
6489 fi
6490
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lib64" >&5
6492 printf "%s\n" "$enable_lib64" >&6; }
6493 case $enable_lib64 in #(
6494 no) :
6495 ;; #(
6496 yes) :
6497 LIB64= ;; #(
6498 *) :
6499 as_fn_error $? "invalid argument. Must be either yes or no." "$LINENO" 5 ;;
6500 esac
6501 if test ${LIB64+y}; then
6502 LIB64_TRUE=
6503 LIB64_FALSE='#'
6504 else
6505 LIB64_TRUE='#'
6506 LIB64_FALSE=
6507 fi
6508
6509
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the WinARM32 libraries" >&5
6511 printf %s "checking whether to build the WinARM32 libraries... " >&6; }
6512 # Check whether --enable-libarm32 was given.
6513 if test ${enable_libarm32+y}
6514 then :
6515 enableval=$enable_libarm32;
6516 else case e in #(
6517 e) case $host_cpu in #(
6518 armv7*) :
6519 enable_libarm32=yes ;; #(
6520 *) :
6521 enable_libarm32=no ;; #(
6522 *) :
6523 ;;
6524 esac
6525 ;;
6526 esac
6527 fi
6528
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libarm32" >&5
6530 printf "%s\n" "$enable_libarm32" >&6; }
6531 case $enable_libarm32 in #(
6532 no) :
6533 ;; #(
6534 yes) :
6535 LIBARM32= ;; #(
6536 *) :
6537 as_fn_error $? "invalid argument. Must be either yes or no." "$LINENO" 5 ;;
6538 esac
6539 if test ${LIBARM32+y}; then
6540 LIBARM32_TRUE=
6541 LIBARM32_FALSE='#'
6542 else
6543 LIBARM32_TRUE='#'
6544 LIBARM32_FALSE=
6545 fi
6546
6547
6548 if test "x$enable_libarm32" = xyes
6549 then :
6550
6551 if test ${LIB32+y} || test ${LIB64+y}
6552 then :
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building the runtime to use libarm32 with lib32 or lib64 is unsupported." >&5
6554 printf "%s\n" "$as_me: WARNING: Building the runtime to use libarm32 with lib32 or lib64 is unsupported." >&2;}
6555 fi
6556 fi
6557
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the WinARM64 libraries" >&5
6559 printf %s "checking whether to build the WinARM64 libraries... " >&6; }
6560 # Check whether --enable-libarm64 was given.
6561 if test ${enable_libarm64+y}
6562 then :
6563 enableval=$enable_libarm64;
6564 else case e in #(
6565 e) case $host_cpu in #(
6566 aarch64* | arm64*) :
6567 enable_libarm64=yes ;; #(
6568 *) :
6569 enable_libarm64=no ;; #(
6570 *) :
6571 ;;
6572 esac
6573 ;;
6574 esac
6575 fi
6576
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libarm64" >&5
6578 printf "%s\n" "$enable_libarm64" >&6; }
6579 case $enable_libarm64 in #(
6580 no) :
6581 ;; #(
6582 yes) :
6583 LIBARM64= ;; #(
6584 *) :
6585 as_fn_error $? "invalid argument. Must be either yes or no." "$LINENO" 5 ;;
6586 esac
6587 if test ${LIBARM64+y}; then
6588 LIBARM64_TRUE=
6589 LIBARM64_FALSE='#'
6590 else
6591 LIBARM64_TRUE='#'
6592 LIBARM64_FALSE=
6593 fi
6594
6595
6596 if test "x$enable_libarm64" = xyes
6597 then :
6598
6599 if test ${LIB32+y} || test ${LIB64+y} || test ${LIBARM32+y}
6600 then :
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building the runtime to use libarm64 with lib32, lib64 or libarm32 is unsupported." >&5
6602 printf "%s\n" "$as_me: WARNING: Building the runtime to use libarm64 with lib32, lib64 or libarm32 is unsupported." >&2;}
6603 fi
6604 fi
6605
6606 case $host_cpu in #(
6607 x86_64) :
6608
6609 libx8664suffx=lib
6610 libx8632suffx=lib32
6611 libarm64suffx=libarm64
6612 libarm32suffx=libarm32 ;; #(
6613 i*86) :
6614
6615 libx8664suffx=lib64
6616 libx8632suffx=lib
6617 libarm64suffx=libarm64
6618 libarm32suffx=libarm32 ;; #(
6619 aarch64* | arm64*) :
6620
6621 libx8664suffx=libx8664
6622 libx8632suffx=libx8632
6623 libarm64suffx=lib
6624 libarm32suffx=lib32 ;; #(
6625 armv7*) :
6626
6627 libx8664suffx=libx8664
6628 libx8632suffx=libx8632
6629 libarm64suffx=lib64
6630 libarm32suffx=lib ;; #(
6631 *) :
6632
6633 libx8664suffx=libx8664
6634 libx8632suffx=libx8632
6635 libarm64suffx=libarm64
6636 libarm32suffx=libarm32
6637 ;;
6638 esac
6639
6640 if test "x$enable_w32api" = xyes
6641 then :
6642
6643 libx8664suffx=$libx8664suffx/w32api
6644 libx8632suffx=$libx8632suffx/w32api
6645 libarm64suffx=$libarm64suffx/w32api
6646 libarm32suffx=$libarm32suffx/w32api
6647
6648 fi
6649
6650 LIBX8664SUFFIXDIR=$libx8664suffx
6651
6652 LIBX8632SUFFIXDIR=$libx8632suffx
6653
6654 LIBARM64SUFFIXDIR=$libarm64suffx
6655
6656 LIBARM32SUFFIXDIR=$libarm32suffx
6657
6658
6659 if test $host_cpu = arm64ec; then
6660 ARM64EC_TRUE=
6661 ARM64EC_FALSE='#'
6662 else
6663 ARM64EC_TRUE='#'
6664 ARM64EC_FALSE=
6665 fi
6666
6667
6668 # Checks for features.
6669
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable globbing" >&5
6671 printf %s "checking whether to enable globbing... " >&6; }
6672 # Check whether --enable-wildcard was given.
6673 if test ${enable_wildcard+y}
6674 then :
6675 enableval=$enable_wildcard;
6676 else case e in #(
6677 e) enable_wildcard=no ;;
6678 esac
6679 fi
6680
6681 case $enable_wildcard in #(
6682 yes) :
6683 enable_wildcard_value=-1 ;; #(
6684 no) :
6685 enable_wildcard_value=0 ;; #(
6686 *) :
6687 as_fn_error $? "Please only use --enable-wildcard or --disable-wildcard, without any additional arguments." "$LINENO" 5 ;;
6688 esac
6689
6690 printf "%s\n" "#define __ENABLE_GLOBBING $enable_wildcard_value" >>confdefs.h
6691
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wildcard" >&5
6693 printf "%s\n" "$enable_wildcard" >&6; }
6694
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable private exports" >&5
6696 printf %s "checking whether to enable private exports... " >&6; }
6697 # Check whether --enable-private-exports was given.
6698 if test ${enable_private_exports+y}
6699 then :
6700 enableval=$enable_private_exports;
6701 else case e in #(
6702 e) enable_private_exports=no ;;
6703 esac
6704 fi
6705
6706 case $enable_private_exports in #(
6707 yes) :
6708 ;; #(
6709 no) :
6710 ;; #(
6711 *) :
6712 as_fn_error $? "Please only use --enable-private-exports or --disable-private-exports, without any additional arguments." "$LINENO" 5 ;;
6713 esac
6714 if test $enable_private_exports = yes; then
6715 PRIVATE_EXPORTS_TRUE=
6716 PRIVATE_EXPORTS_FALSE='#'
6717 else
6718 PRIVATE_EXPORTS_TRUE='#'
6719 PRIVATE_EXPORTS_FALSE=
6720 fi
6721
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_private_exports" >&5
6723 printf "%s\n" "$enable_private_exports" >&6; }
6724
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable delay import libs" >&5
6726 printf %s "checking whether to enable delay import libs... " >&6; }
6727 # Check whether --enable-delay-import-libs was given.
6728 if test ${enable_delay_import_libs+y}
6729 then :
6730 enableval=$enable_delay_import_libs;
6731 else case e in #(
6732 e) enable_delay_import_libs=no ;;
6733 esac
6734 fi
6735
6736 case $enable_delay_import_libs in #(
6737 yes) :
6738 ;; #(
6739 no) :
6740 ;; #(
6741 *) :
6742 as_fn_error $? "Please only use --enable-delay-import-libs or --disable-delay-import-libs, without any additional arguments." "$LINENO" 5 ;;
6743 esac
6744 if test $enable_delay_import_libs = yes; then
6745 DELAY_IMPORT_LIBS_TRUE=
6746 DELAY_IMPORT_LIBS_FALSE='#'
6747 else
6748 DELAY_IMPORT_LIBS_TRUE='#'
6749 DELAY_IMPORT_LIBS_FALSE=
6750 fi
6751
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_delay_import_libs" >&5
6753 printf "%s\n" "$enable_delay_import_libs" >&6; }
6754
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what to provide as libmsvcrt.a" >&5
6756 printf %s "checking what to provide as libmsvcrt.a... " >&6; }
6757
6758 # Check whether --with-default-msvcrt was given.
6759 if test ${with_default_msvcrt+y}
6760 then :
6761 withval=$with_default_msvcrt;
6762 else case e in #(
6763 e) with_default_msvcrt=ucrt ;;
6764 esac
6765 fi
6766
6767 if test "$with_default_msvcrt" = "msvcrt"; then
6768 with_default_msvcrt=msvcrt-os
6769 fi
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_default_msvcrt" >&5
6771 printf "%s\n" "$with_default_msvcrt" >&6; }
6772 MSVCRT_LIB=lib${with_default_msvcrt}.a
6773
6774
6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include support for Control Flow Guard" >&5
6776 printf %s "checking whether to include support for Control Flow Guard... " >&6; }
6777 # Check whether --enable-cfguard was given.
6778 if test ${enable_cfguard+y}
6779 then :
6780 enableval=$enable_cfguard;
6781 else case e in #(
6782 e) enable_cfguard=no ;;
6783 esac
6784 fi
6785
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cfguard" >&5
6787 printf "%s\n" "$enable_cfguard" >&6; }
6788 case $enable_cfguard in #(
6789 no) :
6790 ;; #(
6791 yes) :
6792 CFGUARD_CFLAGS="-mguard=cf -DHAS_CFGUARD" ;; #(
6793 *) :
6794 as_fn_error $? "invalid argument. Must be either yes or no." "$LINENO" 5 ;;
6795 esac
6796
6797
6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable experimental features" >&5
6799 printf %s "checking whether to enable experimental features... " >&6; }
6800 # Check whether --enable-experimental was given.
6801 if test ${enable_experimental+y}
6802 then :
6803 enableval=$enable_experimental; experimental_features=$enable_experimental
6804 else case e in #(
6805 e) experimental_features="no" ;;
6806 esac
6807 fi
6808
6809
6810 enable_dfp=no
6811 enable_printf128=no
6812 enable_registeredprintf=no
6813 experiment_list=$($AWK 'BEGIN{OFS=" "; len = split(ARGV[1],str,","); for(; len != 0; len--) print str[len] }' "$experimental_features")
6814
6815 for arg in $experiment_list
6816 do
6817 case $arg in #(
6818 dfp) :
6819 enable_dfp=yes ;; #(
6820 printf128) :
6821 enable_printf128=yes ;; #(
6822 registeredprintf) :
6823 enable_registeredprintf=yes ;; #(
6824 all) :
6825 enable_dfp=yes; enable_printf128=yes; enable_registeredprintf=yes; ;; #(
6826 yes) :
6827 enable_dfp=yes; enable_printf128=yes; enable_registeredprintf=yes; ;; #(
6828 no) :
6829 enable_dfp=no; enable_printf128=no; enable_registeredprintf=no; ;; #(
6830 *) :
6831 as_fn_error $? "Unknown option \"$arg\"" "$LINENO" 5
6832 ;;
6833 esac
6834 done
6835
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $experimental_features" >&5
6837 printf "%s\n" "$experimental_features" >&6; }
6838 if test "$enable_dfp" = "yes" ; then
6839 ENABLE_DFP_TRUE=
6840 ENABLE_DFP_FALSE='#'
6841 else
6842 ENABLE_DFP_TRUE='#'
6843 ENABLE_DFP_FALSE=
6844 fi
6845
6846 if test "$enable_printf128" = "yes" ; then
6847 ENABLE_PRINTF128_TRUE=
6848 ENABLE_PRINTF128_FALSE='#'
6849 else
6850 ENABLE_PRINTF128_TRUE='#'
6851 ENABLE_PRINTF128_FALSE=
6852 fi
6853
6854 if test "$enable_registeredprintf" = "yes" ; then
6855 ENABLE_REGISTEREDPRINTF_TRUE=
6856 ENABLE_REGISTEREDPRINTF_FALSE='#'
6857 else
6858 ENABLE_REGISTEREDPRINTF_TRUE='#'
6859 ENABLE_REGISTEREDPRINTF_FALSE=
6860 fi
6861
6862 if test -z "$ENABLE_DFP_TRUE"; then :
6863
6864 printf "%s\n" "#define __ENABLE_DFP 1" >>confdefs.h
6865
6866 fi
6867 if test -z "$ENABLE_PRINTF128_TRUE"; then :
6868
6869 printf "%s\n" "#define __ENABLE_PRINTF128 1" >>confdefs.h
6870
6871 fi
6872 if test -z "$ENABLE_REGISTEREDPRINTF_TRUE"; then :
6873
6874 printf "%s\n" "#define __ENABLE_REGISTEREDPRINTF 1" >>confdefs.h
6875
6876 fi
6877
6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -municode" >&5
6879 printf %s "checking whether the compiler supports -municode... " >&6; }
6880 # Check whether --enable-tests-unicode was given.
6881 if test ${enable_tests_unicode+y}
6882 then :
6883 enableval=$enable_tests_unicode;
6884 else case e in #(
6885 e)
6886 saved_CFLAGS="$CFLAGS"
6887 CFLAGS="$CFLAGS -municode"
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890
6891 #ifndef UNICODE
6892 # error UNICODE not defined with -municode
6893 #endif
6894
6895 _ACEOF
6896 if ac_fn_c_try_compile "$LINENO"
6897 then :
6898 enable_tests_unicode=yes
6899 else case e in #(
6900 e) enable_tests_unicode=no ;;
6901 esac
6902 fi
6903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6904 CFLAGS="$saved_CFLAGS" ;;
6905 esac
6906 fi
6907
6908 if test x$enable_tests_unicode = xyes; then
6909 ENABLE_TESTS_UNICODE_TRUE=
6910 ENABLE_TESTS_UNICODE_FALSE='#'
6911 else
6912 ENABLE_TESTS_UNICODE_TRUE='#'
6913 ENABLE_TESTS_UNICODE_FALSE=
6914 fi
6915
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_tests_unicode" >&5
6917 printf "%s\n" "$enable_tests_unicode" >&6; }
6918
6919 # Checks for libraries.
6920
6921 # Checks for header files.
6922 #AC_HEADER_DIRENT
6923 #AC_HEADER_STDC
6924 #AC_CHECK_HEADERS([fcntl.h fenv.h float.h inttypes.h limits.h locale.h malloc.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/time.h sys/timeb.h termios.h unistd.h wchar.h wctype.h])
6925
6926 # Checks for typedefs, structures, and compiler characteristics.
6927 #AC_C_INLINE
6928 #AC_HEADER_TIME
6929 #AC_C_VOLATILE
6930 #AC_CHECK_TYPES([ptrdiff_t])
6931
6932 # Checks for library functions.
6933 #AC_FUNC_MALLOC
6934 #AC_FUNC_MBRTOWC
6935 #AC_FUNC_REALLOC
6936 #AC_FUNC_STRTOD
6937 #AC_FUNC_VPRINTF
6938 #AC_CHECK_FUNCS([alarm atexit btowc fesetround floor ftruncate gettimeofday isascii localeconv mbrlen memmove memset pow rint setlocale sqrt strcasecmp strchr strncasecmp strtoull strtoumax])
6939
6940 # Check for __ImageBase linker symbol.
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker provides __ImageBase symbol" >&5
6942 printf %s "checking whether the linker provides __ImageBase symbol... " >&6; }
6943 # Run this test manually instead of wrapping it in AC_LINK_IFELSE; when
6944 # bootstrapping an environment, an earlier linking test will have failed,
6945 # which both causes autoconf to refuse to run any linker test at all,
6946 # and even if $ac_no_link is overridden, the linker test iteslf will explicitly
6947 # check that the linker actually produced output in the given output file.
6948 # If $ac_exeext is empty, as it is when the earlier linker test failed, gcc
6949 # will behave differently depending on version. If run with "gcc conftest.c
6950 # -o conftest", old versions will produce explicitly a file named "conftest",
6951 # while modern GCC versions will produce "conftest.exe". AC_LINK_IFELSE will
6952 # explicitly look for the output file named "conftest$ac_exeext", which isn't
6953 # found, and the test fails even though linking succeeded.
6954 #
6955 # Therefore, just do a manual test; run the linking command and check the return
6956 # code whether it was successful or not.
6957 #
6958 # This test uses both mainCRTStartup and main functions, to let lld deduce
6959 # entry point and subsystem automatically without having to manually specify,
6960 # anything. And as long as main() is provided, we need to implicitly provide
6961 # __main as well, since the compiler injects a call to it.
6962
6963 cat <<_ACEOF >conftest.$ac_ext
6964 extern unsigned char __ImageBase[];
6965
6966 // Define a dummy call helper to satisfy the linker on ARM64EC
6967 void *__os_arm64x_dispatch_ret = 0;
6968
6969 void __main(void) {
6970 }
6971 int main(void) {
6972 return __ImageBase[0];
6973 }
6974 int mainCRTStartup(void) {
6975 return main();
6976 }
6977 _ACEOF
6978
6979 echo "$as_me:$LINENO: $CC conftest.$ac_ext $LDFLAGS -nostdlib -o conftest$ac_exeext" >&5
6980 # Doing the link test with -nosdlib, to avoid trying to link in any libraries
6981 # which might not exist yet at this point.
6982 if $CC conftest.$ac_ext $LDFLAGS -nostdlib -o conftest$ac_exeext >&5 2>&1; then
6983 ld_provides_imagebase=yes
6984 else
6985 ld_provides_imagebase=no
6986 fi
6987 rm -f conftest$ac_exeext conftest.$ac_ext
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_provides_imagebase" >&5
6989 printf "%s\n" "$ld_provides_imagebase" >&6; }
6990 case $ld_provides_imagebase in #(
6991 no) :
6992 IMAGEBASE_CFLAGS="-D__ImageBase=__MINGW_LSYMBOL\(_image_base__\)" ;; #(
6993 *) :
6994 IMAGEBASE_CFLAGS= ;;
6995 esac
6996
6997
6998 ac_header= ac_cache=
6999 for ac_item in $ac_header_c_list
7000 do
7001 if test $ac_cache; then
7002 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7003 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7004 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7005 fi
7006 ac_header= ac_cache=
7007 elif test $ac_header; then
7008 ac_cache=$ac_item
7009 else
7010 ac_header=$ac_item
7011 fi
7012 done
7013
7014
7015
7016
7017
7018
7019
7020
7021 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7022 then :
7023
7024 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7025
7026 fi
7027 ac_fn_c_check_header_compile "$LINENO" "_mingw_mac.h" "ac_cv_header__mingw_mac_h" "$ac_includes_default"
7028 if test "x$ac_cv_header__mingw_mac_h" = xyes
7029 then :
7030
7031 else case e in #(
7032 e) as_fn_error $? "Please check if the mingw-w64 header set and the build/host option are set properly." "$LINENO" 5 ;;
7033 esac
7034 fi
7035
7036
7037 #Warnings and errors, default level is 3
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for warning levels" >&5
7039 printf %s "checking for warning levels... " >&6; }
7040 # Check whether --enable-warnings was given.
7041 if test ${enable_warnings+y}
7042 then :
7043 enableval=$enable_warnings; case $enableval in #(
7044 yes) :
7045 warning_level=3 ;; #(
7046 no) :
7047 warning_level=0 ;; #(
7048 [0-5]) :
7049 warning_level="$enableval" ;; #(
7050 *) :
7051 warning_level=3 ;;
7052 esac
7053 else case e in #(
7054 e) warning_level=3 ;;
7055 esac
7056 fi
7057
7058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Level $warning_level" >&5
7059 printf "%s\n" "Level $warning_level" >&6; }
7060
7061 #Add warning flags as appropriate. Level 4 and above are only for testing purpose.
7062 case $warning_level in #(
7063 0) :
7064 ADD_C_CXX_WARNING_FLAGS="-Wall" ;; #(
7065 1) :
7066
7067 ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra"
7068 ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration" ;; #(
7069 2) :
7070
7071 ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow"
7072 ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration" ;; #(
7073 3) :
7074
7075 ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow"
7076 ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes" ;; #(
7077 4) :
7078
7079 ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing=2 -Wsystem-headers -Wshadow -Wmissing-declarations -Werror -pedantic"
7080 ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes" ;; #(
7081 5) :
7082
7083 ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing=2 -Wsystem-headers -Wshadow -Wmissing-declarations -Wredundant-decls -Werror -Wfatal-errors -pedantic -pedantic-errors"
7084 ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes"
7085 ;; #(
7086 *) :
7087 ;;
7088 esac
7089
7090 saved_CFLAGS="$CFLAGS"
7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpragma-pack" >&5
7092 printf %s "checking whether the compiler supports -Wpragma-pack... " >&6; }
7093 CFLAGS="$CFLAGS -Wpragma-pack"
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096
7097 _ACEOF
7098 if ac_fn_c_try_compile "$LINENO"
7099 then :
7100 supports_wpragma_pack=yes
7101 else case e in #(
7102 e) supports_wpragma_pack=no ;;
7103 esac
7104 fi
7105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_wpragma_pack" >&5
7107 printf "%s\n" "$supports_wpragma_pack" >&6; }
7108 if test "$supports_wpragma_pack" = "yes"; then
7109 ADD_C_CXX_WARNING_FLAGS="$ADD_C_CXX_WARNING_FLAGS -Wno-pragma-pack"
7110 fi
7111 CFLAGS="$saved_CFLAGS"
7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Warray-bounds" >&5
7113 printf %s "checking whether the compiler supports -Warray-bounds... " >&6; }
7114 CFLAGS="$CFLAGS -Warray-bounds"
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117
7118 _ACEOF
7119 if ac_fn_c_try_compile "$LINENO"
7120 then :
7121 supports_warray_bounds=yes
7122 else case e in #(
7123 e) supports_warray_bounds=no ;;
7124 esac
7125 fi
7126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_warray_bounds" >&5
7128 printf "%s\n" "$supports_warray_bounds" >&6; }
7129 if test "$supports_warray_bounds" = "yes"; then
7130 ADD_C_CXX_WARNING_FLAGS="$ADD_C_CXX_WARNING_FLAGS -Wno-array-bounds"
7131 fi
7132 CFLAGS="$saved_CFLAGS"
7133
7134
7135
7136
7137
7138 ac_config_files="$ac_config_files Makefile testcases/Makefile"
7139
7140 cat >confcache <<\_ACEOF
7141 # This file is a shell script that caches the results of configure
7142 # tests run on this system so they can be shared between configure
7143 # scripts and configure runs, see configure's option --config-cache.
7144 # It is not useful on other systems. If it contains results you don't
7145 # want to keep, you may remove or edit it.
7146 #
7147 # config.status only pays attention to the cache file if you give it
7148 # the --recheck option to rerun configure.
7149 #
7150 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
7151 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
7152 # following values.
7153
7154 _ACEOF
7155
7156 # The following way of writing the cache mishandles newlines in values,
7157 # but we know of no workaround that is simple, portable, and efficient.
7158 # So, we kill variables containing newlines.
7159 # Ultrix sh set writes to stderr and can't be redirected directly,
7160 # and sets the high bit in the cache file unless we assign to the vars.
7161 (
7162 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7163 eval ac_val=\$$ac_var
7164 case $ac_val in #(
7165 *${as_nl}*)
7166 case $ac_var in #(
7167 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7168 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7169 esac
7170 case $ac_var in #(
7171 _ | IFS | as_nl) ;; #(
7172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7173 *) { eval $ac_var=; unset $ac_var;} ;;
7174 esac ;;
7175 esac
7176 done
7177
7178 (set) 2>&1 |
7179 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7180 *${as_nl}ac_space=\ *)
7181 # 'set' does not quote correctly, so add quotes: double-quote
7182 # substitution turns \\\\ into \\, and sed turns \\ into \.
7183 sed -n \
7184 "s/'/'\\\\''/g;
7185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7186 ;; #(
7187 *)
7188 # 'set' quotes correctly as required by POSIX, so do not add quotes.
7189 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7190 ;;
7191 esac |
7192 sort
7193 ) |
7194 sed '
7195 /^ac_cv_env_/b end
7196 t clear
7197 :clear
7198 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7199 t end
7200 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7201 :end' >>confcache
7202 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7203 if test -w "$cache_file"; then
7204 if test "x$cache_file" != "x/dev/null"; then
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7206 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7207 if test ! -f "$cache_file" || test -h "$cache_file"; then
7208 cat confcache >"$cache_file"
7209 else
7210 case $cache_file in #(
7211 */* | ?:*)
7212 mv -f confcache "$cache_file"$$ &&
7213 mv -f "$cache_file"$$ "$cache_file" ;; #(
7214 *)
7215 mv -f confcache "$cache_file" ;;
7216 esac
7217 fi
7218 fi
7219 else
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7221 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7222 fi
7223 fi
7224 rm -f confcache
7225
7226 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7227 # Let make expand exec_prefix.
7228 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7229
7230 DEFS=-DHAVE_CONFIG_H
7231
7232 ac_libobjs=
7233 ac_ltlibobjs=
7234 U=
7235 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7236 # 1. Remove the extension, and $U if already installed.
7237 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7238 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7239 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7240 # will be set to the directory where LIBOBJS objects are built.
7241 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7242 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7243 done
7244 LIBOBJS=$ac_libobjs
7245
7246 LTLIBOBJS=$ac_ltlibobjs
7247
7248
7249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7250 printf %s "checking that generated files are newer than configure... " >&6; }
7251 if test -n "$am_sleep_pid"; then
7252 # Hide warnings about reused PIDs.
7253 wait $am_sleep_pid 2>/dev/null
7254 fi
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
7256 printf "%s\n" "done" >&6; }
7257 if test -n "$EXEEXT"; then
7258 am__EXEEXT_TRUE=
7259 am__EXEEXT_FALSE='#'
7260 else
7261 am__EXEEXT_TRUE='#'
7262 am__EXEEXT_FALSE=
7263 fi
7264
7265 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7266 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7268 fi
7269 if test -z "${WITHSYSROOT_TRUE}" && test -z "${WITHSYSROOT_FALSE}"; then
7270 as_fn_error $? "conditional \"WITHSYSROOT\" was never defined.
7271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7272 fi
7273 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7274 as_fn_error $? "conditional \"AMDEP\" was never defined.
7275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7276 fi
7277 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7278 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7280 fi
7281 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7282 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7284 fi
7285 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
7286 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
7287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7288 fi
7289 if test -z "${DLLTOOL_HAS_TEMP_PREFIX_TRUE}" && test -z "${DLLTOOL_HAS_TEMP_PREFIX_FALSE}"; then
7290 as_fn_error $? "conditional \"DLLTOOL_HAS_TEMP_PREFIX\" was never defined.
7291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7292 fi
7293 if test -z "${W32API_TRUE}" && test -z "${W32API_FALSE}"; then
7294 as_fn_error $? "conditional \"W32API\" was never defined.
7295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7296 fi
7297 if test -z "${LIB32_TRUE}" && test -z "${LIB32_FALSE}"; then
7298 as_fn_error $? "conditional \"LIB32\" was never defined.
7299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7300 fi
7301 if test -z "${LIB64_TRUE}" && test -z "${LIB64_FALSE}"; then
7302 as_fn_error $? "conditional \"LIB64\" was never defined.
7303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7304 fi
7305 if test -z "${LIBARM32_TRUE}" && test -z "${LIBARM32_FALSE}"; then
7306 as_fn_error $? "conditional \"LIBARM32\" was never defined.
7307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7308 fi
7309 if test -z "${LIBARM64_TRUE}" && test -z "${LIBARM64_FALSE}"; then
7310 as_fn_error $? "conditional \"LIBARM64\" was never defined.
7311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7312 fi
7313 if test -z "${ARM64EC_TRUE}" && test -z "${ARM64EC_FALSE}"; then
7314 as_fn_error $? "conditional \"ARM64EC\" was never defined.
7315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7316 fi
7317 if test -z "${PRIVATE_EXPORTS_TRUE}" && test -z "${PRIVATE_EXPORTS_FALSE}"; then
7318 as_fn_error $? "conditional \"PRIVATE_EXPORTS\" was never defined.
7319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7320 fi
7321 if test -z "${DELAY_IMPORT_LIBS_TRUE}" && test -z "${DELAY_IMPORT_LIBS_FALSE}"; then
7322 as_fn_error $? "conditional \"DELAY_IMPORT_LIBS\" was never defined.
7323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7324 fi
7325 if test -z "${ENABLE_DFP_TRUE}" && test -z "${ENABLE_DFP_FALSE}"; then
7326 as_fn_error $? "conditional \"ENABLE_DFP\" was never defined.
7327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7328 fi
7329 if test -z "${ENABLE_PRINTF128_TRUE}" && test -z "${ENABLE_PRINTF128_FALSE}"; then
7330 as_fn_error $? "conditional \"ENABLE_PRINTF128\" was never defined.
7331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7332 fi
7333 if test -z "${ENABLE_REGISTEREDPRINTF_TRUE}" && test -z "${ENABLE_REGISTEREDPRINTF_FALSE}"; then
7334 as_fn_error $? "conditional \"ENABLE_REGISTEREDPRINTF\" was never defined.
7335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7336 fi
7337 if test -z "${ENABLE_TESTS_UNICODE_TRUE}" && test -z "${ENABLE_TESTS_UNICODE_FALSE}"; then
7338 as_fn_error $? "conditional \"ENABLE_TESTS_UNICODE\" was never defined.
7339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7340 fi
7341
7342 : "${CONFIG_STATUS=./config.status}"
7343 ac_write_fail=0
7344 ac_clean_files_save=$ac_clean_files
7345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7347 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7348 as_write_fail=0
7349 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7350 #! $SHELL
7351 # Generated by $as_me.
7352 # Run this file to recreate the current configuration.
7353 # Compiler output produced by configure, useful for debugging
7354 # configure, is in config.log if it exists.
7355
7356 debug=false
7357 ac_cs_recheck=false
7358 ac_cs_silent=false
7359
7360 SHELL=\${CONFIG_SHELL-$SHELL}
7361 export SHELL
7362 _ASEOF
7363 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7364 ## -------------------- ##
7365 ## M4sh Initialization. ##
7366 ## -------------------- ##
7367
7368 # Be more Bourne compatible
7369 DUALCASE=1; export DUALCASE # for MKS sh
7370 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
7371 then :
7372 emulate sh
7373 NULLCMD=:
7374 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7375 # is contrary to our usage. Disable this feature.
7376 alias -g '${1+"$@"}'='"$@"'
7377 setopt NO_GLOB_SUBST
7378 else case e in #(
7379 e) case `(set -o) 2>/dev/null` in #(
7380 *posix*) :
7381 set -o posix ;; #(
7382 *) :
7383 ;;
7384 esac ;;
7385 esac
7386 fi
7387
7388
7389
7390 # Reset variables that may have inherited troublesome values from
7391 # the environment.
7392
7393 # IFS needs to be set, to space, tab, and newline, in precisely that order.
7394 # (If _AS_PATH_WALK were called with IFS unset, it would have the
7395 # side effect of setting IFS to empty, thus disabling word splitting.)
7396 # Quoting is to prevent editors from complaining about space-tab.
7397 as_nl='
7398 '
7399 export as_nl
7400 IFS=" "" $as_nl"
7401
7402 PS1='$ '
7403 PS2='> '
7404 PS4='+ '
7405
7406 # Ensure predictable behavior from utilities with locale-dependent output.
7407 LC_ALL=C
7408 export LC_ALL
7409 LANGUAGE=C
7410 export LANGUAGE
7411
7412 # We cannot yet rely on "unset" to work, but we need these variables
7413 # to be unset--not just set to an empty or harmless value--now, to
7414 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7415 # also avoids known problems related to "unset" and subshell syntax
7416 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7417 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7418 do eval test \${$as_var+y} \
7419 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7420 done
7421
7422 # Ensure that fds 0, 1, and 2 are open.
7423 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7424 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7425 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7426
7427 # The user is always right.
7428 if ${PATH_SEPARATOR+false} :; then
7429 PATH_SEPARATOR=:
7430 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7431 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7432 PATH_SEPARATOR=';'
7433 }
7434 fi
7435
7436
7437 # Find who we are. Look in the path if we contain no directory separator.
7438 as_myself=
7439 case $0 in #((
7440 *[\\/]* ) as_myself=$0 ;;
7441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444 IFS=$as_save_IFS
7445 case $as_dir in #(((
7446 '') as_dir=./ ;;
7447 */) ;;
7448 *) as_dir=$as_dir/ ;;
7449 esac
7450 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7451 done
7452 IFS=$as_save_IFS
7453
7454 ;;
7455 esac
7456 # We did not find ourselves, most probably we were run as 'sh COMMAND'
7457 # in which case we are not to be found in the path.
7458 if test "x$as_myself" = x; then
7459 as_myself=$0
7460 fi
7461 if test ! -f "$as_myself"; then
7462 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7463 exit 1
7464 fi
7465
7466
7467
7468 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7469 # ----------------------------------------
7470 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7471 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7472 # script with STATUS, using 1 if that was 0.
7473 as_fn_error ()
7474 {
7475 as_status=$1; test $as_status -eq 0 && as_status=1
7476 if test "$4"; then
7477 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7479 fi
7480 printf "%s\n" "$as_me: error: $2" >&2
7481 as_fn_exit $as_status
7482 } # as_fn_error
7483
7484
7485 # as_fn_set_status STATUS
7486 # -----------------------
7487 # Set $? to STATUS, without forking.
7488 as_fn_set_status ()
7489 {
7490 return $1
7491 } # as_fn_set_status
7492
7493 # as_fn_exit STATUS
7494 # -----------------
7495 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7496 as_fn_exit ()
7497 {
7498 set +e
7499 as_fn_set_status $1
7500 exit $1
7501 } # as_fn_exit
7502
7503 # as_fn_unset VAR
7504 # ---------------
7505 # Portably unset VAR.
7506 as_fn_unset ()
7507 {
7508 { eval $1=; unset $1;}
7509 }
7510 as_unset=as_fn_unset
7511
7512 # as_fn_append VAR VALUE
7513 # ----------------------
7514 # Append the text in VALUE to the end of the definition contained in VAR. Take
7515 # advantage of any shell optimizations that allow amortized linear growth over
7516 # repeated appends, instead of the typical quadratic growth present in naive
7517 # implementations.
7518 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7519 then :
7520 eval 'as_fn_append ()
7521 {
7522 eval $1+=\$2
7523 }'
7524 else case e in #(
7525 e) as_fn_append ()
7526 {
7527 eval $1=\$$1\$2
7528 } ;;
7529 esac
7530 fi # as_fn_append
7531
7532 # as_fn_arith ARG...
7533 # ------------------
7534 # Perform arithmetic evaluation on the ARGs, and store the result in the
7535 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7536 # must be portable across $(()) and expr.
7537 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7538 then :
7539 eval 'as_fn_arith ()
7540 {
7541 as_val=$(( $* ))
7542 }'
7543 else case e in #(
7544 e) as_fn_arith ()
7545 {
7546 as_val=`expr "$@" || test $? -eq 1`
7547 } ;;
7548 esac
7549 fi # as_fn_arith
7550
7551
7552 if expr a : '\(a\)' >/dev/null 2>&1 &&
7553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7554 as_expr=expr
7555 else
7556 as_expr=false
7557 fi
7558
7559 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7560 as_basename=basename
7561 else
7562 as_basename=false
7563 fi
7564
7565 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7566 as_dirname=dirname
7567 else
7568 as_dirname=false
7569 fi
7570
7571 as_me=`$as_basename -- "$0" ||
7572 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7573 X"$0" : 'X\(//\)$' \| \
7574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7575 printf "%s\n" X/"$0" |
7576 sed '/^.*\/\([^/][^/]*\)\/*$/{
7577 s//\1/
7578 q
7579 }
7580 /^X\/\(\/\/\)$/{
7581 s//\1/
7582 q
7583 }
7584 /^X\/\(\/\).*/{
7585 s//\1/
7586 q
7587 }
7588 s/.*/./; q'`
7589
7590 # Avoid depending upon Character Ranges.
7591 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7592 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7593 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7594 as_cr_digits='0123456789'
7595 as_cr_alnum=$as_cr_Letters$as_cr_digits
7596
7597
7598 # Determine whether it's possible to make 'echo' print without a newline.
7599 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7600 # for compatibility with existing Makefiles.
7601 ECHO_C= ECHO_N= ECHO_T=
7602 case `echo -n x` in #(((((
7603 -n*)
7604 case `echo 'xy\c'` in
7605 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7606 xy) ECHO_C='\c';;
7607 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7608 ECHO_T=' ';;
7609 esac;;
7610 *)
7611 ECHO_N='-n';;
7612 esac
7613
7614 # For backward compatibility with old third-party macros, we provide
7615 # the shell variables $as_echo and $as_echo_n. New code should use
7616 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7617 as_echo='printf %s\n'
7618 as_echo_n='printf %s'
7619
7620 rm -f conf$$ conf$$.exe conf$$.file
7621 if test -d conf$$.dir; then
7622 rm -f conf$$.dir/conf$$.file
7623 else
7624 rm -f conf$$.dir
7625 mkdir conf$$.dir 2>/dev/null
7626 fi
7627 if (echo >conf$$.file) 2>/dev/null; then
7628 if ln -s conf$$.file conf$$ 2>/dev/null; then
7629 as_ln_s='ln -s'
7630 # ... but there are two gotchas:
7631 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
7632 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
7633 # In both cases, we have to default to 'cp -pR'.
7634 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7635 as_ln_s='cp -pR'
7636 elif ln conf$$.file conf$$ 2>/dev/null; then
7637 as_ln_s=ln
7638 else
7639 as_ln_s='cp -pR'
7640 fi
7641 else
7642 as_ln_s='cp -pR'
7643 fi
7644 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7645 rmdir conf$$.dir 2>/dev/null
7646
7647
7648 # as_fn_mkdir_p
7649 # -------------
7650 # Create "$as_dir" as a directory, including parents if necessary.
7651 as_fn_mkdir_p ()
7652 {
7653
7654 case $as_dir in #(
7655 -*) as_dir=./$as_dir;;
7656 esac
7657 test -d "$as_dir" || eval $as_mkdir_p || {
7658 as_dirs=
7659 while :; do
7660 case $as_dir in #(
7661 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7662 *) as_qdir=$as_dir;;
7663 esac
7664 as_dirs="'$as_qdir' $as_dirs"
7665 as_dir=`$as_dirname -- "$as_dir" ||
7666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7667 X"$as_dir" : 'X\(//\)[^/]' \| \
7668 X"$as_dir" : 'X\(//\)$' \| \
7669 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7670 printf "%s\n" X"$as_dir" |
7671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7672 s//\1/
7673 q
7674 }
7675 /^X\(\/\/\)[^/].*/{
7676 s//\1/
7677 q
7678 }
7679 /^X\(\/\/\)$/{
7680 s//\1/
7681 q
7682 }
7683 /^X\(\/\).*/{
7684 s//\1/
7685 q
7686 }
7687 s/.*/./; q'`
7688 test -d "$as_dir" && break
7689 done
7690 test -z "$as_dirs" || eval "mkdir $as_dirs"
7691 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7692
7693
7694 } # as_fn_mkdir_p
7695 if mkdir -p . 2>/dev/null; then
7696 as_mkdir_p='mkdir -p "$as_dir"'
7697 else
7698 test -d ./-p && rmdir ./-p
7699 as_mkdir_p=false
7700 fi
7701
7702
7703 # as_fn_executable_p FILE
7704 # -----------------------
7705 # Test if FILE is an executable regular file.
7706 as_fn_executable_p ()
7707 {
7708 test -f "$1" && test -x "$1"
7709 } # as_fn_executable_p
7710 as_test_x='test -x'
7711 as_executable_p=as_fn_executable_p
7712
7713 # Sed expression to map a string onto a valid CPP name.
7714 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7715 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
7716
7717 # Sed expression to map a string onto a valid variable name.
7718 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7719 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
7720
7721
7722 exec 6>&1
7723 ## ----------------------------------- ##
7724 ## Main body of $CONFIG_STATUS script. ##
7725 ## ----------------------------------- ##
7726 _ASEOF
7727 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7728
7729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7730 # Save the log message, to keep $0 and so on meaningful, and to
7731 # report actual input values of CONFIG_FILES etc. instead of their
7732 # values after options handling.
7733 ac_log="
7734 This file was extended by mingw-w64-runtime $as_me 4.0b, which was
7735 generated by GNU Autoconf 2.72. Invocation command line was
7736
7737 CONFIG_FILES = $CONFIG_FILES
7738 CONFIG_HEADERS = $CONFIG_HEADERS
7739 CONFIG_LINKS = $CONFIG_LINKS
7740 CONFIG_COMMANDS = $CONFIG_COMMANDS
7741 $ $0 $@
7742
7743 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7744 "
7745
7746 _ACEOF
7747
7748 case $ac_config_files in *"
7749 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7750 esac
7751
7752 case $ac_config_headers in *"
7753 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7754 esac
7755
7756
7757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7758 # Files that config.status was made for.
7759 config_files="$ac_config_files"
7760 config_headers="$ac_config_headers"
7761 config_commands="$ac_config_commands"
7762
7763 _ACEOF
7764
7765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7766 ac_cs_usage="\
7767 '$as_me' instantiates files and other configuration actions
7768 from templates according to the current configuration. Unless the files
7769 and actions are specified as TAGs, all are instantiated by default.
7770
7771 Usage: $0 [OPTION]... [TAG]...
7772
7773 -h, --help print this help, then exit
7774 -V, --version print version number and configuration settings, then exit
7775 --config print configuration, then exit
7776 -q, --quiet, --silent
7777 do not print progress messages
7778 -d, --debug don't remove temporary files
7779 --recheck update $as_me by reconfiguring in the same conditions
7780 --file=FILE[:TEMPLATE]
7781 instantiate the configuration file FILE
7782 --header=FILE[:TEMPLATE]
7783 instantiate the configuration header FILE
7784
7785 Configuration files:
7786 $config_files
7787
7788 Configuration headers:
7789 $config_headers
7790
7791 Configuration commands:
7792 $config_commands
7793
7794 Report bugs to <[email protected]>."
7795
7796 _ACEOF
7797 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7798 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7800 ac_cs_config='$ac_cs_config_escaped'
7801 ac_cs_version="\\
7802 mingw-w64-runtime config.status 4.0b
7803 configured by $0, generated by GNU Autoconf 2.72,
7804 with options \\"\$ac_cs_config\\"
7805
7806 Copyright (C) 2023 Free Software Foundation, Inc.
7807 This config.status script is free software; the Free Software Foundation
7808 gives unlimited permission to copy, distribute and modify it."
7809
7810 ac_pwd='$ac_pwd'
7811 srcdir='$srcdir'
7812 INSTALL='$INSTALL'
7813 MKDIR_P='$MKDIR_P'
7814 AWK='$AWK'
7815 test -n "\$AWK" || AWK=awk
7816 _ACEOF
7817
7818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7819 # The default lists apply if the user does not specify any file.
7820 ac_need_defaults=:
7821 while test $# != 0
7822 do
7823 case $1 in
7824 --*=?*)
7825 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7826 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7827 ac_shift=:
7828 ;;
7829 --*=)
7830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7831 ac_optarg=
7832 ac_shift=:
7833 ;;
7834 *)
7835 ac_option=$1
7836 ac_optarg=$2
7837 ac_shift=shift
7838 ;;
7839 esac
7840
7841 case $ac_option in
7842 # Handling of the options.
7843 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7844 ac_cs_recheck=: ;;
7845 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7846 printf "%s\n" "$ac_cs_version"; exit ;;
7847 --config | --confi | --conf | --con | --co | --c )
7848 printf "%s\n" "$ac_cs_config"; exit ;;
7849 --debug | --debu | --deb | --de | --d | -d )
7850 debug=: ;;
7851 --file | --fil | --fi | --f )
7852 $ac_shift
7853 case $ac_optarg in
7854 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7855 '') as_fn_error $? "missing file argument" ;;
7856 esac
7857 as_fn_append CONFIG_FILES " '$ac_optarg'"
7858 ac_need_defaults=false;;
7859 --header | --heade | --head | --hea )
7860 $ac_shift
7861 case $ac_optarg in
7862 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7863 esac
7864 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7865 ac_need_defaults=false;;
7866 --he | --h)
7867 # Conflict between --help and --header
7868 as_fn_error $? "ambiguous option: '$1'
7869 Try '$0 --help' for more information.";;
7870 --help | --hel | -h )
7871 printf "%s\n" "$ac_cs_usage"; exit ;;
7872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7873 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7874 ac_cs_silent=: ;;
7875
7876 # This is an error.
7877 -*) as_fn_error $? "unrecognized option: '$1'
7878 Try '$0 --help' for more information." ;;
7879
7880 *) as_fn_append ac_config_targets " $1"
7881 ac_need_defaults=false ;;
7882
7883 esac
7884 shift
7885 done
7886
7887 ac_configure_extra_args=
7888
7889 if $ac_cs_silent; then
7890 exec 6>/dev/null
7891 ac_configure_extra_args="$ac_configure_extra_args --silent"
7892 fi
7893
7894 _ACEOF
7895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7896 if \$ac_cs_recheck; then
7897 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7898 shift
7899 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7900 CONFIG_SHELL='$SHELL'
7901 export CONFIG_SHELL
7902 exec "\$@"
7903 fi
7904
7905 _ACEOF
7906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7907 exec 5>>config.log
7908 {
7909 echo
7910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7911 ## Running $as_me. ##
7912 _ASBOX
7913 printf "%s\n" "$ac_log"
7914 } >&5
7915
7916 _ACEOF
7917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7918 #
7919 # INIT-COMMANDS
7920 #
7921 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7922
7923 _ACEOF
7924
7925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7926
7927 # Handling of arguments.
7928 for ac_config_target in $ac_config_targets
7929 do
7930 case $ac_config_target in
7931 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7932 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7934 "testcases/Makefile") CONFIG_FILES="$CONFIG_FILES testcases/Makefile" ;;
7935
7936 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
7937 esac
7938 done
7939
7940
7941 # If the user did not use the arguments to specify the items to instantiate,
7942 # then the envvar interface is used. Set only those that are not.
7943 # We use the long form for the default assignment because of an extremely
7944 # bizarre bug on SunOS 4.1.3.
7945 if $ac_need_defaults; then
7946 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7947 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
7948 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
7949 fi
7950
7951 # Have a temporary directory for convenience. Make it in the build tree
7952 # simply because there is no reason against having it here, and in addition,
7953 # creating and moving files from /tmp can sometimes cause problems.
7954 # Hook for its removal unless debugging.
7955 # Note that there is a small window in which the directory will not be cleaned:
7956 # after its creation but before its name has been assigned to '$tmp'.
7957 $debug ||
7958 {
7959 tmp= ac_tmp=
7960 trap 'exit_status=$?
7961 : "${ac_tmp:=$tmp}"
7962 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7963 ' 0
7964 trap 'as_fn_exit 1' 1 2 13 15
7965 }
7966 # Create a (secure) tmp directory for tmp files.
7967
7968 {
7969 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7970 test -d "$tmp"
7971 } ||
7972 {
7973 tmp=./conf$$-$RANDOM
7974 (umask 077 && mkdir "$tmp")
7975 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7976 ac_tmp=$tmp
7977
7978 # Set up the scripts for CONFIG_FILES section.
7979 # No need to generate them if there are no CONFIG_FILES.
7980 # This happens for instance with './config.status config.h'.
7981 if test -n "$CONFIG_FILES"; then
7982
7983
7984 ac_cr=`echo X | tr X '\015'`
7985 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7986 # But we know of no other shell where ac_cr would be empty at this
7987 # point, so we can use a bashism as a fallback.
7988 if test "x$ac_cr" = x; then
7989 eval ac_cr=\$\'\\r\'
7990 fi
7991 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7992 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7993 ac_cs_awk_cr='\\r'
7994 else
7995 ac_cs_awk_cr=$ac_cr
7996 fi
7997
7998 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7999 _ACEOF
8000
8001
8002 {
8003 echo "cat >conf$$subs.awk <<_ACEOF" &&
8004 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8005 echo "_ACEOF"
8006 } >conf$$subs.sh ||
8007 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8008 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8009 ac_delim='%!_!# '
8010 for ac_last_try in false false false false false :; do
8011 . ./conf$$subs.sh ||
8012 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8013
8014 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8015 if test $ac_delim_n = $ac_delim_num; then
8016 break
8017 elif $ac_last_try; then
8018 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8019 else
8020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8021 fi
8022 done
8023 rm -f conf$$subs.sh
8024
8025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8026 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8027 _ACEOF
8028 sed -n '
8029 h
8030 s/^/S["/; s/!.*/"]=/
8031 p
8032 g
8033 s/^[^!]*!//
8034 :repl
8035 t repl
8036 s/'"$ac_delim"'$//
8037 t delim
8038 :nl
8039 h
8040 s/\(.\{148\}\)..*/\1/
8041 t more1
8042 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8043 p
8044 n
8045 b repl
8046 :more1
8047 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8048 p
8049 g
8050 s/.\{148\}//
8051 t nl
8052 :delim
8053 h
8054 s/\(.\{148\}\)..*/\1/
8055 t more2
8056 s/["\\]/\\&/g; s/^/"/; s/$/"/
8057 p
8058 b
8059 :more2
8060 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8061 p
8062 g
8063 s/.\{148\}//
8064 t delim
8065 ' <conf$$subs.awk | sed '
8066 /^[^""]/{
8067 N
8068 s/\n//
8069 }
8070 ' >>$CONFIG_STATUS || ac_write_fail=1
8071 rm -f conf$$subs.awk
8072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8073 _ACAWK
8074 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8075 for (key in S) S_is_set[key] = 1
8076 FS = ""
8077
8078 }
8079 {
8080 line = $ 0
8081 nfields = split(line, field, "@")
8082 substed = 0
8083 len = length(field[1])
8084 for (i = 2; i < nfields; i++) {
8085 key = field[i]
8086 keylen = length(key)
8087 if (S_is_set[key]) {
8088 value = S[key]
8089 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8090 len += length(value) + length(field[++i])
8091 substed = 1
8092 } else
8093 len += 1 + keylen
8094 }
8095
8096 print line
8097 }
8098
8099 _ACAWK
8100 _ACEOF
8101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8102 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8103 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8104 else
8105 cat
8106 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8107 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8108 _ACEOF
8109
8110 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8111 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8112 # trailing colons and then remove the whole line if VPATH becomes empty
8113 # (actually we leave an empty line to preserve line numbers).
8114 if test "x$srcdir" = x.; then
8115 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8116 h
8117 s///
8118 s/^/:/
8119 s/[ ]*$/:/
8120 s/:\$(srcdir):/:/g
8121 s/:\${srcdir}:/:/g
8122 s/:@srcdir@:/:/g
8123 s/^:*//
8124 s/:*$//
8125 x
8126 s/\(=[ ]*\).*/\1/
8127 G
8128 s/\n//
8129 s/^[^=]*=[ ]*$//
8130 }'
8131 fi
8132
8133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8134 fi # test -n "$CONFIG_FILES"
8135
8136 # Set up the scripts for CONFIG_HEADERS section.
8137 # No need to generate them if there are no CONFIG_HEADERS.
8138 # This happens for instance with './config.status Makefile'.
8139 if test -n "$CONFIG_HEADERS"; then
8140 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8141 BEGIN {
8142 _ACEOF
8143
8144 # Transform confdefs.h into an awk script 'defines.awk', embedded as
8145 # here-document in config.status, that substitutes the proper values into
8146 # config.h.in to produce config.h.
8147
8148 # Create a delimiter string that does not exist in confdefs.h, to ease
8149 # handling of long lines.
8150 ac_delim='%!_!# '
8151 for ac_last_try in false false :; do
8152 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8153 if test -z "$ac_tt"; then
8154 break
8155 elif $ac_last_try; then
8156 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8157 else
8158 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8159 fi
8160 done
8161
8162 # For the awk script, D is an array of macro values keyed by name,
8163 # likewise P contains macro parameters if any. Preserve backslash
8164 # newline sequences.
8165
8166 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8167 sed -n '
8168 s/.\{148\}/&'"$ac_delim"'/g
8169 t rset
8170 :rset
8171 s/^[ ]*#[ ]*define[ ][ ]*/ /
8172 t def
8173 d
8174 :def
8175 s/\\$//
8176 t bsnl
8177 s/["\\]/\\&/g
8178 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8179 D["\1"]=" \3"/p
8180 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8181 d
8182 :bsnl
8183 s/["\\]/\\&/g
8184 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8185 D["\1"]=" \3\\\\\\n"\\/p
8186 t cont
8187 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8188 t cont
8189 d
8190 :cont
8191 n
8192 s/.\{148\}/&'"$ac_delim"'/g
8193 t clear
8194 :clear
8195 s/\\$//
8196 t bsnlc
8197 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8198 d
8199 :bsnlc
8200 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8201 b cont
8202 ' <confdefs.h | sed '
8203 s/'"$ac_delim"'/"\\\
8204 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8205
8206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8207 for (key in D) D_is_set[key] = 1
8208 FS = ""
8209 }
8210 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8211 line = \$ 0
8212 split(line, arg, " ")
8213 if (arg[1] == "#") {
8214 defundef = arg[2]
8215 mac1 = arg[3]
8216 } else {
8217 defundef = substr(arg[1], 2)
8218 mac1 = arg[2]
8219 }
8220 split(mac1, mac2, "(") #)
8221 macro = mac2[1]
8222 prefix = substr(line, 1, index(line, defundef) - 1)
8223 if (D_is_set[macro]) {
8224 # Preserve the white space surrounding the "#".
8225 print prefix "define", macro P[macro] D[macro]
8226 next
8227 } else {
8228 # Replace #undef with comments. This is necessary, for example,
8229 # in the case of _POSIX_SOURCE, which is predefined and required
8230 # on some systems where configure will not decide to define it.
8231 if (defundef == "undef") {
8232 print "/*", prefix defundef, macro, "*/"
8233 next
8234 }
8235 }
8236 }
8237 { print }
8238 _ACAWK
8239 _ACEOF
8240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8241 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8242 fi # test -n "$CONFIG_HEADERS"
8243
8244
8245 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8246 shift
8247 for ac_tag
8248 do
8249 case $ac_tag in
8250 :[FHLC]) ac_mode=$ac_tag; continue;;
8251 esac
8252 case $ac_mode$ac_tag in
8253 :[FHL]*:*);;
8254 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
8255 :[FH]-) ac_tag=-:-;;
8256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8257 esac
8258 ac_save_IFS=$IFS
8259 IFS=:
8260 set x $ac_tag
8261 IFS=$ac_save_IFS
8262 shift
8263 ac_file=$1
8264 shift
8265
8266 case $ac_mode in
8267 :L) ac_source=$1;;
8268 :[FH])
8269 ac_file_inputs=
8270 for ac_f
8271 do
8272 case $ac_f in
8273 -) ac_f="$ac_tmp/stdin";;
8274 *) # Look for the file first in the build tree, then in the source tree
8275 # (if the path is not absolute). The absolute path cannot be DOS-style,
8276 # because $ac_f cannot contain ':'.
8277 test -f "$ac_f" ||
8278 case $ac_f in
8279 [\\/$]*) false;;
8280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8281 esac ||
8282 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
8283 esac
8284 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8285 as_fn_append ac_file_inputs " '$ac_f'"
8286 done
8287
8288 # Let's still pretend it is 'configure' which instantiates (i.e., don't
8289 # use $as_me), people would be surprised to read:
8290 # /* config.h. Generated by config.status. */
8291 configure_input='Generated from '`
8292 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8293 `' by configure.'
8294 if test x"$ac_file" != x-; then
8295 configure_input="$ac_file. $configure_input"
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8297 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8298 fi
8299 # Neutralize special characters interpreted by sed in replacement strings.
8300 case $configure_input in #(
8301 *\&* | *\|* | *\\* )
8302 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8303 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8304 *) ac_sed_conf_input=$configure_input;;
8305 esac
8306
8307 case $ac_tag in
8308 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8310 esac
8311 ;;
8312 esac
8313
8314 ac_dir=`$as_dirname -- "$ac_file" ||
8315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8316 X"$ac_file" : 'X\(//\)[^/]' \| \
8317 X"$ac_file" : 'X\(//\)$' \| \
8318 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8319 printf "%s\n" X"$ac_file" |
8320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8321 s//\1/
8322 q
8323 }
8324 /^X\(\/\/\)[^/].*/{
8325 s//\1/
8326 q
8327 }
8328 /^X\(\/\/\)$/{
8329 s//\1/
8330 q
8331 }
8332 /^X\(\/\).*/{
8333 s//\1/
8334 q
8335 }
8336 s/.*/./; q'`
8337 as_dir="$ac_dir"; as_fn_mkdir_p
8338 ac_builddir=.
8339
8340 case "$ac_dir" in
8341 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8342 *)
8343 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8344 # A ".." for each directory in $ac_dir_suffix.
8345 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8346 case $ac_top_builddir_sub in
8347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8349 esac ;;
8350 esac
8351 ac_abs_top_builddir=$ac_pwd
8352 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8353 # for backward compatibility:
8354 ac_top_builddir=$ac_top_build_prefix
8355
8356 case $srcdir in
8357 .) # We are building in place.
8358 ac_srcdir=.
8359 ac_top_srcdir=$ac_top_builddir_sub
8360 ac_abs_top_srcdir=$ac_pwd ;;
8361 [\\/]* | ?:[\\/]* ) # Absolute name.
8362 ac_srcdir=$srcdir$ac_dir_suffix;
8363 ac_top_srcdir=$srcdir
8364 ac_abs_top_srcdir=$srcdir ;;
8365 *) # Relative name.
8366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8367 ac_top_srcdir=$ac_top_build_prefix$srcdir
8368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8369 esac
8370 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8371
8372
8373 case $ac_mode in
8374 :F)
8375 #
8376 # CONFIG_FILE
8377 #
8378
8379 case $INSTALL in
8380 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8381 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8382 esac
8383 ac_MKDIR_P=$MKDIR_P
8384 case $MKDIR_P in
8385 [\\/$]* | ?:[\\/]* ) ;;
8386 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8387 esac
8388 _ACEOF
8389
8390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8391 # If the template does not know about datarootdir, expand it.
8392 # FIXME: This hack should be removed a few years after 2.60.
8393 ac_datarootdir_hack=; ac_datarootdir_seen=
8394 ac_sed_dataroot='
8395 /datarootdir/ {
8396 p
8397 q
8398 }
8399 /@datadir@/p
8400 /@docdir@/p
8401 /@infodir@/p
8402 /@localedir@/p
8403 /@mandir@/p'
8404 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8405 *datarootdir*) ac_datarootdir_seen=yes;;
8406 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8408 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8409 _ACEOF
8410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8411 ac_datarootdir_hack='
8412 s&@datadir@&$datadir&g
8413 s&@docdir@&$docdir&g
8414 s&@infodir@&$infodir&g
8415 s&@localedir@&$localedir&g
8416 s&@mandir@&$mandir&g
8417 s&\\\${datarootdir}&$datarootdir&g' ;;
8418 esac
8419 _ACEOF
8420
8421 # Neutralize VPATH when '$srcdir' = '.'.
8422 # Shell code in configure.ac might set extrasub.
8423 # FIXME: do we really want to maintain this feature?
8424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8425 ac_sed_extra="$ac_vpsub
8426 $extrasub
8427 _ACEOF
8428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8429 :t
8430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8431 s|@configure_input@|$ac_sed_conf_input|;t t
8432 s&@top_builddir@&$ac_top_builddir_sub&;t t
8433 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8434 s&@srcdir@&$ac_srcdir&;t t
8435 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8436 s&@top_srcdir@&$ac_top_srcdir&;t t
8437 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8438 s&@builddir@&$ac_builddir&;t t
8439 s&@abs_builddir@&$ac_abs_builddir&;t t
8440 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8441 s&@INSTALL@&$ac_INSTALL&;t t
8442 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8443 $ac_datarootdir_hack
8444 "
8445 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8446 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8447
8448 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8449 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8450 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8451 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
8453 which seems to be undefined. Please make sure it is defined" >&5
8454 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
8455 which seems to be undefined. Please make sure it is defined" >&2;}
8456
8457 rm -f "$ac_tmp/stdin"
8458 case $ac_file in
8459 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8460 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8461 esac \
8462 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8463 ;;
8464 :H)
8465 #
8466 # CONFIG_HEADER
8467 #
8468 if test x"$ac_file" != x-; then
8469 {
8470 printf "%s\n" "/* $configure_input */" >&1 \
8471 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8472 } >"$ac_tmp/config.h" \
8473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8474 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8476 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
8477 else
8478 rm -f "$ac_file"
8479 mv "$ac_tmp/config.h" "$ac_file" \
8480 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8481 fi
8482 else
8483 printf "%s\n" "/* $configure_input */" >&1 \
8484 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8485 || as_fn_error $? "could not create -" "$LINENO" 5
8486 fi
8487 # Compute "$ac_file"'s index in $config_headers.
8488 _am_arg="$ac_file"
8489 _am_stamp_count=1
8490 for _am_header in $config_headers :; do
8491 case $_am_header in
8492 $_am_arg | $_am_arg:* )
8493 break ;;
8494 * )
8495 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8496 esac
8497 done
8498 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8499 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8500 X"$_am_arg" : 'X\(//\)[^/]' \| \
8501 X"$_am_arg" : 'X\(//\)$' \| \
8502 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8503 printf "%s\n" X"$_am_arg" |
8504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8505 s//\1/
8506 q
8507 }
8508 /^X\(\/\/\)[^/].*/{
8509 s//\1/
8510 q
8511 }
8512 /^X\(\/\/\)$/{
8513 s//\1/
8514 q
8515 }
8516 /^X\(\/\).*/{
8517 s//\1/
8518 q
8519 }
8520 s/.*/./; q'`/stamp-h$_am_stamp_count
8521 ;;
8522
8523 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8524 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
8525 ;;
8526 esac
8527
8528
8529 case $ac_file$ac_mode in
8530 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8531 # Older Autoconf quotes --file arguments for eval, but not when files
8532 # are listed without --file. Let's play safe and only enable the eval
8533 # if we detect the quoting.
8534 # TODO: see whether this extra hack can be removed once we start
8535 # requiring Autoconf 2.70 or later.
8536 case $CONFIG_FILES in #(
8537 *\'*) :
8538 eval set x "$CONFIG_FILES" ;; #(
8539 *) :
8540 set x $CONFIG_FILES ;; #(
8541 *) :
8542 ;;
8543 esac
8544 shift
8545 # Used to flag and report bootstrapping failures.
8546 am_rc=0
8547 for am_mf
8548 do
8549 # Strip MF so we end up with the name of the file.
8550 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
8551 # Check whether this is an Automake generated Makefile which includes
8552 # dependency-tracking related rules and includes.
8553 # Grep'ing the whole file directly is not great: AIX grep has a line
8554 # limit of 2048, but all sed's we know have understand at least 4000.
8555 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8556 || continue
8557 am_dirpart=`$as_dirname -- "$am_mf" ||
8558 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8559 X"$am_mf" : 'X\(//\)[^/]' \| \
8560 X"$am_mf" : 'X\(//\)$' \| \
8561 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8562 printf "%s\n" X"$am_mf" |
8563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8564 s//\1/
8565 q
8566 }
8567 /^X\(\/\/\)[^/].*/{
8568 s//\1/
8569 q
8570 }
8571 /^X\(\/\/\)$/{
8572 s//\1/
8573 q
8574 }
8575 /^X\(\/\).*/{
8576 s//\1/
8577 q
8578 }
8579 s/.*/./; q'`
8580 am_filepart=`$as_basename -- "$am_mf" ||
8581 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
8582 X"$am_mf" : 'X\(//\)$' \| \
8583 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8584 printf "%s\n" X/"$am_mf" |
8585 sed '/^.*\/\([^/][^/]*\)\/*$/{
8586 s//\1/
8587 q
8588 }
8589 /^X\/\(\/\/\)$/{
8590 s//\1/
8591 q
8592 }
8593 /^X\/\(\/\).*/{
8594 s//\1/
8595 q
8596 }
8597 s/.*/./; q'`
8598 { echo "$as_me:$LINENO: cd "$am_dirpart" \
8599 && sed -e '/# am--include-marker/d' "$am_filepart" \
8600 | $MAKE -f - am--depfiles" >&5
8601 (cd "$am_dirpart" \
8602 && sed -e '/# am--include-marker/d' "$am_filepart" \
8603 | $MAKE -f - am--depfiles) >&5 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } || am_rc=$?
8607 done
8608 if test $am_rc -ne 0; then
8609 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8610 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8611 as_fn_error $? "Something went wrong bootstrapping makefile fragments
8612 for automatic dependency tracking. If GNU make was not used, consider
8613 re-running the configure script with MAKE=\"gmake\" (or whatever is
8614 necessary). You can also try re-running configure with the
8615 '--disable-dependency-tracking' option to at least be able to build
8616 the package (albeit without support for automatic dependency tracking).
8617 See 'config.log' for more details" "$LINENO" 5; }
8618 fi
8619 { am_dirpart=; unset am_dirpart;}
8620 { am_filepart=; unset am_filepart;}
8621 { am_mf=; unset am_mf;}
8622 { am_rc=; unset am_rc;}
8623 rm -f conftest-deps.mk
8624 }
8625 ;;
8626
8627 esac
8628 done # for ac_tag
8629
8630
8631 as_fn_exit 0
8632 _ACEOF
8633 ac_clean_files=$ac_clean_files_save
8634
8635 test $ac_write_fail = 0 ||
8636 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8637
8638
8639 # configure is writing to config.log, and then calls config.status.
8640 # config.status does its own redirection, appending to config.log.
8641 # Unfortunately, on DOS this fails, as config.log is still kept open
8642 # by configure, so config.status won't be able to write to it; its
8643 # output is simply discarded. So we exec the FD to /dev/null,
8644 # effectively closing config.log, so it can be properly (re)opened and
8645 # appended to by config.status. When coming back to configure, we
8646 # need to make the FD available again.
8647 if test "$no_create" != yes; then
8648 ac_cs_success=:
8649 ac_config_status_args=
8650 test "$silent" = yes &&
8651 ac_config_status_args="$ac_config_status_args --quiet"
8652 exec 5>/dev/null
8653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8654 exec 5>>config.log
8655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8656 # would make configure fail if this is the last instruction.
8657 $ac_cs_success || as_fn_exit 1
8658 fi
8659 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8661 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8662 fi
8663
8664
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
8666 printf "%s\n" "$as_me: " >&6;}
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
8668 printf "%s\n" "$as_me: " >&6;}
8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
8670 printf "%s\n" "$as_me: " >&6;}
8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ------------------------------------------------------------------------" >&5
8672 printf "%s\n" "$as_me: ------------------------------------------------------------------------" >&6;}
8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $PACKAGE $VERSION" >&5
8674 printf "%s\n" "$as_me: $PACKAGE $VERSION" >&6;}
8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ------------------------------------------------------------------------" >&5
8676 printf "%s\n" "$as_me: ------------------------------------------------------------------------" >&6;}
8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
8678 printf "%s\n" "$as_me: " >&6;}
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
8680 printf "%s\n" "$as_me: " >&6;}
8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuration Options Summary:" >&5
8682 printf "%s\n" "$as_me: Configuration Options Summary:" >&6;}
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
8684 printf "%s\n" "$as_me: " >&6;}
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WinARM32 runtime.....: $enable_libarm32" >&5
8686 printf "%s\n" "$as_me: WinARM32 runtime.....: $enable_libarm32" >&6;}
8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WinARM64 runtime.....: $enable_libarm64" >&5
8688 printf "%s\n" "$as_me: WinARM64 runtime.....: $enable_libarm64" >&6;}
8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Win32 runtime........: $enable_lib32" >&5
8690 printf "%s\n" "$as_me: Win32 runtime........: $enable_lib32" >&6;}
8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Win64 runtime........: $enable_lib64" >&5
8692 printf "%s\n" "$as_me: Win64 runtime........: $enable_lib64" >&6;}
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: C Warning Flags......: $ADD_C_ONLY_WARNING_FLAGS" >&5
8694 printf "%s\n" "$as_me: C Warning Flags......: $ADD_C_ONLY_WARNING_FLAGS" >&6;}
8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: C++ Warning Flags....: $ADD_CXX_ONLY_WARNING_FLAGS" >&5
8696 printf "%s\n" "$as_me: C++ Warning Flags....: $ADD_CXX_ONLY_WARNING_FLAGS" >&6;}
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Common Warning Flags.: $ADD_C_CXX_WARNING_FLAGS" >&5
8698 printf "%s\n" "$as_me: Common Warning Flags.: $ADD_C_CXX_WARNING_FLAGS" >&6;}
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default msvcrt.......: $with_default_msvcrt" >&5
8700 printf "%s\n" "$as_me: Default msvcrt.......: $with_default_msvcrt" >&6;}
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Control Flow Guard...: $enable_cfguard" >&5
8702 printf "%s\n" "$as_me: Control Flow Guard...: $enable_cfguard" >&6;}
8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
8704 printf "%s\n" "$as_me: " >&6;}
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DFP printf...........: $enable_dfp" >&5
8706 printf "%s\n" "$as_me: DFP printf...........: $enable_dfp" >&6;}
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: 128-bit printf.......: $enable_printf128" >&5
8708 printf "%s\n" "$as_me: 128-bit printf.......: $enable_printf128" >&6;}
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Custom printf........: $enable_registeredprintf" >&5
8710 printf "%s\n" "$as_me: Custom printf........: $enable_registeredprintf" >&6;}
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
8712 printf "%s\n" "$as_me: " >&6;}
8713
8714
8715