tst: Extend cross-test-ssh.sh to support passing glibc tunables
[glibc.git] / configure
blobec0b62db3664c9ecb69e073866b59027d9f21a09
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for GNU C Library (see version.h).
5 # Report bugs to <https://sourceware.org/bugzilla/>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
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 ## -------------------- ##
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 *) :
34 esac ;;
35 esac
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
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='
49 export as_nl
50 IFS=" "" $as_nl"
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
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
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
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=';'
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
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
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
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
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
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 *) :
157 esac ;;
158 esac
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; }
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 :
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
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 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else case e in #(
191 e) as_have_required=no ;;
192 esac
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 then :
197 else case e in #(
198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 as_found=false
200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 IFS=$as_save_IFS
203 case $as_dir in #(((
204 '') as_dir=./ ;;
205 */) ;;
206 *) as_dir=$as_dir/ ;;
207 esac
208 as_found=:
209 case $as_dir in #(
211 for as_base in sh bash ksh sh5; do
212 # Try only shells that exist, to save several forks.
213 as_shell=$as_dir$as_base
214 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
215 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 then :
217 CONFIG_SHELL=$as_shell as_have_required=yes
218 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219 then :
220 break 2
223 done;;
224 esac
225 as_found=false
226 done
227 IFS=$as_save_IFS
228 if $as_found
229 then :
231 else case e in #(
232 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi ;;
237 esac
241 if test "x$CONFIG_SHELL" != x
242 then :
243 export CONFIG_SHELL
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
248 BASH_ENV=/dev/null
249 ENV=/dev/null
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256 esac
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed 'exec'.
260 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 exit 255
264 if test x$as_have_required = xno
265 then :
266 printf "%s\n" "$0: This script requires a shell more modern than all"
267 printf "%s\n" "$0: the shells that I found on your system."
268 if test ${ZSH_VERSION+y} ; then
269 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
271 else
272 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
273 $0: https://sourceware.org/bugzilla/ about your system,
274 $0: including any error possibly output before this
275 $0: message. Then install a modern shell, or manually run
276 $0: the script under such a shell if you do have one."
278 exit 1
279 fi ;;
280 esac
283 SHELL=${CONFIG_SHELL-/bin/sh}
284 export SHELL
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE= GREP_OPTIONS=
287 unset CLICOLOR_FORCE GREP_OPTIONS
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
292 # as_fn_unset VAR
293 # ---------------
294 # Portably unset VAR.
295 as_fn_unset ()
297 { eval $1=; unset $1;}
299 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 printf "%s\n" X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382 then :
383 eval 'as_fn_append ()
385 eval $1+=\$2
387 else case e in #(
388 e) as_fn_append ()
390 eval $1=\$$1\$2
391 } ;;
392 esac
393 fi # as_fn_append
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else case e in #(
407 e) as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
410 } ;;
411 esac
412 fi # as_fn_arith
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 printf "%s\n" "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 printf "%s\n" X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
459 /^X\/\(\/\/\)$/{
460 s//\1/
463 /^X\/\(\/\).*/{
464 s//\1/
467 s/.*/./; q'`
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 t clear
488 :clear
489 s/[$]LINENO.*/&-/
490 t lineno
492 :lineno
494 :loop
495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 t loop
497 s/-\n.*//
498 ' >$as_me.lineno &&
499 chmod +x "$as_me.lineno" ||
500 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
503 # already done that, so ensure we don't try to do so again and fall
504 # in an infinite loop. This has already happened in practice.
505 _as_can_reexec=no; export _as_can_reexec
506 # Don't try to exec as it changes $[0], causing all sort of problems
507 # (the dirname of $[0] is not the place where we might find the
508 # original and so on. Autoconf is especially sensitive to this).
509 . "./$as_me.lineno"
510 # Exit status is that of the last command.
511 exit
515 # Determine whether it's possible to make 'echo' print without a newline.
516 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
517 # for compatibility with existing Makefiles.
518 ECHO_C= ECHO_N= ECHO_T=
519 case `echo -n x` in #(((((
520 -n*)
521 case `echo 'xy\c'` in
522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
523 xy) ECHO_C='\c';;
524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 ECHO_T=' ';;
526 esac;;
528 ECHO_N='-n';;
529 esac
531 # For backward compatibility with old third-party macros, we provide
532 # the shell variables $as_echo and $as_echo_n. New code should use
533 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
534 as_echo='printf %s\n'
535 as_echo_n='printf %s'
537 rm -f conf$$ conf$$.exe conf$$.file
538 if test -d conf$$.dir; then
539 rm -f conf$$.dir/conf$$.file
540 else
541 rm -f conf$$.dir
542 mkdir conf$$.dir 2>/dev/null
544 if (echo >conf$$.file) 2>/dev/null; then
545 if ln -s conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s='ln -s'
547 # ... but there are two gotchas:
548 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
549 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
550 # In both cases, we have to default to 'cp -pR'.
551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
552 as_ln_s='cp -pR'
553 elif ln conf$$.file conf$$ 2>/dev/null; then
554 as_ln_s=ln
555 else
556 as_ln_s='cp -pR'
558 else
559 as_ln_s='cp -pR'
561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
562 rmdir conf$$.dir 2>/dev/null
564 if mkdir -p . 2>/dev/null; then
565 as_mkdir_p='mkdir -p "$as_dir"'
566 else
567 test -d ./-p && rmdir ./-p
568 as_mkdir_p=false
571 as_test_x='test -x'
572 as_executable_p=as_fn_executable_p
574 # Sed expression to map a string onto a valid CPP name.
575 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578 # Sed expression to map a string onto a valid variable name.
579 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583 test -n "$DJDIR" || exec 7<&0 </dev/null
584 exec 6>&1
586 # Name of the host.
587 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
588 # so uname gets run too.
589 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592 # Initializations.
594 ac_default_prefix=/usr/local
595 ac_clean_files=
596 ac_config_libobj_dir=.
597 LIBOBJS=
598 cross_compiling=no
599 subdirs=
600 MFLAGS=
601 MAKEFLAGS=
603 # Identity of this package.
604 PACKAGE_NAME='GNU C Library'
605 PACKAGE_TARNAME='glibc'
606 PACKAGE_VERSION='(see version.h)'
607 PACKAGE_STRING='GNU C Library (see version.h)'
608 PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/'
609 PACKAGE_URL='https://www.gnu.org/software/glibc/'
611 ac_unique_file="include/features.h"
612 enable_option_checking=no
613 ac_subst_vars='LTLIBOBJS
614 LIBOBJS
615 pthread_in_libc
616 RELEASE
617 VERSION
618 mach_interface_list
619 DEFINES
620 static_nss
621 profile
622 libc_cv_multidir
623 shared
624 static
625 ldd_rewrite_script
626 use_ldconfig
627 libc_cv_rootsbindir
628 libc_cv_localstatedir
629 libc_cv_sysconfdir
630 libc_cv_complocaledir
631 libc_cv_rtlddir
632 libc_cv_slibdir
633 use_nscd
634 libc_cv_gcc_unwind_find_fde
635 libc_extra_cppflags
636 libc_extra_cflags
637 libc_cv_cxx_thread_local
638 fortify_source
639 no_fortify_source
640 libc_cv_fortify_source
641 enable_fortify_source
642 have_selinux
643 have_libcap
644 have_libaudit
645 LIBGD
646 libc_cv_cc_loop_to_function
647 libc_cv_cc_submachine
648 libc_cv_cc_nofma
649 libc_cv_mtls_descriptor
650 libc_cv_has_glob_dat
651 libc_cv_fpie
652 libc_cv_z_execstack
653 ASFLAGS_config
654 libc_cv_cc_with_libunwind
655 libc_cv_insert
656 libc_cv_protected_data
657 INSTALL_INFO
658 PERL
659 BASH_SHELL
660 CXX_BITS_STD_ABS_H
661 CXX_CMATH_HEADER
662 CXX_CSTDLIB_HEADER
663 CXX_SYSINCLUDES
664 SYSINCLUDES
665 sysnames
666 submachine
667 multi_arch
668 libc_cv_textrel_ifunc
669 no_stack_protector
670 stack_protector
671 libc_cv_ssp
672 libc_cv_with_fp
673 PYTHON
674 PYTHON_PROG
675 AUTOCONF
676 BISON
679 MAKEINFO
680 MSGFMT
681 MAKE
684 OBJDUMP
685 READELF
686 GPROF
687 OBJCOPY
689 LN_S
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 base_machine
694 build_pt_chown
695 build_nscd
696 memory_tagging
697 enable_werror
698 force_install
699 bindnow
700 hardcoded_path_in_tests
701 enable_timezone_tools
702 man_pages_version
703 rtld_early_cflags
704 extra_nonshared_cflags
705 sysheaders
706 ac_ct_CXX
707 CXXFLAGS
710 cross_compiling
711 BUILD_CC
712 OBJEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
718 host_os
719 host_vendor
720 host_cpu
721 host
722 build_os
723 build_vendor
724 build_cpu
725 build
726 subdirs
727 REPORT_BUGS_TEXI
728 REPORT_BUGS_TO
729 PKGVERSION_TEXI
730 PKGVERSION
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 runstatedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 with_pkgversion
774 with_bugurl
775 enable_static_c___tests
776 enable_static_c___link_check
777 with_gd
778 with_gd_include
779 with_gd_lib
780 with_binutils
781 with_selinux
782 with_headers
783 with_nonshared_cflags
784 with_rtld_early_cflags
785 with_timeoutfactor
786 with_man_pages
787 enable_sanity_checks
788 enable_shared
789 enable_profile
790 enable_default_pie
791 enable_timezone_tools
792 enable_hardcoded_path_in_tests
793 enable_hidden_plt
794 enable_bind_now
795 enable_stack_protector
796 enable_static_nss
797 enable_force_install
798 enable_maintainer_mode
799 enable_kernel
800 enable_werror
801 enable_multi_arch
802 enable_memory_tagging
803 enable_systemtap
804 enable_build_nscd
805 enable_nscd
806 enable_pt_chown
807 enable_mathvec
808 enable_cet
809 enable_scv
810 enable_fortify_source
811 with_cpu
813 ac_precious_vars='build_alias
814 host_alias
815 target_alias
817 CFLAGS
818 LDFLAGS
819 LIBS
820 CPPFLAGS
823 CXXFLAGS
824 CCC'
825 ac_subdirs_all=''
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 ac_unrecognized_opts=
831 ac_unrecognized_sep=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 runstatedir='${localstatedir}/run'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
876 ac_prev=
877 ac_dashdash=
878 for ac_option
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
887 case $ac_option in
888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *=) ac_optarg= ;;
890 *) ac_optarg=yes ;;
891 esac
893 case $ac_dashdash$ac_option in
895 ac_dashdash=yes ;;
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
914 --config-cache | -C)
915 cache_file=config.cache ;;
917 -datadir | --datadir | --datadi | --datad)
918 ac_prev=datadir ;;
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
929 -disable-* | --disable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: '$ac_useropt'"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=no ;;
945 -docdir | --docdir | --docdi | --doc | --do)
946 ac_prev=docdir ;;
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 docdir=$ac_optarg ;;
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 ac_prev=dvidir ;;
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 dvidir=$ac_optarg ;;
955 -enable-* | --enable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: '$ac_useropt'"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=\$ac_optarg ;;
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
978 exec_prefix=$ac_optarg ;;
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
982 with_gas=yes ;;
984 -help | --help | --hel | --he | -h)
985 ac_init_help=long ;;
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
991 -host | --host | --hos | --ho)
992 ac_prev=host_alias ;;
993 -host=* | --host=* | --hos=* | --ho=*)
994 host_alias=$ac_optarg ;;
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 ac_prev=htmldir ;;
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 | --ht=*)
1000 htmldir=$ac_optarg ;;
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1007 includedir=$ac_optarg ;;
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 ac_prev=infodir ;;
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012 infodir=$ac_optarg ;;
1014 -libdir | --libdir | --libdi | --libd)
1015 ac_prev=libdir ;;
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017 libdir=$ac_optarg ;;
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1024 libexecdir=$ac_optarg ;;
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
1032 | --localstate | --localstat | --localsta | --localst | --locals)
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036 localstatedir=$ac_optarg ;;
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 ac_prev=mandir ;;
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041 mandir=$ac_optarg ;;
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1045 with_fp=no ;;
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n)
1049 no_create=yes ;;
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 no_recursion=yes ;;
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062 oldincludedir=$ac_optarg ;;
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 ac_prev=prefix ;;
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067 prefix=$ac_optarg ;;
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074 program_prefix=$ac_optarg ;;
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081 program_suffix=$ac_optarg ;;
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1098 program_transform_name=$ac_optarg ;;
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 ac_prev=pdfdir ;;
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1105 -psdir | --psdir | --psdi | --psd | --ps)
1106 ac_prev=psdir ;;
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108 psdir=$ac_optarg ;;
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1112 silent=yes ;;
1114 -runstatedir | --runstatedir | --runstatedi | --runstated \
1115 | --runstate | --runstat | --runsta | --runst | --runs \
1116 | --run | --ru | --r)
1117 ac_prev=runstatedir ;;
1118 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1119 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1120 | --run=* | --ru=* | --r=*)
1121 runstatedir=$ac_optarg ;;
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: '$ac_useropt'"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: '$ac_useropt'"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1218 -*) as_fn_error $? "unrecognized option: '$ac_option'
1219 Try '$0 --help' for more information"
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1233 # FIXME: should be removed in autoconf 3.0.
1234 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 esac
1241 done
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir runstatedir
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1277 # There might be people who depend on the old broken behavior: '$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296 test "$silent" = yes && exec 6>/dev/null
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error $? "pwd does not report name of working directory"
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 printf "%s\n" X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 s//\1/
1321 /^X\(\/\/\)[^/].*/{
1322 s//\1/
1325 /^X\(\/\/\)$/{
1326 s//\1/
1329 /^X\(\/\).*/{
1330 s//\1/
1333 s/.*/./; q'`
1334 srcdir=$ac_confdir
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 srcdir=..
1338 else
1339 ac_srcdir_defaulted=no
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348 pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 srcdir=.
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1367 # Report the --help message.
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373 'configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1380 Defaults for the options are specified in brackets.
1382 Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print 'checking ...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for '--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or '..']
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1399 By default, 'make install' will install all the files in
1400 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than '$ac_default_prefix' using '--prefix',
1402 for instance '--prefix=\$HOME'.
1404 For better control, use the options below.
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1429 cat <<\_ACEOF
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1440 esac
1441 cat <<\_ACEOF
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --disable-static-c++-tests
1448 disable static C++ tests[default=no]
1449 --disable-static-c++-link-check
1450 disable static C++ link check [default=no]
1451 --disable-sanity-checks really do not use threads (should not be used except
1452 in special situations) [default=yes]
1453 --enable-shared build shared library [default=yes if GNU ld]
1454 --enable-profile build profiled library [default=no]
1455 --disable-default-pie Do not build glibc programs and the testsuite as PIE
1456 [default=no]
1457 --disable-timezone-tools
1458 do not install timezone tools [default=install]
1459 --enable-hardcoded-path-in-tests
1460 hardcode newly built glibc path in tests
1461 [default=no]
1462 --disable-hidden-plt do not hide internal function calls to avoid PLT
1463 --enable-bind-now disable lazy relocations in DSOs
1464 --enable-stack-protector=[yes|no|all|strong]
1465 Use -fstack-protector[-all|-strong] to detect glibc
1466 buffer overflows
1467 --enable-static-nss build static NSS modules [default=no]
1468 --disable-force-install don't force installation of files from this package,
1469 even if they are older than the installed files
1470 --enable-maintainer-mode
1471 enable make rules and dependencies not useful (and
1472 sometimes confusing) to the casual installer
1473 --enable-kernel=VERSION compile for compatibility with kernel not older than
1474 VERSION
1475 --disable-werror do not build with -Werror
1476 --enable-multi-arch enable single DSO with optimizations for multiple
1477 architectures
1478 --enable-memory-tagging enable memory tagging if supported by the
1479 architecture [default=no]
1480 --enable-systemtap enable systemtap static probe points [default=no]
1481 --disable-build-nscd disable building and installing the nscd daemon
1482 --disable-nscd library functions will not contact the nscd daemon
1483 --enable-pt_chown Enable building and installing pt_chown
1484 --enable-mathvec Enable building and installing mathvec [default
1485 depends on architecture]
1486 --enable-cet enable Intel Control-flow Enforcement Technology
1487 (CET), x86 only
1488 --disable-scv syscalls will not use scv instruction, even if the
1489 kernel supports it, powerpc only
1490 --enable-fortify-source[=1|2|3]
1491 Use -D_FORTIFY_SOURCE=[1|2|3] to control code
1492 hardening, defaults to highest possible value
1493 supported by the build compiler.
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-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1499 --with-bugurl=URL Direct users to URL to report a bug
1500 --with-gd=DIR find libgd include dir and library with prefix DIR
1501 --with-gd-include=DIR find libgd include files in DIR
1502 --with-gd-lib=DIR find libgd library files in DIR
1503 --with-binutils=PATH specify location of binutils (as and ld)
1504 --with-selinux if building with SELinux support
1505 --with-headers=PATH location of system headers to use (for example
1506 /usr/src/linux/include) [default=compiler default]
1507 --with-nonshared-cflags=CFLAGS
1508 build nonshared libraries with additional CFLAGS
1509 --with-rtld-early-cflags=CFLAGS
1510 build early initialization with additional CFLAGS
1511 --with-timeoutfactor=NUM
1512 specify an integer to scale the timeout
1513 --with-man-pages=VERSION
1514 tie manual to a specific man-pages version
1515 --with-cpu=CPU select code for CPU variant
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CPP C preprocessor
1526 CXX C++ compiler command
1527 CXXFLAGS C++ compiler flags
1529 Use these variables to override the choices made by 'configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1532 Report bugs to <https://sourceware.org/bugzilla/>.
1533 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
1534 General help using GNU software: <https://www.gnu.org/gethelp/>.
1535 _ACEOF
1536 ac_status=$?
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for configure.gnu first; this name is used for a wrapper for
1581 # Metaconfig's "Configure" on case-insensitive file systems.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1588 else
1589 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 fi || ac_status=$?
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1592 done
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1597 cat <<\_ACEOF
1598 GNU C Library configure (see version.h)
1599 generated by GNU Autoconf 2.72
1601 Copyright (C) 2023 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605 exit
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1612 # ac_fn_c_try_compile LINENO
1613 # --------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_compile ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext conftest.beam
1619 if { { ac_try="$ac_compile"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 printf "%s\n" "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.$ac_objext
1638 then :
1639 ac_retval=0
1640 else case e in #(
1641 e) printf "%s\n" "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1644 ac_retval=1 ;;
1645 esac
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_compile
1652 # ac_fn_cxx_try_compile LINENO
1653 # ----------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_cxx_try_compile ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest.beam
1659 if { { ac_try="$ac_compile"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 printf "%s\n" "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_cxx_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext
1678 then :
1679 ac_retval=0
1680 else case e in #(
1681 e) printf "%s\n" "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1684 ac_retval=1 ;;
1685 esac
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1690 } # ac_fn_cxx_try_compile
1692 # ac_fn_cxx_try_link LINENO
1693 # -------------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_cxx_try_link ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1699 if { { ac_try="$ac_link"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 printf "%s\n" "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_cxx_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest$ac_exeext && {
1718 test "$cross_compiling" = yes ||
1719 test -x conftest$ac_exeext
1721 then :
1722 ac_retval=0
1723 else case e in #(
1724 e) printf "%s\n" "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1727 ac_retval=1 ;;
1728 esac
1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732 # interfere with the next link command; also delete a directory that is
1733 # left behind by Apple's compiler. We do this before executing the actions.
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1738 } # ac_fn_cxx_try_link
1740 # ac_fn_c_try_cpp LINENO
1741 # ----------------------
1742 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_cpp ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_cpp conftest.$ac_ext"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 printf "%s\n" "$ac_try_echo"; } >&5
1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } > conftest.i && {
1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1765 then :
1766 ac_retval=0
1767 else case e in #(
1768 e) printf "%s\n" "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1771 ac_retval=1 ;;
1772 esac
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1777 } # ac_fn_c_try_cpp
1779 # ac_fn_c_try_link LINENO
1780 # -----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_link ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 printf "%s\n" "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 test -x conftest$ac_exeext
1808 then :
1809 ac_retval=0
1810 else case e in #(
1811 e) printf "%s\n" "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=1 ;;
1815 esac
1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819 # interfere with the next link command; also delete a directory that is
1820 # left behind by Apple's compiler. We do this before executing the actions.
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1825 } # ac_fn_c_try_link
1826 ac_configure_args_raw=
1827 for ac_arg
1829 case $ac_arg in
1830 *\'*)
1831 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1832 esac
1833 as_fn_append ac_configure_args_raw " '$ac_arg'"
1834 done
1836 case $ac_configure_args_raw in
1837 *$as_nl*)
1838 ac_safe_unquote= ;;
1840 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1841 ac_unsafe_a="$ac_unsafe_z#~"
1842 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1843 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1844 esac
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1850 It was created by GNU C Library $as_me (see version.h), which was
1851 generated by GNU Autoconf 2.72. Invocation command line was
1853 $ $0$ac_configure_args_raw
1855 _ACEOF
1856 exec 5>>config.log
1858 cat <<_ASUNAME
1859 ## --------- ##
1860 ## Platform. ##
1861 ## --------- ##
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1873 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1876 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1877 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1878 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1880 _ASUNAME
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1885 IFS=$as_save_IFS
1886 case $as_dir in #(((
1887 '') as_dir=./ ;;
1888 */) ;;
1889 *) as_dir=$as_dir/ ;;
1890 esac
1891 printf "%s\n" "PATH: $as_dir"
1892 done
1893 IFS=$as_save_IFS
1895 } >&5
1897 cat >&5 <<_ACEOF
1900 ## ----------- ##
1901 ## Core tests. ##
1902 ## ----------- ##
1904 _ACEOF
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1912 ac_configure_args=
1913 ac_configure_args0=
1914 ac_configure_args1=
1915 ac_must_keep_next=false
1916 for ac_pass in 1 2
1918 for ac_arg
1920 case $ac_arg in
1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923 | -silent | --silent | --silen | --sile | --sil)
1924 continue ;;
1925 *\'*)
1926 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 esac
1928 case $ac_pass in
1929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1931 as_fn_append ac_configure_args1 " '$ac_arg'"
1932 if test $ac_must_keep_next = true; then
1933 ac_must_keep_next=false # Got value, back to normal.
1934 else
1935 case $ac_arg in
1936 *=* | --config-cache | -C | -disable-* | --disable-* \
1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939 | -with-* | --with-* | -without-* | --without-* | --x)
1940 case "$ac_configure_args0 " in
1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942 esac
1944 -* ) ac_must_keep_next=true ;;
1945 esac
1947 as_fn_append ac_configure_args " '$ac_arg'"
1949 esac
1950 done
1951 done
1952 { ac_configure_args0=; unset ac_configure_args0;}
1953 { ac_configure_args1=; unset ac_configure_args1;}
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log. We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961 # Sanitize IFS.
1962 IFS=" "" $as_nl"
1963 # Save into config.log some information that might help in debugging.
1965 echo
1967 printf "%s\n" "## ---------------- ##
1968 ## Cache variables. ##
1969 ## ---------------- ##"
1970 echo
1971 # The following way of writing the cache mishandles newlines in values,
1973 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1974 eval ac_val=\$$ac_var
1975 case $ac_val in #(
1976 *${as_nl}*)
1977 case $ac_var in #(
1978 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1979 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1980 esac
1981 case $ac_var in #(
1982 _ | IFS | as_nl) ;; #(
1983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1984 *) { eval $ac_var=; unset $ac_var;} ;;
1985 esac ;;
1986 esac
1987 done
1988 (set) 2>&1 |
1989 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1990 *${as_nl}ac_space=\ *)
1991 sed -n \
1992 "s/'\''/'\''\\\\'\'''\''/g;
1993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1994 ;; #(
1996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1998 esac |
1999 sort
2001 echo
2003 printf "%s\n" "## ----------------- ##
2004 ## Output variables. ##
2005 ## ----------------- ##"
2006 echo
2007 for ac_var in $ac_subst_vars
2009 eval ac_val=\$$ac_var
2010 case $ac_val in
2011 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012 esac
2013 printf "%s\n" "$ac_var='\''$ac_val'\''"
2014 done | sort
2015 echo
2017 if test -n "$ac_subst_files"; then
2018 printf "%s\n" "## ------------------- ##
2019 ## File substitutions. ##
2020 ## ------------------- ##"
2021 echo
2022 for ac_var in $ac_subst_files
2024 eval ac_val=\$$ac_var
2025 case $ac_val in
2026 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 esac
2028 printf "%s\n" "$ac_var='\''$ac_val'\''"
2029 done | sort
2030 echo
2033 if test -s confdefs.h; then
2034 printf "%s\n" "## ----------- ##
2035 ## confdefs.h. ##
2036 ## ----------- ##"
2037 echo
2038 cat confdefs.h
2039 echo
2041 test "$ac_signal" != 0 &&
2042 printf "%s\n" "$as_me: caught signal $ac_signal"
2043 printf "%s\n" "$as_me: exit $exit_status"
2044 } >&5
2045 rm -f core *.core core.conftest.* &&
2046 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2047 exit $exit_status
2049 for ac_signal in 1 2 13 15; do
2050 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2051 done
2052 ac_signal=0
2054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2055 rm -f -r conftest* confdefs.h
2057 printf "%s\n" "/* confdefs.h */" > confdefs.h
2059 # Predefined preprocessor variables.
2061 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2063 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2065 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2067 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2069 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2071 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2074 # Let the site file select an alternate cache file if it wants to.
2075 # Prefer an explicitly selected file to automatically selected ones.
2076 if test -n "$CONFIG_SITE"; then
2077 ac_site_files="$CONFIG_SITE"
2078 elif test "x$prefix" != xNONE; then
2079 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2080 else
2081 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2084 for ac_site_file in $ac_site_files
2086 case $ac_site_file in #(
2087 */*) :
2088 ;; #(
2089 *) :
2090 ac_site_file=./$ac_site_file ;;
2091 esac
2092 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2094 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2095 sed 's/^/| /' "$ac_site_file" >&5
2096 . "$ac_site_file" \
2097 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2098 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2099 as_fn_error $? "failed to load site script $ac_site_file
2100 See 'config.log' for more details" "$LINENO" 5; }
2102 done
2104 if test -r "$cache_file"; then
2105 # Some versions of bash will fail to source /dev/null (special files
2106 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2107 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2110 case $cache_file in
2111 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112 *) . "./$cache_file";;
2113 esac
2115 else
2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2118 >$cache_file
2121 # Test code for whether the C compiler supports C89 (global declarations)
2122 ac_c_conftest_c89_globals='
2123 /* Does the compiler advertise C89 conformance?
2124 Do not test the value of __STDC__, because some compilers set it to 0
2125 while being otherwise adequately conformant. */
2126 #if !defined __STDC__
2127 # error "Compiler does not advertise C89 conformance"
2128 #endif
2130 #include <stddef.h>
2131 #include <stdarg.h>
2132 struct stat;
2133 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2134 struct buf { int x; };
2135 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2136 static char *e (char **p, int i)
2138 return p[i];
2140 static char *f (char * (*g) (char **, int), char **p, ...)
2142 char *s;
2143 va_list v;
2144 va_start (v,p);
2145 s = g (p, va_arg (v,int));
2146 va_end (v);
2147 return s;
2150 /* C89 style stringification. */
2151 #define noexpand_stringify(a) #a
2152 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2154 /* C89 style token pasting. Exercises some of the corner cases that
2155 e.g. old MSVC gets wrong, but not very hard. */
2156 #define noexpand_concat(a,b) a##b
2157 #define expand_concat(a,b) noexpand_concat(a,b)
2158 extern int vA;
2159 extern int vbee;
2160 #define aye A
2161 #define bee B
2162 int *pvA = &expand_concat(v,aye);
2163 int *pvbee = &noexpand_concat(v,bee);
2165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2166 function prototypes and stuff, but not \xHH hex character constants.
2167 These do not provoke an error unfortunately, instead are silently treated
2168 as an "x". The following induces an error, until -std is added to get
2169 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2170 array size at least. It is necessary to write \x00 == 0 to get something
2171 that is true only with -std. */
2172 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2175 inside strings and character constants. */
2176 #define FOO(x) '\''x'\''
2177 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2179 int test (int i, double x);
2180 struct s1 {int (*f) (int a);};
2181 struct s2 {int (*f) (double a);};
2182 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2183 int, int);'
2185 # Test code for whether the C compiler supports C89 (body of main).
2186 ac_c_conftest_c89_main='
2187 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2190 # Test code for whether the C compiler supports C99 (global declarations)
2191 ac_c_conftest_c99_globals='
2192 /* Does the compiler advertise C99 conformance? */
2193 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2194 # error "Compiler does not advertise C99 conformance"
2195 #endif
2197 // See if C++-style comments work.
2199 #include <stdbool.h>
2200 extern int puts (const char *);
2201 extern int printf (const char *, ...);
2202 extern int dprintf (int, const char *, ...);
2203 extern void *malloc (size_t);
2204 extern void free (void *);
2206 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2207 // dprintf is used instead of fprintf to avoid needing to declare
2208 // FILE and stderr.
2209 #define debug(...) dprintf (2, __VA_ARGS__)
2210 #define showlist(...) puts (#__VA_ARGS__)
2211 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2212 static void
2213 test_varargs_macros (void)
2215 int x = 1234;
2216 int y = 5678;
2217 debug ("Flag");
2218 debug ("X = %d\n", x);
2219 showlist (The first, second, and third items.);
2220 report (x>y, "x is %d but y is %d", x, y);
2223 // Check long long types.
2224 #define BIG64 18446744073709551615ull
2225 #define BIG32 4294967295ul
2226 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2227 #if !BIG_OK
2228 #error "your preprocessor is broken"
2229 #endif
2230 #if BIG_OK
2231 #else
2232 #error "your preprocessor is broken"
2233 #endif
2234 static long long int bignum = -9223372036854775807LL;
2235 static unsigned long long int ubignum = BIG64;
2237 struct incomplete_array
2239 int datasize;
2240 double data[];
2243 struct named_init {
2244 int number;
2245 const wchar_t *name;
2246 double average;
2249 typedef const char *ccp;
2251 static inline int
2252 test_restrict (ccp restrict text)
2254 // Iterate through items via the restricted pointer.
2255 // Also check for declarations in for loops.
2256 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2257 continue;
2258 return 0;
2261 // Check varargs and va_copy.
2262 static bool
2263 test_varargs (const char *format, ...)
2265 va_list args;
2266 va_start (args, format);
2267 va_list args_copy;
2268 va_copy (args_copy, args);
2270 const char *str = "";
2271 int number = 0;
2272 float fnumber = 0;
2274 while (*format)
2276 switch (*format++)
2278 case '\''s'\'': // string
2279 str = va_arg (args_copy, const char *);
2280 break;
2281 case '\''d'\'': // int
2282 number = va_arg (args_copy, int);
2283 break;
2284 case '\''f'\'': // float
2285 fnumber = va_arg (args_copy, double);
2286 break;
2287 default:
2288 break;
2291 va_end (args_copy);
2292 va_end (args);
2294 return *str && number && fnumber;
2298 # Test code for whether the C compiler supports C99 (body of main).
2299 ac_c_conftest_c99_main='
2300 // Check bool.
2301 _Bool success = false;
2302 success |= (argc != 0);
2304 // Check restrict.
2305 if (test_restrict ("String literal") == 0)
2306 success = true;
2307 char *restrict newvar = "Another string";
2309 // Check varargs.
2310 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2311 test_varargs_macros ();
2313 // Check flexible array members.
2314 struct incomplete_array *ia =
2315 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2316 ia->datasize = 10;
2317 for (int i = 0; i < ia->datasize; ++i)
2318 ia->data[i] = i * 1.234;
2319 // Work around memory leak warnings.
2320 free (ia);
2322 // Check named initializers.
2323 struct named_init ni = {
2324 .number = 34,
2325 .name = L"Test wide string",
2326 .average = 543.34343,
2329 ni.number = 58;
2331 int dynamic_array[ni.number];
2332 dynamic_array[0] = argv[0][0];
2333 dynamic_array[ni.number - 1] = 543;
2335 // work around unused variable warnings
2336 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2337 || dynamic_array[ni.number - 1] != 543);
2340 # Test code for whether the C compiler supports C11 (global declarations)
2341 ac_c_conftest_c11_globals='
2342 /* Does the compiler advertise C11 conformance? */
2343 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2344 # error "Compiler does not advertise C11 conformance"
2345 #endif
2347 // Check _Alignas.
2348 char _Alignas (double) aligned_as_double;
2349 char _Alignas (0) no_special_alignment;
2350 extern char aligned_as_int;
2351 char _Alignas (0) _Alignas (int) aligned_as_int;
2353 // Check _Alignof.
2354 enum
2356 int_alignment = _Alignof (int),
2357 int_array_alignment = _Alignof (int[100]),
2358 char_alignment = _Alignof (char)
2360 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2362 // Check _Noreturn.
2363 int _Noreturn does_not_return (void) { for (;;) continue; }
2365 // Check _Static_assert.
2366 struct test_static_assert
2368 int x;
2369 _Static_assert (sizeof (int) <= sizeof (long int),
2370 "_Static_assert does not work in struct");
2371 long int y;
2374 // Check UTF-8 literals.
2375 #define u8 syntax error!
2376 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2378 // Check duplicate typedefs.
2379 typedef long *long_ptr;
2380 typedef long int *long_ptr;
2381 typedef long_ptr long_ptr;
2383 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2384 struct anonymous
2386 union {
2387 struct { int i; int j; };
2388 struct { int k; long int l; } w;
2390 int m;
2391 } v1;
2394 # Test code for whether the C compiler supports C11 (body of main).
2395 ac_c_conftest_c11_main='
2396 _Static_assert ((offsetof (struct anonymous, i)
2397 == offsetof (struct anonymous, w.k)),
2398 "Anonymous union alignment botch");
2399 v1.i = 2;
2400 v1.w.k = 5;
2401 ok |= v1.i != 5;
2404 # Test code for whether the C compiler supports C11 (complete).
2405 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2406 ${ac_c_conftest_c99_globals}
2407 ${ac_c_conftest_c11_globals}
2410 main (int argc, char **argv)
2412 int ok = 0;
2413 ${ac_c_conftest_c89_main}
2414 ${ac_c_conftest_c99_main}
2415 ${ac_c_conftest_c11_main}
2416 return ok;
2420 # Test code for whether the C compiler supports C99 (complete).
2421 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2422 ${ac_c_conftest_c99_globals}
2425 main (int argc, char **argv)
2427 int ok = 0;
2428 ${ac_c_conftest_c89_main}
2429 ${ac_c_conftest_c99_main}
2430 return ok;
2434 # Test code for whether the C compiler supports C89 (complete).
2435 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2438 main (int argc, char **argv)
2440 int ok = 0;
2441 ${ac_c_conftest_c89_main}
2442 return ok;
2446 # Test code for whether the C++ compiler supports C++98 (global declarations)
2447 ac_cxx_conftest_cxx98_globals='
2448 // Does the compiler advertise C++98 conformance?
2449 #if !defined __cplusplus || __cplusplus < 199711L
2450 # error "Compiler does not advertise C++98 conformance"
2451 #endif
2453 // These inclusions are to reject old compilers that
2454 // lack the unsuffixed header files.
2455 #include <cstdlib>
2456 #include <exception>
2458 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2459 extern void assert (int);
2460 namespace std {
2461 extern int strcmp (const char *, const char *);
2464 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2465 using std::exception;
2466 using std::strcmp;
2468 namespace {
2470 void test_exception_syntax()
2472 try {
2473 throw "test";
2474 } catch (const char *s) {
2475 // Extra parentheses suppress a warning when building autoconf itself,
2476 // due to lint rules shared with more typical C programs.
2477 assert (!(strcmp) (s, "test"));
2481 template <typename T> struct test_template
2483 T const val;
2484 explicit test_template(T t) : val(t) {}
2485 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2488 } // anonymous namespace
2491 # Test code for whether the C++ compiler supports C++98 (body of main)
2492 ac_cxx_conftest_cxx98_main='
2493 assert (argc);
2494 assert (! argv[0]);
2496 test_exception_syntax ();
2497 test_template<double> tt (2.0);
2498 assert (tt.add (4) == 6.0);
2499 assert (true && !false);
2503 # Test code for whether the C++ compiler supports C++11 (global declarations)
2504 ac_cxx_conftest_cxx11_globals='
2505 // Does the compiler advertise C++ 2011 conformance?
2506 #if !defined __cplusplus || __cplusplus < 201103L
2507 # error "Compiler does not advertise C++11 conformance"
2508 #endif
2510 namespace cxx11test
2512 constexpr int get_val() { return 20; }
2514 struct testinit
2516 int i;
2517 double d;
2520 class delegate
2522 public:
2523 delegate(int n) : n(n) {}
2524 delegate(): delegate(2354) {}
2526 virtual int getval() { return this->n; };
2527 protected:
2528 int n;
2531 class overridden : public delegate
2533 public:
2534 overridden(int n): delegate(n) {}
2535 virtual int getval() override final { return this->n * 2; }
2538 class nocopy
2540 public:
2541 nocopy(int i): i(i) {}
2542 nocopy() = default;
2543 nocopy(const nocopy&) = delete;
2544 nocopy & operator=(const nocopy&) = delete;
2545 private:
2546 int i;
2549 // for testing lambda expressions
2550 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2552 return f(v);
2555 // for testing variadic templates and trailing return types
2556 template <typename V> auto sum(V first) -> V
2558 return first;
2560 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2562 return first + sum(rest...);
2567 # Test code for whether the C++ compiler supports C++11 (body of main)
2568 ac_cxx_conftest_cxx11_main='
2570 // Test auto and decltype
2571 auto a1 = 6538;
2572 auto a2 = 48573953.4;
2573 auto a3 = "String literal";
2575 int total = 0;
2576 for (auto i = a3; *i; ++i) { total += *i; }
2578 decltype(a2) a4 = 34895.034;
2581 // Test constexpr
2582 short sa[cxx11test::get_val()] = { 0 };
2585 // Test initializer lists
2586 cxx11test::testinit il = { 4323, 435234.23544 };
2589 // Test range-based for
2590 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2591 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2592 for (auto &x : array) { x += 23; }
2595 // Test lambda expressions
2596 using cxx11test::eval;
2597 assert (eval ([](int x) { return x*2; }, 21) == 42);
2598 double d = 2.0;
2599 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2600 assert (d == 5.0);
2601 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2602 assert (d == 5.0);
2605 // Test use of variadic templates
2606 using cxx11test::sum;
2607 auto a = sum(1);
2608 auto b = sum(1, 2);
2609 auto c = sum(1.0, 2.0, 3.0);
2612 // Test constructor delegation
2613 cxx11test::delegate d1;
2614 cxx11test::delegate d2();
2615 cxx11test::delegate d3(45);
2618 // Test override and final
2619 cxx11test::overridden o1(55464);
2622 // Test nullptr
2623 char *c = nullptr;
2626 // Test template brackets
2627 test_template<::test_template<int>> v(test_template<int>(12));
2630 // Unicode literals
2631 char const *utf8 = u8"UTF-8 string \u2500";
2632 char16_t const *utf16 = u"UTF-8 string \u2500";
2633 char32_t const *utf32 = U"UTF-32 string \u2500";
2637 # Test code for whether the C compiler supports C++11 (complete).
2638 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2639 ${ac_cxx_conftest_cxx11_globals}
2642 main (int argc, char **argv)
2644 int ok = 0;
2645 ${ac_cxx_conftest_cxx98_main}
2646 ${ac_cxx_conftest_cxx11_main}
2647 return ok;
2651 # Test code for whether the C compiler supports C++98 (complete).
2652 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2654 main (int argc, char **argv)
2656 int ok = 0;
2657 ${ac_cxx_conftest_cxx98_main}
2658 return ok;
2663 # Auxiliary files required by this configure script.
2664 ac_aux_files="install-sh config.guess config.sub"
2666 # Locations in which to look for auxiliary files.
2667 ac_aux_dir_candidates="${srcdir}/scripts"
2669 # Search for a directory containing all of the required auxiliary files,
2670 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2671 # If we don't find one directory that contains all the files we need,
2672 # we report the set of missing files from the *first* directory in
2673 # $ac_aux_dir_candidates and give up.
2674 ac_missing_aux_files=""
2675 ac_first_candidate=:
2676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 as_found=false
2679 for as_dir in $ac_aux_dir_candidates
2681 IFS=$as_save_IFS
2682 case $as_dir in #(((
2683 '') as_dir=./ ;;
2684 */) ;;
2685 *) as_dir=$as_dir/ ;;
2686 esac
2687 as_found=:
2689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2690 ac_aux_dir_found=yes
2691 ac_install_sh=
2692 for ac_aux in $ac_aux_files
2694 # As a special case, if "install-sh" is required, that requirement
2695 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2696 # and $ac_install_sh is set appropriately for whichever one is found.
2697 if test x"$ac_aux" = x"install-sh"
2698 then
2699 if test -f "${as_dir}install-sh"; then
2700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2701 ac_install_sh="${as_dir}install-sh -c"
2702 elif test -f "${as_dir}install.sh"; then
2703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2704 ac_install_sh="${as_dir}install.sh -c"
2705 elif test -f "${as_dir}shtool"; then
2706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2707 ac_install_sh="${as_dir}shtool install -c"
2708 else
2709 ac_aux_dir_found=no
2710 if $ac_first_candidate; then
2711 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2712 else
2713 break
2716 else
2717 if test -f "${as_dir}${ac_aux}"; then
2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2719 else
2720 ac_aux_dir_found=no
2721 if $ac_first_candidate; then
2722 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2723 else
2724 break
2728 done
2729 if test "$ac_aux_dir_found" = yes; then
2730 ac_aux_dir="$as_dir"
2731 break
2733 ac_first_candidate=false
2735 as_found=false
2736 done
2737 IFS=$as_save_IFS
2738 if $as_found
2739 then :
2741 else case e in #(
2742 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2743 esac
2747 # These three variables are undocumented and unsupported,
2748 # and are intended to be withdrawn in a future Autoconf release.
2749 # They can cause serious problems if a builder's source tree is in a directory
2750 # whose full name contains unusual characters.
2751 if test -f "${ac_aux_dir}config.guess"; then
2752 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2754 if test -f "${ac_aux_dir}config.sub"; then
2755 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2757 if test -f "$ac_aux_dir/configure"; then
2758 ac_configure="$SHELL ${ac_aux_dir}configure"
2761 # Check that the precious variables saved in the cache have kept the same
2762 # value.
2763 ac_cache_corrupted=false
2764 for ac_var in $ac_precious_vars; do
2765 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2766 eval ac_new_set=\$ac_env_${ac_var}_set
2767 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2768 eval ac_new_val=\$ac_env_${ac_var}_value
2769 case $ac_old_set,$ac_new_set in
2770 set,)
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2772 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2773 ac_cache_corrupted=: ;;
2774 ,set)
2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2776 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2777 ac_cache_corrupted=: ;;
2778 ,);;
2780 if test "x$ac_old_val" != "x$ac_new_val"; then
2781 # differences in whitespace do not lead to failure.
2782 ac_old_val_w=`echo x $ac_old_val`
2783 ac_new_val_w=`echo x $ac_new_val`
2784 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2786 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2787 ac_cache_corrupted=:
2788 else
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2790 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2791 eval $ac_var=\$ac_old_val
2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2794 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2796 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2797 fi;;
2798 esac
2799 # Pass precious variables to config.status.
2800 if test "$ac_new_set" = set; then
2801 case $ac_new_val in
2802 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2803 *) ac_arg=$ac_var=$ac_new_val ;;
2804 esac
2805 case " $ac_configure_args " in
2806 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2807 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2808 esac
2810 done
2811 if $ac_cache_corrupted; then
2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2813 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2815 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2816 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2817 and start over" "$LINENO" 5
2819 ## -------------------- ##
2820 ## Main body of script. ##
2821 ## -------------------- ##
2823 ac_ext=c
2824 ac_cpp='$CPP $CPPFLAGS'
2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831 ac_config_headers="$ac_config_headers config.h"
2837 # Check whether --with-pkgversion was given.
2838 if test ${with_pkgversion+y}
2839 then :
2840 withval=$with_pkgversion; case "$withval" in
2841 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2842 no) PKGVERSION= ;;
2843 *) PKGVERSION="($withval) " ;;
2844 esac
2845 else case e in #(
2846 e) PKGVERSION="(GNU libc) "
2848 esac
2851 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2857 # Check whether --with-bugurl was given.
2858 if test ${with_bugurl+y}
2859 then :
2860 withval=$with_bugurl; case "$withval" in
2861 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2862 no) BUGURL=
2864 *) BUGURL="$withval"
2866 esac
2867 else case e in #(
2868 e) BUGURL="https://www.gnu.org/software/libc/bugs.html"
2870 esac
2873 case ${BUGURL} in
2875 REPORT_BUGS_TO=
2876 REPORT_BUGS_TEXI=
2879 REPORT_BUGS_TO="<$BUGURL>"
2880 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2882 esac;
2887 printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h
2890 printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h
2893 # Glibc should not depend on any header files
2896 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2897 # here to work around the Autoconf issue discussed in
2898 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2899 # AC_PROG_CPP
2901 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2902 # issue discussed in
2903 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2908 subdirs="$subdirs "
2914 # Make sure we can run config.sub.
2915 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2916 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2919 printf %s "checking build system type... " >&6; }
2920 if test ${ac_cv_build+y}
2921 then :
2922 printf %s "(cached) " >&6
2923 else case e in #(
2924 e) ac_build_alias=$build_alias
2925 test "x$ac_build_alias" = x &&
2926 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2927 test "x$ac_build_alias" = x &&
2928 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2929 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2930 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2932 esac
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2935 printf "%s\n" "$ac_cv_build" >&6; }
2936 case $ac_cv_build in
2937 *-*-*) ;;
2938 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2939 esac
2940 build=$ac_cv_build
2941 ac_save_IFS=$IFS; IFS='-'
2942 set x $ac_cv_build
2943 shift
2944 build_cpu=$1
2945 build_vendor=$2
2946 shift; shift
2947 # Remember, the first character of IFS is used to create $*,
2948 # except with old shells:
2949 build_os=$*
2950 IFS=$ac_save_IFS
2951 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2955 printf %s "checking host system type... " >&6; }
2956 if test ${ac_cv_host+y}
2957 then :
2958 printf %s "(cached) " >&6
2959 else case e in #(
2960 e) if test "x$host_alias" = x; then
2961 ac_cv_host=$ac_cv_build
2962 else
2963 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2964 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2967 esac
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2970 printf "%s\n" "$ac_cv_host" >&6; }
2971 case $ac_cv_host in
2972 *-*-*) ;;
2973 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2974 esac
2975 host=$ac_cv_host
2976 ac_save_IFS=$IFS; IFS='-'
2977 set x $ac_cv_host
2978 shift
2979 host_cpu=$1
2980 host_vendor=$2
2981 shift; shift
2982 # Remember, the first character of IFS is used to create $*,
2983 # except with old shells:
2984 host_os=$*
2985 IFS=$ac_save_IFS
2986 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004 if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3006 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 printf %s "checking for $ac_word... " >&6; }
3009 if test ${ac_cv_prog_CC+y}
3010 then :
3011 printf %s "(cached) " >&6
3012 else case e in #(
3013 e) if test -n "$CC"; then
3014 ac_cv_prog_CC="$CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 case $as_dir in #(((
3021 '') as_dir=./ ;;
3022 */) ;;
3023 *) as_dir=$as_dir/ ;;
3024 esac
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3029 break 2
3031 done
3032 done
3033 IFS=$as_save_IFS
3035 fi ;;
3036 esac
3038 CC=$ac_cv_prog_CC
3039 if test -n "$CC"; then
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041 printf "%s\n" "$CC" >&6; }
3042 else
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 printf "%s\n" "no" >&6; }
3049 if test -z "$ac_cv_prog_CC"; then
3050 ac_ct_CC=$CC
3051 # Extract the first word of "gcc", so it can be a program name with args.
3052 set dummy gcc; ac_word=$2
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 printf %s "checking for $ac_word... " >&6; }
3055 if test ${ac_cv_prog_ac_ct_CC+y}
3056 then :
3057 printf %s "(cached) " >&6
3058 else case e in #(
3059 e) if test -n "$ac_ct_CC"; then
3060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3065 IFS=$as_save_IFS
3066 case $as_dir in #(((
3067 '') as_dir=./ ;;
3068 */) ;;
3069 *) as_dir=$as_dir/ ;;
3070 esac
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_ac_ct_CC="gcc"
3074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3075 break 2
3077 done
3078 done
3079 IFS=$as_save_IFS
3081 fi ;;
3082 esac
3084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3085 if test -n "$ac_ct_CC"; then
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3087 printf "%s\n" "$ac_ct_CC" >&6; }
3088 else
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 printf "%s\n" "no" >&6; }
3093 if test "x$ac_ct_CC" = x; then
3094 CC=""
3095 else
3096 case $cross_compiling:$ac_tool_warned in
3097 yes:)
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3099 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3100 ac_tool_warned=yes ;;
3101 esac
3102 CC=$ac_ct_CC
3104 else
3105 CC="$ac_cv_prog_CC"
3108 if test -z "$CC"; then
3109 if test -n "$ac_tool_prefix"; then
3110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}cc; ac_word=$2
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 printf %s "checking for $ac_word... " >&6; }
3114 if test ${ac_cv_prog_CC+y}
3115 then :
3116 printf %s "(cached) " >&6
3117 else case e in #(
3118 e) if test -n "$CC"; then
3119 ac_cv_prog_CC="$CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3124 IFS=$as_save_IFS
3125 case $as_dir in #(((
3126 '') as_dir=./ ;;
3127 */) ;;
3128 *) as_dir=$as_dir/ ;;
3129 esac
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_CC="${ac_tool_prefix}cc"
3133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3134 break 2
3136 done
3137 done
3138 IFS=$as_save_IFS
3140 fi ;;
3141 esac
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146 printf "%s\n" "$CC" >&6; }
3147 else
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 printf "%s\n" "no" >&6; }
3155 if test -z "$CC"; then
3156 # Extract the first word of "cc", so it can be a program name with args.
3157 set dummy cc; ac_word=$2
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 printf %s "checking for $ac_word... " >&6; }
3160 if test ${ac_cv_prog_CC+y}
3161 then :
3162 printf %s "(cached) " >&6
3163 else case e in #(
3164 e) if test -n "$CC"; then
3165 ac_cv_prog_CC="$CC" # Let the user override the test.
3166 else
3167 ac_prog_rejected=no
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3171 IFS=$as_save_IFS
3172 case $as_dir in #(((
3173 '') as_dir=./ ;;
3174 */) ;;
3175 *) as_dir=$as_dir/ ;;
3176 esac
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3179 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180 ac_prog_rejected=yes
3181 continue
3183 ac_cv_prog_CC="cc"
3184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3185 break 2
3187 done
3188 done
3189 IFS=$as_save_IFS
3191 if test $ac_prog_rejected = yes; then
3192 # We found a bogon in the path, so make sure we never use it.
3193 set dummy $ac_cv_prog_CC
3194 shift
3195 if test $# != 0; then
3196 # We chose a different compiler from the bogus one.
3197 # However, it has the same basename, so the bogon will be chosen
3198 # first if we set CC to just the basename; use the full file name.
3199 shift
3200 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3203 fi ;;
3204 esac
3206 CC=$ac_cv_prog_CC
3207 if test -n "$CC"; then
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209 printf "%s\n" "$CC" >&6; }
3210 else
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 printf "%s\n" "no" >&6; }
3217 if test -z "$CC"; then
3218 if test -n "$ac_tool_prefix"; then
3219 for ac_prog in cl.exe
3221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 printf %s "checking for $ac_word... " >&6; }
3225 if test ${ac_cv_prog_CC+y}
3226 then :
3227 printf %s "(cached) " >&6
3228 else case e in #(
3229 e) if test -n "$CC"; then
3230 ac_cv_prog_CC="$CC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3235 IFS=$as_save_IFS
3236 case $as_dir in #(((
3237 '') as_dir=./ ;;
3238 */) ;;
3239 *) as_dir=$as_dir/ ;;
3240 esac
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3249 IFS=$as_save_IFS
3251 fi ;;
3252 esac
3254 CC=$ac_cv_prog_CC
3255 if test -n "$CC"; then
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 printf "%s\n" "$CC" >&6; }
3258 else
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 printf "%s\n" "no" >&6; }
3264 test -n "$CC" && break
3265 done
3267 if test -z "$CC"; then
3268 ac_ct_CC=$CC
3269 for ac_prog in cl.exe
3271 # Extract the first word of "$ac_prog", so it can be a program name with args.
3272 set dummy $ac_prog; ac_word=$2
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 printf %s "checking for $ac_word... " >&6; }
3275 if test ${ac_cv_prog_ac_ct_CC+y}
3276 then :
3277 printf %s "(cached) " >&6
3278 else case e in #(
3279 e) if test -n "$ac_ct_CC"; then
3280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3285 IFS=$as_save_IFS
3286 case $as_dir in #(((
3287 '') as_dir=./ ;;
3288 */) ;;
3289 *) as_dir=$as_dir/ ;;
3290 esac
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_ac_ct_CC="$ac_prog"
3294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3299 IFS=$as_save_IFS
3301 fi ;;
3302 esac
3304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305 if test -n "$ac_ct_CC"; then
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307 printf "%s\n" "$ac_ct_CC" >&6; }
3308 else
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 printf "%s\n" "no" >&6; }
3314 test -n "$ac_ct_CC" && break
3315 done
3317 if test "x$ac_ct_CC" = x; then
3318 CC=""
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321 yes:)
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned=yes ;;
3325 esac
3326 CC=$ac_ct_CC
3331 if test -z "$CC"; then
3332 if test -n "$ac_tool_prefix"; then
3333 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3334 set dummy ${ac_tool_prefix}clang; ac_word=$2
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 printf %s "checking for $ac_word... " >&6; }
3337 if test ${ac_cv_prog_CC+y}
3338 then :
3339 printf %s "(cached) " >&6
3340 else case e in #(
3341 e) if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3347 IFS=$as_save_IFS
3348 case $as_dir in #(((
3349 '') as_dir=./ ;;
3350 */) ;;
3351 *) as_dir=$as_dir/ ;;
3352 esac
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_CC="${ac_tool_prefix}clang"
3356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3357 break 2
3359 done
3360 done
3361 IFS=$as_save_IFS
3363 fi ;;
3364 esac
3366 CC=$ac_cv_prog_CC
3367 if test -n "$CC"; then
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3369 printf "%s\n" "$CC" >&6; }
3370 else
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 printf "%s\n" "no" >&6; }
3377 if test -z "$ac_cv_prog_CC"; then
3378 ac_ct_CC=$CC
3379 # Extract the first word of "clang", so it can be a program name with args.
3380 set dummy clang; ac_word=$2
3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 printf %s "checking for $ac_word... " >&6; }
3383 if test ${ac_cv_prog_ac_ct_CC+y}
3384 then :
3385 printf %s "(cached) " >&6
3386 else case e in #(
3387 e) if test -n "$ac_ct_CC"; then
3388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3393 IFS=$as_save_IFS
3394 case $as_dir in #(((
3395 '') as_dir=./ ;;
3396 */) ;;
3397 *) as_dir=$as_dir/ ;;
3398 esac
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3401 ac_cv_prog_ac_ct_CC="clang"
3402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3403 break 2
3405 done
3406 done
3407 IFS=$as_save_IFS
3409 fi ;;
3410 esac
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 printf "%s\n" "$ac_ct_CC" >&6; }
3416 else
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 printf "%s\n" "no" >&6; }
3421 if test "x$ac_ct_CC" = x; then
3422 CC=""
3423 else
3424 case $cross_compiling:$ac_tool_warned in
3425 yes:)
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3427 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3428 ac_tool_warned=yes ;;
3429 esac
3430 CC=$ac_ct_CC
3432 else
3433 CC="$ac_cv_prog_CC"
3439 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3440 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3441 as_fn_error $? "no acceptable C compiler found in \$PATH
3442 See 'config.log' for more details" "$LINENO" 5; }
3444 # Provide some information about the compiler.
3445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3446 set X $ac_compile
3447 ac_compiler=$2
3448 for ac_option in --version -v -V -qversion -version; do
3449 { { ac_try="$ac_compiler $ac_option >&5"
3450 case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 printf "%s\n" "$ac_try_echo"; } >&5
3456 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3457 ac_status=$?
3458 if test -s conftest.err; then
3459 sed '10a\
3460 ... rest of stderr output deleted ...
3461 10q' conftest.err >conftest.er1
3462 cat conftest.er1 >&5
3464 rm -f conftest.er1 conftest.err
3465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }
3467 done
3469 EXEEXT=
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3471 printf %s "checking for suffix of object files... " >&6; }
3472 if test ${ac_cv_objext+y}
3473 then :
3474 printf %s "(cached) " >&6
3475 else case e in #(
3476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3480 main (void)
3484 return 0;
3486 _ACEOF
3487 rm -f conftest.o conftest.obj
3488 if { { ac_try="$ac_compile"
3489 case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 printf "%s\n" "$ac_try_echo"; } >&5
3495 (eval "$ac_compile") 2>&5
3496 ac_status=$?
3497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }
3499 then :
3500 for ac_file in conftest.o conftest.obj conftest.*; do
3501 test -f "$ac_file" || continue;
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505 break;;
3506 esac
3507 done
3508 else case e in #(
3509 e) printf "%s\n" "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3513 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3514 as_fn_error $? "cannot compute suffix of object files: cannot compile
3515 See 'config.log' for more details" "$LINENO" 5; } ;;
3516 esac
3518 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3519 esac
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3522 printf "%s\n" "$ac_cv_objext" >&6; }
3523 OBJEXT=$ac_cv_objext
3524 ac_objext=$OBJEXT
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3526 printf %s "checking whether the compiler supports GNU C... " >&6; }
3527 if test ${ac_cv_c_compiler_gnu+y}
3528 then :
3529 printf %s "(cached) " >&6
3530 else case e in #(
3531 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3535 main (void)
3537 #ifndef __GNUC__
3538 choke me
3539 #endif
3542 return 0;
3544 _ACEOF
3545 if ac_fn_c_try_compile "$LINENO"
3546 then :
3547 ac_compiler_gnu=yes
3548 else case e in #(
3549 e) ac_compiler_gnu=no ;;
3550 esac
3552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3555 esac
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3558 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561 if test $ac_compiler_gnu = yes; then
3562 GCC=yes
3563 else
3564 GCC=
3566 ac_test_CFLAGS=${CFLAGS+y}
3567 ac_save_CFLAGS=$CFLAGS
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3569 printf %s "checking whether $CC accepts -g... " >&6; }
3570 if test ${ac_cv_prog_cc_g+y}
3571 then :
3572 printf %s "(cached) " >&6
3573 else case e in #(
3574 e) ac_save_c_werror_flag=$ac_c_werror_flag
3575 ac_c_werror_flag=yes
3576 ac_cv_prog_cc_g=no
3577 CFLAGS="-g"
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3582 main (void)
3586 return 0;
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"
3590 then :
3591 ac_cv_prog_cc_g=yes
3592 else case e in #(
3593 e) CFLAGS=""
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3598 main (void)
3602 return 0;
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"
3606 then :
3608 else case e in #(
3609 e) ac_c_werror_flag=$ac_save_c_werror_flag
3610 CFLAGS="-g"
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3615 main (void)
3619 return 0;
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"
3623 then :
3624 ac_cv_prog_cc_g=yes
3626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3627 esac
3629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3630 esac
3632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3633 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3634 esac
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3637 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3638 if test $ac_test_CFLAGS; then
3639 CFLAGS=$ac_save_CFLAGS
3640 elif test $ac_cv_prog_cc_g = yes; then
3641 if test "$GCC" = yes; then
3642 CFLAGS="-g -O2"
3643 else
3644 CFLAGS="-g"
3646 else
3647 if test "$GCC" = yes; then
3648 CFLAGS="-O2"
3649 else
3650 CFLAGS=
3653 ac_prog_cc_stdc=no
3654 if test x$ac_prog_cc_stdc = xno
3655 then :
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3657 printf %s "checking for $CC option to enable C11 features... " >&6; }
3658 if test ${ac_cv_prog_cc_c11+y}
3659 then :
3660 printf %s "(cached) " >&6
3661 else case e in #(
3662 e) ac_cv_prog_cc_c11=no
3663 ac_save_CC=$CC
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666 $ac_c_conftest_c11_program
3667 _ACEOF
3668 for ac_arg in '' -std=gnu11
3670 CC="$ac_save_CC $ac_arg"
3671 if ac_fn_c_try_compile "$LINENO"
3672 then :
3673 ac_cv_prog_cc_c11=$ac_arg
3675 rm -f core conftest.err conftest.$ac_objext conftest.beam
3676 test "x$ac_cv_prog_cc_c11" != "xno" && break
3677 done
3678 rm -f conftest.$ac_ext
3679 CC=$ac_save_CC ;;
3680 esac
3683 if test "x$ac_cv_prog_cc_c11" = xno
3684 then :
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3686 printf "%s\n" "unsupported" >&6; }
3687 else case e in #(
3688 e) if test "x$ac_cv_prog_cc_c11" = x
3689 then :
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 printf "%s\n" "none needed" >&6; }
3692 else case e in #(
3693 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3694 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3695 CC="$CC $ac_cv_prog_cc_c11" ;;
3696 esac
3698 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3699 ac_prog_cc_stdc=c11 ;;
3700 esac
3703 if test x$ac_prog_cc_stdc = xno
3704 then :
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3706 printf %s "checking for $CC option to enable C99 features... " >&6; }
3707 if test ${ac_cv_prog_cc_c99+y}
3708 then :
3709 printf %s "(cached) " >&6
3710 else case e in #(
3711 e) ac_cv_prog_cc_c99=no
3712 ac_save_CC=$CC
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715 $ac_c_conftest_c99_program
3716 _ACEOF
3717 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3719 CC="$ac_save_CC $ac_arg"
3720 if ac_fn_c_try_compile "$LINENO"
3721 then :
3722 ac_cv_prog_cc_c99=$ac_arg
3724 rm -f core conftest.err conftest.$ac_objext conftest.beam
3725 test "x$ac_cv_prog_cc_c99" != "xno" && break
3726 done
3727 rm -f conftest.$ac_ext
3728 CC=$ac_save_CC ;;
3729 esac
3732 if test "x$ac_cv_prog_cc_c99" = xno
3733 then :
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735 printf "%s\n" "unsupported" >&6; }
3736 else case e in #(
3737 e) if test "x$ac_cv_prog_cc_c99" = x
3738 then :
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3740 printf "%s\n" "none needed" >&6; }
3741 else case e in #(
3742 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3743 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3744 CC="$CC $ac_cv_prog_cc_c99" ;;
3745 esac
3747 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3748 ac_prog_cc_stdc=c99 ;;
3749 esac
3752 if test x$ac_prog_cc_stdc = xno
3753 then :
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3755 printf %s "checking for $CC option to enable C89 features... " >&6; }
3756 if test ${ac_cv_prog_cc_c89+y}
3757 then :
3758 printf %s "(cached) " >&6
3759 else case e in #(
3760 e) ac_cv_prog_cc_c89=no
3761 ac_save_CC=$CC
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764 $ac_c_conftest_c89_program
3765 _ACEOF
3766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3768 CC="$ac_save_CC $ac_arg"
3769 if ac_fn_c_try_compile "$LINENO"
3770 then :
3771 ac_cv_prog_cc_c89=$ac_arg
3773 rm -f core conftest.err conftest.$ac_objext conftest.beam
3774 test "x$ac_cv_prog_cc_c89" != "xno" && break
3775 done
3776 rm -f conftest.$ac_ext
3777 CC=$ac_save_CC ;;
3778 esac
3781 if test "x$ac_cv_prog_cc_c89" = xno
3782 then :
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3784 printf "%s\n" "unsupported" >&6; }
3785 else case e in #(
3786 e) if test "x$ac_cv_prog_cc_c89" = x
3787 then :
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3789 printf "%s\n" "none needed" >&6; }
3790 else case e in #(
3791 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3793 CC="$CC $ac_cv_prog_cc_c89" ;;
3794 esac
3796 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3797 ac_prog_cc_stdc=c89 ;;
3798 esac
3802 ac_ext=c
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808 if test $host != $build; then
3809 for ac_prog in gcc cc
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 printf %s "checking for $ac_word... " >&6; }
3815 if test ${ac_cv_prog_BUILD_CC+y}
3816 then :
3817 printf %s "(cached) " >&6
3818 else case e in #(
3819 e) if test -n "$BUILD_CC"; then
3820 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3825 IFS=$as_save_IFS
3826 case $as_dir in #(((
3827 '') as_dir=./ ;;
3828 */) ;;
3829 *) as_dir=$as_dir/ ;;
3830 esac
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_BUILD_CC="$ac_prog"
3834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3835 break 2
3837 done
3838 done
3839 IFS=$as_save_IFS
3841 fi ;;
3842 esac
3844 BUILD_CC=$ac_cv_prog_BUILD_CC
3845 if test -n "$BUILD_CC"; then
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3847 printf "%s\n" "$BUILD_CC" >&6; }
3848 else
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 printf "%s\n" "no" >&6; }
3854 test -n "$BUILD_CC" && break
3855 done
3859 # On Suns, sometimes $CPP names a directory.
3860 if test -n "$CPP" && test -d "$CPP"; then
3861 CPP=
3863 if test -z "$CPP"; then
3864 CPP="$CC -E"
3868 # This will get text that should go into config.make.
3869 config_vars=
3871 # Check whether --enable-static-c++-tests was given.
3872 if test ${enable_static_c___tests+y}
3873 then :
3874 enableval=$enable_static_c___tests; static_cxx_tests=$enableval
3875 else case e in #(
3876 e) static_cxx_tests=yes ;;
3877 esac
3880 config_vars="$config_vars
3881 static-cxx-tests = $static_cxx_tests"
3883 # Check whether --enable-static-c++-link-check was given.
3884 if test ${enable_static_c___link_check+y}
3885 then :
3886 enableval=$enable_static_c___link_check; static_cxx_link_check=$enableval
3887 else case e in #(
3888 e) static_cxx_link_check=yes ;;
3889 esac
3893 # We need the C++ compiler only for testing.
3900 ac_ext=cpp
3901 ac_cpp='$CXXCPP $CPPFLAGS'
3902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3905 if test -z "$CXX"; then
3906 if test -n "$CCC"; then
3907 CXX=$CCC
3908 else
3909 if test -n "$ac_tool_prefix"; then
3910 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 printf %s "checking for $ac_word... " >&6; }
3916 if test ${ac_cv_prog_CXX+y}
3917 then :
3918 printf %s "(cached) " >&6
3919 else case e in #(
3920 e) if test -n "$CXX"; then
3921 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3926 IFS=$as_save_IFS
3927 case $as_dir in #(((
3928 '') as_dir=./ ;;
3929 */) ;;
3930 *) as_dir=$as_dir/ ;;
3931 esac
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3934 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3936 break 2
3938 done
3939 done
3940 IFS=$as_save_IFS
3942 fi ;;
3943 esac
3945 CXX=$ac_cv_prog_CXX
3946 if test -n "$CXX"; then
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3948 printf "%s\n" "$CXX" >&6; }
3949 else
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 printf "%s\n" "no" >&6; }
3955 test -n "$CXX" && break
3956 done
3958 if test -z "$CXX"; then
3959 ac_ct_CXX=$CXX
3960 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3962 # Extract the first word of "$ac_prog", so it can be a program name with args.
3963 set dummy $ac_prog; ac_word=$2
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 printf %s "checking for $ac_word... " >&6; }
3966 if test ${ac_cv_prog_ac_ct_CXX+y}
3967 then :
3968 printf %s "(cached) " >&6
3969 else case e in #(
3970 e) if test -n "$ac_ct_CXX"; then
3971 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3976 IFS=$as_save_IFS
3977 case $as_dir in #(((
3978 '') as_dir=./ ;;
3979 */) ;;
3980 *) as_dir=$as_dir/ ;;
3981 esac
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3984 ac_cv_prog_ac_ct_CXX="$ac_prog"
3985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3986 break 2
3988 done
3989 done
3990 IFS=$as_save_IFS
3992 fi ;;
3993 esac
3995 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3996 if test -n "$ac_ct_CXX"; then
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3998 printf "%s\n" "$ac_ct_CXX" >&6; }
3999 else
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 printf "%s\n" "no" >&6; }
4005 test -n "$ac_ct_CXX" && break
4006 done
4008 if test "x$ac_ct_CXX" = x; then
4009 CXX="g++"
4010 else
4011 case $cross_compiling:$ac_tool_warned in
4012 yes:)
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4014 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4015 ac_tool_warned=yes ;;
4016 esac
4017 CXX=$ac_ct_CXX
4023 # Provide some information about the compiler.
4024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4025 set X $ac_compile
4026 ac_compiler=$2
4027 for ac_option in --version -v -V -qversion; do
4028 { { ac_try="$ac_compiler $ac_option >&5"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 printf "%s\n" "$ac_try_echo"; } >&5
4035 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4036 ac_status=$?
4037 if test -s conftest.err; then
4038 sed '10a\
4039 ... rest of stderr output deleted ...
4040 10q' conftest.err >conftest.er1
4041 cat conftest.er1 >&5
4043 rm -f conftest.er1 conftest.err
4044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045 test $ac_status = 0; }
4046 done
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4049 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4050 if test ${ac_cv_cxx_compiler_gnu+y}
4051 then :
4052 printf %s "(cached) " >&6
4053 else case e in #(
4054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4058 main (void)
4060 #ifndef __GNUC__
4061 choke me
4062 #endif
4065 return 0;
4067 _ACEOF
4068 if ac_fn_cxx_try_compile "$LINENO"
4069 then :
4070 ac_compiler_gnu=yes
4071 else case e in #(
4072 e) ac_compiler_gnu=no ;;
4073 esac
4075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4076 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4078 esac
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4081 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4084 if test $ac_compiler_gnu = yes; then
4085 GXX=yes
4086 else
4087 GXX=
4089 ac_test_CXXFLAGS=${CXXFLAGS+y}
4090 ac_save_CXXFLAGS=$CXXFLAGS
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4092 printf %s "checking whether $CXX accepts -g... " >&6; }
4093 if test ${ac_cv_prog_cxx_g+y}
4094 then :
4095 printf %s "(cached) " >&6
4096 else case e in #(
4097 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4098 ac_cxx_werror_flag=yes
4099 ac_cv_prog_cxx_g=no
4100 CXXFLAGS="-g"
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4105 main (void)
4109 return 0;
4111 _ACEOF
4112 if ac_fn_cxx_try_compile "$LINENO"
4113 then :
4114 ac_cv_prog_cxx_g=yes
4115 else case e in #(
4116 e) CXXFLAGS=""
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4121 main (void)
4125 return 0;
4127 _ACEOF
4128 if ac_fn_cxx_try_compile "$LINENO"
4129 then :
4131 else case e in #(
4132 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4133 CXXFLAGS="-g"
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4138 main (void)
4142 return 0;
4144 _ACEOF
4145 if ac_fn_cxx_try_compile "$LINENO"
4146 then :
4147 ac_cv_prog_cxx_g=yes
4149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4150 esac
4152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4153 esac
4155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4156 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4157 esac
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4160 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4161 if test $ac_test_CXXFLAGS; then
4162 CXXFLAGS=$ac_save_CXXFLAGS
4163 elif test $ac_cv_prog_cxx_g = yes; then
4164 if test "$GXX" = yes; then
4165 CXXFLAGS="-g -O2"
4166 else
4167 CXXFLAGS="-g"
4169 else
4170 if test "$GXX" = yes; then
4171 CXXFLAGS="-O2"
4172 else
4173 CXXFLAGS=
4176 ac_prog_cxx_stdcxx=no
4177 if test x$ac_prog_cxx_stdcxx = xno
4178 then :
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4180 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4181 if test ${ac_cv_prog_cxx_cxx11+y}
4182 then :
4183 printf %s "(cached) " >&6
4184 else case e in #(
4185 e) ac_cv_prog_cxx_cxx11=no
4186 ac_save_CXX=$CXX
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 $ac_cxx_conftest_cxx11_program
4190 _ACEOF
4191 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4193 CXX="$ac_save_CXX $ac_arg"
4194 if ac_fn_cxx_try_compile "$LINENO"
4195 then :
4196 ac_cv_prog_cxx_cxx11=$ac_arg
4198 rm -f core conftest.err conftest.$ac_objext conftest.beam
4199 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4200 done
4201 rm -f conftest.$ac_ext
4202 CXX=$ac_save_CXX ;;
4203 esac
4206 if test "x$ac_cv_prog_cxx_cxx11" = xno
4207 then :
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4209 printf "%s\n" "unsupported" >&6; }
4210 else case e in #(
4211 e) if test "x$ac_cv_prog_cxx_cxx11" = x
4212 then :
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4214 printf "%s\n" "none needed" >&6; }
4215 else case e in #(
4216 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4217 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4218 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4219 esac
4221 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4222 ac_prog_cxx_stdcxx=cxx11 ;;
4223 esac
4226 if test x$ac_prog_cxx_stdcxx = xno
4227 then :
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4229 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4230 if test ${ac_cv_prog_cxx_cxx98+y}
4231 then :
4232 printf %s "(cached) " >&6
4233 else case e in #(
4234 e) ac_cv_prog_cxx_cxx98=no
4235 ac_save_CXX=$CXX
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 $ac_cxx_conftest_cxx98_program
4239 _ACEOF
4240 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4242 CXX="$ac_save_CXX $ac_arg"
4243 if ac_fn_cxx_try_compile "$LINENO"
4244 then :
4245 ac_cv_prog_cxx_cxx98=$ac_arg
4247 rm -f core conftest.err conftest.$ac_objext conftest.beam
4248 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4249 done
4250 rm -f conftest.$ac_ext
4251 CXX=$ac_save_CXX ;;
4252 esac
4255 if test "x$ac_cv_prog_cxx_cxx98" = xno
4256 then :
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258 printf "%s\n" "unsupported" >&6; }
4259 else case e in #(
4260 e) if test "x$ac_cv_prog_cxx_cxx98" = x
4261 then :
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4263 printf "%s\n" "none needed" >&6; }
4264 else case e in #(
4265 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4266 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4267 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4268 esac
4270 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4271 ac_prog_cxx_stdcxx=cxx98 ;;
4272 esac
4276 ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
4285 printf %s "checking whether $CXX can link programs... " >&6; }
4286 if test ${libc_cv_cxx_link_ok+y}
4287 then :
4288 printf %s "(cached) " >&6
4289 else case e in #(
4290 e) ac_ext=cpp
4291 ac_cpp='$CXXCPP $CPPFLAGS'
4292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4296 # Default, dynamic case.
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4301 main (void)
4305 return 0;
4307 _ACEOF
4308 if ac_fn_cxx_try_link "$LINENO"
4309 then :
4310 libc_cv_cxx_link_ok=yes
4311 else case e in #(
4312 e) libc_cv_cxx_link_ok=no ;;
4313 esac
4315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4316 conftest$ac_exeext conftest.$ac_ext
4317 if test $static_cxx_link_check$static_cxx_tests = yesyes; then
4318 # Static case.
4319 old_LDFLAGS="$LDFLAGS"
4320 LDFLAGS="$LDFLAGS -static"
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4324 #include <iostream>
4327 main()
4329 std::cout << "Hello, world!";
4330 return 0;
4333 _ACEOF
4334 if ac_fn_cxx_try_link "$LINENO"
4335 then :
4337 else case e in #(
4338 e) libc_cv_cxx_link_ok=no ;;
4339 esac
4341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4342 conftest$ac_exeext conftest.$ac_ext
4343 LDFLAGS="$old_LDFLAGS"
4345 ac_ext=c
4346 ac_cpp='$CPP $CPPFLAGS'
4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351 esac
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
4354 printf "%s\n" "$libc_cv_cxx_link_ok" >&6; }
4355 if test $libc_cv_cxx_link_ok != yes
4356 then :
4357 CXX=
4360 if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
4361 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
4364 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
4366 # Check whether --with-gd was given.
4367 if test ${with_gd+y}
4368 then :
4369 withval=$with_gd; case "$with_gd" in
4370 yes|''|no) ;;
4371 *) libgd_include="-I$withval/include"
4372 libgd_ldflags="-L$withval/lib" ;;
4373 esac
4378 # Check whether --with-gd-include was given.
4379 if test ${with_gd_include+y}
4380 then :
4381 withval=$with_gd_include; case "$with_gd_include" in
4382 ''|no) ;;
4383 *) libgd_include="-I$withval" ;;
4384 esac
4389 # Check whether --with-gd-lib was given.
4390 if test ${with_gd_lib+y}
4391 then :
4392 withval=$with_gd_lib; case "$with_gd_lib" in
4393 ''|no) ;;
4394 *) libgd_ldflags="-L$withval" ;;
4395 esac
4400 if test -n "$libgd_include"; then
4401 config_vars="$config_vars
4402 CFLAGS-memusagestat.c = $libgd_include"
4404 if test -n "$libgd_ldflags"; then
4405 config_vars="$config_vars
4406 libgd-LDFLAGS = $libgd_ldflags"
4410 # Check whether --with-binutils was given.
4411 if test ${with_binutils+y}
4412 then :
4413 withval=$with_binutils; path_binutils=$withval
4414 else case e in #(
4415 e) path_binutils='' ;;
4416 esac
4420 # Check whether --with-selinux was given.
4421 if test ${with_selinux+y}
4422 then :
4423 withval=$with_selinux; with_selinux=$withval
4424 else case e in #(
4425 e) with_selinux=auto ;;
4426 esac
4431 # Check whether --with-headers was given.
4432 if test ${with_headers+y}
4433 then :
4434 withval=$with_headers; sysheaders=$withval
4435 else case e in #(
4436 e) sysheaders='' ;;
4437 esac
4443 # Check whether --with-nonshared-cflags was given.
4444 if test ${with_nonshared_cflags+y}
4445 then :
4446 withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval
4447 else case e in #(
4448 e) extra_nonshared_cflags= ;;
4449 esac
4454 # Check whether --with-rtld-early-cflags was given.
4455 if test ${with_rtld_early_cflags+y}
4456 then :
4457 withval=$with_rtld_early_cflags; rtld_early_cflags=$withval
4458 else case e in #(
4459 e) rtld_early_cflags= ;;
4460 esac
4466 # Check whether --with-timeoutfactor was given.
4467 if test ${with_timeoutfactor+y}
4468 then :
4469 withval=$with_timeoutfactor; timeoutfactor=$withval
4470 else case e in #(
4471 e) timeoutfactor=1 ;;
4472 esac
4475 printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h
4478 man_pages_version=6.9.1
4481 # Check whether --with-man-pages was given.
4482 if test ${with_man_pages+y}
4483 then :
4484 withval=$with_man_pages; man_pages_version=$withval
4489 # Check whether --enable-sanity-checks was given.
4490 if test ${enable_sanity_checks+y}
4491 then :
4492 enableval=$enable_sanity_checks; enable_sanity=$enableval
4493 else case e in #(
4494 e) enable_sanity=yes ;;
4495 esac
4499 # Check whether --enable-shared was given.
4500 if test ${enable_shared+y}
4501 then :
4502 enableval=$enable_shared; shared=$enableval
4503 else case e in #(
4504 e) shared=yes ;;
4505 esac
4508 # Check whether --enable-profile was given.
4509 if test ${enable_profile+y}
4510 then :
4511 enableval=$enable_profile; profile=$enableval
4512 else case e in #(
4513 e) profile=no ;;
4514 esac
4517 # Check whether --enable-default-pie was given.
4518 if test ${enable_default_pie+y}
4519 then :
4520 enableval=$enable_default_pie; default_pie=$enableval
4521 else case e in #(
4522 e) default_pie=yes ;;
4523 esac
4526 # Check whether --enable-timezone-tools was given.
4527 if test ${enable_timezone_tools+y}
4528 then :
4529 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
4530 else case e in #(
4531 e) enable_timezone_tools=yes ;;
4532 esac
4537 # Check whether --enable-hardcoded-path-in-tests was given.
4538 if test ${enable_hardcoded_path_in_tests+y}
4539 then :
4540 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
4541 else case e in #(
4542 e) hardcoded_path_in_tests=no ;;
4543 esac
4548 # Check whether --enable-hidden-plt was given.
4549 if test ${enable_hidden_plt+y}
4550 then :
4551 enableval=$enable_hidden_plt; hidden=$enableval
4552 else case e in #(
4553 e) hidden=yes ;;
4554 esac
4557 if test "x$hidden" = xno; then
4558 printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h
4562 # Check whether --enable-bind-now was given.
4563 if test ${enable_bind_now+y}
4564 then :
4565 enableval=$enable_bind_now; bindnow=$enableval
4566 else case e in #(
4567 e) bindnow=no ;;
4568 esac
4572 if test "x$bindnow" = xyes; then
4573 printf "%s\n" "#define BIND_NOW 1" >>confdefs.h
4577 # Check whether --enable-stack-protector was given.
4578 if test ${enable_stack_protector+y}
4579 then :
4580 enableval=$enable_stack_protector; enable_stack_protector=$enableval
4581 else case e in #(
4582 e) enable_stack_protector=no ;;
4583 esac
4586 case "$enable_stack_protector" in
4587 all|yes|no|strong) ;;
4588 *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;;
4589 esac
4591 # Check whether --enable-static-nss was given.
4592 if test ${enable_static_nss+y}
4593 then :
4594 enableval=$enable_static_nss; static_nss=$enableval
4595 else case e in #(
4596 e) static_nss=no ;;
4597 esac
4600 if test x"$static_nss" = xyes || test x"$shared" = xno; then
4601 static_nss=yes
4602 printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h
4606 # Check whether --enable-force-install was given.
4607 if test ${enable_force_install+y}
4608 then :
4609 enableval=$enable_force_install; force_install=$enableval
4610 else case e in #(
4611 e) force_install=yes ;;
4612 esac
4617 # Check whether --enable-maintainer-mode was given.
4618 if test ${enable_maintainer_mode+y}
4619 then :
4620 enableval=$enable_maintainer_mode; maintainer=$enableval
4621 else case e in #(
4622 e) maintainer=no ;;
4623 esac
4627 # Check whether --enable-kernel was given.
4628 if test ${enable_kernel+y}
4629 then :
4630 enableval=$enable_kernel; minimum_kernel=$enableval
4633 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
4634 # Better nothing than this.
4635 minimum_kernel=""
4636 else
4637 if test "$minimum_kernel" = current; then
4638 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
4642 # Check whether --enable-werror was given.
4643 if test ${enable_werror+y}
4644 then :
4645 enableval=$enable_werror; enable_werror=$enableval
4646 else case e in #(
4647 e) enable_werror=yes ;;
4648 esac
4653 # Check whether --enable-multi-arch was given.
4654 if test ${enable_multi_arch+y}
4655 then :
4656 enableval=$enable_multi_arch; multi_arch=$enableval
4657 else case e in #(
4658 e) multi_arch=default ;;
4659 esac
4663 # Check whether --enable-memory-tagging was given.
4664 if test ${enable_memory_tagging+y}
4665 then :
4666 enableval=$enable_memory_tagging; memory_tagging=$enableval
4667 else case e in #(
4668 e) memory_tagging=no ;;
4669 esac
4672 if test "$memory_tagging" = yes; then
4673 # Only enable this on architectures that support it.
4674 case $host_cpu in
4675 aarch64)
4676 printf "%s\n" "#define USE_MTAG 1" >>confdefs.h
4679 esac
4683 # Check whether --enable-systemtap was given.
4684 if test ${enable_systemtap+y}
4685 then :
4686 enableval=$enable_systemtap; systemtap=$enableval
4687 else case e in #(
4688 e) systemtap=no ;;
4689 esac
4692 if test "x$systemtap" != xno; then
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
4695 printf %s "checking for systemtap static probe support... " >&6; }
4696 if test ${libc_cv_sdt+y}
4697 then :
4698 printf %s "(cached) " >&6
4699 else case e in #(
4700 e) old_CFLAGS="$CFLAGS"
4701 CFLAGS="-std=gnu11 $CFLAGS"
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704 #include <sys/sdt.h>
4705 void foo (int i, void *p)
4707 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
4708 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"
4712 then :
4713 libc_cv_sdt=yes
4714 else case e in #(
4715 e) libc_cv_sdt=no ;;
4716 esac
4718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4719 CFLAGS="$old_CFLAGS" ;;
4720 esac
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
4723 printf "%s\n" "$libc_cv_sdt" >&6; }
4724 if test $libc_cv_sdt = yes; then
4725 printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h
4727 elif test "x$systemtap" != xauto; then
4728 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4729 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4730 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
4731 See 'config.log' for more details" "$LINENO" 5; }
4735 # Check whether --enable-build-nscd was given.
4736 if test ${enable_build_nscd+y}
4737 then :
4738 enableval=$enable_build_nscd; build_nscd=$enableval
4739 else case e in #(
4740 e) build_nscd=default ;;
4741 esac
4746 # Note the use of $use_nscd is near the bottom of the file.
4747 # Check whether --enable-nscd was given.
4748 if test ${enable_nscd+y}
4749 then :
4750 enableval=$enable_nscd; use_nscd=$enableval
4751 else case e in #(
4752 e) use_nscd=yes ;;
4753 esac
4757 # Check whether --enable-pt_chown was given.
4758 if test ${enable_pt_chown+y}
4759 then :
4760 enableval=$enable_pt_chown; build_pt_chown=$enableval
4761 else case e in #(
4762 e) build_pt_chown=no ;;
4763 esac
4767 if test "$build_pt_chown" = yes; then
4768 printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h
4772 # The abi-tags file uses a fairly simplistic model for name recognition that
4773 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
4774 # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
4775 # This doesn't get used much beyond that, so it's fairly safe.
4776 case "$host_os" in
4777 linux*)
4779 gnu*)
4780 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
4782 esac
4784 # Check whether --enable-mathvec was given.
4785 if test ${enable_mathvec+y}
4786 then :
4787 enableval=$enable_mathvec; build_mathvec=$enableval
4788 else case e in #(
4789 e) build_mathvec=notset ;;
4790 esac
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4799 main (void)
4802 #ifndef __CET__
4803 # error no CET compiler support
4804 #endif
4806 return 0;
4808 _ACEOF
4809 if ac_fn_c_try_cpp "$LINENO"
4810 then :
4811 libc_cv_compiler_default_cet=yes
4812 else case e in #(
4813 e) libc_cv_compiler_default_cet=no ;;
4814 esac
4816 rm -f conftest.err conftest.i conftest.$ac_ext
4818 # Check whether --enable-cet was given.
4819 if test ${enable_cet+y}
4820 then :
4821 enableval=$enable_cet; enable_cet=$enableval
4822 else case e in #(
4823 e) enable_cet=$libc_cv_compiler_default_cet ;;
4824 esac
4828 # Check whether --enable-scv was given.
4829 if test ${enable_scv+y}
4830 then :
4831 enableval=$enable_scv; use_scv=$enableval
4832 else case e in #(
4833 e) use_scv=yes ;;
4834 esac
4838 if test "$use_scv" != "no"
4839 then :
4840 printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h
4844 # Check whether --enable-fortify-source was given.
4845 if test ${enable_fortify_source+y}
4846 then :
4847 enableval=$enable_fortify_source; enable_fortify_source=$enableval
4848 else case e in #(
4849 e) enable_fortify_source=no ;;
4850 esac
4853 case "$enable_fortify_source" in
4854 1|2|3|no|yes) ;;
4855 *) as_fn_error $? "Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;;
4856 esac
4858 # We keep the original values in `$config_*' and never modify them, so we
4859 # can write them unchanged into config.make. Everything else uses
4860 # $machine, $vendor, and $os, and changes them whenever convenient.
4861 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
4863 # Don't allow vendor == "unknown"
4864 test "$config_vendor" = unknown && config_vendor=
4865 config_os="`echo $config_os | sed 's/^unknown-//'`"
4867 # Some configurations imply other options.
4868 elf=yes
4870 # The configure fragment of a port can modify these to supplement
4871 # or override the table in the case statement below. No fragment should
4872 # ever change the config_* variables, however.
4873 machine=$config_machine
4874 vendor=$config_vendor
4875 os=$config_os
4876 base_os=''
4878 submachine=
4880 # Check whether --with-cpu was given.
4881 if test ${with_cpu+y}
4882 then :
4883 withval=$with_cpu; case "$withval" in
4884 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
4885 no) ;;
4886 *) submachine="$withval" ;;
4887 esac
4892 # An preconfigure script can set this when it wants to disable the sanity
4893 # check below.
4894 libc_config_ok=no
4896 # A preconfigure script for a system that may or may not use fpu
4897 # sysdeps directories sets this to a preprocessor conditional for
4898 # whether to use such directories.
4899 with_fp_cond=1
4901 # A preconfigure script may define another name to TLS descriptor variant
4902 mtls_descriptor=gnu2
4904 if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
4905 then
4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
4907 printf %s "checking for sysdeps preconfigure fragments... " >&6; }
4908 for frag in $frags; do
4909 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4910 echo $ECHO_N "$name $ECHO_C" >&6
4911 . "$frag"
4912 done
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
4914 printf "%s\n" "" >&6; }
4919 ### By using the undocumented --enable-hacker-mode option for configure
4920 ### one can skip this test to make the configuration not fail for unsupported
4921 ### platforms.
4923 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4924 case "$machine-$host_os" in
4925 *-linux* | *-gnu*)
4928 as_fn_error $? "
4929 *** The GNU C library is currently unavailable for this platform.
4930 *** If you are interested in seeing glibc on this platform visit
4931 *** the \"How to submit a new port\" in the wiki:
4932 *** https://sourceware.org/glibc/wiki/#Development
4933 *** and join the community!" "$LINENO" 5
4935 esac
4938 # Set base_machine if not set by a preconfigure fragment.
4939 test -n "$base_machine" || base_machine=$machine
4942 ### Locate tools.
4945 # Find a good install program. We prefer a C program (faster),
4946 # so one script is as good as another. But avoid the broken or
4947 # incompatible versions:
4948 # SysV /etc/install, /usr/sbin/install
4949 # SunOS /usr/etc/install
4950 # IRIX /sbin/install
4951 # AIX /bin/install
4952 # AmigaOS /C/install, which installs bootblocks on floppy discs
4953 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4954 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4955 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4956 # OS/2's system install, which has a completely different semantic
4957 # ./install, which can be erroneously created by make from ./install.sh.
4958 # Reject install programs that cannot install multiple files.
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4960 printf %s "checking for a BSD-compatible install... " >&6; }
4961 if test -z "$INSTALL"; then
4962 if test ${ac_cv_path_install+y}
4963 then :
4964 printf %s "(cached) " >&6
4965 else case e in #(
4966 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 case $as_dir in #(((
4971 '') as_dir=./ ;;
4972 */) ;;
4973 *) as_dir=$as_dir/ ;;
4974 esac
4975 # Account for fact that we put trailing slashes in our PATH walk.
4976 case $as_dir in #((
4977 ./ | /[cC]/* | \
4978 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4979 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4980 /usr/ucb/* ) ;;
4982 # OSF1 and SCO ODT 3.0 have their own names for install.
4983 # Don't use installbsd from OSF since it installs stuff as root
4984 # by default.
4985 for ac_prog in ginstall scoinst install; do
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4988 if test $ac_prog = install &&
4989 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4990 # AIX install. It has an incompatible calling convention.
4992 elif test $ac_prog = install &&
4993 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4994 # program-specific install script used by HP pwplus--don't use.
4996 else
4997 rm -rf conftest.one conftest.two conftest.dir
4998 echo one > conftest.one
4999 echo two > conftest.two
5000 mkdir conftest.dir
5001 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
5002 test -s conftest.one && test -s conftest.two &&
5003 test -s conftest.dir/conftest.one &&
5004 test -s conftest.dir/conftest.two
5005 then
5006 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
5007 break 3
5011 done
5012 done
5014 esac
5016 done
5017 IFS=$as_save_IFS
5019 rm -rf conftest.one conftest.two conftest.dir
5021 esac
5023 if test ${ac_cv_path_install+y}; then
5024 INSTALL=$ac_cv_path_install
5025 else
5026 # As a last resort, use the slow shell script. Don't cache a
5027 # value for INSTALL within a source directory, because that will
5028 # break other packages using the cache if that directory is
5029 # removed, or if the value is a relative name.
5030 INSTALL=$ac_install_sh
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5034 printf "%s\n" "$INSTALL" >&6; }
5036 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5037 # It thinks the first close brace ends the variable substitution.
5038 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5040 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5042 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5044 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
5045 # The makefiles need to use a different form to find it in $srcdir.
5046 INSTALL='\$(..)./scripts/install-sh -c'
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5049 printf %s "checking whether ln -s works... " >&6; }
5050 LN_S=$as_ln_s
5051 if test "$LN_S" = "ln -s"; then
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053 printf "%s\n" "yes" >&6; }
5054 else
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5056 printf "%s\n" "no, using $LN_S" >&6; }
5060 # Was a --with-binutils option given?
5061 if test -n "$path_binutils"; then
5062 # Make absolute; ensure a single trailing slash.
5063 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
5064 CC="$CC -B$path_binutils"
5066 case "$CC" in
5067 *fuse-ld=lld*) LDNAME=ld.lld;;
5068 *) LDNAME=ld;;
5069 esac
5070 if test -z "$LD"; then
5071 LD=`$CC -print-prog-name=$LDNAME`
5073 if test -z "$AR"; then
5074 AR=`$CC -print-prog-name=ar`
5077 if test -z "$OBJCOPY"; then
5078 OBJCOPY=`$CC -print-prog-name=objcopy`
5081 if test -z "$GPROF"; then
5082 GPROF=`$CC -print-prog-name=gprof`
5085 if test -z "$READELF"; then
5086 READELF=`$CC -print-prog-name=readelf`
5089 if test -z "$OBJDUMP"; then
5090 OBJDUMP=`$CC -print-prog-name=objdump`
5093 if test -z "$NM"; then
5094 NM=`$CC -print-prog-name=nm`
5099 # Accept binutils 2.25 or newer.
5100 libc_cv_with_lld=no
5101 case $($LD --version) in
5102 "GNU gold"*)
5103 # Accept gold 1.14 or higher
5104 for ac_prog in $LD
5106 # Extract the first word of "$ac_prog", so it can be a program name with args.
5107 set dummy $ac_prog; ac_word=$2
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 printf %s "checking for $ac_word... " >&6; }
5110 if test ${ac_cv_prog_LD+y}
5111 then :
5112 printf %s "(cached) " >&6
5113 else case e in #(
5114 e) if test -n "$LD"; then
5115 ac_cv_prog_LD="$LD" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5120 IFS=$as_save_IFS
5121 case $as_dir in #(((
5122 '') as_dir=./ ;;
5123 */) ;;
5124 *) as_dir=$as_dir/ ;;
5125 esac
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_LD="$ac_prog"
5129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5130 break 2
5132 done
5133 done
5134 IFS=$as_save_IFS
5136 fi ;;
5137 esac
5139 LD=$ac_cv_prog_LD
5140 if test -n "$LD"; then
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5142 printf "%s\n" "$LD" >&6; }
5143 else
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 printf "%s\n" "no" >&6; }
5149 test -n "$LD" && break
5150 done
5152 if test -z "$LD"; then
5153 ac_verc_fail=yes
5154 else
5155 # Found it, now check the version.
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5157 printf %s "checking version of $LD... " >&6; }
5158 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5159 case $ac_prog_version in
5160 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5161 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*)
5162 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5163 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5165 esac
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5167 printf "%s\n" "$ac_prog_version" >&6; }
5169 if test $ac_verc_fail = yes; then
5170 LD=: critic_missing="$critic_missing GNU gold"
5174 "LLD"*)
5175 # Accept LLD 13.0.0 or higher
5176 for ac_prog in $LD
5178 # Extract the first word of "$ac_prog", so it can be a program name with args.
5179 set dummy $ac_prog; ac_word=$2
5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 printf %s "checking for $ac_word... " >&6; }
5182 if test ${ac_cv_prog_LD+y}
5183 then :
5184 printf %s "(cached) " >&6
5185 else case e in #(
5186 e) if test -n "$LD"; then
5187 ac_cv_prog_LD="$LD" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 case $as_dir in #(((
5194 '') as_dir=./ ;;
5195 */) ;;
5196 *) as_dir=$as_dir/ ;;
5197 esac
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_LD="$ac_prog"
5201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5208 fi ;;
5209 esac
5211 LD=$ac_cv_prog_LD
5212 if test -n "$LD"; then
5213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5214 printf "%s\n" "$LD" >&6; }
5215 else
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 printf "%s\n" "no" >&6; }
5221 test -n "$LD" && break
5222 done
5224 if test -z "$LD"; then
5225 ac_verc_fail=yes
5226 else
5227 # Found it, now check the version.
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5229 printf %s "checking version of $LD... " >&6; }
5230 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5231 case $ac_prog_version in
5232 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5233 1[3-9].*|[2-9][0-9].*)
5234 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5235 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5237 esac
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5239 printf "%s\n" "$ac_prog_version" >&6; }
5241 if test $ac_verc_fail = yes; then
5242 LD=: critic_missing="$critic_missing LLD"
5245 libc_cv_with_lld=yes
5248 for ac_prog in $LD
5250 # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy $ac_prog; ac_word=$2
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 printf %s "checking for $ac_word... " >&6; }
5254 if test ${ac_cv_prog_LD+y}
5255 then :
5256 printf %s "(cached) " >&6
5257 else case e in #(
5258 e) if test -n "$LD"; then
5259 ac_cv_prog_LD="$LD" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5264 IFS=$as_save_IFS
5265 case $as_dir in #(((
5266 '') as_dir=./ ;;
5267 */) ;;
5268 *) as_dir=$as_dir/ ;;
5269 esac
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_LD="$ac_prog"
5273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5274 break 2
5276 done
5277 done
5278 IFS=$as_save_IFS
5280 fi ;;
5281 esac
5283 LD=$ac_cv_prog_LD
5284 if test -n "$LD"; then
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5286 printf "%s\n" "$LD" >&6; }
5287 else
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 printf "%s\n" "no" >&6; }
5293 test -n "$LD" && break
5294 done
5296 if test -z "$LD"; then
5297 ac_verc_fail=yes
5298 else
5299 # Found it, now check the version.
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5301 printf %s "checking version of $LD... " >&6; }
5302 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5303 case $ac_prog_version in
5304 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5305 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
5306 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5307 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5309 esac
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5311 printf "%s\n" "$ac_prog_version" >&6; }
5313 if test $ac_verc_fail = yes; then
5314 LD=: critic_missing="$critic_missing GNU ld"
5318 esac
5319 config_vars="$config_vars
5320 with-lld = $libc_cv_with_lld"
5322 # These programs are version sensitive.
5323 for ac_prog in gnumake gmake make
5325 # Extract the first word of "$ac_prog", so it can be a program name with args.
5326 set dummy $ac_prog; ac_word=$2
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 printf %s "checking for $ac_word... " >&6; }
5329 if test ${ac_cv_prog_MAKE+y}
5330 then :
5331 printf %s "(cached) " >&6
5332 else case e in #(
5333 e) if test -n "$MAKE"; then
5334 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5339 IFS=$as_save_IFS
5340 case $as_dir in #(((
5341 '') as_dir=./ ;;
5342 */) ;;
5343 *) as_dir=$as_dir/ ;;
5344 esac
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5347 ac_cv_prog_MAKE="$ac_prog"
5348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5349 break 2
5351 done
5352 done
5353 IFS=$as_save_IFS
5355 fi ;;
5356 esac
5358 MAKE=$ac_cv_prog_MAKE
5359 if test -n "$MAKE"; then
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5361 printf "%s\n" "$MAKE" >&6; }
5362 else
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 printf "%s\n" "no" >&6; }
5368 test -n "$MAKE" && break
5369 done
5371 if test -z "$MAKE"; then
5372 ac_verc_fail=yes
5373 else
5374 # Found it, now check the version.
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
5376 printf %s "checking version of $MAKE... " >&6; }
5377 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5378 case $ac_prog_version in
5379 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5380 [4-9].* | [1-9][0-9]*)
5381 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5382 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5384 esac
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5386 printf "%s\n" "$ac_prog_version" >&6; }
5388 if test $ac_verc_fail = yes; then
5389 critic_missing="$critic_missing make"
5393 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5395 # Extract the first word of "$ac_prog", so it can be a program name with args.
5396 set dummy $ac_prog; ac_word=$2
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 printf %s "checking for $ac_word... " >&6; }
5399 if test ${ac_cv_prog_MSGFMT+y}
5400 then :
5401 printf %s "(cached) " >&6
5402 else case e in #(
5403 e) if test -n "$MSGFMT"; then
5404 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5409 IFS=$as_save_IFS
5410 case $as_dir in #(((
5411 '') as_dir=./ ;;
5412 */) ;;
5413 *) as_dir=$as_dir/ ;;
5414 esac
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_MSGFMT="$ac_prog"
5418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5419 break 2
5421 done
5422 done
5423 IFS=$as_save_IFS
5425 fi ;;
5426 esac
5428 MSGFMT=$ac_cv_prog_MSGFMT
5429 if test -n "$MSGFMT"; then
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5431 printf "%s\n" "$MSGFMT" >&6; }
5432 else
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 printf "%s\n" "no" >&6; }
5438 test -n "$MSGFMT" && break
5439 done
5441 if test -z "$MSGFMT"; then
5442 ac_verc_fail=yes
5443 else
5444 # Found it, now check the version.
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5446 printf %s "checking version of $MSGFMT... " >&6; }
5447 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5448 case $ac_prog_version in
5449 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5450 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5451 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5452 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5454 esac
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5456 printf "%s\n" "$ac_prog_version" >&6; }
5458 if test $ac_verc_fail = yes; then
5459 MSGFMT=: aux_missing="$aux_missing msgfmt"
5462 for ac_prog in makeinfo
5464 # Extract the first word of "$ac_prog", so it can be a program name with args.
5465 set dummy $ac_prog; ac_word=$2
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 printf %s "checking for $ac_word... " >&6; }
5468 if test ${ac_cv_prog_MAKEINFO+y}
5469 then :
5470 printf %s "(cached) " >&6
5471 else case e in #(
5472 e) if test -n "$MAKEINFO"; then
5473 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5478 IFS=$as_save_IFS
5479 case $as_dir in #(((
5480 '') as_dir=./ ;;
5481 */) ;;
5482 *) as_dir=$as_dir/ ;;
5483 esac
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5486 ac_cv_prog_MAKEINFO="$ac_prog"
5487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5488 break 2
5490 done
5491 done
5492 IFS=$as_save_IFS
5494 fi ;;
5495 esac
5497 MAKEINFO=$ac_cv_prog_MAKEINFO
5498 if test -n "$MAKEINFO"; then
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5500 printf "%s\n" "$MAKEINFO" >&6; }
5501 else
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 printf "%s\n" "no" >&6; }
5507 test -n "$MAKEINFO" && break
5508 done
5510 if test -z "$MAKEINFO"; then
5511 ac_verc_fail=yes
5512 else
5513 # Found it, now check the version.
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5515 printf %s "checking version of $MAKEINFO... " >&6; }
5516 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5517 case $ac_prog_version in
5518 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5519 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
5520 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5521 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5523 esac
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5525 printf "%s\n" "$ac_prog_version" >&6; }
5527 if test $ac_verc_fail = yes; then
5528 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5531 for ac_prog in sed
5533 # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy $ac_prog; ac_word=$2
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 printf %s "checking for $ac_word... " >&6; }
5537 if test ${ac_cv_prog_SED+y}
5538 then :
5539 printf %s "(cached) " >&6
5540 else case e in #(
5541 e) if test -n "$SED"; then
5542 ac_cv_prog_SED="$SED" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 case $as_dir in #(((
5549 '') as_dir=./ ;;
5550 */) ;;
5551 *) as_dir=$as_dir/ ;;
5552 esac
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5555 ac_cv_prog_SED="$ac_prog"
5556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5557 break 2
5559 done
5560 done
5561 IFS=$as_save_IFS
5563 fi ;;
5564 esac
5566 SED=$ac_cv_prog_SED
5567 if test -n "$SED"; then
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5569 printf "%s\n" "$SED" >&6; }
5570 else
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 printf "%s\n" "no" >&6; }
5576 test -n "$SED" && break
5577 done
5579 if test -z "$SED"; then
5580 ac_verc_fail=yes
5581 else
5582 # Found it, now check the version.
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5584 printf %s "checking version of $SED... " >&6; }
5585 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5586 case $ac_prog_version in
5587 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5588 3.0[2-9]*|3.[1-9]*|[4-9]*)
5589 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5590 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5592 esac
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5594 printf "%s\n" "$ac_prog_version" >&6; }
5596 if test $ac_verc_fail = yes; then
5597 SED=: aux_missing="$aux_missing sed"
5600 for ac_prog in gawk
5602 # Extract the first word of "$ac_prog", so it can be a program name with args.
5603 set dummy $ac_prog; ac_word=$2
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 printf %s "checking for $ac_word... " >&6; }
5606 if test ${ac_cv_prog_AWK+y}
5607 then :
5608 printf %s "(cached) " >&6
5609 else case e in #(
5610 e) if test -n "$AWK"; then
5611 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5616 IFS=$as_save_IFS
5617 case $as_dir in #(((
5618 '') as_dir=./ ;;
5619 */) ;;
5620 *) as_dir=$as_dir/ ;;
5621 esac
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5624 ac_cv_prog_AWK="$ac_prog"
5625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5626 break 2
5628 done
5629 done
5630 IFS=$as_save_IFS
5632 fi ;;
5633 esac
5635 AWK=$ac_cv_prog_AWK
5636 if test -n "$AWK"; then
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5638 printf "%s\n" "$AWK" >&6; }
5639 else
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 printf "%s\n" "no" >&6; }
5645 test -n "$AWK" && break
5646 done
5648 if test -z "$AWK"; then
5649 ac_verc_fail=yes
5650 else
5651 # Found it, now check the version.
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
5653 printf %s "checking version of $AWK... " >&6; }
5654 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5655 case $ac_prog_version in
5656 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5657 3.1.[2-9]*|3.[2-9]*|[4-9]*)
5658 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5659 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5661 esac
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5663 printf "%s\n" "$ac_prog_version" >&6; }
5665 if test $ac_verc_fail = yes; then
5666 critic_missing="$critic_missing gawk"
5669 for ac_prog in bison
5671 # Extract the first word of "$ac_prog", so it can be a program name with args.
5672 set dummy $ac_prog; ac_word=$2
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 printf %s "checking for $ac_word... " >&6; }
5675 if test ${ac_cv_prog_BISON+y}
5676 then :
5677 printf %s "(cached) " >&6
5678 else case e in #(
5679 e) if test -n "$BISON"; then
5680 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5685 IFS=$as_save_IFS
5686 case $as_dir in #(((
5687 '') as_dir=./ ;;
5688 */) ;;
5689 *) as_dir=$as_dir/ ;;
5690 esac
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_BISON="$ac_prog"
5694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5695 break 2
5697 done
5698 done
5699 IFS=$as_save_IFS
5701 fi ;;
5702 esac
5704 BISON=$ac_cv_prog_BISON
5705 if test -n "$BISON"; then
5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5707 printf "%s\n" "$BISON" >&6; }
5708 else
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 printf "%s\n" "no" >&6; }
5714 test -n "$BISON" && break
5715 done
5717 if test -z "$BISON"; then
5718 ac_verc_fail=yes
5719 else
5720 # Found it, now check the version.
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5722 printf %s "checking version of $BISON... " >&6; }
5723 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
5724 case $ac_prog_version in
5725 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5726 2.7*|[3-9].*|[1-9][0-9]*)
5727 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5728 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5730 esac
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5732 printf "%s\n" "$ac_prog_version" >&6; }
5734 if test $ac_verc_fail = yes; then
5735 critic_missing="$critic_missing bison"
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
5740 printf %s "checking if $CC is sufficient to build libc... " >&6; }
5741 if test ${libc_cv_compiler_ok+y}
5742 then :
5743 printf %s "(cached) " >&6
5744 else case e in #(
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5750 main (void)
5753 #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
5754 #error insufficient compiler
5755 #endif
5757 return 0;
5759 _ACEOF
5760 if ac_fn_c_try_cpp "$LINENO"
5761 then :
5762 libc_cv_compiler_ok=yes
5763 else case e in #(
5764 e) libc_cv_compiler_ok=no ;;
5765 esac
5767 rm -f conftest.err conftest.i conftest.$ac_ext ;;
5768 esac
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
5771 printf "%s\n" "$libc_cv_compiler_ok" >&6; }
5772 if test $libc_cv_compiler_ok != yes
5773 then :
5774 critic_missing="$critic_missing compiler"
5777 if test "x$maintainer" = "xyes"; then
5778 for ac_prog in autoconf
5780 # Extract the first word of "$ac_prog", so it can be a program name with args.
5781 set dummy $ac_prog; ac_word=$2
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783 printf %s "checking for $ac_word... " >&6; }
5784 if test ${ac_cv_prog_AUTOCONF+y}
5785 then :
5786 printf %s "(cached) " >&6
5787 else case e in #(
5788 e) if test -n "$AUTOCONF"; then
5789 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5790 else
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5794 IFS=$as_save_IFS
5795 case $as_dir in #(((
5796 '') as_dir=./ ;;
5797 */) ;;
5798 *) as_dir=$as_dir/ ;;
5799 esac
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5802 ac_cv_prog_AUTOCONF="$ac_prog"
5803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5804 break 2
5806 done
5807 done
5808 IFS=$as_save_IFS
5810 fi ;;
5811 esac
5813 AUTOCONF=$ac_cv_prog_AUTOCONF
5814 if test -n "$AUTOCONF"; then
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5816 printf "%s\n" "$AUTOCONF" >&6; }
5817 else
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 printf "%s\n" "no" >&6; }
5823 test -n "$AUTOCONF" && break
5824 done
5825 test -n "$AUTOCONF" || AUTOCONF="no"
5827 case "x$AUTOCONF" in
5828 xno|x|x:) AUTOCONF=no ;;
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5831 printf %s "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5832 if test ${libc_cv_autoconf_works+y}
5833 then :
5834 printf %s "(cached) " >&6
5835 else case e in #(
5836 e) if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
5837 libc_cv_autoconf_works=yes
5838 else
5839 libc_cv_autoconf_works=no
5840 fi ;;
5841 esac
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5844 printf "%s\n" "$libc_cv_autoconf_works" >&6; }
5845 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5847 esac
5848 if test "x$AUTOCONF" = xno; then
5849 aux_missing="$aux_missing autoconf"
5851 else
5852 AUTOCONF=no
5855 # Check for python3 if available, or else python.
5856 for ac_prog in python3 python
5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 printf %s "checking for $ac_word... " >&6; }
5862 if test ${ac_cv_prog_PYTHON_PROG+y}
5863 then :
5864 printf %s "(cached) " >&6
5865 else case e in #(
5866 e) if test -n "$PYTHON_PROG"; then
5867 ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5872 IFS=$as_save_IFS
5873 case $as_dir in #(((
5874 '') as_dir=./ ;;
5875 */) ;;
5876 *) as_dir=$as_dir/ ;;
5877 esac
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_PYTHON_PROG="$ac_prog"
5881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5882 break 2
5884 done
5885 done
5886 IFS=$as_save_IFS
5888 fi ;;
5889 esac
5891 PYTHON_PROG=$ac_cv_prog_PYTHON_PROG
5892 if test -n "$PYTHON_PROG"; then
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
5894 printf "%s\n" "$PYTHON_PROG" >&6; }
5895 else
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 printf "%s\n" "no" >&6; }
5901 test -n "$PYTHON_PROG" && break
5902 done
5904 if test -z "$PYTHON_PROG"; then
5905 ac_verc_fail=yes
5906 else
5907 # Found it, now check the version.
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
5909 printf %s "checking version of $PYTHON_PROG... " >&6; }
5910 ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
5911 case $ac_prog_version in
5912 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5913 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*)
5914 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5915 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5917 esac
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5919 printf "%s\n" "$ac_prog_version" >&6; }
5921 if test $ac_verc_fail = yes; then
5922 critic_missing="$critic_missing python"
5925 PYTHON="$PYTHON_PROG -B"
5928 test -n "$critic_missing" && as_fn_error $? "
5929 *** These critical programs are missing or too old:$critic_missing
5930 *** Check the INSTALL file for required versions." "$LINENO" 5
5932 test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
5933 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5934 *** some features or tests will be disabled.
5935 *** Check the INSTALL file for required versions." >&5
5936 printf "%s\n" "$as_me: WARNING:
5937 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5938 *** some features or tests will be disabled.
5939 *** Check the INSTALL file for required versions." >&2;}
5942 # Determine whether to use fpu or nofpu sysdeps directories.
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
5944 printf %s "checking for use of fpu sysdeps directories... " >&6; }
5945 if test ${libc_cv_with_fp+y}
5946 then :
5947 printf %s "(cached) " >&6
5948 else case e in #(
5949 e) cat > conftest.c <<EOF
5950 #if $with_fp_cond
5951 int dummy;
5952 #else
5953 # error "no hardware floating point"
5954 #endif
5956 libc_cv_with_fp=no
5957 if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \
5958 1>&5 2>&5 ; then
5959 libc_cv_with_fp=yes
5961 rm -f conftest* ;;
5962 esac
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
5965 printf "%s\n" "$libc_cv_with_fp" >&6; }
5968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
5969 printf %s "checking for -fstack-protector... " >&6; }
5970 if test ${libc_cv_ssp+y}
5971 then :
5972 printf %s "(cached) " >&6
5973 else case e in #(
5974 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
5975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5976 (eval $ac_try) 2>&5
5977 ac_status=$?
5978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5979 test $ac_status = 0; }; }
5980 then :
5981 libc_cv_ssp=yes
5982 else case e in #(
5983 e) libc_cv_ssp=no ;;
5984 esac
5987 esac
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
5990 printf "%s\n" "$libc_cv_ssp" >&6; }
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
5993 printf %s "checking for -fstack-protector-strong... " >&6; }
5994 if test ${libc_cv_ssp_strong+y}
5995 then :
5996 printf %s "(cached) " >&6
5997 else case e in #(
5998 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
5999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6003 test $ac_status = 0; }; }
6004 then :
6005 libc_cv_ssp_strong=yes
6006 else case e in #(
6007 e) libc_cv_ssp_strong=no ;;
6008 esac
6011 esac
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
6014 printf "%s\n" "$libc_cv_ssp_strong" >&6; }
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
6017 printf %s "checking for -fstack-protector-all... " >&6; }
6018 if test ${libc_cv_ssp_all+y}
6019 then :
6020 printf %s "(cached) " >&6
6021 else case e in #(
6022 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
6023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027 test $ac_status = 0; }; }
6028 then :
6029 libc_cv_ssp_all=yes
6030 else case e in #(
6031 e) libc_cv_ssp_all=no ;;
6032 esac
6035 esac
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
6038 printf "%s\n" "$libc_cv_ssp_all" >&6; }
6040 stack_protector=
6041 no_stack_protector=
6042 if test "$libc_cv_ssp" = yes; then
6043 no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
6044 printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
6048 if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
6049 stack_protector="-fstack-protector"
6050 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
6052 elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then
6053 stack_protector="-fstack-protector-all"
6054 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
6056 elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then
6057 stack_protector="-fstack-protector-strong"
6058 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
6060 else
6061 stack_protector="-fno-stack-protector"
6062 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
6069 if test -n "$stack_protector"; then
6070 no_ssp=-fno-stack-protector
6071 else
6072 no_ssp=
6074 if test "$enable_stack_protector" != no; then
6075 as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
6079 # For the multi-arch option we need support in the assembler & linker.
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
6081 printf %s "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
6082 if test ${libc_cv_ld_gnu_indirect_function+y}
6083 then :
6084 printf %s "(cached) " >&6
6085 else case e in #(
6086 e) cat > conftest.S <<EOF
6087 .type foo,%gnu_indirect_function
6088 foo:
6089 .globl _start
6090 _start:
6091 .globl __start
6092 __start:
6093 .data
6094 #ifdef _LP64
6095 .quad foo
6096 #else
6097 .long foo
6098 #endif
6100 libc_cv_ld_gnu_indirect_function=no
6101 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6102 -nostartfiles -nostdlib $no_ssp \
6103 -o conftest conftest.S 1>&5 2>&5; then
6104 # Do a link to see if the backend supports IFUNC relocs.
6105 $READELF -r conftest 1>&5
6106 LC_ALL=C $READELF -Wr conftest | grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
6107 libc_cv_ld_gnu_indirect_function=yes
6110 rm -f conftest* ;;
6111 esac
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
6114 printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; }
6116 # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
6118 printf %s "checking for gcc attribute ifunc support... " >&6; }
6119 if test ${libc_cv_gcc_indirect_function+y}
6120 then :
6121 printf %s "(cached) " >&6
6122 else case e in #(
6123 e) cat > conftest.c <<EOF
6124 extern int func (int);
6125 int used_func (int a)
6127 return a;
6129 static void *resolver ()
6131 return &used_func;
6133 extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
6135 libc_cv_gcc_indirect_function=no
6136 if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \
6137 2>&5 ; then
6138 if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then
6139 libc_cv_gcc_indirect_function=yes
6142 rm -f conftest* ;;
6143 esac
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
6146 printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; }
6148 # Check if linker supports textrel relocation with ifunc (used on elf/tests).
6149 # Note that it relies on libc_cv_ld_gnu_indirect_function test above.
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
6151 printf %s "checking whether the linker supports textrels along with ifunc... " >&6; }
6152 if test ${libc_cv_textrel_ifunc+y}
6153 then :
6154 printf %s "(cached) " >&6
6155 else case e in #(
6156 e) cat > conftest.S <<EOF
6157 .type foo,%gnu_indirect_function
6158 foo:
6159 .globl _start
6160 _start:
6161 .globl __start
6162 __start:
6163 .data
6164 #ifdef _LP64
6165 .quad foo
6166 #else
6167 .long foo
6168 #endif
6169 .text
6170 .globl address
6171 address:
6172 #ifdef _LP64
6173 .quad address
6174 #else
6175 .long address
6176 #endif
6178 libc_cv_textrel_ifunc=no
6179 if test $libc_cv_ld_gnu_indirect_function = yes; then
6180 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
6181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185 test $ac_status = 0; }; }; then
6186 libc_cv_textrel_ifunc=yes
6189 rm -f conftest* ;;
6190 esac
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
6193 printf "%s\n" "$libc_cv_textrel_ifunc" >&6; }
6196 # Check if CC supports attribute retain as it is used in attribute_used_retain macro.
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
6198 printf %s "checking for GNU attribute retain support... " >&6; }
6199 if test ${libc_cv_gnu_retain+y}
6200 then :
6201 printf %s "(cached) " >&6
6202 else case e in #(
6203 e) cat > conftest.c <<EOF
6204 static int var __attribute__ ((used, retain, section ("__libc_atexit")));
6206 libc_cv_gnu_retain=no
6207 if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \
6208 2>&5 ; then
6209 libc_cv_gnu_retain=yes
6211 rm -f conftest* ;;
6212 esac
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
6215 printf "%s\n" "$libc_cv_gnu_retain" >&6; }
6216 if test $libc_cv_gnu_retain = yes; then
6217 printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h
6220 config_vars="$config_vars
6221 have-gnu-retain = $libc_cv_gnu_retain"
6223 # Check if gcc warns about alias for function with incompatible types.
6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
6225 printf %s "checking if compiler warns about alias for function with incompatible types... " >&6; }
6226 if test ${libc_cv_gcc_incompatible_alias+y}
6227 then :
6228 printf %s "(cached) " >&6
6229 else case e in #(
6230 e) cat > conftest.c <<EOF
6231 int __redirect_foo (const void *s, int c);
6233 __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
6234 __typeof (__redirect_foo) *foo_impl (void)
6236 return 0;
6239 extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
6241 libc_cv_gcc_incompatible_alias=yes
6242 if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then
6243 libc_cv_gcc_incompatible_alias=no
6245 rm -f conftest* ;;
6246 esac
6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
6249 printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; }
6251 if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
6252 if test x"$multi_arch" = xyes; then
6253 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
6254 else
6255 multi_arch=no
6258 if test x"$libc_cv_gcc_indirect_function" != xyes; then
6259 # GCC 8+ emits a warning for alias with incompatible types and it might
6260 # fail to build ifunc resolvers aliases to either weak or internal
6261 # symbols. Disables multiarch build in this case.
6262 if test x"$libc_cv_gcc_incompatible_alias" = xyes; then
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
6264 printf "%s\n" "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
6265 if test x"$multi_arch" = xyes; then
6266 as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
6269 printf "%s\n" "$as_me: WARNING: Multi-arch is disabled." >&2;}
6270 multi_arch=no
6271 elif test x"$multi_arch" = xyes; then
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
6273 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
6274 printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
6275 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
6278 multi_arch_d=
6279 if test x"$multi_arch" != xno; then
6280 multi_arch_d=/multiarch
6283 # Compute the list of sysdep directories for this configuration.
6284 # This can take a while to compute.
6285 sysdep_dir=$srcdir/sysdeps
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
6287 printf %s "checking sysdep dirs... " >&6; }
6288 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
6289 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
6291 test "x$base_os" != x || case "$os" in
6292 gnu*)
6293 base_os=mach/hurd ;;
6294 linux*)
6295 base_os=unix/sysv ;;
6296 esac
6298 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
6299 tail=$os
6300 ostry=$os
6301 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
6302 ostry="$ostry /$o"
6303 tail=$o
6304 done
6305 o=`echo $tail | sed 's/[0-9]*$//'`
6306 if test $o != $tail; then
6307 ostry="$ostry /$o"
6309 # For linux-gnu, try linux-gnu, then linux.
6310 o=`echo $tail | sed 's/-.*$//'`
6311 if test $o != $tail; then
6312 ostry="$ostry /$o"
6315 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
6316 base=
6317 tail=$base_os
6318 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
6319 set $b
6320 base="$base /$1"
6321 tail="$2"
6322 done
6324 # For sparc/sparc32, try sparc/sparc32 and then sparc.
6325 mach=
6326 tail=$machine${submachine:+/$submachine}
6327 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
6328 set $m
6329 # Prepend the machine's FPU directory unless the architecture specific
6330 # preconfigure disables it.
6331 if test "$libc_cv_with_fp" = yes; then
6332 maybe_fpu=/fpu
6333 else
6334 maybe_fpu=/nofpu
6336 # For each machine term, try it with and then without /multiarch.
6337 for try_fpu in $maybe_fpu ''; do
6338 for try_multi in $multi_arch_d ''; do
6339 mach="$mach /$1$try_fpu$try_multi"
6340 done
6341 done
6342 tail="$2"
6343 done
6346 # Find what sysdep directories exist.
6347 sysnames=
6348 for b in $base ''; do
6349 for m0 in $mach ''; do
6350 for v in /$vendor ''; do
6351 test "$v" = / && continue
6352 for o in /$ostry ''; do
6353 test "$o" = / && continue
6354 for m in $mach ''; do
6355 try_suffix="$m0$b$v$o$m"
6356 if test -n "$try_suffix"; then
6357 try_srcdir="${srcdir}/"
6358 try="sysdeps$try_suffix"
6359 test -n "$enable_debug_configure" &&
6360 echo "$0 DEBUG: try $try" >&2
6361 if test -d "$try_srcdir$try"; then
6362 sysnames="$sysnames $try"
6363 { test -n "$o" || test -n "$b"; } && os_used=t
6364 { test -n "$m" || test -n "$m0"; } && machine_used=t
6365 case x${m0:-$m} in
6366 x*/$submachine) submachine_used=t ;;
6367 esac
6370 done
6371 done
6372 done
6373 done
6374 done
6376 # If the assembler supports gnu_indirect_function symbol type and the
6377 # architecture supports multi-arch, we enable multi-arch by default.
6378 case $sysnames in
6379 *"$multi_arch_d"*)
6382 test x"$multi_arch" = xdefault && multi_arch=no
6384 esac
6385 if test x"$multi_arch" != xno; then
6386 printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h
6391 if test -z "$os_used" && test "$os" != none; then
6392 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
6394 if test -z "$machine_used" && test "$machine" != none; then
6395 as_fn_error $? "The $machine is not supported." "$LINENO" 5
6397 if test -z "$submachine_used" && test -n "$submachine"; then
6398 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
6402 # We have now validated the configuration.
6404 # Expand the list of system names into a full list of directories
6405 # from each element's parent name and Implies file (if present).
6406 set $sysnames
6407 names=
6408 while test $# -gt 0; do
6409 name=$1
6410 shift
6412 case " $names " in *" $name "*)
6413 # Already in the list.
6414 continue
6415 esac
6417 # Report each name as we discover it, so there is no long pause in output.
6418 echo $ECHO_N "$name $ECHO_C" >&6
6420 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
6422 case $name in
6423 /*) xsrcdir= ;;
6424 *) xsrcdir=$srcdir/ ;;
6425 esac
6426 test -n "$enable_debug_configure" &&
6427 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
6429 for implies_file in Implies Implies-before Implies-after; do
6430 implies_type=`echo $implies_file | sed s/-/_/`
6431 eval ${implies_type}=
6432 if test -f $xsrcdir$name/$implies_file; then
6433 # Collect more names from the `Implies' file (removing comments).
6434 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
6435 for x in $implied_candidate; do
6436 found=no
6437 if test -d $xsrcdir$name_base/$x; then
6438 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
6439 found=yes
6441 try="sysdeps/$x"
6442 try_srcdir=$srcdir/
6443 test -n "$enable_debug_configure" &&
6444 echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
6445 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
6446 then
6447 eval "${implies_type}=\"\$${implies_type} \$try\""
6448 found=yes
6450 if test $found = no; then
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
6452 printf "%s\n" "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
6454 done
6456 done
6458 # Add NAME to the list of names.
6459 names="$names $name"
6461 # Find the parent of NAME, using the empty string if it has none.
6462 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
6464 test -n "$enable_debug_configure" &&
6465 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
6466 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
6468 # Add the names implied by NAME, and NAME's parent (if it has one), to
6469 # the list of names to be processed (the argument list). We prepend the
6470 # implied names to the list and append the parent. We want implied
6471 # directories to come before further directories inferred from the
6472 # configuration components; this ensures that for sysv4, unix/common
6473 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
6474 # after sysv4).
6475 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
6476 test -n "$sysnames" && set $sysnames
6477 done
6479 # Add the default directories.
6480 default_sysnames="sysdeps/generic"
6481 sysnames="$names $default_sysnames"
6483 # The other names were emitted during the scan.
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
6485 printf "%s\n" "$default_sysnames" >&6; }
6487 # if using special system headers, find out the compiler's sekrit
6488 # header directory and add that to the list. NOTE: Only does the right
6489 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
6490 if test -n "$sysheaders"; then
6491 SYSINCLUDES=-nostdinc
6492 for d in include include-fixed; do
6493 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
6494 SYSINCLUDES="$SYSINCLUDES -isystem $i"
6495 done
6496 SYSINCLUDES="$SYSINCLUDES \
6497 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
6498 if test -n "$CXX"; then
6499 CXX_SYSINCLUDES=
6500 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
6501 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
6502 test "x$cxxheaders" != x &&
6503 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
6504 done
6510 # Obtain some C++ header file paths. This is used to make a local
6511 # copy of those headers in Makerules.
6512 if test -n "$CXX"; then
6513 find_cxx_header () {
6514 echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \
6515 | $AWK '$1 == "."{print $2}'
6517 CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
6518 CXX_CMATH_HEADER="$(find_cxx_header cmath)"
6519 CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)"
6525 # Test if LD_LIBRARY_PATH contains the notation for the current directory
6526 # since this would lead to problems installing/building glibc.
6527 # LD_LIBRARY_PATH contains the current directory if one of the following
6528 # is true:
6529 # - one of the terminals (":" and ";") is the first or last sign
6530 # - two terminals occur directly after each other
6531 # - the path contains an element with a dot in it
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
6533 printf %s "checking LD_LIBRARY_PATH variable... " >&6; }
6534 case ${LD_LIBRARY_PATH} in
6535 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
6536 ld_library_path_setting="contains current directory"
6539 ld_library_path_setting="ok"
6541 esac
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
6543 printf "%s\n" "$ld_library_path_setting" >&6; }
6544 if test "$ld_library_path_setting" != "ok"; then
6545 as_fn_error $? "
6546 *** LD_LIBRARY_PATH shouldn't contain the current directory when
6547 *** building glibc. Please change the environment variable
6548 *** and run configure again." "$LINENO" 5
6551 # Extract the first word of "bash", so it can be a program name with args.
6552 set dummy bash; ac_word=$2
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 printf %s "checking for $ac_word... " >&6; }
6555 if test ${ac_cv_path_BASH_SHELL+y}
6556 then :
6557 printf %s "(cached) " >&6
6558 else case e in #(
6559 e) case $BASH_SHELL in
6560 [\\/]* | ?:[\\/]*)
6561 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6567 IFS=$as_save_IFS
6568 case $as_dir in #(((
6569 '') as_dir=./ ;;
6570 */) ;;
6571 *) as_dir=$as_dir/ ;;
6572 esac
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6575 ac_cv_path_BASH_SHELL="$as_dir$ac_word$ac_exec_ext"
6576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6577 break 2
6579 done
6580 done
6581 IFS=$as_save_IFS
6583 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
6585 esac ;;
6586 esac
6588 BASH_SHELL=$ac_cv_path_BASH_SHELL
6589 if test -n "$BASH_SHELL"; then
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
6591 printf "%s\n" "$BASH_SHELL" >&6; }
6592 else
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 printf "%s\n" "no" >&6; }
6599 # Extract the first word of "perl", so it can be a program name with args.
6600 set dummy perl; ac_word=$2
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 printf %s "checking for $ac_word... " >&6; }
6603 if test ${ac_cv_path_PERL+y}
6604 then :
6605 printf %s "(cached) " >&6
6606 else case e in #(
6607 e) case $PERL in
6608 [\\/]* | ?:[\\/]*)
6609 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6615 IFS=$as_save_IFS
6616 case $as_dir in #(((
6617 '') as_dir=./ ;;
6618 */) ;;
6619 *) as_dir=$as_dir/ ;;
6620 esac
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6623 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
6624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6625 break 2
6627 done
6628 done
6629 IFS=$as_save_IFS
6631 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
6633 esac ;;
6634 esac
6636 PERL=$ac_cv_path_PERL
6637 if test -n "$PERL"; then
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6639 printf "%s\n" "$PERL" >&6; }
6640 else
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 printf "%s\n" "no" >&6; }
6646 if test "$PERL" != no &&
6647 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
6648 PERL=no
6650 # Extract the first word of "install-info", so it can be a program name with args.
6651 set dummy install-info; ac_word=$2
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 printf %s "checking for $ac_word... " >&6; }
6654 if test ${ac_cv_path_INSTALL_INFO+y}
6655 then :
6656 printf %s "(cached) " >&6
6657 else case e in #(
6658 e) case $INSTALL_INFO in
6659 [\\/]* | ?:[\\/]*)
6660 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
6665 for as_dir in $as_dummy
6667 IFS=$as_save_IFS
6668 case $as_dir in #(((
6669 '') as_dir=./ ;;
6670 */) ;;
6671 *) as_dir=$as_dir/ ;;
6672 esac
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6675 ac_cv_path_INSTALL_INFO="$as_dir$ac_word$ac_exec_ext"
6676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6677 break 2
6679 done
6680 done
6681 IFS=$as_save_IFS
6683 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
6685 esac ;;
6686 esac
6688 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6689 if test -n "$INSTALL_INFO"; then
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6691 printf "%s\n" "$INSTALL_INFO" >&6; }
6692 else
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 printf "%s\n" "no" >&6; }
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
6700 printf %s "checking for .set assembler directive... " >&6; }
6701 if test ${libc_cv_asm_set_directive+y}
6702 then :
6703 printf %s "(cached) " >&6
6704 else case e in #(
6705 e) cat > conftest.s <<EOF
6706 .text
6707 foo:
6708 .set glibc_conftest_frobozz,foo
6709 .globl glibc_conftest_frobozz
6711 # The alpha-dec-osf1 assembler gives only a warning for `.set'
6712 # (but it doesn't work), so we must do a linking check to be sure.
6713 cat > conftest1.c <<\EOF
6714 extern int glibc_conftest_frobozz;
6715 void _start() { glibc_conftest_frobozz = 1; }
6717 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6718 -nostartfiles -nostdlib $no_ssp \
6719 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
6720 libc_cv_asm_set_directive=yes
6721 else
6722 libc_cv_asm_set_directive=no
6724 rm -f conftest* ;;
6725 esac
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
6728 printf "%s\n" "$libc_cv_asm_set_directive" >&6; }
6729 if test $libc_cv_asm_set_directive = yes; then
6730 printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
6735 printf %s "checking linker support for protected data symbol... " >&6; }
6736 if test ${libc_cv_protected_data+y}
6737 then :
6738 printf %s "(cached) " >&6
6739 else case e in #(
6740 e) cat > conftest.c <<EOF
6741 int bar __attribute__ ((visibility ("protected"))) = 1;
6743 libc_cv_protected_data=no
6744 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
6745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; }; }; then
6750 cat > conftest.c <<EOF
6751 extern int bar;
6752 int main (void) { return bar; }
6754 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
6755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759 test $ac_status = 0; }; }; then
6760 libc_cv_protected_data=yes
6763 rm -f conftest.*
6765 esac
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
6768 printf "%s\n" "$libc_cv_protected_data" >&6; }
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
6772 printf %s "checking linker support for INSERT in linker script... " >&6; }
6773 if test ${libc_cv_insert+y}
6774 then :
6775 printf %s "(cached) " >&6
6776 else case e in #(
6777 e) cat > conftest.c <<EOF
6778 int __attribute__ ((section(".bar"))) bar = 0x12345678;
6779 int test (void) { return bar; }
6781 cat > conftest.t <<EOF
6782 SECTIONS
6784 .bar : { *(.bar) }
6786 INSERT AFTER .rela.dyn;
6788 libc_cv_insert=no
6789 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
6790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }; }; then
6795 libc_cv_insert=yes
6797 rm -f conftest.*
6799 esac
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
6802 printf "%s\n" "$libc_cv_insert" >&6; }
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
6806 printf %s "checking for broken __attribute__((alias()))... " >&6; }
6807 if test ${libc_cv_broken_alias_attribute+y}
6808 then :
6809 printf %s "(cached) " >&6
6810 else case e in #(
6811 e) cat > conftest.c <<EOF
6812 extern int foo (int x) __asm ("xyzzy");
6813 int bar (int x) { return x; }
6814 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6815 extern int dfoo;
6816 extern __typeof (dfoo) dfoo __asm ("abccb");
6817 int dfoo = 1;
6819 libc_cv_broken_alias_attribute=yes
6820 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6825 test $ac_status = 0; }; }; then
6826 if grep 'xyzzy' conftest.s >/dev/null &&
6827 grep 'abccb' conftest.s >/dev/null; then
6828 libc_cv_broken_alias_attribute=no
6831 rm -f conftest.c conftest.s
6833 esac
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
6836 printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; }
6837 if test $libc_cv_broken_alias_attribute = yes; then
6838 as_fn_error $? "working alias attribute support required" "$LINENO" 5
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
6842 printf %s "checking whether to put _rtld_local into .sdata section... " >&6; }
6843 if test ${libc_cv_have_sdata_section+y}
6844 then :
6845 printf %s "(cached) " >&6
6846 else case e in #(
6847 e) echo "int i;" > conftest.c
6848 libc_cv_have_sdata_section=no
6849 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6850 | grep '\.sdata' >/dev/null; then
6851 libc_cv_have_sdata_section=yes
6853 rm -f conftest.c conftest.so
6855 esac
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
6858 printf "%s\n" "$libc_cv_have_sdata_section" >&6; }
6859 if test $libc_cv_have_sdata_section = yes; then
6860 printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
6865 printf %s "checking for libunwind-support in compiler... " >&6; }
6866 if test ${libc_cv_cc_with_libunwind+y}
6867 then :
6868 printf %s "(cached) " >&6
6869 else case e in #(
6871 cat > conftest.c <<EOF
6872 int main (void) { return 0; }
6874 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6875 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
6876 libc_cv_cc_with_libunwind=yes
6877 else
6878 libc_cv_cc_with_libunwind=no
6880 rm -f conftest* ;;
6881 esac
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
6884 printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; }
6886 if test $libc_cv_cc_with_libunwind = yes; then
6887 printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
6891 ASFLAGS_config=
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6893 printf %s "checking whether --noexecstack is desirable for .S files... " >&6; }
6894 if test ${libc_cv_as_noexecstack+y}
6895 then :
6896 printf %s "(cached) " >&6
6897 else case e in #(
6898 e) cat > conftest.c <<EOF
6899 void foo (void) { }
6901 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6902 -S -o conftest.s conftest.c 1>&5'
6903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6907 test $ac_status = 0; }; } \
6908 && grep .note.GNU-stack conftest.s >/dev/null \
6909 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6910 -c -o conftest.o conftest.s 1>&5'
6911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915 test $ac_status = 0; }; }
6916 then
6917 libc_cv_as_noexecstack=yes
6918 else
6919 libc_cv_as_noexecstack=no
6921 rm -f conftest* ;;
6922 esac
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6925 printf "%s\n" "$libc_cv_as_noexecstack" >&6; }
6926 if test $libc_cv_as_noexecstack = yes; then
6927 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
6932 printf %s "checking for linker that supports -z execstack... " >&6; }
6933 libc_linker_feature=no
6934 cat > conftest.c <<EOF
6935 int _start (void) { return 42; }
6937 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
6938 -Wl,-z,execstack -nostdlib -nostartfiles
6939 -fPIC -shared -o conftest.so conftest.c
6940 1>&5'
6941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6942 (eval $ac_try) 2>&5
6943 ac_status=$?
6944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945 test $ac_status = 0; }; }
6946 then
6947 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack -nostdlib \
6948 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
6949 | grep "warning: -z execstack ignored" > /dev/null 2>&1; then
6950 true
6951 else
6952 libc_linker_feature=yes
6955 rm -f conftest*
6956 if test $libc_linker_feature = yes; then
6957 libc_cv_z_execstack=yes
6958 else
6959 libc_cv_z_execstack=no
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6962 printf "%s\n" "$libc_linker_feature" >&6; }
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
6966 printf %s "checking for linker that supports -z start-stop-gc... " >&6; }
6967 libc_linker_feature=no
6968 cat > conftest.c <<EOF
6969 int _start (void) { return 42; }
6971 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
6972 -Wl,-z,start-stop-gc -nostdlib -nostartfiles
6973 -fPIC -shared -o conftest.so conftest.c
6974 1>&5'
6975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6979 test $ac_status = 0; }; }
6980 then
6981 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc -nostdlib \
6982 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
6983 | grep "warning: -z start-stop-gc ignored" > /dev/null 2>&1; then
6984 true
6985 else
6986 libc_linker_feature=yes
6989 rm -f conftest*
6990 if test $libc_linker_feature = yes; then
6991 libc_cv_z_start_stop_gc=yes
6992 else
6993 libc_cv_z_start_stop_gc=no
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6996 printf "%s\n" "$libc_linker_feature" >&6; }
6997 config_vars="$config_vars
6998 have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
7001 printf %s "checking for linker that supports --depaudit... " >&6; }
7002 libc_linker_feature=no
7003 cat > conftest.c <<EOF
7004 int _start (void) { return 42; }
7006 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7007 -Wl,--depaudit,x -nostdlib -nostartfiles
7008 -fPIC -shared -o conftest.so conftest.c
7009 1>&5'
7010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7014 test $ac_status = 0; }; }
7015 then
7016 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x -nostdlib \
7017 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
7018 | grep "warning: --depaudit ignored" > /dev/null 2>&1; then
7019 true
7020 else
7021 libc_linker_feature=yes
7024 rm -f conftest*
7025 if test $libc_linker_feature = yes; then
7026 libc_cv_depaudit=yes
7027 else
7028 libc_cv_depaudit=no
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7031 printf "%s\n" "$libc_linker_feature" >&6; }
7032 config_vars="$config_vars
7033 have-depaudit = $libc_cv_depaudit"
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
7036 printf %s "checking for linker that supports -z pack-relative-relocs... " >&6; }
7037 libc_linker_feature=no
7038 cat > conftest.c <<EOF
7039 int _start (void) { return 42; }
7041 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7042 -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
7043 -fPIC -shared -o conftest.so conftest.c
7044 1>&5'
7045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049 test $ac_status = 0; }; }
7050 then
7051 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs -nostdlib \
7052 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
7053 | grep "warning: -z pack-relative-relocs ignored" > /dev/null 2>&1; then
7054 true
7055 else
7056 libc_linker_feature=yes
7059 rm -f conftest*
7060 if test $libc_linker_feature = yes; then
7061 libc_cv_dt_relr=yes
7062 else
7063 libc_cv_dt_relr=no
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7066 printf "%s\n" "$libc_linker_feature" >&6; }
7067 config_vars="$config_vars
7068 have-dt-relr = $libc_cv_dt_relr"
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
7071 printf %s "checking for linker that supports --no-dynamic-linker... " >&6; }
7072 libc_linker_feature=no
7073 cat > conftest.c <<EOF
7074 int _start (void) { return 42; }
7076 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7077 -Wl,--no-dynamic-linker -nostdlib -nostartfiles
7078 -fPIC -shared -o conftest.so conftest.c
7079 1>&5'
7080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7081 (eval $ac_try) 2>&5
7082 ac_status=$?
7083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; }; }
7085 then
7086 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
7087 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
7088 | grep "warning: --no-dynamic-linker ignored" > /dev/null 2>&1; then
7089 true
7090 else
7091 libc_linker_feature=yes
7094 rm -f conftest*
7095 if test $libc_linker_feature = yes; then
7096 libc_cv_no_dynamic_linker=yes
7097 else
7098 libc_cv_no_dynamic_linker=no
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7101 printf "%s\n" "$libc_linker_feature" >&6; }
7102 config_vars="$config_vars
7103 have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
7106 printf %s "checking for -static-pie... " >&6; }
7107 if test ${libc_cv_static_pie+y}
7108 then :
7109 printf %s "(cached) " >&6
7110 else case e in #(
7111 e) if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
7112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7113 (eval $ac_try) 2>&5
7114 ac_status=$?
7115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7116 test $ac_status = 0; }; }
7117 then :
7118 libc_cv_static_pie=yes
7119 else case e in #(
7120 e) libc_cv_static_pie=no ;;
7121 esac
7124 esac
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
7127 printf "%s\n" "$libc_cv_static_pie" >&6; }
7128 config_vars="$config_vars
7129 have-static-pie = $libc_cv_static_pie"
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
7132 printf %s "checking for -fpie... " >&6; }
7133 if test ${libc_cv_fpie+y}
7134 then :
7135 printf %s "(cached) " >&6
7136 else case e in #(
7137 e) if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
7138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7139 (eval $ac_try) 2>&5
7140 ac_status=$?
7141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7142 test $ac_status = 0; }; }
7143 then :
7144 libc_cv_fpie=yes
7145 else case e in #(
7146 e) libc_cv_fpie=no ;;
7147 esac
7150 esac
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
7153 printf "%s\n" "$libc_cv_fpie" >&6; }
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
7158 printf %s "checking for GLOB_DAT reloc... " >&6; }
7159 if test ${libc_cv_has_glob_dat+y}
7160 then :
7161 printf %s "(cached) " >&6
7162 else case e in #(
7163 e) cat > conftest.c <<EOF
7164 extern int mumble;
7165 int foo (void) { return mumble; }
7167 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7168 -fPIC -shared -o conftest.so conftest.c
7169 -nostdlib -nostartfiles $no_ssp
7170 1>&5'
7171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7172 (eval $ac_try) 2>&5
7173 ac_status=$?
7174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7175 test $ac_status = 0; }; }
7176 then
7177 if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then
7178 libc_cv_has_glob_dat=yes
7179 else
7180 libc_cv_has_glob_dat=no
7182 else
7183 libc_cv_has_glob_dat=no
7185 rm -f conftest* ;;
7186 esac
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
7189 printf "%s\n" "$libc_cv_has_glob_dat" >&6; }
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tls descriptor support" >&5
7193 printf %s "checking for tls descriptor support... " >&6; }
7194 if test ${libc_cv_mtls_descriptor+y}
7195 then :
7196 printf %s "(cached) " >&6
7197 else case e in #(
7198 e) cat > conftest.c <<EOF
7199 __thread int i;
7200 void foo (void)
7202 i = 10;
7205 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_descriptor -nostdlib -nostartfiles
7206 -shared conftest.c -o conftest 1>&5'
7207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7208 (eval $ac_try) 2>&5
7209 ac_status=$?
7210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7211 test $ac_status = 0; }; }
7212 then
7213 libc_cv_mtls_descriptor=$mtls_descriptor
7214 else
7215 libc_cv_mtls_descriptor=no
7217 rm -f conftest* ;;
7218 esac
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_descriptor" >&5
7221 printf "%s\n" "$libc_cv_mtls_descriptor" >&6; }
7223 config_vars="$config_vars
7224 have-mtls-descriptor = $libc_cv_mtls_descriptor"
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5
7227 printf %s "checking if -Wno-ignored-attributes is required for aliases... " >&6; }
7228 if test ${libc_cv_wno_ignored_attributes+y}
7229 then :
7230 printf %s "(cached) " >&6
7231 else case e in #(
7232 e) cat > conftest.c <<EOF
7233 void __foo (void)
7236 extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
7237 extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
7239 libc_cv_wno_ignored_attributes=""
7240 if ! { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c'
7241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7242 (eval $ac_try) 2>&5
7243 ac_status=$?
7244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245 test $ac_status = 0; }; }
7246 then
7247 libc_cv_wno_ignored_attributes="-Wno-ignored-attributes"
7249 rm -f conftest* ;;
7250 esac
7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5
7253 printf "%s\n" "$libc_cv_wno_ignored_attributes" >&6; }
7254 config_vars="$config_vars
7255 config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
7258 printf %s "checking whether cc puts quotes around section names... " >&6; }
7259 if test ${libc_cv_have_section_quotes+y}
7260 then :
7261 printf %s "(cached) " >&6
7262 else case e in #(
7263 e) cat > conftest.c <<EOF
7264 static const int foo
7265 __attribute__ ((section ("bar"))) = 1;
7267 if ${CC-cc} -S conftest.c -o conftest.s; then
7268 if grep '\.section.*"bar"' conftest.s >/dev/null; then
7269 libc_cv_have_section_quotes=yes
7270 else
7271 libc_cv_have_section_quotes=no
7273 else
7274 libc_cv_have_section_quotes=unknown
7276 rm -f conftest.{c,s}
7278 esac
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
7281 printf "%s\n" "$libc_cv_have_section_quotes" >&6; }
7282 if test $libc_cv_have_section_quotes = yes; then
7283 printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
7288 printf %s "checking for __builtin_memset... " >&6; }
7289 if test ${libc_cv_gcc_builtin_memset+y}
7290 then :
7291 printf %s "(cached) " >&6
7292 else case e in #(
7293 e) cat > conftest.c <<\EOF
7294 void zero (void *x)
7296 __builtin_memset (x, 0, 1000);
7299 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
7300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7304 test $ac_status = 0; }; };
7305 then
7306 libc_cv_gcc_builtin_memset=no
7307 else
7308 libc_cv_gcc_builtin_memset=yes
7310 rm -f conftest* ;;
7311 esac
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
7314 printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; }
7315 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7316 printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
7321 printf %s "checking for redirection of built-in functions... " >&6; }
7322 if test ${libc_cv_gcc_builtin_redirection+y}
7323 then :
7324 printf %s "(cached) " >&6
7325 else case e in #(
7326 e) cat > conftest.c <<\EOF
7327 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7328 char *foo (const char *a, const char *b)
7330 return __builtin_strstr (a, b);
7333 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
7334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7335 (eval $ac_try) 2>&5
7336 ac_status=$?
7337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; }; };
7339 then
7340 libc_cv_gcc_builtin_redirection=yes
7341 else
7342 libc_cv_gcc_builtin_redirection=no
7344 rm -f conftest* ;;
7345 esac
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
7348 printf "%s\n" "$libc_cv_gcc_builtin_redirection" >&6; }
7349 if test "$libc_cv_gcc_builtin_redirection" = no; then
7350 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
7354 printf %s "checking for compiler option to disable generation of FMA instructions... " >&6; }
7355 if test ${libc_cv_cc_nofma+y}
7356 then :
7357 printf %s "(cached) " >&6
7358 else case e in #(
7359 e) libc_cv_cc_nofma=
7360 for opt in -ffp-contract=off -mno-fused-madd; do
7361 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7363 (eval $ac_try) 2>&5
7364 ac_status=$?
7365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7366 test $ac_status = 0; }; }
7367 then :
7368 libc_cv_cc_nofma=$opt; break
7370 done ;;
7371 esac
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
7374 printf "%s\n" "$libc_cv_cc_nofma" >&6; }
7377 if test -n "$submachine"; then
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7379 printf %s "checking for compiler option for CPU variant... " >&6; }
7380 if test ${libc_cv_cc_submachine+y}
7381 then :
7382 printf %s "(cached) " >&6
7383 else case e in #(
7384 e) libc_cv_cc_submachine=no
7385 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7386 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7388 (eval $ac_try) 2>&5
7389 ac_status=$?
7390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391 test $ac_status = 0; }; }
7392 then :
7394 libc_cv_cc_submachine="$opt"
7395 break
7397 done ;;
7398 esac
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7401 printf "%s\n" "$libc_cv_cc_submachine" >&6; }
7402 if test "x$libc_cv_cc_submachine" = xno; then
7403 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
7409 printf %s "checking for compiler option that -fsignaling-nans... " >&6; }
7410 if test ${libc_cv_cc_signaling_nans+y}
7411 then :
7412 printf %s "(cached) " >&6
7413 else case e in #(
7414 e) if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
7415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419 test $ac_status = 0; }; }
7420 then :
7421 libc_cv_cc_signaling_nans=-fsignaling-nans
7422 else case e in #(
7423 e) libc_cv_cc_signaling_nans= ;;
7424 esac
7427 esac
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
7430 printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; }
7431 config_vars="$config_vars
7432 config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
7435 __attribute__ ((__optimize__))" >&5
7436 printf %s "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
7437 __attribute__ ((__optimize__))... " >&6; }
7438 if test ${libc_cv_cc_loop_to_function+y}
7439 then :
7440 printf %s "(cached) " >&6
7441 else case e in #(
7442 e) cat > conftest.c <<EOF
7443 void
7444 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
7445 foo (void) {}
7447 libc_cv_cc_loop_to_function=no
7448 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
7449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7450 (eval $ac_try) 2>&5
7451 ac_status=$?
7452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453 test $ac_status = 0; }; }
7454 then
7455 libc_cv_cc_loop_to_function=yes
7457 rm -f conftest* ;;
7458 esac
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
7461 printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; }
7462 if test $libc_cv_cc_loop_to_function = yes; then
7463 printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wimplicit-fallthrough" >&5
7469 printf %s "checking for -Wimplicit-fallthrough... " >&6; }
7470 if test ${libc_cv_cc_wimplicit_fallthrough+y}
7471 then :
7472 printf %s "(cached) " >&6
7473 else case e in #(
7474 e) if { ac_try='${CC-cc} -Werror -Wimplicit-fallthrough -xc /dev/null -S -o /dev/null'
7475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7476 (eval $ac_try) 2>&5
7477 ac_status=$?
7478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479 test $ac_status = 0; }; }
7480 then :
7481 libc_cv_cc_wimplicit_fallthrough=-Wimplicit-fallthrough
7482 else case e in #(
7483 e) libc_cv_cc_wimplicit_fallthrough= ;;
7484 esac
7487 esac
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wimplicit_fallthrough" >&5
7490 printf "%s\n" "$libc_cv_cc_wimplicit_fallthrough" >&6; }
7491 config_vars="$config_vars
7492 cc-option-wimplicit-fallthrough = $libc_cv_cc_wimplicit_fallthrough"
7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
7495 printf %s "checking for libgd... " >&6; }
7496 if test "$with_gd" != "no"; then
7497 old_CFLAGS="$CFLAGS"
7498 CFLAGS="$CFLAGS $libgd_include"
7499 old_LDFLAGS="$LDFLAGS"
7500 LDFLAGS="$LDFLAGS $libgd_ldflags"
7501 old_LIBS="$LIBS"
7502 LIBS="$LIBS -lgd -lpng -lz -lm"
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 #include <gd.h>
7507 main (void)
7509 gdImagePng (0, 0)
7511 return 0;
7513 _ACEOF
7514 if ac_fn_c_try_link "$LINENO"
7515 then :
7516 LIBGD=yes
7517 else case e in #(
7518 e) LIBGD=no ;;
7519 esac
7521 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7522 conftest$ac_exeext conftest.$ac_ext
7523 CFLAGS="$old_CFLAGS"
7524 LDFLAGS="$old_LDFLAGS"
7525 LIBS="$old_LIBS"
7526 else
7527 LIBGD=no
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
7530 printf "%s\n" "$LIBGD" >&6; }
7533 # SELinux detection
7534 if test x$with_selinux = xno ; then
7535 have_selinux=no;
7536 else
7537 # See if we have the SELinux library
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
7539 printf %s "checking for is_selinux_enabled in -lselinux... " >&6; }
7540 if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
7541 then :
7542 printf %s "(cached) " >&6
7543 else case e in #(
7544 e) ac_check_lib_save_LIBS=$LIBS
7545 LIBS="-lselinux $LIBS"
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7549 /* Override any GCC internal prototype to avoid an error.
7550 Use char because int might match the return type of a GCC
7551 builtin and then its argument prototype would still apply.
7552 The 'extern "C"' is for builds by C++ compilers;
7553 although this is not generally supported in C code supporting it here
7554 has little cost and some practical benefit (sr 110532). */
7555 #ifdef __cplusplus
7556 extern "C"
7557 #endif
7558 char is_selinux_enabled (void);
7560 main (void)
7562 return is_selinux_enabled ();
7564 return 0;
7566 _ACEOF
7567 if ac_fn_c_try_link "$LINENO"
7568 then :
7569 ac_cv_lib_selinux_is_selinux_enabled=yes
7570 else case e in #(
7571 e) ac_cv_lib_selinux_is_selinux_enabled=no ;;
7572 esac
7574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7575 conftest$ac_exeext conftest.$ac_ext
7576 LIBS=$ac_check_lib_save_LIBS ;;
7577 esac
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7580 printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7581 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
7582 then :
7583 have_selinux=yes
7584 else case e in #(
7585 e) have_selinux=no ;;
7586 esac
7589 if test x$with_selinux = xyes ; then
7590 if test x$have_selinux = xno ; then
7591 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
7595 # Check if we're building with SELinux support.
7596 if test "x$have_selinux" = xyes; then
7598 printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
7601 # See if we have the libaudit library
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
7603 printf %s "checking for audit_log_user_avc_message in -laudit... " >&6; }
7604 if test ${ac_cv_lib_audit_audit_log_user_avc_message+y}
7605 then :
7606 printf %s "(cached) " >&6
7607 else case e in #(
7608 e) ac_check_lib_save_LIBS=$LIBS
7609 LIBS="-laudit $LIBS"
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7613 /* Override any GCC internal prototype to avoid an error.
7614 Use char because int might match the return type of a GCC
7615 builtin and then its argument prototype would still apply.
7616 The 'extern "C"' is for builds by C++ compilers;
7617 although this is not generally supported in C code supporting it here
7618 has little cost and some practical benefit (sr 110532). */
7619 #ifdef __cplusplus
7620 extern "C"
7621 #endif
7622 char audit_log_user_avc_message (void);
7624 main (void)
7626 return audit_log_user_avc_message ();
7628 return 0;
7630 _ACEOF
7631 if ac_fn_c_try_link "$LINENO"
7632 then :
7633 ac_cv_lib_audit_audit_log_user_avc_message=yes
7634 else case e in #(
7635 e) ac_cv_lib_audit_audit_log_user_avc_message=no ;;
7636 esac
7638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7639 conftest$ac_exeext conftest.$ac_ext
7640 LIBS=$ac_check_lib_save_LIBS ;;
7641 esac
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7644 printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7645 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes
7646 then :
7647 have_libaudit=yes
7648 else case e in #(
7649 e) have_libaudit=no ;;
7650 esac
7653 if test "x$have_libaudit" = xyes; then
7655 printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h
7660 # See if we have the libcap library
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
7662 printf %s "checking for cap_init in -lcap... " >&6; }
7663 if test ${ac_cv_lib_cap_cap_init+y}
7664 then :
7665 printf %s "(cached) " >&6
7666 else case e in #(
7667 e) ac_check_lib_save_LIBS=$LIBS
7668 LIBS="-lcap $LIBS"
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7672 /* Override any GCC internal prototype to avoid an error.
7673 Use char because int might match the return type of a GCC
7674 builtin and then its argument prototype would still apply.
7675 The 'extern "C"' is for builds by C++ compilers;
7676 although this is not generally supported in C code supporting it here
7677 has little cost and some practical benefit (sr 110532). */
7678 #ifdef __cplusplus
7679 extern "C"
7680 #endif
7681 char cap_init (void);
7683 main (void)
7685 return cap_init ();
7687 return 0;
7689 _ACEOF
7690 if ac_fn_c_try_link "$LINENO"
7691 then :
7692 ac_cv_lib_cap_cap_init=yes
7693 else case e in #(
7694 e) ac_cv_lib_cap_cap_init=no ;;
7695 esac
7697 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7698 conftest$ac_exeext conftest.$ac_ext
7699 LIBS=$ac_check_lib_save_LIBS ;;
7700 esac
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
7703 printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; }
7704 if test "x$ac_cv_lib_cap_cap_init" = xyes
7705 then :
7706 have_libcap=yes
7707 else case e in #(
7708 e) have_libcap=no ;;
7709 esac
7712 if test "x$have_libcap" = xyes; then
7714 printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
7721 no_fortify_source="-Wp,-U_FORTIFY_SOURCE"
7722 fortify_source="${no_fortify_source}"
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level" >&5
7725 printf %s "checking for maximum supported _FORTIFY_SOURCE level... " >&6; }
7726 if test ${libc_cv_supported_fortify_source+y}
7727 then :
7728 printf %s "(cached) " >&6
7729 else case e in #(
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7735 main (void)
7737 __builtin_dynamic_object_size("", 0)
7739 return 0;
7741 _ACEOF
7742 if ac_fn_c_try_link "$LINENO"
7743 then :
7744 libc_cv_supported_fortify_source=3
7745 else case e in #(
7746 e) libc_cv_supported_fortify_source=2 ;;
7747 esac
7749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7750 conftest$ac_exeext conftest.$ac_ext
7752 esac
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5
7755 printf "%s\n" "$libc_cv_supported_fortify_source" >&6; }
7757 case $enable_fortify_source in #(
7758 yes) :
7759 libc_cv_fortify_source=yes enable_fortify_source=$libc_cv_supported_fortify_source ;; #(
7760 1|2) :
7761 libc_cv_fortify_source=yes ;; #(
7762 3) :
7763 if test $libc_cv_supported_fortify_source = 3
7764 then :
7765 libc_cv_fortify_source=yes
7766 else case e in #(
7767 e) as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 ;;
7768 esac
7769 fi ;; #(
7770 *) :
7771 libc_cv_fortify_source=no ;;
7772 esac
7774 if test "$libc_cv_fortify_source" = yes
7775 then :
7776 fortify_source="${fortify_source},-D_FORTIFY_SOURCE=${enable_fortify_source}"
7784 config_vars="$config_vars
7785 supported-fortify = $libc_cv_supported_fortify_source"
7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
7788 printf %s "checking whether the assembler requires one version per symbol... " >&6; }
7789 if test ${libc_cv_symver_needs_alias+y}
7790 then :
7791 printf %s "(cached) " >&6
7792 else case e in #(
7793 e) cat > conftest.s <<EOF
7794 .text
7795 testfunc:
7796 .globl testfunc
7797 .symver testfunc, testfunc1@VERSION1
7798 .symver testfunc, testfunc1@VERSION2
7800 libc_cv_symver_needs_alias=no
7801 if ${CC-cc} $ASFLAGS -c conftest.s 2>&5; then
7802 libc_cv_symver_needs_alias=no
7803 else
7804 libc_cv_symver_needs_alias=yes
7806 rm conftest.*
7808 esac
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
7811 printf "%s\n" "$libc_cv_symver_needs_alias" >&6; }
7812 if test "$libc_cv_symver_needs_alias" = yes; then
7813 printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
7818 printf %s "checking for __builtin_trap with no external dependencies... " >&6; }
7819 if test ${libc_cv_builtin_trap+y}
7820 then :
7821 printf %s "(cached) " >&6
7822 else case e in #(
7823 e) libc_cv_builtin_trap=no
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7828 main (void)
7830 __builtin_trap ()
7832 return 0;
7834 _ACEOF
7835 if ac_fn_c_try_compile "$LINENO"
7836 then :
7838 libc_undefs=`$NM -u conftest.o |
7839 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
7840 2>&5` || {
7841 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
7843 echo >&5 "libc_undefs='$libc_undefs'"
7844 if test -z "$libc_undefs"; then
7845 libc_cv_builtin_trap=yes
7848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7849 esac
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
7852 printf "%s\n" "$libc_cv_builtin_trap" >&6; }
7853 if test $libc_cv_builtin_trap = yes; then
7854 printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
7858 ac_ext=cpp
7859 ac_cpp='$CXXCPP $CPPFLAGS'
7860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
7866 printf %s "checking whether the C++ compiler supports thread_local... " >&6; }
7867 if test ${libc_cv_cxx_thread_local+y}
7868 then :
7869 printf %s "(cached) " >&6
7870 else case e in #(
7872 old_CXXFLAGS="$CXXFLAGS"
7873 CXXFLAGS="$CXXFLAGS -std=gnu++11"
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7877 #include <thread>
7879 // Compiler support.
7880 struct S
7882 S ();
7883 ~S ();
7885 thread_local S s;
7886 S * get () { return &s; }
7888 // libstdc++ support.
7889 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
7890 #error __cxa_thread_atexit_impl not supported
7891 #endif
7893 _ACEOF
7894 if ac_fn_cxx_try_compile "$LINENO"
7895 then :
7896 libc_cv_cxx_thread_local=yes
7897 else case e in #(
7898 e) libc_cv_cxx_thread_local=no ;;
7899 esac
7901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7902 CXXFLAGS="$old_CXXFLAGS"
7904 esac
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
7907 printf "%s\n" "$libc_cv_cxx_thread_local" >&6; }
7910 ac_ext=c
7911 ac_cpp='$CPP $CPPFLAGS'
7912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917 ### End of automated tests.
7918 ### Now run sysdeps configure fragments.
7920 # They also can set these variables.
7921 use_ldconfig=no
7922 ldd_rewrite_script=no
7923 libc_cv_sysconfdir=$sysconfdir
7924 libc_cv_localstatedir=$localstatedir
7925 libc_cv_gcc_unwind_find_fde=no
7926 libc_cv_idn=no
7927 pthread_in_libc=yes
7929 # Iterate over all the sysdep directories we will use, running their
7930 # configure fragments.
7931 for dir in $sysnames; do
7932 case $dir in
7933 /*) dest=$dir ;;
7934 *) dest=$srcdir/$dir ;;
7935 esac
7936 if test -r $dest/configure; then
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7938 printf "%s\n" "running configure fragment for $dir" >&6; }
7939 . $dest/configure
7941 done
7943 if test x"$build_mathvec" = xnotset; then
7944 build_mathvec=no
7946 config_vars="$config_vars
7947 build-mathvec = $build_mathvec"
7952 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7953 printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7958 # A sysdeps configure fragment can reset this if IFUNC is not actually
7959 # usable even though the assembler knows how to generate the symbol type.
7960 if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
7961 printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h
7964 config_vars="$config_vars
7965 have-ifunc = $libc_cv_ld_gnu_indirect_function"
7967 if test x"$libc_cv_gcc_indirect_function" = xyes; then
7968 printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h
7971 config_vars="$config_vars
7972 have-gcc-ifunc = $libc_cv_gcc_indirect_function"
7974 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
7975 # configure fragment can override the value to prevent this AC_DEFINE.
7977 if test "x$use_nscd" != xno; then
7978 printf "%s\n" "#define USE_NSCD 1" >>confdefs.h
7981 if test "x$build_nscd" = xdefault; then
7982 build_nscd=$use_nscd
7992 if test x$use_ldconfig = xyes; then
7993 printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h
8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
8003 printf %s "checking whether -fPIC is default... " >&6; }
8004 if test ${libc_cv_pic_default+y}
8005 then :
8006 printf %s "(cached) " >&6
8007 else case e in #(
8008 e) libc_cv_pic_default=yes
8009 cat > conftest.c <<EOF
8010 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8011 # error PIC is default.
8012 #endif
8014 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8015 libc_cv_pic_default=no
8017 rm -f conftest.* ;;
8018 esac
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
8021 printf "%s\n" "$libc_cv_pic_default" >&6; }
8022 config_vars="$config_vars
8023 build-pic-default = $libc_cv_pic_default"
8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
8026 printf %s "checking whether -fPIE is default... " >&6; }
8027 if test ${libc_cv_cc_pie_default+y}
8028 then :
8029 printf %s "(cached) " >&6
8030 else case e in #(
8031 e) libc_cv_cc_pie_default=yes
8032 cat > conftest.c <<EOF
8033 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
8034 # error PIE is default.
8035 #endif
8037 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8038 libc_cv_cc_pie_default=no
8040 rm -f conftest.* ;;
8041 esac
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
8044 printf "%s\n" "$libc_cv_cc_pie_default" >&6; }
8045 config_vars="$config_vars
8046 cc-pie-default = $libc_cv_cc_pie_default"
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
8049 printf %s "checking if we can build programs as PIE... " >&6; }
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 #ifdef PIE_UNSUPPORTED
8053 # error PIE is not supported
8054 #endif
8055 _ACEOF
8056 if ac_fn_c_try_compile "$LINENO"
8057 then :
8058 libc_cv_pie_supported=yes
8059 else case e in #(
8060 e) libc_cv_pie_supported=no ;;
8061 esac
8063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
8065 printf "%s\n" "$libc_cv_pie_supported" >&6; }
8066 # Disable build-pie-default if target does not support it or glibc is
8067 # configured with --disable-default-pie.
8068 if test "x$default_pie" = xno; then
8069 build_pie_default=no
8070 else
8071 build_pie_default=$libc_cv_pie_supported
8073 config_vars="$config_vars
8074 build-pie-default = $build_pie_default"
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
8077 printf %s "checking if we can build static PIE programs... " >&6; }
8078 libc_cv_static_pie_supported=$libc_cv_pie_supported
8079 if test "x$libc_cv_pie_supported" != xno \
8080 -a "$libc_cv_no_dynamic_linker" = yes; then
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #ifndef SUPPORT_STATIC_PIE
8084 # error static PIE is not supported
8085 #endif
8086 _ACEOF
8087 if ac_fn_c_try_compile "$LINENO"
8088 then :
8089 libc_cv_static_pie_supported=yes
8090 else case e in #(
8091 e) libc_cv_static_pie_supported=no ;;
8092 esac
8094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
8097 printf "%s\n" "$libc_cv_static_pie_supported" >&6; }
8099 # Enable static-pie only if it is available and glibc isn't configured
8100 # with --disable-default-pie.
8101 if test "x$default_pie" = xno; then
8102 libc_cv_static_pie=no
8103 else
8104 libc_cv_static_pie=$libc_cv_static_pie_supported
8106 if test "$libc_cv_static_pie" = "yes"; then
8107 printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h
8110 config_vars="$config_vars
8111 enable-static-pie = $libc_cv_static_pie"
8113 # Set the `multidir' variable by grabbing the variable from the compiler.
8114 # We do it once and save the result in a generated makefile.
8115 libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
8125 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8126 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8130 if test "$pthread_in_libc" = yes; then
8131 printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h
8136 ac_config_files="$ac_config_files config.make Makefile"
8138 ac_config_commands="$ac_config_commands default"
8140 cat >confcache <<\_ACEOF
8141 # This file is a shell script that caches the results of configure
8142 # tests run on this system so they can be shared between configure
8143 # scripts and configure runs, see configure's option --config-cache.
8144 # It is not useful on other systems. If it contains results you don't
8145 # want to keep, you may remove or edit it.
8147 # config.status only pays attention to the cache file if you give it
8148 # the --recheck option to rerun configure.
8150 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
8151 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
8152 # following values.
8154 _ACEOF
8156 # The following way of writing the cache mishandles newlines in values,
8157 # but we know of no workaround that is simple, portable, and efficient.
8158 # So, we kill variables containing newlines.
8159 # Ultrix sh set writes to stderr and can't be redirected directly,
8160 # and sets the high bit in the cache file unless we assign to the vars.
8162 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8163 eval ac_val=\$$ac_var
8164 case $ac_val in #(
8165 *${as_nl}*)
8166 case $ac_var in #(
8167 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8168 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8169 esac
8170 case $ac_var in #(
8171 _ | IFS | as_nl) ;; #(
8172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8173 *) { eval $ac_var=; unset $ac_var;} ;;
8174 esac ;;
8175 esac
8176 done
8178 (set) 2>&1 |
8179 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8180 *${as_nl}ac_space=\ *)
8181 # 'set' does not quote correctly, so add quotes: double-quote
8182 # substitution turns \\\\ into \\, and sed turns \\ into \.
8183 sed -n \
8184 "s/'/'\\\\''/g;
8185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8186 ;; #(
8188 # 'set' quotes correctly as required by POSIX, so do not add quotes.
8189 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8191 esac |
8192 sort
8194 sed '
8195 /^ac_cv_env_/b end
8196 t clear
8197 :clear
8198 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8199 t end
8200 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8201 :end' >>confcache
8202 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8203 if test -w "$cache_file"; then
8204 if test "x$cache_file" != "x/dev/null"; then
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8206 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8207 if test ! -f "$cache_file" || test -h "$cache_file"; then
8208 cat confcache >"$cache_file"
8209 else
8210 case $cache_file in #(
8211 */* | ?:*)
8212 mv -f confcache "$cache_file"$$ &&
8213 mv -f "$cache_file"$$ "$cache_file" ;; #(
8215 mv -f confcache "$cache_file" ;;
8216 esac
8219 else
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8221 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8224 rm -f confcache
8226 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8227 # Let make expand exec_prefix.
8228 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8230 DEFS=-DHAVE_CONFIG_H
8232 ac_libobjs=
8233 ac_ltlibobjs=
8235 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8236 # 1. Remove the extension, and $U if already installed.
8237 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8238 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8239 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8240 # will be set to the directory where LIBOBJS objects are built.
8241 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8242 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8243 done
8244 LIBOBJS=$ac_libobjs
8246 LTLIBOBJS=$ac_ltlibobjs
8250 : "${CONFIG_STATUS=./config.status}"
8251 ac_write_fail=0
8252 ac_clean_files_save=$ac_clean_files
8253 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8255 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8256 as_write_fail=0
8257 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8258 #! $SHELL
8259 # Generated by $as_me.
8260 # Run this file to recreate the current configuration.
8261 # Compiler output produced by configure, useful for debugging
8262 # configure, is in config.log if it exists.
8264 debug=false
8265 ac_cs_recheck=false
8266 ac_cs_silent=false
8268 SHELL=\${CONFIG_SHELL-$SHELL}
8269 export SHELL
8270 _ASEOF
8271 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8272 ## -------------------- ##
8273 ## M4sh Initialization. ##
8274 ## -------------------- ##
8276 # Be more Bourne compatible
8277 DUALCASE=1; export DUALCASE # for MKS sh
8278 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8279 then :
8280 emulate sh
8281 NULLCMD=:
8282 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8283 # is contrary to our usage. Disable this feature.
8284 alias -g '${1+"$@"}'='"$@"'
8285 setopt NO_GLOB_SUBST
8286 else case e in #(
8287 e) case `(set -o) 2>/dev/null` in #(
8288 *posix*) :
8289 set -o posix ;; #(
8290 *) :
8292 esac ;;
8293 esac
8298 # Reset variables that may have inherited troublesome values from
8299 # the environment.
8301 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8302 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8303 # side effect of setting IFS to empty, thus disabling word splitting.)
8304 # Quoting is to prevent editors from complaining about space-tab.
8305 as_nl='
8307 export as_nl
8308 IFS=" "" $as_nl"
8310 PS1='$ '
8311 PS2='> '
8312 PS4='+ '
8314 # Ensure predictable behavior from utilities with locale-dependent output.
8315 LC_ALL=C
8316 export LC_ALL
8317 LANGUAGE=C
8318 export LANGUAGE
8320 # We cannot yet rely on "unset" to work, but we need these variables
8321 # to be unset--not just set to an empty or harmless value--now, to
8322 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8323 # also avoids known problems related to "unset" and subshell syntax
8324 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8325 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8326 do eval test \${$as_var+y} \
8327 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8328 done
8330 # Ensure that fds 0, 1, and 2 are open.
8331 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8332 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8333 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8335 # The user is always right.
8336 if ${PATH_SEPARATOR+false} :; then
8337 PATH_SEPARATOR=:
8338 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8339 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8340 PATH_SEPARATOR=';'
8345 # Find who we are. Look in the path if we contain no directory separator.
8346 as_myself=
8347 case $0 in #((
8348 *[\\/]* ) as_myself=$0 ;;
8349 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8352 IFS=$as_save_IFS
8353 case $as_dir in #(((
8354 '') as_dir=./ ;;
8355 */) ;;
8356 *) as_dir=$as_dir/ ;;
8357 esac
8358 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8359 done
8360 IFS=$as_save_IFS
8363 esac
8364 # We did not find ourselves, most probably we were run as 'sh COMMAND'
8365 # in which case we are not to be found in the path.
8366 if test "x$as_myself" = x; then
8367 as_myself=$0
8369 if test ! -f "$as_myself"; then
8370 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8371 exit 1
8376 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8377 # ----------------------------------------
8378 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8379 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8380 # script with STATUS, using 1 if that was 0.
8381 as_fn_error ()
8383 as_status=$1; test $as_status -eq 0 && as_status=1
8384 if test "$4"; then
8385 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8388 printf "%s\n" "$as_me: error: $2" >&2
8389 as_fn_exit $as_status
8390 } # as_fn_error
8393 # as_fn_set_status STATUS
8394 # -----------------------
8395 # Set $? to STATUS, without forking.
8396 as_fn_set_status ()
8398 return $1
8399 } # as_fn_set_status
8401 # as_fn_exit STATUS
8402 # -----------------
8403 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8404 as_fn_exit ()
8406 set +e
8407 as_fn_set_status $1
8408 exit $1
8409 } # as_fn_exit
8411 # as_fn_unset VAR
8412 # ---------------
8413 # Portably unset VAR.
8414 as_fn_unset ()
8416 { eval $1=; unset $1;}
8418 as_unset=as_fn_unset
8420 # as_fn_append VAR VALUE
8421 # ----------------------
8422 # Append the text in VALUE to the end of the definition contained in VAR. Take
8423 # advantage of any shell optimizations that allow amortized linear growth over
8424 # repeated appends, instead of the typical quadratic growth present in naive
8425 # implementations.
8426 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8427 then :
8428 eval 'as_fn_append ()
8430 eval $1+=\$2
8432 else case e in #(
8433 e) as_fn_append ()
8435 eval $1=\$$1\$2
8436 } ;;
8437 esac
8438 fi # as_fn_append
8440 # as_fn_arith ARG...
8441 # ------------------
8442 # Perform arithmetic evaluation on the ARGs, and store the result in the
8443 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8444 # must be portable across $(()) and expr.
8445 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8446 then :
8447 eval 'as_fn_arith ()
8449 as_val=$(( $* ))
8451 else case e in #(
8452 e) as_fn_arith ()
8454 as_val=`expr "$@" || test $? -eq 1`
8455 } ;;
8456 esac
8457 fi # as_fn_arith
8460 if expr a : '\(a\)' >/dev/null 2>&1 &&
8461 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8462 as_expr=expr
8463 else
8464 as_expr=false
8467 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8468 as_basename=basename
8469 else
8470 as_basename=false
8473 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8474 as_dirname=dirname
8475 else
8476 as_dirname=false
8479 as_me=`$as_basename -- "$0" ||
8480 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8481 X"$0" : 'X\(//\)$' \| \
8482 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8483 printf "%s\n" X/"$0" |
8484 sed '/^.*\/\([^/][^/]*\)\/*$/{
8485 s//\1/
8488 /^X\/\(\/\/\)$/{
8489 s//\1/
8492 /^X\/\(\/\).*/{
8493 s//\1/
8496 s/.*/./; q'`
8498 # Avoid depending upon Character Ranges.
8499 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8500 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8501 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8502 as_cr_digits='0123456789'
8503 as_cr_alnum=$as_cr_Letters$as_cr_digits
8506 # Determine whether it's possible to make 'echo' print without a newline.
8507 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8508 # for compatibility with existing Makefiles.
8509 ECHO_C= ECHO_N= ECHO_T=
8510 case `echo -n x` in #(((((
8511 -n*)
8512 case `echo 'xy\c'` in
8513 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8514 xy) ECHO_C='\c';;
8515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8516 ECHO_T=' ';;
8517 esac;;
8519 ECHO_N='-n';;
8520 esac
8522 # For backward compatibility with old third-party macros, we provide
8523 # the shell variables $as_echo and $as_echo_n. New code should use
8524 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8525 as_echo='printf %s\n'
8526 as_echo_n='printf %s'
8528 rm -f conf$$ conf$$.exe conf$$.file
8529 if test -d conf$$.dir; then
8530 rm -f conf$$.dir/conf$$.file
8531 else
8532 rm -f conf$$.dir
8533 mkdir conf$$.dir 2>/dev/null
8535 if (echo >conf$$.file) 2>/dev/null; then
8536 if ln -s conf$$.file conf$$ 2>/dev/null; then
8537 as_ln_s='ln -s'
8538 # ... but there are two gotchas:
8539 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
8540 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
8541 # In both cases, we have to default to 'cp -pR'.
8542 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8543 as_ln_s='cp -pR'
8544 elif ln conf$$.file conf$$ 2>/dev/null; then
8545 as_ln_s=ln
8546 else
8547 as_ln_s='cp -pR'
8549 else
8550 as_ln_s='cp -pR'
8552 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8553 rmdir conf$$.dir 2>/dev/null
8556 # as_fn_mkdir_p
8557 # -------------
8558 # Create "$as_dir" as a directory, including parents if necessary.
8559 as_fn_mkdir_p ()
8562 case $as_dir in #(
8563 -*) as_dir=./$as_dir;;
8564 esac
8565 test -d "$as_dir" || eval $as_mkdir_p || {
8566 as_dirs=
8567 while :; do
8568 case $as_dir in #(
8569 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8570 *) as_qdir=$as_dir;;
8571 esac
8572 as_dirs="'$as_qdir' $as_dirs"
8573 as_dir=`$as_dirname -- "$as_dir" ||
8574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8575 X"$as_dir" : 'X\(//\)[^/]' \| \
8576 X"$as_dir" : 'X\(//\)$' \| \
8577 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8578 printf "%s\n" X"$as_dir" |
8579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8580 s//\1/
8583 /^X\(\/\/\)[^/].*/{
8584 s//\1/
8587 /^X\(\/\/\)$/{
8588 s//\1/
8591 /^X\(\/\).*/{
8592 s//\1/
8595 s/.*/./; q'`
8596 test -d "$as_dir" && break
8597 done
8598 test -z "$as_dirs" || eval "mkdir $as_dirs"
8599 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8602 } # as_fn_mkdir_p
8603 if mkdir -p . 2>/dev/null; then
8604 as_mkdir_p='mkdir -p "$as_dir"'
8605 else
8606 test -d ./-p && rmdir ./-p
8607 as_mkdir_p=false
8611 # as_fn_executable_p FILE
8612 # -----------------------
8613 # Test if FILE is an executable regular file.
8614 as_fn_executable_p ()
8616 test -f "$1" && test -x "$1"
8617 } # as_fn_executable_p
8618 as_test_x='test -x'
8619 as_executable_p=as_fn_executable_p
8621 # Sed expression to map a string onto a valid CPP name.
8622 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8623 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
8625 # Sed expression to map a string onto a valid variable name.
8626 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8627 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
8630 exec 6>&1
8631 ## ----------------------------------- ##
8632 ## Main body of $CONFIG_STATUS script. ##
8633 ## ----------------------------------- ##
8634 _ASEOF
8635 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8638 # Save the log message, to keep $0 and so on meaningful, and to
8639 # report actual input values of CONFIG_FILES etc. instead of their
8640 # values after options handling.
8641 ac_log="
8642 This file was extended by GNU C Library $as_me (see version.h), which was
8643 generated by GNU Autoconf 2.72. Invocation command line was
8645 CONFIG_FILES = $CONFIG_FILES
8646 CONFIG_HEADERS = $CONFIG_HEADERS
8647 CONFIG_LINKS = $CONFIG_LINKS
8648 CONFIG_COMMANDS = $CONFIG_COMMANDS
8649 $ $0 $@
8651 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8654 _ACEOF
8656 case $ac_config_files in *"
8657 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8658 esac
8660 case $ac_config_headers in *"
8661 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8662 esac
8665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8666 # Files that config.status was made for.
8667 config_files="$ac_config_files"
8668 config_headers="$ac_config_headers"
8669 config_commands="$ac_config_commands"
8671 _ACEOF
8673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8674 ac_cs_usage="\
8675 '$as_me' instantiates files and other configuration actions
8676 from templates according to the current configuration. Unless the files
8677 and actions are specified as TAGs, all are instantiated by default.
8679 Usage: $0 [OPTION]... [TAG]...
8681 -h, --help print this help, then exit
8682 -V, --version print version number and configuration settings, then exit
8683 --config print configuration, then exit
8684 -q, --quiet, --silent
8685 do not print progress messages
8686 -d, --debug don't remove temporary files
8687 --recheck update $as_me by reconfiguring in the same conditions
8688 --file=FILE[:TEMPLATE]
8689 instantiate the configuration file FILE
8690 --header=FILE[:TEMPLATE]
8691 instantiate the configuration header FILE
8693 Configuration files:
8694 $config_files
8696 Configuration headers:
8697 $config_headers
8699 Configuration commands:
8700 $config_commands
8702 Report bugs to <https://sourceware.org/bugzilla/>.
8703 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
8704 General help using GNU software: <https://www.gnu.org/gethelp/>."
8706 _ACEOF
8707 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8708 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8710 ac_cs_config='$ac_cs_config_escaped'
8711 ac_cs_version="\\
8712 GNU C Library config.status (see version.h)
8713 configured by $0, generated by GNU Autoconf 2.72,
8714 with options \\"\$ac_cs_config\\"
8716 Copyright (C) 2023 Free Software Foundation, Inc.
8717 This config.status script is free software; the Free Software Foundation
8718 gives unlimited permission to copy, distribute and modify it."
8720 ac_pwd='$ac_pwd'
8721 srcdir='$srcdir'
8722 INSTALL='$INSTALL'
8723 test -n "\$AWK" || AWK=awk
8724 _ACEOF
8726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8727 # The default lists apply if the user does not specify any file.
8728 ac_need_defaults=:
8729 while test $# != 0
8731 case $1 in
8732 --*=?*)
8733 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8734 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8735 ac_shift=:
8737 --*=)
8738 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8739 ac_optarg=
8740 ac_shift=:
8743 ac_option=$1
8744 ac_optarg=$2
8745 ac_shift=shift
8747 esac
8749 case $ac_option in
8750 # Handling of the options.
8751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8752 ac_cs_recheck=: ;;
8753 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8754 printf "%s\n" "$ac_cs_version"; exit ;;
8755 --config | --confi | --conf | --con | --co | --c )
8756 printf "%s\n" "$ac_cs_config"; exit ;;
8757 --debug | --debu | --deb | --de | --d | -d )
8758 debug=: ;;
8759 --file | --fil | --fi | --f )
8760 $ac_shift
8761 case $ac_optarg in
8762 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8763 '') as_fn_error $? "missing file argument" ;;
8764 esac
8765 as_fn_append CONFIG_FILES " '$ac_optarg'"
8766 ac_need_defaults=false;;
8767 --header | --heade | --head | --hea )
8768 $ac_shift
8769 case $ac_optarg in
8770 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8771 esac
8772 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8773 ac_need_defaults=false;;
8774 --he | --h)
8775 # Conflict between --help and --header
8776 as_fn_error $? "ambiguous option: '$1'
8777 Try '$0 --help' for more information.";;
8778 --help | --hel | -h )
8779 printf "%s\n" "$ac_cs_usage"; exit ;;
8780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8781 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8782 ac_cs_silent=: ;;
8784 # This is an error.
8785 -*) as_fn_error $? "unrecognized option: '$1'
8786 Try '$0 --help' for more information." ;;
8788 *) as_fn_append ac_config_targets " $1"
8789 ac_need_defaults=false ;;
8791 esac
8792 shift
8793 done
8795 ac_configure_extra_args=
8797 if $ac_cs_silent; then
8798 exec 6>/dev/null
8799 ac_configure_extra_args="$ac_configure_extra_args --silent"
8802 _ACEOF
8803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8804 if \$ac_cs_recheck; then
8805 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8806 shift
8807 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8808 CONFIG_SHELL='$SHELL'
8809 export CONFIG_SHELL
8810 exec "\$@"
8813 _ACEOF
8814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8815 exec 5>>config.log
8817 echo
8818 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8819 ## Running $as_me. ##
8820 _ASBOX
8821 printf "%s\n" "$ac_log"
8822 } >&5
8824 _ACEOF
8825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8827 # INIT-COMMANDS
8829 config_vars='$config_vars'
8831 _ACEOF
8833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8835 # Handling of arguments.
8836 for ac_config_target in $ac_config_targets
8838 case $ac_config_target in
8839 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8840 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8841 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8842 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8844 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
8845 esac
8846 done
8849 # If the user did not use the arguments to specify the items to instantiate,
8850 # then the envvar interface is used. Set only those that are not.
8851 # We use the long form for the default assignment because of an extremely
8852 # bizarre bug on SunOS 4.1.3.
8853 if $ac_need_defaults; then
8854 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8855 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
8856 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
8859 # Have a temporary directory for convenience. Make it in the build tree
8860 # simply because there is no reason against having it here, and in addition,
8861 # creating and moving files from /tmp can sometimes cause problems.
8862 # Hook for its removal unless debugging.
8863 # Note that there is a small window in which the directory will not be cleaned:
8864 # after its creation but before its name has been assigned to '$tmp'.
8865 $debug ||
8867 tmp= ac_tmp=
8868 trap 'exit_status=$?
8869 : "${ac_tmp:=$tmp}"
8870 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8872 trap 'as_fn_exit 1' 1 2 13 15
8874 # Create a (secure) tmp directory for tmp files.
8877 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8878 test -d "$tmp"
8879 } ||
8881 tmp=./conf$$-$RANDOM
8882 (umask 077 && mkdir "$tmp")
8883 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8884 ac_tmp=$tmp
8886 # Set up the scripts for CONFIG_FILES section.
8887 # No need to generate them if there are no CONFIG_FILES.
8888 # This happens for instance with './config.status config.h'.
8889 if test -n "$CONFIG_FILES"; then
8892 ac_cr=`echo X | tr X '\015'`
8893 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8894 # But we know of no other shell where ac_cr would be empty at this
8895 # point, so we can use a bashism as a fallback.
8896 if test "x$ac_cr" = x; then
8897 eval ac_cr=\$\'\\r\'
8899 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8900 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8901 ac_cs_awk_cr='\\r'
8902 else
8903 ac_cs_awk_cr=$ac_cr
8906 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8907 _ACEOF
8911 echo "cat >conf$$subs.awk <<_ACEOF" &&
8912 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8913 echo "_ACEOF"
8914 } >conf$$subs.sh ||
8915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8916 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8917 ac_delim='%!_!# '
8918 for ac_last_try in false false false false false :; do
8919 . ./conf$$subs.sh ||
8920 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8922 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8923 if test $ac_delim_n = $ac_delim_num; then
8924 break
8925 elif $ac_last_try; then
8926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8927 else
8928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8930 done
8931 rm -f conf$$subs.sh
8933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8934 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8935 _ACEOF
8936 sed -n '
8938 s/^/S["/; s/!.*/"]=/
8941 s/^[^!]*!//
8942 :repl
8943 t repl
8944 s/'"$ac_delim"'$//
8945 t delim
8948 s/\(.\{148\}\)..*/\1/
8949 t more1
8950 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8953 b repl
8954 :more1
8955 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8958 s/.\{148\}//
8959 t nl
8960 :delim
8962 s/\(.\{148\}\)..*/\1/
8963 t more2
8964 s/["\\]/\\&/g; s/^/"/; s/$/"/
8967 :more2
8968 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8971 s/.\{148\}//
8972 t delim
8973 ' <conf$$subs.awk | sed '
8974 /^[^""]/{
8976 s/\n//
8978 ' >>$CONFIG_STATUS || ac_write_fail=1
8979 rm -f conf$$subs.awk
8980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8981 _ACAWK
8982 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8983 for (key in S) S_is_set[key] = 1
8984 FS = "\a"
8988 line = $ 0
8989 nfields = split(line, field, "@")
8990 substed = 0
8991 len = length(field[1])
8992 for (i = 2; i < nfields; i++) {
8993 key = field[i]
8994 keylen = length(key)
8995 if (S_is_set[key]) {
8996 value = S[key]
8997 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8998 len += length(value) + length(field[++i])
8999 substed = 1
9000 } else
9001 len += 1 + keylen
9004 print line
9007 _ACAWK
9008 _ACEOF
9009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9010 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9011 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9012 else
9014 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9015 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9016 _ACEOF
9018 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9019 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9020 # trailing colons and then remove the whole line if VPATH becomes empty
9021 # (actually we leave an empty line to preserve line numbers).
9022 if test "x$srcdir" = x.; then
9023 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9025 s///
9026 s/^/:/
9027 s/[ ]*$/:/
9028 s/:\$(srcdir):/:/g
9029 s/:\${srcdir}:/:/g
9030 s/:@srcdir@:/:/g
9031 s/^:*//
9032 s/:*$//
9034 s/\(=[ ]*\).*/\1/
9036 s/\n//
9037 s/^[^=]*=[ ]*$//
9041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9042 fi # test -n "$CONFIG_FILES"
9044 # Set up the scripts for CONFIG_HEADERS section.
9045 # No need to generate them if there are no CONFIG_HEADERS.
9046 # This happens for instance with './config.status Makefile'.
9047 if test -n "$CONFIG_HEADERS"; then
9048 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9049 BEGIN {
9050 _ACEOF
9052 # Transform confdefs.h into an awk script 'defines.awk', embedded as
9053 # here-document in config.status, that substitutes the proper values into
9054 # config.h.in to produce config.h.
9056 # Create a delimiter string that does not exist in confdefs.h, to ease
9057 # handling of long lines.
9058 ac_delim='%!_!# '
9059 for ac_last_try in false false :; do
9060 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9061 if test -z "$ac_tt"; then
9062 break
9063 elif $ac_last_try; then
9064 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9065 else
9066 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9068 done
9070 # For the awk script, D is an array of macro values keyed by name,
9071 # likewise P contains macro parameters if any. Preserve backslash
9072 # newline sequences.
9074 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9075 sed -n '
9076 s/.\{148\}/&'"$ac_delim"'/g
9077 t rset
9078 :rset
9079 s/^[ ]*#[ ]*define[ ][ ]*/ /
9080 t def
9082 :def
9083 s/\\$//
9084 t bsnl
9085 s/["\\]/\\&/g
9086 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9087 D["\1"]=" \3"/p
9088 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9090 :bsnl
9091 s/["\\]/\\&/g
9092 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9093 D["\1"]=" \3\\\\\\n"\\/p
9094 t cont
9095 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9096 t cont
9098 :cont
9100 s/.\{148\}/&'"$ac_delim"'/g
9101 t clear
9102 :clear
9103 s/\\$//
9104 t bsnlc
9105 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9107 :bsnlc
9108 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9109 b cont
9110 ' <confdefs.h | sed '
9111 s/'"$ac_delim"'/"\\\
9112 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9115 for (key in D) D_is_set[key] = 1
9116 FS = "\a"
9118 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9119 line = \$ 0
9120 split(line, arg, " ")
9121 if (arg[1] == "#") {
9122 defundef = arg[2]
9123 mac1 = arg[3]
9124 } else {
9125 defundef = substr(arg[1], 2)
9126 mac1 = arg[2]
9128 split(mac1, mac2, "(") #)
9129 macro = mac2[1]
9130 prefix = substr(line, 1, index(line, defundef) - 1)
9131 if (D_is_set[macro]) {
9132 # Preserve the white space surrounding the "#".
9133 print prefix "define", macro P[macro] D[macro]
9134 next
9135 } else {
9136 # Replace #undef with comments. This is necessary, for example,
9137 # in the case of _POSIX_SOURCE, which is predefined and required
9138 # on some systems where configure will not decide to define it.
9139 if (defundef == "undef") {
9140 print "/*", prefix defundef, macro, "*/"
9141 next
9145 { print }
9146 _ACAWK
9147 _ACEOF
9148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9149 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9150 fi # test -n "$CONFIG_HEADERS"
9153 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9154 shift
9155 for ac_tag
9157 case $ac_tag in
9158 :[FHLC]) ac_mode=$ac_tag; continue;;
9159 esac
9160 case $ac_mode$ac_tag in
9161 :[FHL]*:*);;
9162 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
9163 :[FH]-) ac_tag=-:-;;
9164 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9165 esac
9166 ac_save_IFS=$IFS
9167 IFS=:
9168 set x $ac_tag
9169 IFS=$ac_save_IFS
9170 shift
9171 ac_file=$1
9172 shift
9174 case $ac_mode in
9175 :L) ac_source=$1;;
9176 :[FH])
9177 ac_file_inputs=
9178 for ac_f
9180 case $ac_f in
9181 -) ac_f="$ac_tmp/stdin";;
9182 *) # Look for the file first in the build tree, then in the source tree
9183 # (if the path is not absolute). The absolute path cannot be DOS-style,
9184 # because $ac_f cannot contain ':'.
9185 test -f "$ac_f" ||
9186 case $ac_f in
9187 [\\/$]*) false;;
9188 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9189 esac ||
9190 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
9191 esac
9192 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9193 as_fn_append ac_file_inputs " '$ac_f'"
9194 done
9196 # Let's still pretend it is 'configure' which instantiates (i.e., don't
9197 # use $as_me), people would be surprised to read:
9198 # /* config.h. Generated by config.status. */
9199 configure_input='Generated from '`
9200 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9201 `' by configure.'
9202 if test x"$ac_file" != x-; then
9203 configure_input="$ac_file. $configure_input"
9204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9205 printf "%s\n" "$as_me: creating $ac_file" >&6;}
9207 # Neutralize special characters interpreted by sed in replacement strings.
9208 case $configure_input in #(
9209 *\&* | *\|* | *\\* )
9210 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9211 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9212 *) ac_sed_conf_input=$configure_input;;
9213 esac
9215 case $ac_tag in
9216 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9218 esac
9220 esac
9222 ac_dir=`$as_dirname -- "$ac_file" ||
9223 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9224 X"$ac_file" : 'X\(//\)[^/]' \| \
9225 X"$ac_file" : 'X\(//\)$' \| \
9226 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9227 printf "%s\n" X"$ac_file" |
9228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9229 s//\1/
9232 /^X\(\/\/\)[^/].*/{
9233 s//\1/
9236 /^X\(\/\/\)$/{
9237 s//\1/
9240 /^X\(\/\).*/{
9241 s//\1/
9244 s/.*/./; q'`
9245 as_dir="$ac_dir"; as_fn_mkdir_p
9246 ac_builddir=.
9248 case "$ac_dir" in
9249 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9251 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9252 # A ".." for each directory in $ac_dir_suffix.
9253 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9254 case $ac_top_builddir_sub in
9255 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9256 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9257 esac ;;
9258 esac
9259 ac_abs_top_builddir=$ac_pwd
9260 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9261 # for backward compatibility:
9262 ac_top_builddir=$ac_top_build_prefix
9264 case $srcdir in
9265 .) # We are building in place.
9266 ac_srcdir=.
9267 ac_top_srcdir=$ac_top_builddir_sub
9268 ac_abs_top_srcdir=$ac_pwd ;;
9269 [\\/]* | ?:[\\/]* ) # Absolute name.
9270 ac_srcdir=$srcdir$ac_dir_suffix;
9271 ac_top_srcdir=$srcdir
9272 ac_abs_top_srcdir=$srcdir ;;
9273 *) # Relative name.
9274 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9275 ac_top_srcdir=$ac_top_build_prefix$srcdir
9276 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9277 esac
9278 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9281 case $ac_mode in
9284 # CONFIG_FILE
9287 case $INSTALL in
9288 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9289 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9290 esac
9291 _ACEOF
9293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9294 # If the template does not know about datarootdir, expand it.
9295 # FIXME: This hack should be removed a few years after 2.60.
9296 ac_datarootdir_hack=; ac_datarootdir_seen=
9297 ac_sed_dataroot='
9298 /datarootdir/ {
9302 /@datadir@/p
9303 /@docdir@/p
9304 /@infodir@/p
9305 /@localedir@/p
9306 /@mandir@/p'
9307 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9308 *datarootdir*) ac_datarootdir_seen=yes;;
9309 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9311 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9312 _ACEOF
9313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9314 ac_datarootdir_hack='
9315 s&@datadir@&$datadir&g
9316 s&@docdir@&$docdir&g
9317 s&@infodir@&$infodir&g
9318 s&@localedir@&$localedir&g
9319 s&@mandir@&$mandir&g
9320 s&\\\${datarootdir}&$datarootdir&g' ;;
9321 esac
9322 _ACEOF
9324 # Neutralize VPATH when '$srcdir' = '.'.
9325 # Shell code in configure.ac might set extrasub.
9326 # FIXME: do we really want to maintain this feature?
9327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9328 ac_sed_extra="$ac_vpsub
9329 $extrasub
9330 _ACEOF
9331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9334 s|@configure_input@|$ac_sed_conf_input|;t t
9335 s&@top_builddir@&$ac_top_builddir_sub&;t t
9336 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9337 s&@srcdir@&$ac_srcdir&;t t
9338 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9339 s&@top_srcdir@&$ac_top_srcdir&;t t
9340 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9341 s&@builddir@&$ac_builddir&;t t
9342 s&@abs_builddir@&$ac_abs_builddir&;t t
9343 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9344 s&@INSTALL@&$ac_INSTALL&;t t
9345 $ac_datarootdir_hack
9347 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9348 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9350 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9351 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9352 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9353 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
9355 which seems to be undefined. Please make sure it is defined" >&5
9356 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
9357 which seems to be undefined. Please make sure it is defined" >&2;}
9359 rm -f "$ac_tmp/stdin"
9360 case $ac_file in
9361 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9362 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9363 esac \
9364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9368 # CONFIG_HEADER
9370 if test x"$ac_file" != x-; then
9372 printf "%s\n" "/* $configure_input */" >&1 \
9373 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9374 } >"$ac_tmp/config.h" \
9375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9376 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9378 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9379 else
9380 rm -f "$ac_file"
9381 mv "$ac_tmp/config.h" "$ac_file" \
9382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9384 else
9385 printf "%s\n" "/* $configure_input */" >&1 \
9386 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9387 || as_fn_error $? "could not create -" "$LINENO" 5
9391 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9392 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
9394 esac
9397 case $ac_file$ac_mode in
9398 "default":C)
9399 case $CONFIG_FILES in *config.make*)
9400 echo "$config_vars" >> config.make;;
9401 esac
9402 test -d bits || mkdir bits ;;
9404 esac
9405 done # for ac_tag
9408 as_fn_exit 0
9409 _ACEOF
9410 ac_clean_files=$ac_clean_files_save
9412 test $ac_write_fail = 0 ||
9413 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9416 # configure is writing to config.log, and then calls config.status.
9417 # config.status does its own redirection, appending to config.log.
9418 # Unfortunately, on DOS this fails, as config.log is still kept open
9419 # by configure, so config.status won't be able to write to it; its
9420 # output is simply discarded. So we exec the FD to /dev/null,
9421 # effectively closing config.log, so it can be properly (re)opened and
9422 # appended to by config.status. When coming back to configure, we
9423 # need to make the FD available again.
9424 if test "$no_create" != yes; then
9425 ac_cs_success=:
9426 ac_config_status_args=
9427 test "$silent" = yes &&
9428 ac_config_status_args="$ac_config_status_args --quiet"
9429 exec 5>/dev/null
9430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9431 exec 5>>config.log
9432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9433 # would make configure fail if this is the last instruction.
9434 $ac_cs_success || as_fn_exit 1
9438 # CONFIG_SUBDIRS section.
9440 if test "$no_recursion" != yes; then
9442 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9443 # so they do not pile up.
9444 ac_sub_configure_args=
9445 ac_prev=
9446 eval "set x $ac_configure_args"
9447 shift
9448 for ac_arg
9450 if test -n "$ac_prev"; then
9451 ac_prev=
9452 continue
9454 case $ac_arg in
9455 -cache-file | --cache-file | --cache-fil | --cache-fi \
9456 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9457 ac_prev=cache_file ;;
9458 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9459 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9460 | --c=*)
9462 --config-cache | -C)
9464 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9465 ac_prev=srcdir ;;
9466 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9468 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9469 ac_prev=prefix ;;
9470 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9472 --disable-option-checking)
9475 case $ac_arg in
9476 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9477 esac
9478 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9479 esac
9480 done
9482 # Always prepend --prefix to ensure using the same prefix
9483 # in subdir configurations.
9484 ac_arg="--prefix=$prefix"
9485 case $ac_arg in
9486 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9487 esac
9488 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9490 # Pass --silent
9491 if test "$silent" = yes; then
9492 ac_sub_configure_args="--silent $ac_sub_configure_args"
9495 # Always prepend --disable-option-checking to silence warnings, since
9496 # different subdirs can have different --enable and --with options.
9497 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9499 ac_popdir=`pwd`
9500 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9502 # Do not complain, so a configure script can configure whichever
9503 # parts of a large source tree are present.
9504 test -d "$srcdir/$ac_dir" || continue
9506 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9508 printf "%s\n" "$ac_msg" >&6
9509 as_dir="$ac_dir"; as_fn_mkdir_p
9510 ac_builddir=.
9512 case "$ac_dir" in
9513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9515 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9516 # A ".." for each directory in $ac_dir_suffix.
9517 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9518 case $ac_top_builddir_sub in
9519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9521 esac ;;
9522 esac
9523 ac_abs_top_builddir=$ac_pwd
9524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9525 # for backward compatibility:
9526 ac_top_builddir=$ac_top_build_prefix
9528 case $srcdir in
9529 .) # We are building in place.
9530 ac_srcdir=.
9531 ac_top_srcdir=$ac_top_builddir_sub
9532 ac_abs_top_srcdir=$ac_pwd ;;
9533 [\\/]* | ?:[\\/]* ) # Absolute name.
9534 ac_srcdir=$srcdir$ac_dir_suffix;
9535 ac_top_srcdir=$srcdir
9536 ac_abs_top_srcdir=$srcdir ;;
9537 *) # Relative name.
9538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9539 ac_top_srcdir=$ac_top_build_prefix$srcdir
9540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9541 esac
9542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9545 cd "$ac_dir"
9547 # Check for configure.gnu first; this name is used for a wrapper for
9548 # Metaconfig's "Configure" on case-insensitive file systems.
9549 if test -f "$ac_srcdir/configure.gnu"; then
9550 ac_sub_configure=$ac_srcdir/configure.gnu
9551 elif test -f "$ac_srcdir/configure"; then
9552 ac_sub_configure=$ac_srcdir/configure
9553 else
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9555 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9556 ac_sub_configure=
9559 # The recursion is here.
9560 if test -n "$ac_sub_configure"; then
9561 # Make the cache file name correct relative to the subdirectory.
9562 case $cache_file in
9563 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9564 *) # Relative name.
9565 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9566 esac
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9569 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9570 # The eval makes quoting arguments work.
9571 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9572 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9573 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9576 cd "$ac_popdir"
9577 done
9579 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9581 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}