]> git.ipfire.org Git - thirdparty/glibc.git/blame_incremental - configure
htl: Drop ptr_pthread_once from pthread_functions
[thirdparty/glibc.git] / configure
... / ...
CommitLineData
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).
4#
5# Report bugs to <https://sourceware.org/bugzilla/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
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
28else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" "" $as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84fi
85
86
87# Find who we are. Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
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
102IFS=$as_save_IFS
103
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if 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
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133esac
134exec $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'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
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
151else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157esac ;;
158esac
159fi
160"
161 as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -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
188then :
189 as_have_required=yes
190else case e in #(
191 e) as_have_required=no ;;
192esac
193fi
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195then :
196
197else case e in #(
198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199as_found=false
200for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201do
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 #(
210 /*)
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
216then :
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
219then :
220 break 2
221fi
222fi
223 done;;
224 esac
225 as_found=false
226done
227IFS=$as_save_IFS
228if $as_found
229then :
230
231else 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
234then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi ;;
237esac
238fi
239
240
241 if test "x$CONFIG_SHELL" != x
242then :
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.
248BASH_ENV=/dev/null
249ENV=/dev/null
250(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256esac
257exec $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'.
260printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261exit 255
262fi
263
264 if test x$as_have_required = xno
265then :
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."
277 fi
278 exit 1
279fi ;;
280esac
281fi
282fi
283SHELL=${CONFIG_SHELL-/bin/sh}
284export SHELL
285# Unset more variables known to interfere with behavior of common tools.
286CLICOLOR_FORCE= GREP_OPTIONS=
287unset CLICOLOR_FORCE GREP_OPTIONS
288
289## --------------------- ##
290## M4sh Shell Functions. ##
291## --------------------- ##
292# as_fn_unset VAR
293# ---------------
294# Portably unset VAR.
295as_fn_unset ()
296{
297 { eval $1=; unset $1;}
298}
299as_unset=as_fn_unset
300
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
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 ||
342printf "%s\n" X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
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"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
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.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382then :
383 eval 'as_fn_append ()
384 {
385 eval $1+=\$2
386 }'
387else case e in #(
388 e) as_fn_append ()
389 {
390 eval $1=\$$1\$2
391 } ;;
392esac
393fi # as_fn_append
394
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.
400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else case e in #(
407 e) as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 } ;;
411esac
412fi # as_fn_arith
413
414
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.
420as_fn_error ()
421{
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
426 fi
427 printf "%s\n" "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434else
435 as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440else
441 as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446else
447 as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454printf "%s\n" X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
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 '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 t clear
488 :clear
489 s/[$]LINENO.*/&-/
490 t lineno
491 b
492 :lineno
493 N
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; }
501
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
512}
513
514
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.
518ECHO_C= ECHO_N= ECHO_T=
519case `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;;
527*)
528 ECHO_N='-n';;
529esac
530
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.
534as_echo='printf %s\n'
535as_echo_n='printf %s'
536
537rm -f conf$$ conf$$.exe conf$$.file
538if test -d conf$$.dir; then
539 rm -f conf$$.dir/conf$$.file
540else
541 rm -f conf$$.dir
542 mkdir conf$$.dir 2>/dev/null
543fi
544if (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'
557 fi
558else
559 as_ln_s='cp -pR'
560fi
561rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
562rmdir conf$$.dir 2>/dev/null
563
564if mkdir -p . 2>/dev/null; then
565 as_mkdir_p='mkdir -p "$as_dir"'
566else
567 test -d ./-p && rmdir ./-p
568 as_mkdir_p=false
569fi
570
571as_test_x='test -x'
572as_executable_p=as_fn_executable_p
573
574# Sed expression to map a string onto a valid CPP name.
575as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
577
578# Sed expression to map a string onto a valid variable name.
579as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580as_tr_sh="eval sed '$as_sed_sh'" # deprecated
581
582
583test -n "$DJDIR" || exec 7<&0 </dev/null
584exec 6>&1
585
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.
589ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
590
591#
592# Initializations.
593#
594ac_default_prefix=/usr/local
595ac_clean_files=
596ac_config_libobj_dir=.
597LIBOBJS=
598cross_compiling=no
599subdirs=
600MFLAGS=
601MAKEFLAGS=
602
603# Identity of this package.
604PACKAGE_NAME='GNU C Library'
605PACKAGE_TARNAME='glibc'
606PACKAGE_VERSION='(see version.h)'
607PACKAGE_STRING='GNU C Library (see version.h)'
608PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/'
609PACKAGE_URL='https://www.gnu.org/software/glibc/'
610
611ac_unique_file="include/features.h"
612enable_option_checking=no
613ac_subst_vars='LTLIBOBJS
614LIBOBJS
615pthread_in_libc
616RELEASE
617VERSION
618mach_interface_list
619DEFINES
620static_nss
621profile
622libc_cv_multidir
623libc_cv_test_x86_have_amx_tile
624test_enable_cet
625libc_cv_test_cc_mprefer_vector_width
626shared
627static
628ldd_rewrite_script
629use_ldconfig
630libc_cv_rootsbindir
631libc_cv_localstatedir
632libc_cv_sysconfdir
633libc_cv_complocaledir
634libc_cv_rtlddir
635libc_cv_slibdir
636use_nscd
637libc_cv_gcc_unwind_find_fde
638libc_extra_cppflags
639libc_extra_cflags
640libc_cv_cxx_thread_local
641no_time_bits_source
642no_file_offset_bits_source
643fortify_source
644no_fortify_source
645libc_cv_fortify_source
646enable_fortify_source
647libc_cv_test_supported_fortify_source
648have_selinux
649have_libcap
650have_libaudit
651LIBGD
652libc_cv_test_cc_wmissing_parameter_name
653libc_cv_test_cc_wfree_labels
654libc_cv_test_cc_wimplicit_fallthrough
655libc_cv_cc_loop_to_function
656libc_cv_test_cc_signaling_nans
657libc_cv_cc_submachine
658libc_cv_cc_nofma
659libc_cv_test_wno_ignored_attributes
660libc_cv_has_glob_dat
661libc_cv_fpie
662libc_cv_test_static_pie
663libc_cv_z_execstack
664libc_cv_no_error_execstack
665ASFLAGS_config
666libc_cv_cc_with_libunwind
667libc_cv_insert
668libc_cv_protected_data
669INSTALL_INFO
670PERL
671BASH_SHELL
672CXX_BITS_STD_ABS_H
673CXX_CMATH_HEADER
674CXX_CSTDLIB_HEADER
675CXX_SYSINCLUDES
676SYSINCLUDES
677sysnames
678submachine
679multi_arch
680libc_cv_textrel_ifunc
681no_stack_protector
682stack_protector
683libc_cv_ssp
684libc_cv_with_fp
685PYTHON
686PYTHON_PROG
687AUTOCONF
688BISON
689AWK
690SED
691MAKEINFO
692MSGFMT
693MAKE
694LD
695NM
696OBJDUMP
697READELF
698GPROF
699OBJCOPY
700AR
701LN_S
702INSTALL_DATA
703INSTALL_SCRIPT
704INSTALL_PROGRAM
705base_machine
706build_pt_chown
707build_nscd
708memory_tagging
709enable_werror
710force_install
711bindnow
712hardcoded_path_in_tests
713enable_timezone_tools
714man_pages_version
715rtld_early_cflags
716extra_nonshared_cflags
717sysheaders
718TEST_CXX
719ac_ct_CXX
720CXXFLAGS
721CXX
722CPP
723cross_compiling
724BUILD_CC
725TEST_CC
726OBJEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732host_os
733host_vendor
734host_cpu
735host
736build_os
737build_vendor
738build_cpu
739build
740subdirs
741REPORT_BUGS_TEXI
742REPORT_BUGS_TO
743PKGVERSION_TEXI
744PKGVERSION
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764runstatedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
776PACKAGE_URL
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
784ac_subst_files=''
785ac_user_opts='
786enable_option_checking
787with_pkgversion
788with_bugurl
789enable_static_c___tests
790enable_static_c___link_check
791with_gd
792with_gd_include
793with_gd_lib
794with_binutils
795with_selinux
796with_headers
797with_nonshared_cflags
798with_rtld_early_cflags
799with_timeoutfactor
800with_man_pages
801enable_sanity_checks
802enable_shared
803enable_profile
804enable_default_pie
805enable_timezone_tools
806enable_hardcoded_path_in_tests
807enable_hidden_plt
808enable_bind_now
809enable_stack_protector
810enable_static_nss
811enable_force_install
812enable_maintainer_mode
813enable_kernel
814enable_werror
815enable_multi_arch
816enable_memory_tagging
817enable_systemtap
818enable_build_nscd
819enable_nscd
820enable_pt_chown
821enable_mathvec
822enable_cet
823enable_scv
824enable_fortify_source
825with_cpu
826'
827 ac_precious_vars='build_alias
828host_alias
829target_alias
830CC
831CFLAGS
832LDFLAGS
833LIBS
834CPPFLAGS
835TEST_CC
836CPP
837CXX
838CXXFLAGS
839CCC
840TEST_CXX'
841ac_subdirs_all=''
842
843# Initialize some variables set by options.
844ac_init_help=
845ac_init_version=false
846ac_unrecognized_opts=
847ac_unrecognized_sep=
848# The variables have the same names as the options, with
849# dashes changed to underlines.
850cache_file=/dev/null
851exec_prefix=NONE
852no_create=
853no_recursion=
854prefix=NONE
855program_prefix=NONE
856program_suffix=NONE
857program_transform_name=s,x,x,
858silent=
859site=
860srcdir=
861verbose=
862x_includes=NONE
863x_libraries=NONE
864
865# Installation directory options.
866# These are left unexpanded so users can "make install exec_prefix=/foo"
867# and all the variables that are supposed to be based on exec_prefix
868# by default will actually change.
869# Use braces instead of parens because sh, perl, etc. also accept them.
870# (The list follows the same order as the GNU Coding Standards.)
871bindir='${exec_prefix}/bin'
872sbindir='${exec_prefix}/sbin'
873libexecdir='${exec_prefix}/libexec'
874datarootdir='${prefix}/share'
875datadir='${datarootdir}'
876sysconfdir='${prefix}/etc'
877sharedstatedir='${prefix}/com'
878localstatedir='${prefix}/var'
879runstatedir='${localstatedir}/run'
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
882docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
891
892ac_prev=
893ac_dashdash=
894for ac_option
895do
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
901 fi
902
903 case $ac_option in
904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *=) ac_optarg= ;;
906 *) ac_optarg=yes ;;
907 esac
908
909 case $ac_dashdash$ac_option in
910 --)
911 ac_dashdash=yes ;;
912
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
917
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
922
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
929
930 --config-cache | -C)
931 cache_file=config.cache ;;
932
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
937
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
944
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: '$ac_useropt'"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954"enable_$ac_useropt"
955"*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
960
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
965
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
970
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error $? "invalid feature name: '$ac_useropt'"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980"enable_$ac_useropt"
981"*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
986
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
995
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
999
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1006
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1011
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1017
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1024
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1029
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1034
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1041
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1046
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1053
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1058
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1062
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1066
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1070
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1079
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1084
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1091
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1098
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1115
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1120
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1125
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1129
1130 -runstatedir | --runstatedir | --runstatedi | --runstated \
1131 | --runstate | --runstat | --runsta | --runst | --runs \
1132 | --run | --ru | --r)
1133 ac_prev=runstatedir ;;
1134 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1135 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1136 | --run=* | --ru=* | --r=*)
1137 runstatedir=$ac_optarg ;;
1138
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
1143 sbindir=$ac_optarg ;;
1144
1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147 | --sharedst | --shareds | --shared | --share | --shar \
1148 | --sha | --sh)
1149 ac_prev=sharedstatedir ;;
1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 | --sha=* | --sh=*)
1154 sharedstatedir=$ac_optarg ;;
1155
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
1159 site=$ac_optarg ;;
1160
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164 srcdir=$ac_optarg ;;
1165
1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167 | --syscon | --sysco | --sysc | --sys | --sy)
1168 ac_prev=sysconfdir ;;
1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171 sysconfdir=$ac_optarg ;;
1172
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
1174 ac_prev=target_alias ;;
1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176 target_alias=$ac_optarg ;;
1177
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1180
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
1183
1184 -with-* | --with-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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
1192 *"
1193"with_$ac_useropt"
1194"*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=\$ac_optarg ;;
1199
1200 -without-* | --without-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: '$ac_useropt'"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209"with_$ac_useropt"
1210"*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=no ;;
1215
1216 --x)
1217 # Obsolete; use --with-x.
1218 with_x=yes ;;
1219
1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221 | --x-incl | --x-inc | --x-in | --x-i)
1222 ac_prev=x_includes ;;
1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225 x_includes=$ac_optarg ;;
1226
1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;;
1233
1234 -*) as_fn_error $? "unrecognized option: '$ac_option'
1235Try '$0 --help' for more information"
1236 ;;
1237
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 case $ac_envvar in #(
1242 '' | [0-9]* | *[!_$as_cr_alnum]* )
1243 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1244 esac
1245 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;;
1247
1248 *)
1249 # FIXME: should be removed in autoconf 3.0.
1250 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254 ;;
1255
1256 esac
1257done
1258
1259if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 as_fn_error $? "missing argument to $ac_option"
1262fi
1263
1264if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1266 no) ;;
1267 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1268 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1270fi
1271
1272# Check all directory arguments for consistency.
1273for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir runstatedir
1277do
1278 eval ac_val=\$$ac_var
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1291done
1292
1293# There might be people who depend on the old broken behavior: '$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 elif test "x$build_alias" != "x$host_alias"; then
1305 cross_compiling=yes
1306 fi
1307fi
1308
1309ac_tool_prefix=
1310test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312test "$silent" = yes && exec 6>/dev/null
1313
1314
1315ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316ac_ls_di=`ls -di .` &&
1317ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 as_fn_error $? "working directory cannot be determined"
1319test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 as_fn_error $? "pwd does not report name of working directory"
1321
1322
1323# Find the source files, if location was not specified.
1324if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332printf "%s\n" X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\).*/{
1346 s//\1/
1347 q
1348 }
1349 s/.*/./; q'`
1350 srcdir=$ac_confdir
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 srcdir=..
1353 fi
1354else
1355 ac_srcdir_defaulted=no
1356fi
1357if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1360fi
1361ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1362ac_abs_confdir=`(
1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1364 pwd)`
1365# When building in place, set srcdir=.
1366if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 srcdir=.
1368fi
1369# Remove unnecessary trailing slashes from srcdir.
1370# Double slashes in file names in object file debugging info
1371# mess up M-x gdb in Emacs.
1372case $srcdir in
1373*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374esac
1375for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380done
1381
1382#
1383# Report the --help message.
1384#
1385if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389'configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1390
1391Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394VAR=VALUE. See below for descriptions of some of the useful variables.
1395
1396Defaults for the options are specified in brackets.
1397
1398Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print 'checking ...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for '--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or '..']
1408
1409Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 [PREFIX]
1414
1415By default, 'make install' will install all the files in
1416'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1417an installation prefix other than '$ac_default_prefix' using '--prefix',
1418for instance '--prefix=\$HOME'.
1419
1420For better control, use the options below.
1421
1422Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443_ACEOF
1444
1445 cat <<\_ACEOF
1446
1447System types:
1448 --build=BUILD configure for building on BUILD [guessed]
1449 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450_ACEOF
1451fi
1452
1453if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1456 esac
1457 cat <<\_ACEOF
1458
1459Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --disable-static-c++-tests
1464 disable static C++ tests[default=no]
1465 --disable-static-c++-link-check
1466 disable static C++ link check [default=no]
1467 --disable-sanity-checks really do not use threads (should not be used except
1468 in special situations) [default=yes]
1469 --enable-shared build shared library [default=yes if GNU ld]
1470 --enable-profile build profiled library [default=no]
1471 --disable-default-pie Do not build glibc programs and the testsuite as PIE
1472 [default=no]
1473 --disable-timezone-tools
1474 do not install timezone tools [default=install]
1475 --enable-hardcoded-path-in-tests
1476 hardcode newly built glibc path in tests
1477 [default=no]
1478 --disable-hidden-plt do not hide internal function calls to avoid PLT
1479 --enable-bind-now disable lazy relocations in DSOs
1480 --enable-stack-protector=[yes|no|all|strong]
1481 Use -fstack-protector[-all|-strong] to detect glibc
1482 buffer overflows
1483 --enable-static-nss build static NSS modules [default=no]
1484 --disable-force-install don't force installation of files from this package,
1485 even if they are older than the installed files
1486 --enable-maintainer-mode
1487 enable make rules and dependencies not useful (and
1488 sometimes confusing) to the casual installer
1489 --enable-kernel=VERSION compile for compatibility with kernel not older than
1490 VERSION
1491 --disable-werror do not build with -Werror
1492 --enable-multi-arch enable single DSO with optimizations for multiple
1493 architectures
1494 --enable-memory-tagging enable memory tagging if supported by the
1495 architecture [default=no]
1496 --enable-systemtap enable systemtap static probe points [default=no]
1497 --disable-build-nscd disable building and installing the nscd daemon
1498 --disable-nscd library functions will not contact the nscd daemon
1499 --enable-pt_chown Enable building and installing pt_chown
1500 --enable-mathvec Enable building and installing mathvec [default
1501 depends on architecture]
1502 --enable-cet enable Intel Control-flow Enforcement Technology
1503 (CET), x86 only
1504 --disable-scv syscalls will not use scv instruction, even if the
1505 kernel supports it, powerpc only
1506 --enable-fortify-source[=1|2|3]
1507 Use -D_FORTIFY_SOURCE=[1|2|3] to control code
1508 hardening, defaults to highest possible value
1509 supported by the build compiler.
1510
1511Optional Packages:
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1515 --with-bugurl=URL Direct users to URL to report a bug
1516 --with-gd=DIR find libgd include dir and library with prefix DIR
1517 --with-gd-include=DIR find libgd include files in DIR
1518 --with-gd-lib=DIR find libgd library files in DIR
1519 --with-binutils=PATH specify location of binutils (as and ld)
1520 --with-selinux if building with SELinux support
1521 --with-headers=PATH location of system headers to use (for example
1522 /usr/src/linux/include) [default=compiler default]
1523 --with-nonshared-cflags=CFLAGS
1524 build nonshared libraries with additional CFLAGS
1525 --with-rtld-early-cflags=CFLAGS
1526 build early initialization with additional CFLAGS
1527 --with-timeoutfactor=NUM
1528 specify an integer to scale the timeout
1529 --with-man-pages=VERSION
1530 tie manual to a specific man-pages version
1531 --with-cpu=CPU select code for CPU variant
1532
1533Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1541 TEST_CC C compiler for testing
1542 CPP C preprocessor
1543 CXX C++ compiler command
1544 CXXFLAGS C++ compiler flags
1545 TEST_CXX C++ compiler for testing
1546
1547Use these variables to override the choices made by 'configure' or to help
1548it to find libraries and programs with nonstandard names/locations.
1549
1550Report bugs to <https://sourceware.org/bugzilla/>.
1551GNU C Library home page: <https://www.gnu.org/software/glibc/>.
1552General help using GNU software: <https://www.gnu.org/gethelp/>.
1553_ACEOF
1554ac_status=$?
1555fi
1556
1557if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562 continue
1563 ac_builddir=.
1564
1565case "$ac_dir" in
1566.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567*)
1568 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 esac ;;
1575esac
1576ac_abs_top_builddir=$ac_pwd
1577ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578# for backward compatibility:
1579ac_top_builddir=$ac_top_build_prefix
1580
1581case $srcdir in
1582 .) # We are building in place.
1583 ac_srcdir=.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1590 *) # Relative name.
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594esac
1595ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for configure.gnu first; this name is used for a wrapper for
1599 # Metaconfig's "Configure" on case-insensitive file systems.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1606 else
1607 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 fi || ac_status=$?
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1610 done
1611fi
1612
1613test -n "$ac_init_help" && exit $ac_status
1614if $ac_init_version; then
1615 cat <<\_ACEOF
1616GNU C Library configure (see version.h)
1617generated by GNU Autoconf 2.72
1618
1619Copyright (C) 2023 Free Software Foundation, Inc.
1620This configure script is free software; the Free Software Foundation
1621gives unlimited permission to copy, distribute and modify it.
1622_ACEOF
1623 exit
1624fi
1625
1626## ------------------------ ##
1627## Autoconf initialization. ##
1628## ------------------------ ##
1629
1630# ac_fn_c_try_compile LINENO
1631# --------------------------
1632# Try to compile conftest.$ac_ext, and return whether this succeeded.
1633ac_fn_c_try_compile ()
1634{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext conftest.beam
1637 if { { ac_try="$ac_compile"
1638case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643printf "%s\n" "$ac_try_echo"; } >&5
1644 (eval "$ac_compile") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest.$ac_objext
1656then :
1657 ac_retval=0
1658else case e in #(
1659 e) printf "%s\n" "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1 ;;
1663esac
1664fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668} # ac_fn_c_try_compile
1669
1670# ac_fn_cxx_try_compile LINENO
1671# ----------------------------
1672# Try to compile conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_cxx_try_compile ()
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest.beam
1677 if { { ac_try="$ac_compile"
1678case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683printf "%s\n" "$ac_try_echo"; } >&5
1684 (eval "$ac_compile") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_cxx_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest.$ac_objext
1696then :
1697 ac_retval=0
1698else case e in #(
1699 e) printf "%s\n" "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1 ;;
1703esac
1704fi
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708} # ac_fn_cxx_try_compile
1709
1710# ac_fn_cxx_try_link LINENO
1711# -------------------------
1712# Try to link conftest.$ac_ext, and return whether this succeeded.
1713ac_fn_cxx_try_link ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1717 if { { ac_try="$ac_link"
1718case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723printf "%s\n" "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_cxx_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest$ac_exeext && {
1736 test "$cross_compiling" = yes ||
1737 test -x conftest$ac_exeext
1738 }
1739then :
1740 ac_retval=0
1741else case e in #(
1742 e) printf "%s\n" "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1 ;;
1746esac
1747fi
1748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1750 # interfere with the next link command; also delete a directory that is
1751 # left behind by Apple's compiler. We do this before executing the actions.
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1755
1756} # ac_fn_cxx_try_link
1757
1758# ac_fn_c_try_cpp LINENO
1759# ----------------------
1760# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761ac_fn_c_try_cpp ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1765case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770printf "%s\n" "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } > conftest.i && {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 }
1783then :
1784 ac_retval=0
1785else case e in #(
1786 e) printf "%s\n" "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1 ;;
1790esac
1791fi
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795} # ac_fn_c_try_cpp
1796
1797# ac_fn_c_try_link LINENO
1798# -----------------------
1799# Try to link conftest.$ac_ext, and return whether this succeeded.
1800ac_fn_c_try_link ()
1801{
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1804 if { { ac_try="$ac_link"
1805case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808esac
1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810printf "%s\n" "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest$ac_exeext && {
1823 test "$cross_compiling" = yes ||
1824 test -x conftest$ac_exeext
1825 }
1826then :
1827 ac_retval=0
1828else case e in #(
1829 e) printf "%s\n" "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=1 ;;
1833esac
1834fi
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_link
1844ac_configure_args_raw=
1845for ac_arg
1846do
1847 case $ac_arg in
1848 *\'*)
1849 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1850 esac
1851 as_fn_append ac_configure_args_raw " '$ac_arg'"
1852done
1853
1854case $ac_configure_args_raw in
1855 *$as_nl*)
1856 ac_safe_unquote= ;;
1857 *)
1858 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1859 ac_unsafe_a="$ac_unsafe_z#~"
1860 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1861 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1862esac
1863
1864cat >config.log <<_ACEOF
1865This file contains any messages produced by compilers while
1866running configure, to aid debugging if configure makes a mistake.
1867
1868It was created by GNU C Library $as_me (see version.h), which was
1869generated by GNU Autoconf 2.72. Invocation command line was
1870
1871 $ $0$ac_configure_args_raw
1872
1873_ACEOF
1874exec 5>>config.log
1875{
1876cat <<_ASUNAME
1877## --------- ##
1878## Platform. ##
1879## --------- ##
1880
1881hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1882uname -m = `(uname -m) 2>/dev/null || echo unknown`
1883uname -r = `(uname -r) 2>/dev/null || echo unknown`
1884uname -s = `(uname -s) 2>/dev/null || echo unknown`
1885uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886
1887/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1888/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1889
1890/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1891/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1892/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1893/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1894/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1895/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1896/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1897
1898_ASUNAME
1899
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903 IFS=$as_save_IFS
1904 case $as_dir in #(((
1905 '') as_dir=./ ;;
1906 */) ;;
1907 *) as_dir=$as_dir/ ;;
1908 esac
1909 printf "%s\n" "PATH: $as_dir"
1910 done
1911IFS=$as_save_IFS
1912
1913} >&5
1914
1915cat >&5 <<_ACEOF
1916
1917
1918## ----------- ##
1919## Core tests. ##
1920## ----------- ##
1921
1922_ACEOF
1923
1924
1925# Keep a trace of the command line.
1926# Strip out --no-create and --no-recursion so they do not pile up.
1927# Strip out --silent because we don't want to record it for future runs.
1928# Also quote any args containing shell meta-characters.
1929# Make two passes to allow for proper duplicate-argument suppression.
1930ac_configure_args=
1931ac_configure_args0=
1932ac_configure_args1=
1933ac_must_keep_next=false
1934for ac_pass in 1 2
1935do
1936 for ac_arg
1937 do
1938 case $ac_arg in
1939 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1941 | -silent | --silent | --silen | --sile | --sil)
1942 continue ;;
1943 *\'*)
1944 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1945 esac
1946 case $ac_pass in
1947 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1948 2)
1949 as_fn_append ac_configure_args1 " '$ac_arg'"
1950 if test $ac_must_keep_next = true; then
1951 ac_must_keep_next=false # Got value, back to normal.
1952 else
1953 case $ac_arg in
1954 *=* | --config-cache | -C | -disable-* | --disable-* \
1955 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1956 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1957 | -with-* | --with-* | -without-* | --without-* | --x)
1958 case "$ac_configure_args0 " in
1959 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1960 esac
1961 ;;
1962 -* ) ac_must_keep_next=true ;;
1963 esac
1964 fi
1965 as_fn_append ac_configure_args " '$ac_arg'"
1966 ;;
1967 esac
1968 done
1969done
1970{ ac_configure_args0=; unset ac_configure_args0;}
1971{ ac_configure_args1=; unset ac_configure_args1;}
1972
1973# When interrupted or exit'd, cleanup temporary files, and complete
1974# config.log. We remove comments because anyway the quotes in there
1975# would cause problems or look ugly.
1976# WARNING: Use '\'' to represent an apostrophe within the trap.
1977# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1978trap 'exit_status=$?
1979 # Sanitize IFS.
1980 IFS=" "" $as_nl"
1981 # Save into config.log some information that might help in debugging.
1982 {
1983 echo
1984
1985 printf "%s\n" "## ---------------- ##
1986## Cache variables. ##
1987## ---------------- ##"
1988 echo
1989 # The following way of writing the cache mishandles newlines in values,
1990(
1991 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1992 eval ac_val=\$$ac_var
1993 case $ac_val in #(
1994 *${as_nl}*)
1995 case $ac_var in #(
1996 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1997printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1998 esac
1999 case $ac_var in #(
2000 _ | IFS | as_nl) ;; #(
2001 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2002 *) { eval $ac_var=; unset $ac_var;} ;;
2003 esac ;;
2004 esac
2005 done
2006 (set) 2>&1 |
2007 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008 *${as_nl}ac_space=\ *)
2009 sed -n \
2010 "s/'\''/'\''\\\\'\'''\''/g;
2011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012 ;; #(
2013 *)
2014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2015 ;;
2016 esac |
2017 sort
2018)
2019 echo
2020
2021 printf "%s\n" "## ----------------- ##
2022## Output variables. ##
2023## ----------------- ##"
2024 echo
2025 for ac_var in $ac_subst_vars
2026 do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in
2029 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030 esac
2031 printf "%s\n" "$ac_var='\''$ac_val'\''"
2032 done | sort
2033 echo
2034
2035 if test -n "$ac_subst_files"; then
2036 printf "%s\n" "## ------------------- ##
2037## File substitutions. ##
2038## ------------------- ##"
2039 echo
2040 for ac_var in $ac_subst_files
2041 do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in
2044 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045 esac
2046 printf "%s\n" "$ac_var='\''$ac_val'\''"
2047 done | sort
2048 echo
2049 fi
2050
2051 if test -s confdefs.h; then
2052 printf "%s\n" "## ----------- ##
2053## confdefs.h. ##
2054## ----------- ##"
2055 echo
2056 cat confdefs.h
2057 echo
2058 fi
2059 test "$ac_signal" != 0 &&
2060 printf "%s\n" "$as_me: caught signal $ac_signal"
2061 printf "%s\n" "$as_me: exit $exit_status"
2062 } >&5
2063 rm -f core *.core core.conftest.* &&
2064 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065 exit $exit_status
2066' 0
2067for ac_signal in 1 2 13 15; do
2068 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069done
2070ac_signal=0
2071
2072# confdefs.h avoids OS command line length limits that DEFS can exceed.
2073rm -f -r conftest* confdefs.h
2074
2075printf "%s\n" "/* confdefs.h */" > confdefs.h
2076
2077# Predefined preprocessor variables.
2078
2079printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2080
2081printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2082
2083printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2084
2085printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2086
2087printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2088
2089printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2090
2091
2092# Let the site file select an alternate cache file if it wants to.
2093# Prefer an explicitly selected file to automatically selected ones.
2094if test -n "$CONFIG_SITE"; then
2095 ac_site_files="$CONFIG_SITE"
2096elif test "x$prefix" != xNONE; then
2097 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2098else
2099 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2100fi
2101
2102for ac_site_file in $ac_site_files
2103do
2104 case $ac_site_file in #(
2105 */*) :
2106 ;; #(
2107 *) :
2108 ac_site_file=./$ac_site_file ;;
2109esac
2110 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2112printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2113 sed 's/^/| /' "$ac_site_file" >&5
2114 . "$ac_site_file" \
2115 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2116printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2117as_fn_error $? "failed to load site script $ac_site_file
2118See 'config.log' for more details" "$LINENO" 5; }
2119 fi
2120done
2121
2122if test -r "$cache_file"; then
2123 # Some versions of bash will fail to source /dev/null (special files
2124 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2125 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2128 case $cache_file in
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
2131 esac
2132 fi
2133else
2134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2136 >$cache_file
2137fi
2138
2139# Test code for whether the C compiler supports C89 (global declarations)
2140ac_c_conftest_c89_globals='
2141/* Does the compiler advertise C89 conformance?
2142 Do not test the value of __STDC__, because some compilers set it to 0
2143 while being otherwise adequately conformant. */
2144#if !defined __STDC__
2145# error "Compiler does not advertise C89 conformance"
2146#endif
2147
2148#include <stddef.h>
2149#include <stdarg.h>
2150struct stat;
2151/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2152struct buf { int x; };
2153struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2154static char *e (char **p, int i)
2155{
2156 return p[i];
2157}
2158static char *f (char * (*g) (char **, int), char **p, ...)
2159{
2160 char *s;
2161 va_list v;
2162 va_start (v,p);
2163 s = g (p, va_arg (v,int));
2164 va_end (v);
2165 return s;
2166}
2167
2168/* C89 style stringification. */
2169#define noexpand_stringify(a) #a
2170const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2171
2172/* C89 style token pasting. Exercises some of the corner cases that
2173 e.g. old MSVC gets wrong, but not very hard. */
2174#define noexpand_concat(a,b) a##b
2175#define expand_concat(a,b) noexpand_concat(a,b)
2176extern int vA;
2177extern int vbee;
2178#define aye A
2179#define bee B
2180int *pvA = &expand_concat(v,aye);
2181int *pvbee = &noexpand_concat(v,bee);
2182
2183/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2184 function prototypes and stuff, but not \xHH hex character constants.
2185 These do not provoke an error unfortunately, instead are silently treated
2186 as an "x". The following induces an error, until -std is added to get
2187 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2188 array size at least. It is necessary to write \x00 == 0 to get something
2189 that is true only with -std. */
2190int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2191
2192/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2193 inside strings and character constants. */
2194#define FOO(x) '\''x'\''
2195int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2196
2197int test (int i, double x);
2198struct s1 {int (*f) (int a);};
2199struct s2 {int (*f) (double a);};
2200int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2201 int, int);'
2202
2203# Test code for whether the C compiler supports C89 (body of main).
2204ac_c_conftest_c89_main='
2205ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2206'
2207
2208# Test code for whether the C compiler supports C99 (global declarations)
2209ac_c_conftest_c99_globals='
2210/* Does the compiler advertise C99 conformance? */
2211#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2212# error "Compiler does not advertise C99 conformance"
2213#endif
2214
2215// See if C++-style comments work.
2216
2217#include <stdbool.h>
2218extern int puts (const char *);
2219extern int printf (const char *, ...);
2220extern int dprintf (int, const char *, ...);
2221extern void *malloc (size_t);
2222extern void free (void *);
2223
2224// Check varargs macros. These examples are taken from C99 6.10.3.5.
2225// dprintf is used instead of fprintf to avoid needing to declare
2226// FILE and stderr.
2227#define debug(...) dprintf (2, __VA_ARGS__)
2228#define showlist(...) puts (#__VA_ARGS__)
2229#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2230static void
2231test_varargs_macros (void)
2232{
2233 int x = 1234;
2234 int y = 5678;
2235 debug ("Flag");
2236 debug ("X = %d\n", x);
2237 showlist (The first, second, and third items.);
2238 report (x>y, "x is %d but y is %d", x, y);
2239}
2240
2241// Check long long types.
2242#define BIG64 18446744073709551615ull
2243#define BIG32 4294967295ul
2244#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2245#if !BIG_OK
2246 #error "your preprocessor is broken"
2247#endif
2248#if BIG_OK
2249#else
2250 #error "your preprocessor is broken"
2251#endif
2252static long long int bignum = -9223372036854775807LL;
2253static unsigned long long int ubignum = BIG64;
2254
2255struct incomplete_array
2256{
2257 int datasize;
2258 double data[];
2259};
2260
2261struct named_init {
2262 int number;
2263 const wchar_t *name;
2264 double average;
2265};
2266
2267typedef const char *ccp;
2268
2269static inline int
2270test_restrict (ccp restrict text)
2271{
2272 // Iterate through items via the restricted pointer.
2273 // Also check for declarations in for loops.
2274 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2275 continue;
2276 return 0;
2277}
2278
2279// Check varargs and va_copy.
2280static bool
2281test_varargs (const char *format, ...)
2282{
2283 va_list args;
2284 va_start (args, format);
2285 va_list args_copy;
2286 va_copy (args_copy, args);
2287
2288 const char *str = "";
2289 int number = 0;
2290 float fnumber = 0;
2291
2292 while (*format)
2293 {
2294 switch (*format++)
2295 {
2296 case '\''s'\'': // string
2297 str = va_arg (args_copy, const char *);
2298 break;
2299 case '\''d'\'': // int
2300 number = va_arg (args_copy, int);
2301 break;
2302 case '\''f'\'': // float
2303 fnumber = va_arg (args_copy, double);
2304 break;
2305 default:
2306 break;
2307 }
2308 }
2309 va_end (args_copy);
2310 va_end (args);
2311
2312 return *str && number && fnumber;
2313}
2314'
2315
2316# Test code for whether the C compiler supports C99 (body of main).
2317ac_c_conftest_c99_main='
2318 // Check bool.
2319 _Bool success = false;
2320 success |= (argc != 0);
2321
2322 // Check restrict.
2323 if (test_restrict ("String literal") == 0)
2324 success = true;
2325 char *restrict newvar = "Another string";
2326
2327 // Check varargs.
2328 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2329 test_varargs_macros ();
2330
2331 // Check flexible array members.
2332 struct incomplete_array *ia =
2333 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2334 ia->datasize = 10;
2335 for (int i = 0; i < ia->datasize; ++i)
2336 ia->data[i] = i * 1.234;
2337 // Work around memory leak warnings.
2338 free (ia);
2339
2340 // Check named initializers.
2341 struct named_init ni = {
2342 .number = 34,
2343 .name = L"Test wide string",
2344 .average = 543.34343,
2345 };
2346
2347 ni.number = 58;
2348
2349 int dynamic_array[ni.number];
2350 dynamic_array[0] = argv[0][0];
2351 dynamic_array[ni.number - 1] = 543;
2352
2353 // work around unused variable warnings
2354 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2355 || dynamic_array[ni.number - 1] != 543);
2356'
2357
2358# Test code for whether the C compiler supports C11 (global declarations)
2359ac_c_conftest_c11_globals='
2360/* Does the compiler advertise C11 conformance? */
2361#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2362# error "Compiler does not advertise C11 conformance"
2363#endif
2364
2365// Check _Alignas.
2366char _Alignas (double) aligned_as_double;
2367char _Alignas (0) no_special_alignment;
2368extern char aligned_as_int;
2369char _Alignas (0) _Alignas (int) aligned_as_int;
2370
2371// Check _Alignof.
2372enum
2373{
2374 int_alignment = _Alignof (int),
2375 int_array_alignment = _Alignof (int[100]),
2376 char_alignment = _Alignof (char)
2377};
2378_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2379
2380// Check _Noreturn.
2381int _Noreturn does_not_return (void) { for (;;) continue; }
2382
2383// Check _Static_assert.
2384struct test_static_assert
2385{
2386 int x;
2387 _Static_assert (sizeof (int) <= sizeof (long int),
2388 "_Static_assert does not work in struct");
2389 long int y;
2390};
2391
2392// Check UTF-8 literals.
2393#define u8 syntax error!
2394char const utf8_literal[] = u8"happens to be ASCII" "another string";
2395
2396// Check duplicate typedefs.
2397typedef long *long_ptr;
2398typedef long int *long_ptr;
2399typedef long_ptr long_ptr;
2400
2401// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2402struct anonymous
2403{
2404 union {
2405 struct { int i; int j; };
2406 struct { int k; long int l; } w;
2407 };
2408 int m;
2409} v1;
2410'
2411
2412# Test code for whether the C compiler supports C11 (body of main).
2413ac_c_conftest_c11_main='
2414 _Static_assert ((offsetof (struct anonymous, i)
2415 == offsetof (struct anonymous, w.k)),
2416 "Anonymous union alignment botch");
2417 v1.i = 2;
2418 v1.w.k = 5;
2419 ok |= v1.i != 5;
2420'
2421
2422# Test code for whether the C compiler supports C11 (complete).
2423ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2424${ac_c_conftest_c99_globals}
2425${ac_c_conftest_c11_globals}
2426
2427int
2428main (int argc, char **argv)
2429{
2430 int ok = 0;
2431 ${ac_c_conftest_c89_main}
2432 ${ac_c_conftest_c99_main}
2433 ${ac_c_conftest_c11_main}
2434 return ok;
2435}
2436"
2437
2438# Test code for whether the C compiler supports C99 (complete).
2439ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2440${ac_c_conftest_c99_globals}
2441
2442int
2443main (int argc, char **argv)
2444{
2445 int ok = 0;
2446 ${ac_c_conftest_c89_main}
2447 ${ac_c_conftest_c99_main}
2448 return ok;
2449}
2450"
2451
2452# Test code for whether the C compiler supports C89 (complete).
2453ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2454
2455int
2456main (int argc, char **argv)
2457{
2458 int ok = 0;
2459 ${ac_c_conftest_c89_main}
2460 return ok;
2461}
2462"
2463
2464# Test code for whether the C++ compiler supports C++98 (global declarations)
2465ac_cxx_conftest_cxx98_globals='
2466// Does the compiler advertise C++98 conformance?
2467#if !defined __cplusplus || __cplusplus < 199711L
2468# error "Compiler does not advertise C++98 conformance"
2469#endif
2470
2471// These inclusions are to reject old compilers that
2472// lack the unsuffixed header files.
2473#include <cstdlib>
2474#include <exception>
2475
2476// <cassert> and <cstring> are *not* freestanding headers in C++98.
2477extern void assert (int);
2478namespace std {
2479 extern int strcmp (const char *, const char *);
2480}
2481
2482// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2483using std::exception;
2484using std::strcmp;
2485
2486namespace {
2487
2488void test_exception_syntax()
2489{
2490 try {
2491 throw "test";
2492 } catch (const char *s) {
2493 // Extra parentheses suppress a warning when building autoconf itself,
2494 // due to lint rules shared with more typical C programs.
2495 assert (!(strcmp) (s, "test"));
2496 }
2497}
2498
2499template <typename T> struct test_template
2500{
2501 T const val;
2502 explicit test_template(T t) : val(t) {}
2503 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2504};
2505
2506} // anonymous namespace
2507'
2508
2509# Test code for whether the C++ compiler supports C++98 (body of main)
2510ac_cxx_conftest_cxx98_main='
2511 assert (argc);
2512 assert (! argv[0]);
2513{
2514 test_exception_syntax ();
2515 test_template<double> tt (2.0);
2516 assert (tt.add (4) == 6.0);
2517 assert (true && !false);
2518}
2519'
2520
2521# Test code for whether the C++ compiler supports C++11 (global declarations)
2522ac_cxx_conftest_cxx11_globals='
2523// Does the compiler advertise C++ 2011 conformance?
2524#if !defined __cplusplus || __cplusplus < 201103L
2525# error "Compiler does not advertise C++11 conformance"
2526#endif
2527
2528namespace cxx11test
2529{
2530 constexpr int get_val() { return 20; }
2531
2532 struct testinit
2533 {
2534 int i;
2535 double d;
2536 };
2537
2538 class delegate
2539 {
2540 public:
2541 delegate(int n) : n(n) {}
2542 delegate(): delegate(2354) {}
2543
2544 virtual int getval() { return this->n; };
2545 protected:
2546 int n;
2547 };
2548
2549 class overridden : public delegate
2550 {
2551 public:
2552 overridden(int n): delegate(n) {}
2553 virtual int getval() override final { return this->n * 2; }
2554 };
2555
2556 class nocopy
2557 {
2558 public:
2559 nocopy(int i): i(i) {}
2560 nocopy() = default;
2561 nocopy(const nocopy&) = delete;
2562 nocopy & operator=(const nocopy&) = delete;
2563 private:
2564 int i;
2565 };
2566
2567 // for testing lambda expressions
2568 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2569 {
2570 return f(v);
2571 }
2572
2573 // for testing variadic templates and trailing return types
2574 template <typename V> auto sum(V first) -> V
2575 {
2576 return first;
2577 }
2578 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2579 {
2580 return first + sum(rest...);
2581 }
2582}
2583'
2584
2585# Test code for whether the C++ compiler supports C++11 (body of main)
2586ac_cxx_conftest_cxx11_main='
2587{
2588 // Test auto and decltype
2589 auto a1 = 6538;
2590 auto a2 = 48573953.4;
2591 auto a3 = "String literal";
2592
2593 int total = 0;
2594 for (auto i = a3; *i; ++i) { total += *i; }
2595
2596 decltype(a2) a4 = 34895.034;
2597}
2598{
2599 // Test constexpr
2600 short sa[cxx11test::get_val()] = { 0 };
2601}
2602{
2603 // Test initializer lists
2604 cxx11test::testinit il = { 4323, 435234.23544 };
2605}
2606{
2607 // Test range-based for
2608 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2609 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2610 for (auto &x : array) { x += 23; }
2611}
2612{
2613 // Test lambda expressions
2614 using cxx11test::eval;
2615 assert (eval ([](int x) { return x*2; }, 21) == 42);
2616 double d = 2.0;
2617 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2618 assert (d == 5.0);
2619 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2620 assert (d == 5.0);
2621}
2622{
2623 // Test use of variadic templates
2624 using cxx11test::sum;
2625 auto a = sum(1);
2626 auto b = sum(1, 2);
2627 auto c = sum(1.0, 2.0, 3.0);
2628}
2629{
2630 // Test constructor delegation
2631 cxx11test::delegate d1;
2632 cxx11test::delegate d2();
2633 cxx11test::delegate d3(45);
2634}
2635{
2636 // Test override and final
2637 cxx11test::overridden o1(55464);
2638}
2639{
2640 // Test nullptr
2641 char *c = nullptr;
2642}
2643{
2644 // Test template brackets
2645 test_template<::test_template<int>> v(test_template<int>(12));
2646}
2647{
2648 // Unicode literals
2649 char const *utf8 = u8"UTF-8 string \u2500";
2650 char16_t const *utf16 = u"UTF-8 string \u2500";
2651 char32_t const *utf32 = U"UTF-32 string \u2500";
2652}
2653'
2654
2655# Test code for whether the C compiler supports C++11 (complete).
2656ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2657${ac_cxx_conftest_cxx11_globals}
2658
2659int
2660main (int argc, char **argv)
2661{
2662 int ok = 0;
2663 ${ac_cxx_conftest_cxx98_main}
2664 ${ac_cxx_conftest_cxx11_main}
2665 return ok;
2666}
2667"
2668
2669# Test code for whether the C compiler supports C++98 (complete).
2670ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2671int
2672main (int argc, char **argv)
2673{
2674 int ok = 0;
2675 ${ac_cxx_conftest_cxx98_main}
2676 return ok;
2677}
2678"
2679
2680
2681# Auxiliary files required by this configure script.
2682ac_aux_files="install-sh config.guess config.sub"
2683
2684# Locations in which to look for auxiliary files.
2685ac_aux_dir_candidates="${srcdir}/scripts"
2686
2687# Search for a directory containing all of the required auxiliary files,
2688# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2689# If we don't find one directory that contains all the files we need,
2690# we report the set of missing files from the *first* directory in
2691# $ac_aux_dir_candidates and give up.
2692ac_missing_aux_files=""
2693ac_first_candidate=:
2694printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696as_found=false
2697for as_dir in $ac_aux_dir_candidates
2698do
2699 IFS=$as_save_IFS
2700 case $as_dir in #(((
2701 '') as_dir=./ ;;
2702 */) ;;
2703 *) as_dir=$as_dir/ ;;
2704 esac
2705 as_found=:
2706
2707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2708 ac_aux_dir_found=yes
2709 ac_install_sh=
2710 for ac_aux in $ac_aux_files
2711 do
2712 # As a special case, if "install-sh" is required, that requirement
2713 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2714 # and $ac_install_sh is set appropriately for whichever one is found.
2715 if test x"$ac_aux" = x"install-sh"
2716 then
2717 if test -f "${as_dir}install-sh"; then
2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2719 ac_install_sh="${as_dir}install-sh -c"
2720 elif test -f "${as_dir}install.sh"; then
2721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2722 ac_install_sh="${as_dir}install.sh -c"
2723 elif test -f "${as_dir}shtool"; then
2724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2725 ac_install_sh="${as_dir}shtool install -c"
2726 else
2727 ac_aux_dir_found=no
2728 if $ac_first_candidate; then
2729 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2730 else
2731 break
2732 fi
2733 fi
2734 else
2735 if test -f "${as_dir}${ac_aux}"; then
2736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2737 else
2738 ac_aux_dir_found=no
2739 if $ac_first_candidate; then
2740 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2741 else
2742 break
2743 fi
2744 fi
2745 fi
2746 done
2747 if test "$ac_aux_dir_found" = yes; then
2748 ac_aux_dir="$as_dir"
2749 break
2750 fi
2751 ac_first_candidate=false
2752
2753 as_found=false
2754done
2755IFS=$as_save_IFS
2756if $as_found
2757then :
2758
2759else case e in #(
2760 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2761esac
2762fi
2763
2764
2765# These three variables are undocumented and unsupported,
2766# and are intended to be withdrawn in a future Autoconf release.
2767# They can cause serious problems if a builder's source tree is in a directory
2768# whose full name contains unusual characters.
2769if test -f "${ac_aux_dir}config.guess"; then
2770 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2771fi
2772if test -f "${ac_aux_dir}config.sub"; then
2773 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2774fi
2775if test -f "$ac_aux_dir/configure"; then
2776 ac_configure="$SHELL ${ac_aux_dir}configure"
2777fi
2778
2779# Check that the precious variables saved in the cache have kept the same
2780# value.
2781ac_cache_corrupted=false
2782for ac_var in $ac_precious_vars; do
2783 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2784 eval ac_new_set=\$ac_env_${ac_var}_set
2785 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2786 eval ac_new_val=\$ac_env_${ac_var}_value
2787 case $ac_old_set,$ac_new_set in
2788 set,)
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2790printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2791 ac_cache_corrupted=: ;;
2792 ,set)
2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2794printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2795 ac_cache_corrupted=: ;;
2796 ,);;
2797 *)
2798 if test "x$ac_old_val" != "x$ac_new_val"; then
2799 # differences in whitespace do not lead to failure.
2800 ac_old_val_w=`echo x $ac_old_val`
2801 ac_new_val_w=`echo x $ac_new_val`
2802 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2804printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2805 ac_cache_corrupted=:
2806 else
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2808printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2809 eval $ac_var=\$ac_old_val
2810 fi
2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2812printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2814printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2815 fi;;
2816 esac
2817 # Pass precious variables to config.status.
2818 if test "$ac_new_set" = set; then
2819 case $ac_new_val in
2820 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2821 *) ac_arg=$ac_var=$ac_new_val ;;
2822 esac
2823 case " $ac_configure_args " in
2824 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2825 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2826 esac
2827 fi
2828done
2829if $ac_cache_corrupted; then
2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2831printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2833printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2834 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2835 and start over" "$LINENO" 5
2836fi
2837## -------------------- ##
2838## Main body of script. ##
2839## -------------------- ##
2840
2841ac_ext=c
2842ac_cpp='$CPP $CPPFLAGS'
2843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846
2847
2848
2849ac_config_headers="$ac_config_headers config.h"
2850
2851
2852
2853
2854
2855# Check whether --with-pkgversion was given.
2856if test ${with_pkgversion+y}
2857then :
2858 withval=$with_pkgversion; case "$withval" in
2859 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2860 no) PKGVERSION= ;;
2861 *) PKGVERSION="($withval) " ;;
2862 esac
2863else case e in #(
2864 e) PKGVERSION="(GNU libc) "
2865 ;;
2866esac
2867fi
2868
2869 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2870
2871
2872
2873
2874
2875# Check whether --with-bugurl was given.
2876if test ${with_bugurl+y}
2877then :
2878 withval=$with_bugurl; case "$withval" in
2879 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2880 no) BUGURL=
2881 ;;
2882 *) BUGURL="$withval"
2883 ;;
2884 esac
2885else case e in #(
2886 e) BUGURL="https://www.gnu.org/software/libc/bugs.html"
2887 ;;
2888esac
2889fi
2890
2891 case ${BUGURL} in
2892 "")
2893 REPORT_BUGS_TO=
2894 REPORT_BUGS_TEXI=
2895 ;;
2896 *)
2897 REPORT_BUGS_TO="<$BUGURL>"
2898 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2899 ;;
2900 esac;
2901
2902
2903
2904
2905printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h
2906
2907
2908printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h
2909
2910
2911# Glibc should not depend on any header files
2912
2913
2914# We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2915# here to work around the Autoconf issue discussed in
2916# <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2917# AC_PROG_CPP
2918
2919# We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2920# issue discussed in
2921# <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2922
2923
2924
2925
2926subdirs="$subdirs "
2927
2928
2929
2930
2931
2932 # Make sure we can run config.sub.
2933$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2934 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2935
2936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2937printf %s "checking build system type... " >&6; }
2938if test ${ac_cv_build+y}
2939then :
2940 printf %s "(cached) " >&6
2941else case e in #(
2942 e) ac_build_alias=$build_alias
2943test "x$ac_build_alias" = x &&
2944 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2945test "x$ac_build_alias" = x &&
2946 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2947ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2948 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2949 ;;
2950esac
2951fi
2952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2953printf "%s\n" "$ac_cv_build" >&6; }
2954case $ac_cv_build in
2955*-*-*) ;;
2956*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2957esac
2958build=$ac_cv_build
2959ac_save_IFS=$IFS; IFS='-'
2960set x $ac_cv_build
2961shift
2962build_cpu=$1
2963build_vendor=$2
2964shift; shift
2965# Remember, the first character of IFS is used to create $*,
2966# except with old shells:
2967build_os=$*
2968IFS=$ac_save_IFS
2969case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2970
2971
2972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2973printf %s "checking host system type... " >&6; }
2974if test ${ac_cv_host+y}
2975then :
2976 printf %s "(cached) " >&6
2977else case e in #(
2978 e) if test "x$host_alias" = x; then
2979 ac_cv_host=$ac_cv_build
2980else
2981 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2982 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2983fi
2984 ;;
2985esac
2986fi
2987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2988printf "%s\n" "$ac_cv_host" >&6; }
2989case $ac_cv_host in
2990*-*-*) ;;
2991*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2992esac
2993host=$ac_cv_host
2994ac_save_IFS=$IFS; IFS='-'
2995set x $ac_cv_host
2996shift
2997host_cpu=$1
2998host_vendor=$2
2999shift; shift
3000# Remember, the first character of IFS is used to create $*,
3001# except with old shells:
3002host_os=$*
3003IFS=$ac_save_IFS
3004case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017ac_ext=c
3018ac_cpp='$CPP $CPPFLAGS'
3019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3024set dummy ${ac_tool_prefix}gcc; ac_word=$2
3025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026printf %s "checking for $ac_word... " >&6; }
3027if test ${ac_cv_prog_CC+y}
3028then :
3029 printf %s "(cached) " >&6
3030else case e in #(
3031 e) if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033else
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037 IFS=$as_save_IFS
3038 case $as_dir in #(((
3039 '') as_dir=./ ;;
3040 */) ;;
3041 *) as_dir=$as_dir/ ;;
3042 esac
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049done
3050 done
3051IFS=$as_save_IFS
3052
3053fi ;;
3054esac
3055fi
3056CC=$ac_cv_prog_CC
3057if test -n "$CC"; then
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059printf "%s\n" "$CC" >&6; }
3060else
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062printf "%s\n" "no" >&6; }
3063fi
3064
3065
3066fi
3067if test -z "$ac_cv_prog_CC"; then
3068 ac_ct_CC=$CC
3069 # Extract the first word of "gcc", so it can be a program name with args.
3070set dummy gcc; ac_word=$2
3071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072printf %s "checking for $ac_word... " >&6; }
3073if test ${ac_cv_prog_ac_ct_CC+y}
3074then :
3075 printf %s "(cached) " >&6
3076else case e in #(
3077 e) if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3079else
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 case $as_dir in #(((
3085 '') as_dir=./ ;;
3086 */) ;;
3087 *) as_dir=$as_dir/ ;;
3088 esac
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_CC="gcc"
3092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095done
3096 done
3097IFS=$as_save_IFS
3098
3099fi ;;
3100esac
3101fi
3102ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103if test -n "$ac_ct_CC"; then
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105printf "%s\n" "$ac_ct_CC" >&6; }
3106else
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108printf "%s\n" "no" >&6; }
3109fi
3110
3111 if test "x$ac_ct_CC" = x; then
3112 CC=""
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115yes:)
3116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118ac_tool_warned=yes ;;
3119esac
3120 CC=$ac_ct_CC
3121 fi
3122else
3123 CC="$ac_cv_prog_CC"
3124fi
3125
3126if test -z "$CC"; then
3127 if test -n "$ac_tool_prefix"; then
3128 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3129set dummy ${ac_tool_prefix}cc; ac_word=$2
3130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131printf %s "checking for $ac_word... " >&6; }
3132if test ${ac_cv_prog_CC+y}
3133then :
3134 printf %s "(cached) " >&6
3135else case e in #(
3136 e) if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3138else
3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140for as_dir in $PATH
3141do
3142 IFS=$as_save_IFS
3143 case $as_dir in #(((
3144 '') as_dir=./ ;;
3145 */) ;;
3146 *) as_dir=$as_dir/ ;;
3147 esac
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_CC="${ac_tool_prefix}cc"
3151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154done
3155 done
3156IFS=$as_save_IFS
3157
3158fi ;;
3159esac
3160fi
3161CC=$ac_cv_prog_CC
3162if test -n "$CC"; then
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164printf "%s\n" "$CC" >&6; }
3165else
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167printf "%s\n" "no" >&6; }
3168fi
3169
3170
3171 fi
3172fi
3173if test -z "$CC"; then
3174 # Extract the first word of "cc", so it can be a program name with args.
3175set dummy cc; ac_word=$2
3176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177printf %s "checking for $ac_word... " >&6; }
3178if test ${ac_cv_prog_CC+y}
3179then :
3180 printf %s "(cached) " >&6
3181else case e in #(
3182 e) if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3184else
3185 ac_prog_rejected=no
3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187for as_dir in $PATH
3188do
3189 IFS=$as_save_IFS
3190 case $as_dir in #(((
3191 '') as_dir=./ ;;
3192 */) ;;
3193 *) as_dir=$as_dir/ ;;
3194 esac
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3197 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3198 ac_prog_rejected=yes
3199 continue
3200 fi
3201 ac_cv_prog_CC="cc"
3202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3203 break 2
3204 fi
3205done
3206 done
3207IFS=$as_save_IFS
3208
3209if test $ac_prog_rejected = yes; then
3210 # We found a bogon in the path, so make sure we never use it.
3211 set dummy $ac_cv_prog_CC
3212 shift
3213 if test $# != 0; then
3214 # We chose a different compiler from the bogus one.
3215 # However, it has the same basename, so the bogon will be chosen
3216 # first if we set CC to just the basename; use the full file name.
3217 shift
3218 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3219 fi
3220fi
3221fi ;;
3222esac
3223fi
3224CC=$ac_cv_prog_CC
3225if test -n "$CC"; then
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227printf "%s\n" "$CC" >&6; }
3228else
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230printf "%s\n" "no" >&6; }
3231fi
3232
3233
3234fi
3235if test -z "$CC"; then
3236 if test -n "$ac_tool_prefix"; then
3237 for ac_prog in cl.exe
3238 do
3239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242printf %s "checking for $ac_word... " >&6; }
3243if test ${ac_cv_prog_CC+y}
3244then :
3245 printf %s "(cached) " >&6
3246else case e in #(
3247 e) if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3249else
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253 IFS=$as_save_IFS
3254 case $as_dir in #(((
3255 '') as_dir=./ ;;
3256 */) ;;
3257 *) as_dir=$as_dir/ ;;
3258 esac
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265done
3266 done
3267IFS=$as_save_IFS
3268
3269fi ;;
3270esac
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275printf "%s\n" "$CC" >&6; }
3276else
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278printf "%s\n" "no" >&6; }
3279fi
3280
3281
3282 test -n "$CC" && break
3283 done
3284fi
3285if test -z "$CC"; then
3286 ac_ct_CC=$CC
3287 for ac_prog in cl.exe
3288do
3289 # Extract the first word of "$ac_prog", so it can be a program name with args.
3290set dummy $ac_prog; ac_word=$2
3291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292printf %s "checking for $ac_word... " >&6; }
3293if test ${ac_cv_prog_ac_ct_CC+y}
3294then :
3295 printf %s "(cached) " >&6
3296else case e in #(
3297 e) if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303 IFS=$as_save_IFS
3304 case $as_dir in #(((
3305 '') as_dir=./ ;;
3306 */) ;;
3307 *) as_dir=$as_dir/ ;;
3308 esac
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_ac_ct_CC="$ac_prog"
3312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3313 break 2
3314 fi
3315done
3316 done
3317IFS=$as_save_IFS
3318
3319fi ;;
3320esac
3321fi
3322ac_ct_CC=$ac_cv_prog_ac_ct_CC
3323if test -n "$ac_ct_CC"; then
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3325printf "%s\n" "$ac_ct_CC" >&6; }
3326else
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328printf "%s\n" "no" >&6; }
3329fi
3330
3331
3332 test -n "$ac_ct_CC" && break
3333done
3334
3335 if test "x$ac_ct_CC" = x; then
3336 CC=""
3337 else
3338 case $cross_compiling:$ac_tool_warned in
3339yes:)
3340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342ac_tool_warned=yes ;;
3343esac
3344 CC=$ac_ct_CC
3345 fi
3346fi
3347
3348fi
3349if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3352set dummy ${ac_tool_prefix}clang; ac_word=$2
3353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354printf %s "checking for $ac_word... " >&6; }
3355if test ${ac_cv_prog_CC+y}
3356then :
3357 printf %s "(cached) " >&6
3358else case e in #(
3359 e) if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365 IFS=$as_save_IFS
3366 case $as_dir in #(((
3367 '') as_dir=./ ;;
3368 */) ;;
3369 *) as_dir=$as_dir/ ;;
3370 esac
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="${ac_tool_prefix}clang"
3374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378 done
3379IFS=$as_save_IFS
3380
3381fi ;;
3382esac
3383fi
3384CC=$ac_cv_prog_CC
3385if test -n "$CC"; then
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387printf "%s\n" "$CC" >&6; }
3388else
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390printf "%s\n" "no" >&6; }
3391fi
3392
3393
3394fi
3395if test -z "$ac_cv_prog_CC"; then
3396 ac_ct_CC=$CC
3397 # Extract the first word of "clang", so it can be a program name with args.
3398set dummy clang; ac_word=$2
3399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400printf %s "checking for $ac_word... " >&6; }
3401if test ${ac_cv_prog_ac_ct_CC+y}
3402then :
3403 printf %s "(cached) " >&6
3404else case e in #(
3405 e) if test -n "$ac_ct_CC"; then
3406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3407else
3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409for as_dir in $PATH
3410do
3411 IFS=$as_save_IFS
3412 case $as_dir in #(((
3413 '') as_dir=./ ;;
3414 */) ;;
3415 *) as_dir=$as_dir/ ;;
3416 esac
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_ac_ct_CC="clang"
3420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423done
3424 done
3425IFS=$as_save_IFS
3426
3427fi ;;
3428esac
3429fi
3430ac_ct_CC=$ac_cv_prog_ac_ct_CC
3431if test -n "$ac_ct_CC"; then
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3433printf "%s\n" "$ac_ct_CC" >&6; }
3434else
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436printf "%s\n" "no" >&6; }
3437fi
3438
3439 if test "x$ac_ct_CC" = x; then
3440 CC=""
3441 else
3442 case $cross_compiling:$ac_tool_warned in
3443yes:)
3444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446ac_tool_warned=yes ;;
3447esac
3448 CC=$ac_ct_CC
3449 fi
3450else
3451 CC="$ac_cv_prog_CC"
3452fi
3453
3454fi
3455
3456
3457test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3458printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3459as_fn_error $? "no acceptable C compiler found in \$PATH
3460See 'config.log' for more details" "$LINENO" 5; }
3461
3462# Provide some information about the compiler.
3463printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3464set X $ac_compile
3465ac_compiler=$2
3466for ac_option in --version -v -V -qversion -version; do
3467 { { ac_try="$ac_compiler $ac_option >&5"
3468case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471esac
3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473printf "%s\n" "$ac_try_echo"; } >&5
3474 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3475 ac_status=$?
3476 if test -s conftest.err; then
3477 sed '10a\
3478... rest of stderr output deleted ...
3479 10q' conftest.err >conftest.er1
3480 cat conftest.er1 >&5
3481 fi
3482 rm -f conftest.er1 conftest.err
3483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }
3485done
3486
3487EXEEXT=
3488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3489printf %s "checking for suffix of object files... " >&6; }
3490if test ${ac_cv_objext+y}
3491then :
3492 printf %s "(cached) " >&6
3493else case e in #(
3494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495/* end confdefs.h. */
3496
3497int
3498main (void)
3499{
3500
3501 ;
3502 return 0;
3503}
3504_ACEOF
3505rm -f conftest.o conftest.obj
3506if { { ac_try="$ac_compile"
3507case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510esac
3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512printf "%s\n" "$ac_try_echo"; } >&5
3513 (eval "$ac_compile") 2>&5
3514 ac_status=$?
3515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }
3517then :
3518 for ac_file in conftest.o conftest.obj conftest.*; do
3519 test -f "$ac_file" || continue;
3520 case $ac_file in
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3522 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3523 break;;
3524 esac
3525done
3526else case e in #(
3527 e) printf "%s\n" "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
3529
3530{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3531printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3532as_fn_error $? "cannot compute suffix of object files: cannot compile
3533See 'config.log' for more details" "$LINENO" 5; } ;;
3534esac
3535fi
3536rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3537esac
3538fi
3539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3540printf "%s\n" "$ac_cv_objext" >&6; }
3541OBJEXT=$ac_cv_objext
3542ac_objext=$OBJEXT
3543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3544printf %s "checking whether the compiler supports GNU C... " >&6; }
3545if test ${ac_cv_c_compiler_gnu+y}
3546then :
3547 printf %s "(cached) " >&6
3548else case e in #(
3549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h. */
3551
3552int
3553main (void)
3554{
3555#ifndef __GNUC__
3556 choke me
3557#endif
3558
3559 ;
3560 return 0;
3561}
3562_ACEOF
3563if ac_fn_c_try_compile "$LINENO"
3564then :
3565 ac_compiler_gnu=yes
3566else case e in #(
3567 e) ac_compiler_gnu=no ;;
3568esac
3569fi
3570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3571ac_cv_c_compiler_gnu=$ac_compiler_gnu
3572 ;;
3573esac
3574fi
3575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3576printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3577ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578
3579if test $ac_compiler_gnu = yes; then
3580 GCC=yes
3581else
3582 GCC=
3583fi
3584ac_test_CFLAGS=${CFLAGS+y}
3585ac_save_CFLAGS=$CFLAGS
3586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3587printf %s "checking whether $CC accepts -g... " >&6; }
3588if test ${ac_cv_prog_cc_g+y}
3589then :
3590 printf %s "(cached) " >&6
3591else case e in #(
3592 e) ac_save_c_werror_flag=$ac_c_werror_flag
3593 ac_c_werror_flag=yes
3594 ac_cv_prog_cc_g=no
3595 CFLAGS="-g"
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597/* end confdefs.h. */
3598
3599int
3600main (void)
3601{
3602
3603 ;
3604 return 0;
3605}
3606_ACEOF
3607if ac_fn_c_try_compile "$LINENO"
3608then :
3609 ac_cv_prog_cc_g=yes
3610else case e in #(
3611 e) CFLAGS=""
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h. */
3614
3615int
3616main (void)
3617{
3618
3619 ;
3620 return 0;
3621}
3622_ACEOF
3623if ac_fn_c_try_compile "$LINENO"
3624then :
3625
3626else case e in #(
3627 e) ac_c_werror_flag=$ac_save_c_werror_flag
3628 CFLAGS="-g"
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630/* end confdefs.h. */
3631
3632int
3633main (void)
3634{
3635
3636 ;
3637 return 0;
3638}
3639_ACEOF
3640if ac_fn_c_try_compile "$LINENO"
3641then :
3642 ac_cv_prog_cc_g=yes
3643fi
3644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3645esac
3646fi
3647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3648esac
3649fi
3650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3651 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3652esac
3653fi
3654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3655printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3656if test $ac_test_CFLAGS; then
3657 CFLAGS=$ac_save_CFLAGS
3658elif test $ac_cv_prog_cc_g = yes; then
3659 if test "$GCC" = yes; then
3660 CFLAGS="-g -O2"
3661 else
3662 CFLAGS="-g"
3663 fi
3664else
3665 if test "$GCC" = yes; then
3666 CFLAGS="-O2"
3667 else
3668 CFLAGS=
3669 fi
3670fi
3671ac_prog_cc_stdc=no
3672if test x$ac_prog_cc_stdc = xno
3673then :
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3675printf %s "checking for $CC option to enable C11 features... " >&6; }
3676if test ${ac_cv_prog_cc_c11+y}
3677then :
3678 printf %s "(cached) " >&6
3679else case e in #(
3680 e) ac_cv_prog_cc_c11=no
3681ac_save_CC=$CC
3682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h. */
3684$ac_c_conftest_c11_program
3685_ACEOF
3686for ac_arg in '' -std=gnu11
3687do
3688 CC="$ac_save_CC $ac_arg"
3689 if ac_fn_c_try_compile "$LINENO"
3690then :
3691 ac_cv_prog_cc_c11=$ac_arg
3692fi
3693rm -f core conftest.err conftest.$ac_objext conftest.beam
3694 test "x$ac_cv_prog_cc_c11" != "xno" && break
3695done
3696rm -f conftest.$ac_ext
3697CC=$ac_save_CC ;;
3698esac
3699fi
3700
3701if test "x$ac_cv_prog_cc_c11" = xno
3702then :
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704printf "%s\n" "unsupported" >&6; }
3705else case e in #(
3706 e) if test "x$ac_cv_prog_cc_c11" = x
3707then :
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3709printf "%s\n" "none needed" >&6; }
3710else case e in #(
3711 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3712printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3713 CC="$CC $ac_cv_prog_cc_c11" ;;
3714esac
3715fi
3716 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3717 ac_prog_cc_stdc=c11 ;;
3718esac
3719fi
3720fi
3721if test x$ac_prog_cc_stdc = xno
3722then :
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3724printf %s "checking for $CC option to enable C99 features... " >&6; }
3725if test ${ac_cv_prog_cc_c99+y}
3726then :
3727 printf %s "(cached) " >&6
3728else case e in #(
3729 e) ac_cv_prog_cc_c99=no
3730ac_save_CC=$CC
3731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732/* end confdefs.h. */
3733$ac_c_conftest_c99_program
3734_ACEOF
3735for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3736do
3737 CC="$ac_save_CC $ac_arg"
3738 if ac_fn_c_try_compile "$LINENO"
3739then :
3740 ac_cv_prog_cc_c99=$ac_arg
3741fi
3742rm -f core conftest.err conftest.$ac_objext conftest.beam
3743 test "x$ac_cv_prog_cc_c99" != "xno" && break
3744done
3745rm -f conftest.$ac_ext
3746CC=$ac_save_CC ;;
3747esac
3748fi
3749
3750if test "x$ac_cv_prog_cc_c99" = xno
3751then :
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3753printf "%s\n" "unsupported" >&6; }
3754else case e in #(
3755 e) if test "x$ac_cv_prog_cc_c99" = x
3756then :
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3758printf "%s\n" "none needed" >&6; }
3759else case e in #(
3760 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3761printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3762 CC="$CC $ac_cv_prog_cc_c99" ;;
3763esac
3764fi
3765 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3766 ac_prog_cc_stdc=c99 ;;
3767esac
3768fi
3769fi
3770if test x$ac_prog_cc_stdc = xno
3771then :
3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3773printf %s "checking for $CC option to enable C89 features... " >&6; }
3774if test ${ac_cv_prog_cc_c89+y}
3775then :
3776 printf %s "(cached) " >&6
3777else case e in #(
3778 e) ac_cv_prog_cc_c89=no
3779ac_save_CC=$CC
3780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h. */
3782$ac_c_conftest_c89_program
3783_ACEOF
3784for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3785do
3786 CC="$ac_save_CC $ac_arg"
3787 if ac_fn_c_try_compile "$LINENO"
3788then :
3789 ac_cv_prog_cc_c89=$ac_arg
3790fi
3791rm -f core conftest.err conftest.$ac_objext conftest.beam
3792 test "x$ac_cv_prog_cc_c89" != "xno" && break
3793done
3794rm -f conftest.$ac_ext
3795CC=$ac_save_CC ;;
3796esac
3797fi
3798
3799if test "x$ac_cv_prog_cc_c89" = xno
3800then :
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3802printf "%s\n" "unsupported" >&6; }
3803else case e in #(
3804 e) if test "x$ac_cv_prog_cc_c89" = x
3805then :
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3807printf "%s\n" "none needed" >&6; }
3808else case e in #(
3809 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3810printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3811 CC="$CC $ac_cv_prog_cc_c89" ;;
3812esac
3813fi
3814 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3815 ac_prog_cc_stdc=c89 ;;
3816esac
3817fi
3818fi
3819
3820ac_ext=c
3821ac_cpp='$CPP $CPPFLAGS'
3822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824ac_compiler_gnu=$ac_cv_c_compiler_gnu
3825
3826
3827if test -z "$TEST_CC"; then
3828 TEST_CC="$CC"
3829fi
3830if test $host != $build; then
3831 for ac_prog in gcc cc
3832do
3833 # Extract the first word of "$ac_prog", so it can be a program name with args.
3834set dummy $ac_prog; ac_word=$2
3835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836printf %s "checking for $ac_word... " >&6; }
3837if test ${ac_cv_prog_BUILD_CC+y}
3838then :
3839 printf %s "(cached) " >&6
3840else case e in #(
3841 e) if test -n "$BUILD_CC"; then
3842 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3843else
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847 IFS=$as_save_IFS
3848 case $as_dir in #(((
3849 '') as_dir=./ ;;
3850 */) ;;
3851 *) as_dir=$as_dir/ ;;
3852 esac
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_BUILD_CC="$ac_prog"
3856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3857 break 2
3858 fi
3859done
3860 done
3861IFS=$as_save_IFS
3862
3863fi ;;
3864esac
3865fi
3866BUILD_CC=$ac_cv_prog_BUILD_CC
3867if test -n "$BUILD_CC"; then
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3869printf "%s\n" "$BUILD_CC" >&6; }
3870else
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872printf "%s\n" "no" >&6; }
3873fi
3874
3875
3876 test -n "$BUILD_CC" && break
3877done
3878
3879fi
3880
3881# On Suns, sometimes $CPP names a directory.
3882if test -n "$CPP" && test -d "$CPP"; then
3883 CPP=
3884fi
3885if test -z "$CPP"; then
3886 CPP="$CC -E"
3887fi
3888
3889
3890# This will get text that should go into config.make.
3891config_vars=
3892
3893# Check whether --enable-static-c++-tests was given.
3894if test ${enable_static_c___tests+y}
3895then :
3896 enableval=$enable_static_c___tests; static_cxx_tests=$enableval
3897else case e in #(
3898 e) static_cxx_tests=yes ;;
3899esac
3900fi
3901
3902config_vars="$config_vars
3903static-cxx-tests = $static_cxx_tests"
3904
3905# Check whether --enable-static-c++-link-check was given.
3906if test ${enable_static_c___link_check+y}
3907then :
3908 enableval=$enable_static_c___link_check; static_cxx_link_check=$enableval
3909else case e in #(
3910 e) static_cxx_link_check=yes ;;
3911esac
3912fi
3913
3914
3915# We need the C++ compiler for testing and libsupport.
3916
3917
3918
3919
3920
3921
3922ac_ext=cpp
3923ac_cpp='$CXXCPP $CPPFLAGS'
3924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3927if test -z "$CXX"; then
3928 if test -n "$CCC"; then
3929 CXX=$CCC
3930 else
3931 if test -n "$ac_tool_prefix"; then
3932 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3933 do
3934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937printf %s "checking for $ac_word... " >&6; }
3938if test ${ac_cv_prog_CXX+y}
3939then :
3940 printf %s "(cached) " >&6
3941else case e in #(
3942 e) if test -n "$CXX"; then
3943 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3944else
3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH
3947do
3948 IFS=$as_save_IFS
3949 case $as_dir in #(((
3950 '') as_dir=./ ;;
3951 */) ;;
3952 *) as_dir=$as_dir/ ;;
3953 esac
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3956 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960done
3961 done
3962IFS=$as_save_IFS
3963
3964fi ;;
3965esac
3966fi
3967CXX=$ac_cv_prog_CXX
3968if test -n "$CXX"; then
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3970printf "%s\n" "$CXX" >&6; }
3971else
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973printf "%s\n" "no" >&6; }
3974fi
3975
3976
3977 test -n "$CXX" && break
3978 done
3979fi
3980if test -z "$CXX"; then
3981 ac_ct_CXX=$CXX
3982 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3983do
3984 # Extract the first word of "$ac_prog", so it can be a program name with args.
3985set dummy $ac_prog; ac_word=$2
3986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987printf %s "checking for $ac_word... " >&6; }
3988if test ${ac_cv_prog_ac_ct_CXX+y}
3989then :
3990 printf %s "(cached) " >&6
3991else case e in #(
3992 e) if test -n "$ac_ct_CXX"; then
3993 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3994else
3995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996for as_dir in $PATH
3997do
3998 IFS=$as_save_IFS
3999 case $as_dir in #(((
4000 '') as_dir=./ ;;
4001 */) ;;
4002 *) as_dir=$as_dir/ ;;
4003 esac
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_ac_ct_CXX="$ac_prog"
4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4008 break 2
4009 fi
4010done
4011 done
4012IFS=$as_save_IFS
4013
4014fi ;;
4015esac
4016fi
4017ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4018if test -n "$ac_ct_CXX"; then
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4020printf "%s\n" "$ac_ct_CXX" >&6; }
4021else
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023printf "%s\n" "no" >&6; }
4024fi
4025
4026
4027 test -n "$ac_ct_CXX" && break
4028done
4029
4030 if test "x$ac_ct_CXX" = x; then
4031 CXX="g++"
4032 else
4033 case $cross_compiling:$ac_tool_warned in
4034yes:)
4035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037ac_tool_warned=yes ;;
4038esac
4039 CXX=$ac_ct_CXX
4040 fi
4041fi
4042
4043 fi
4044fi
4045# Provide some information about the compiler.
4046printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4047set X $ac_compile
4048ac_compiler=$2
4049for ac_option in --version -v -V -qversion; do
4050 { { ac_try="$ac_compiler $ac_option >&5"
4051case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054esac
4055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056printf "%s\n" "$ac_try_echo"; } >&5
4057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4058 ac_status=$?
4059 if test -s conftest.err; then
4060 sed '10a\
4061... rest of stderr output deleted ...
4062 10q' conftest.err >conftest.er1
4063 cat conftest.er1 >&5
4064 fi
4065 rm -f conftest.er1 conftest.err
4066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }
4068done
4069
4070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4071printf %s "checking whether the compiler supports GNU C++... " >&6; }
4072if test ${ac_cv_cxx_compiler_gnu+y}
4073then :
4074 printf %s "(cached) " >&6
4075else case e in #(
4076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077/* end confdefs.h. */
4078
4079int
4080main (void)
4081{
4082#ifndef __GNUC__
4083 choke me
4084#endif
4085
4086 ;
4087 return 0;
4088}
4089_ACEOF
4090if ac_fn_cxx_try_compile "$LINENO"
4091then :
4092 ac_compiler_gnu=yes
4093else case e in #(
4094 e) ac_compiler_gnu=no ;;
4095esac
4096fi
4097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4098ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4099 ;;
4100esac
4101fi
4102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4103printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4105
4106if test $ac_compiler_gnu = yes; then
4107 GXX=yes
4108else
4109 GXX=
4110fi
4111ac_test_CXXFLAGS=${CXXFLAGS+y}
4112ac_save_CXXFLAGS=$CXXFLAGS
4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4114printf %s "checking whether $CXX accepts -g... " >&6; }
4115if test ${ac_cv_prog_cxx_g+y}
4116then :
4117 printf %s "(cached) " >&6
4118else case e in #(
4119 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4120 ac_cxx_werror_flag=yes
4121 ac_cv_prog_cxx_g=no
4122 CXXFLAGS="-g"
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124/* end confdefs.h. */
4125
4126int
4127main (void)
4128{
4129
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134if ac_fn_cxx_try_compile "$LINENO"
4135then :
4136 ac_cv_prog_cxx_g=yes
4137else case e in #(
4138 e) CXXFLAGS=""
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h. */
4141
4142int
4143main (void)
4144{
4145
4146 ;
4147 return 0;
4148}
4149_ACEOF
4150if ac_fn_cxx_try_compile "$LINENO"
4151then :
4152
4153else case e in #(
4154 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4155 CXXFLAGS="-g"
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h. */
4158
4159int
4160main (void)
4161{
4162
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167if ac_fn_cxx_try_compile "$LINENO"
4168then :
4169 ac_cv_prog_cxx_g=yes
4170fi
4171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4172esac
4173fi
4174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4175esac
4176fi
4177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4178 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4179esac
4180fi
4181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4182printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4183if test $ac_test_CXXFLAGS; then
4184 CXXFLAGS=$ac_save_CXXFLAGS
4185elif test $ac_cv_prog_cxx_g = yes; then
4186 if test "$GXX" = yes; then
4187 CXXFLAGS="-g -O2"
4188 else
4189 CXXFLAGS="-g"
4190 fi
4191else
4192 if test "$GXX" = yes; then
4193 CXXFLAGS="-O2"
4194 else
4195 CXXFLAGS=
4196 fi
4197fi
4198ac_prog_cxx_stdcxx=no
4199if test x$ac_prog_cxx_stdcxx = xno
4200then :
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4202printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4203if test ${ac_cv_prog_cxx_cxx11+y}
4204then :
4205 printf %s "(cached) " >&6
4206else case e in #(
4207 e) ac_cv_prog_cxx_cxx11=no
4208ac_save_CXX=$CXX
4209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h. */
4211$ac_cxx_conftest_cxx11_program
4212_ACEOF
4213for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4214do
4215 CXX="$ac_save_CXX $ac_arg"
4216 if ac_fn_cxx_try_compile "$LINENO"
4217then :
4218 ac_cv_prog_cxx_cxx11=$ac_arg
4219fi
4220rm -f core conftest.err conftest.$ac_objext conftest.beam
4221 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4222done
4223rm -f conftest.$ac_ext
4224CXX=$ac_save_CXX ;;
4225esac
4226fi
4227
4228if test "x$ac_cv_prog_cxx_cxx11" = xno
4229then :
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4231printf "%s\n" "unsupported" >&6; }
4232else case e in #(
4233 e) if test "x$ac_cv_prog_cxx_cxx11" = x
4234then :
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4236printf "%s\n" "none needed" >&6; }
4237else case e in #(
4238 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4239printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4240 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4241esac
4242fi
4243 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4244 ac_prog_cxx_stdcxx=cxx11 ;;
4245esac
4246fi
4247fi
4248if test x$ac_prog_cxx_stdcxx = xno
4249then :
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4251printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4252if test ${ac_cv_prog_cxx_cxx98+y}
4253then :
4254 printf %s "(cached) " >&6
4255else case e in #(
4256 e) ac_cv_prog_cxx_cxx98=no
4257ac_save_CXX=$CXX
4258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h. */
4260$ac_cxx_conftest_cxx98_program
4261_ACEOF
4262for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4263do
4264 CXX="$ac_save_CXX $ac_arg"
4265 if ac_fn_cxx_try_compile "$LINENO"
4266then :
4267 ac_cv_prog_cxx_cxx98=$ac_arg
4268fi
4269rm -f core conftest.err conftest.$ac_objext conftest.beam
4270 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4271done
4272rm -f conftest.$ac_ext
4273CXX=$ac_save_CXX ;;
4274esac
4275fi
4276
4277if test "x$ac_cv_prog_cxx_cxx98" = xno
4278then :
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4280printf "%s\n" "unsupported" >&6; }
4281else case e in #(
4282 e) if test "x$ac_cv_prog_cxx_cxx98" = x
4283then :
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4285printf "%s\n" "none needed" >&6; }
4286else case e in #(
4287 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4288printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4289 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4290esac
4291fi
4292 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4293 ac_prog_cxx_stdcxx=cxx98 ;;
4294esac
4295fi
4296fi
4297
4298ac_ext=c
4299ac_cpp='$CPP $CPPFLAGS'
4300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303
4304
4305saved_CXX="$CXX"
4306if test -z "$TEST_CXX"; then
4307 TEST_CXX="$CXX"
4308else
4309 CXX="$TEST_CXX"
4310fi
4311# It's useless to us if it can't link programs (e.g. missing -lstdc++).
4312
4313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
4314printf %s "checking whether $CXX can link programs... " >&6; }
4315if test ${libc_cv_cxx_link_ok+y}
4316then :
4317 printf %s "(cached) " >&6
4318else case e in #(
4319 e) ac_ext=cpp
4320ac_cpp='$CXXCPP $CPPFLAGS'
4321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4324
4325# Default, dynamic case.
4326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h. */
4328
4329int
4330main (void)
4331{
4332
4333 ;
4334 return 0;
4335}
4336_ACEOF
4337if ac_fn_cxx_try_link "$LINENO"
4338then :
4339 libc_cv_cxx_link_ok=yes
4340else case e in #(
4341 e) libc_cv_cxx_link_ok=no ;;
4342esac
4343fi
4344rm -f core conftest.err conftest.$ac_objext conftest.beam \
4345 conftest$ac_exeext conftest.$ac_ext
4346if test $static_cxx_link_check$static_cxx_tests = yesyes; then
4347 # Static case.
4348 old_LDFLAGS="$LDFLAGS"
4349 LDFLAGS="$LDFLAGS -static"
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351/* end confdefs.h. */
4352
4353#include <iostream>
4354
4355int
4356main()
4357{
4358 std::cout << "Hello, world!";
4359 return 0;
4360}
4361
4362_ACEOF
4363if ac_fn_cxx_try_link "$LINENO"
4364then :
4365
4366else case e in #(
4367 e) libc_cv_cxx_link_ok=no ;;
4368esac
4369fi
4370rm -f core conftest.err conftest.$ac_objext conftest.beam \
4371 conftest$ac_exeext conftest.$ac_ext
4372 LDFLAGS="$old_LDFLAGS"
4373fi
4374ac_ext=c
4375ac_cpp='$CPP $CPPFLAGS'
4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379 ;;
4380esac
4381fi
4382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
4383printf "%s\n" "$libc_cv_cxx_link_ok" >&6; }
4384CXX="$saved_CXX"
4385if test $libc_cv_cxx_link_ok != yes
4386then :
4387 CXX=; TEST_CXX=
4388fi
4389
4390if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
4391 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
4392fi
4393
4394# Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
4395
4396# Check whether --with-gd was given.
4397if test ${with_gd+y}
4398then :
4399 withval=$with_gd; case "$with_gd" in
4400yes|''|no) ;;
4401*) libgd_include="-I$withval/include"
4402 libgd_ldflags="-L$withval/lib" ;;
4403esac
4404
4405fi
4406
4407
4408# Check whether --with-gd-include was given.
4409if test ${with_gd_include+y}
4410then :
4411 withval=$with_gd_include; case "$with_gd_include" in
4412''|no) ;;
4413*) libgd_include="-I$withval" ;;
4414esac
4415
4416fi
4417
4418
4419# Check whether --with-gd-lib was given.
4420if test ${with_gd_lib+y}
4421then :
4422 withval=$with_gd_lib; case "$with_gd_lib" in
4423''|no) ;;
4424*) libgd_ldflags="-L$withval" ;;
4425esac
4426
4427fi
4428
4429
4430if test -n "$libgd_include"; then
4431 config_vars="$config_vars
4432CFLAGS-memusagestat.c = $libgd_include"
4433fi
4434if test -n "$libgd_ldflags"; then
4435 config_vars="$config_vars
4436libgd-LDFLAGS = $libgd_ldflags"
4437fi
4438
4439
4440# Check whether --with-binutils was given.
4441if test ${with_binutils+y}
4442then :
4443 withval=$with_binutils; path_binutils=$withval
4444else case e in #(
4445 e) path_binutils='' ;;
4446esac
4447fi
4448
4449
4450# Check whether --with-selinux was given.
4451if test ${with_selinux+y}
4452then :
4453 withval=$with_selinux; with_selinux=$withval
4454else case e in #(
4455 e) with_selinux=auto ;;
4456esac
4457fi
4458
4459
4460
4461# Check whether --with-headers was given.
4462if test ${with_headers+y}
4463then :
4464 withval=$with_headers; sysheaders=$withval
4465else case e in #(
4466 e) sysheaders='' ;;
4467esac
4468fi
4469
4470
4471
4472
4473# Check whether --with-nonshared-cflags was given.
4474if test ${with_nonshared_cflags+y}
4475then :
4476 withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval
4477else case e in #(
4478 e) extra_nonshared_cflags= ;;
4479esac
4480fi
4481
4482
4483
4484# Check whether --with-rtld-early-cflags was given.
4485if test ${with_rtld_early_cflags+y}
4486then :
4487 withval=$with_rtld_early_cflags; rtld_early_cflags=$withval
4488else case e in #(
4489 e) rtld_early_cflags= ;;
4490esac
4491fi
4492
4493
4494
4495
4496# Check whether --with-timeoutfactor was given.
4497if test ${with_timeoutfactor+y}
4498then :
4499 withval=$with_timeoutfactor; timeoutfactor=$withval
4500else case e in #(
4501 e) timeoutfactor=1 ;;
4502esac
4503fi
4504
4505printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h
4506
4507
4508man_pages_version=6.9.1
4509
4510
4511# Check whether --with-man-pages was given.
4512if test ${with_man_pages+y}
4513then :
4514 withval=$with_man_pages; man_pages_version=$withval
4515fi
4516
4517
4518
4519# Check whether --enable-sanity-checks was given.
4520if test ${enable_sanity_checks+y}
4521then :
4522 enableval=$enable_sanity_checks; enable_sanity=$enableval
4523else case e in #(
4524 e) enable_sanity=yes ;;
4525esac
4526fi
4527
4528
4529# Check whether --enable-shared was given.
4530if test ${enable_shared+y}
4531then :
4532 enableval=$enable_shared; shared=$enableval
4533else case e in #(
4534 e) shared=yes ;;
4535esac
4536fi
4537
4538# Check whether --enable-profile was given.
4539if test ${enable_profile+y}
4540then :
4541 enableval=$enable_profile; profile=$enableval
4542else case e in #(
4543 e) profile=no ;;
4544esac
4545fi
4546
4547# Check whether --enable-default-pie was given.
4548if test ${enable_default_pie+y}
4549then :
4550 enableval=$enable_default_pie; default_pie=$enableval
4551else case e in #(
4552 e) default_pie=yes ;;
4553esac
4554fi
4555
4556# Check whether --enable-timezone-tools was given.
4557if test ${enable_timezone_tools+y}
4558then :
4559 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
4560else case e in #(
4561 e) enable_timezone_tools=yes ;;
4562esac
4563fi
4564
4565
4566
4567# Check whether --enable-hardcoded-path-in-tests was given.
4568if test ${enable_hardcoded_path_in_tests+y}
4569then :
4570 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
4571else case e in #(
4572 e) hardcoded_path_in_tests=no ;;
4573esac
4574fi
4575
4576
4577
4578# Check whether --enable-hidden-plt was given.
4579if test ${enable_hidden_plt+y}
4580then :
4581 enableval=$enable_hidden_plt; hidden=$enableval
4582else case e in #(
4583 e) hidden=yes ;;
4584esac
4585fi
4586
4587if test "x$hidden" = xno; then
4588 printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h
4589
4590fi
4591
4592# Check whether --enable-bind-now was given.
4593if test ${enable_bind_now+y}
4594then :
4595 enableval=$enable_bind_now; bindnow=$enableval
4596else case e in #(
4597 e) bindnow=no ;;
4598esac
4599fi
4600
4601
4602if test "x$bindnow" = xyes; then
4603 printf "%s\n" "#define BIND_NOW 1" >>confdefs.h
4604
4605fi
4606
4607# Check whether --enable-stack-protector was given.
4608if test ${enable_stack_protector+y}
4609then :
4610 enableval=$enable_stack_protector; enable_stack_protector=$enableval
4611else case e in #(
4612 e) enable_stack_protector=no ;;
4613esac
4614fi
4615
4616case "$enable_stack_protector" in
4617all|yes|no|strong) ;;
4618*) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;;
4619esac
4620
4621# Check whether --enable-static-nss was given.
4622if test ${enable_static_nss+y}
4623then :
4624 enableval=$enable_static_nss; static_nss=$enableval
4625else case e in #(
4626 e) static_nss=no ;;
4627esac
4628fi
4629
4630if test x"$static_nss" = xyes || test x"$shared" = xno; then
4631 static_nss=yes
4632 printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h
4633
4634fi
4635
4636# Check whether --enable-force-install was given.
4637if test ${enable_force_install+y}
4638then :
4639 enableval=$enable_force_install; force_install=$enableval
4640else case e in #(
4641 e) force_install=yes ;;
4642esac
4643fi
4644
4645
4646
4647# Check whether --enable-maintainer-mode was given.
4648if test ${enable_maintainer_mode+y}
4649then :
4650 enableval=$enable_maintainer_mode; maintainer=$enableval
4651else case e in #(
4652 e) maintainer=no ;;
4653esac
4654fi
4655
4656
4657# Check whether --enable-kernel was given.
4658if test ${enable_kernel+y}
4659then :
4660 enableval=$enable_kernel; minimum_kernel=$enableval
4661fi
4662
4663if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
4664 # Better nothing than this.
4665 minimum_kernel=""
4666else
4667 if test "$minimum_kernel" = current; then
4668 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
4669 fi
4670fi
4671
4672# Check whether --enable-werror was given.
4673if test ${enable_werror+y}
4674then :
4675 enableval=$enable_werror; enable_werror=$enableval
4676else case e in #(
4677 e) enable_werror=yes ;;
4678esac
4679fi
4680
4681
4682
4683# Check whether --enable-multi-arch was given.
4684if test ${enable_multi_arch+y}
4685then :
4686 enableval=$enable_multi_arch; multi_arch=$enableval
4687else case e in #(
4688 e) multi_arch=default ;;
4689esac
4690fi
4691
4692
4693# Check whether --enable-memory-tagging was given.
4694if test ${enable_memory_tagging+y}
4695then :
4696 enableval=$enable_memory_tagging; memory_tagging=$enableval
4697else case e in #(
4698 e) memory_tagging=no ;;
4699esac
4700fi
4701
4702if test "$memory_tagging" = yes; then
4703 # Only enable this on architectures that support it.
4704 case $host_cpu in
4705 aarch64)
4706 printf "%s\n" "#define USE_MTAG 1" >>confdefs.h
4707
4708 ;;
4709 esac
4710fi
4711
4712
4713# Check whether --enable-systemtap was given.
4714if test ${enable_systemtap+y}
4715then :
4716 enableval=$enable_systemtap; systemtap=$enableval
4717else case e in #(
4718 e) systemtap=no ;;
4719esac
4720fi
4721
4722if test "x$systemtap" != xno; then
4723
4724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
4725printf %s "checking for systemtap static probe support... " >&6; }
4726if test ${libc_cv_sdt+y}
4727then :
4728 printf %s "(cached) " >&6
4729else case e in #(
4730 e) old_CFLAGS="$CFLAGS"
4731 CFLAGS="-std=gnu11 $CFLAGS"
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733/* end confdefs.h. */
4734#include <sys/sdt.h>
4735void foo (int i, void *p)
4736{
4737 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
4738 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
4739}
4740_ACEOF
4741if ac_fn_c_try_compile "$LINENO"
4742then :
4743 libc_cv_sdt=yes
4744else case e in #(
4745 e) libc_cv_sdt=no ;;
4746esac
4747fi
4748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4749 CFLAGS="$old_CFLAGS" ;;
4750esac
4751fi
4752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
4753printf "%s\n" "$libc_cv_sdt" >&6; }
4754 if test $libc_cv_sdt = yes; then
4755 printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h
4756
4757 elif test "x$systemtap" != xauto; then
4758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4759printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4760as_fn_error $? "systemtap support needs sys/sdt.h with asm support
4761See 'config.log' for more details" "$LINENO" 5; }
4762 fi
4763fi
4764
4765# Check whether --enable-build-nscd was given.
4766if test ${enable_build_nscd+y}
4767then :
4768 enableval=$enable_build_nscd; build_nscd=$enableval
4769else case e in #(
4770 e) build_nscd=default ;;
4771esac
4772fi
4773
4774
4775
4776# Note the use of $use_nscd is near the bottom of the file.
4777# Check whether --enable-nscd was given.
4778if test ${enable_nscd+y}
4779then :
4780 enableval=$enable_nscd; use_nscd=$enableval
4781else case e in #(
4782 e) use_nscd=yes ;;
4783esac
4784fi
4785
4786
4787# Check whether --enable-pt_chown was given.
4788if test ${enable_pt_chown+y}
4789then :
4790 enableval=$enable_pt_chown; build_pt_chown=$enableval
4791else case e in #(
4792 e) build_pt_chown=no ;;
4793esac
4794fi
4795
4796
4797if test "$build_pt_chown" = yes; then
4798 printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h
4799
4800fi
4801
4802# The abi-tags file uses a fairly simplistic model for name recognition that
4803# can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
4804# $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
4805# This doesn't get used much beyond that, so it's fairly safe.
4806case "$host_os" in
4807linux*)
4808 ;;
4809gnu*)
4810 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
4811 ;;
4812esac
4813
4814# Check whether --enable-mathvec was given.
4815if test ${enable_mathvec+y}
4816then :
4817 enableval=$enable_mathvec; build_mathvec=$enableval
4818else case e in #(
4819 e) build_mathvec=notset ;;
4820esac
4821fi
4822
4823
4824
4825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h. */
4827
4828int
4829main (void)
4830{
4831
4832#ifndef __CET__
4833# error no CET compiler support
4834#endif
4835 ;
4836 return 0;
4837}
4838_ACEOF
4839if ac_fn_c_try_cpp "$LINENO"
4840then :
4841 libc_cv_compiler_default_cet=yes
4842else case e in #(
4843 e) libc_cv_compiler_default_cet=no ;;
4844esac
4845fi
4846rm -f conftest.err conftest.i conftest.$ac_ext
4847
4848# Check whether --enable-cet was given.
4849if test ${enable_cet+y}
4850then :
4851 enableval=$enable_cet; enable_cet=$enableval
4852else case e in #(
4853 e) enable_cet=$libc_cv_compiler_default_cet ;;
4854esac
4855fi
4856
4857
4858# Check whether --enable-scv was given.
4859if test ${enable_scv+y}
4860then :
4861 enableval=$enable_scv; use_scv=$enableval
4862else case e in #(
4863 e) use_scv=yes ;;
4864esac
4865fi
4866
4867
4868if test "$use_scv" != "no"
4869then :
4870 printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h
4871
4872fi
4873
4874# Check whether --enable-fortify-source was given.
4875if test ${enable_fortify_source+y}
4876then :
4877 enableval=$enable_fortify_source; enable_fortify_source=$enableval
4878else case e in #(
4879 e) enable_fortify_source=no ;;
4880esac
4881fi
4882
4883case "$enable_fortify_source" in
48841|2|3|no|yes) ;;
4885*) as_fn_error $? "Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;;
4886esac
4887
4888# We keep the original values in `$config_*' and never modify them, so we
4889# can write them unchanged into config.make. Everything else uses
4890# $machine, $vendor, and $os, and changes them whenever convenient.
4891config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
4892
4893# Don't allow vendor == "unknown"
4894test "$config_vendor" = unknown && config_vendor=
4895config_os="`echo $config_os | sed 's/^unknown-//'`"
4896
4897# Some configurations imply other options.
4898elf=yes
4899
4900# The configure fragment of a port can modify these to supplement
4901# or override the table in the case statement below. No fragment should
4902# ever change the config_* variables, however.
4903machine=$config_machine
4904vendor=$config_vendor
4905os=$config_os
4906base_os=''
4907
4908submachine=
4909
4910# Check whether --with-cpu was given.
4911if test ${with_cpu+y}
4912then :
4913 withval=$with_cpu; case "$withval" in
4914 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
4915 no) ;;
4916 *) submachine="$withval" ;;
4917 esac
4918
4919fi
4920
4921
4922# An preconfigure script can set this when it wants to disable the sanity
4923# check below.
4924libc_config_ok=no
4925
4926# A preconfigure script for a system that may or may not use fpu
4927# sysdeps directories sets this to a preprocessor conditional for
4928# whether to use such directories.
4929with_fp_cond=1
4930
4931# A preconfigure script may define another name to TLS descriptor variant
4932mtls_descriptor=gnu2
4933
4934# A preconfigure script may define another name to traditional TLS variant
4935mtls_traditional=gnu
4936
4937if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
4938then
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
4940printf %s "checking for sysdeps preconfigure fragments... " >&6; }
4941 for frag in $frags; do
4942 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4943 echo $ECHO_N "$name $ECHO_C" >&6
4944 . "$frag"
4945 done
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
4947printf "%s\n" "" >&6; }
4948fi
4949
4950
4951###
4952### By using the undocumented --enable-hacker-mode option for configure
4953### one can skip this test to make the configuration not fail for unsupported
4954### platforms.
4955###
4956if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4957 case "$machine-$host_os" in
4958 *-linux* | *-gnu*)
4959 ;;
4960 *)
4961 as_fn_error $? "
4962*** The GNU C library is currently unavailable for this platform.
4963*** If you are interested in seeing glibc on this platform visit
4964*** the \"How to submit a new port\" in the wiki:
4965*** https://sourceware.org/glibc/wiki/#Development
4966*** and join the community!" "$LINENO" 5
4967 ;;
4968 esac
4969fi
4970
4971# Set base_machine if not set by a preconfigure fragment.
4972test -n "$base_machine" || base_machine=$machine
4973
4974
4975### Locate tools.
4976
4977
4978 # Find a good install program. We prefer a C program (faster),
4979# so one script is as good as another. But avoid the broken or
4980# incompatible versions:
4981# SysV /etc/install, /usr/sbin/install
4982# SunOS /usr/etc/install
4983# IRIX /sbin/install
4984# AIX /bin/install
4985# AmigaOS /C/install, which installs bootblocks on floppy discs
4986# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4987# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4988# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4989# OS/2's system install, which has a completely different semantic
4990# ./install, which can be erroneously created by make from ./install.sh.
4991# Reject install programs that cannot install multiple files.
4992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4993printf %s "checking for a BSD-compatible install... " >&6; }
4994if test -z "$INSTALL"; then
4995if test ${ac_cv_path_install+y}
4996then :
4997 printf %s "(cached) " >&6
4998else case e in #(
4999 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002 IFS=$as_save_IFS
5003 case $as_dir in #(((
5004 '') as_dir=./ ;;
5005 */) ;;
5006 *) as_dir=$as_dir/ ;;
5007 esac
5008 # Account for fact that we put trailing slashes in our PATH walk.
5009case $as_dir in #((
5010 ./ | /[cC]/* | \
5011 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5012 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5013 /usr/ucb/* ) ;;
5014 *)
5015 # OSF1 and SCO ODT 3.0 have their own names for install.
5016 # Don't use installbsd from OSF since it installs stuff as root
5017 # by default.
5018 for ac_prog in ginstall scoinst install; do
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
5021 if test $ac_prog = install &&
5022 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5023 # AIX install. It has an incompatible calling convention.
5024 :
5025 elif test $ac_prog = install &&
5026 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5027 # program-specific install script used by HP pwplus--don't use.
5028 :
5029 else
5030 rm -rf conftest.one conftest.two conftest.dir
5031 echo one > conftest.one
5032 echo two > conftest.two
5033 mkdir conftest.dir
5034 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
5035 test -s conftest.one && test -s conftest.two &&
5036 test -s conftest.dir/conftest.one &&
5037 test -s conftest.dir/conftest.two
5038 then
5039 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
5040 break 3
5041 fi
5042 fi
5043 fi
5044 done
5045 done
5046 ;;
5047esac
5048
5049 done
5050IFS=$as_save_IFS
5051
5052rm -rf conftest.one conftest.two conftest.dir
5053 ;;
5054esac
5055fi
5056 if test ${ac_cv_path_install+y}; then
5057 INSTALL=$ac_cv_path_install
5058 else
5059 # As a last resort, use the slow shell script. Don't cache a
5060 # value for INSTALL within a source directory, because that will
5061 # break other packages using the cache if that directory is
5062 # removed, or if the value is a relative name.
5063 INSTALL=$ac_install_sh
5064 fi
5065fi
5066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5067printf "%s\n" "$INSTALL" >&6; }
5068
5069# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5070# It thinks the first close brace ends the variable substitution.
5071test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5072
5073test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5074
5075test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5076
5077if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
5078 # The makefiles need to use a different form to find it in $srcdir.
5079 INSTALL='\$(..)./scripts/install-sh -c'
5080fi
5081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5082printf %s "checking whether ln -s works... " >&6; }
5083LN_S=$as_ln_s
5084if test "$LN_S" = "ln -s"; then
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5086printf "%s\n" "yes" >&6; }
5087else
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5089printf "%s\n" "no, using $LN_S" >&6; }
5090fi
5091
5092
5093# Was a --with-binutils option given?
5094if test -n "$path_binutils"; then
5095 # Make absolute; ensure a single trailing slash.
5096 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
5097 CC="$CC -B$path_binutils"
5098fi
5099case "$CC" in
5100 *fuse-ld=lld*) LDNAME=ld.lld;;
5101 *) LDNAME=ld;;
5102esac
5103if test -z "$LD"; then
5104 LD=`$CC -print-prog-name=$LDNAME`
5105fi
5106if test -z "$AR"; then
5107 AR=`$CC -print-prog-name=ar`
5108fi
5109
5110if test -z "$OBJCOPY"; then
5111 OBJCOPY=`$CC -print-prog-name=objcopy`
5112fi
5113
5114if test -z "$GPROF"; then
5115 GPROF=`$CC -print-prog-name=gprof`
5116fi
5117
5118if test -z "$READELF"; then
5119 READELF=`$CC -print-prog-name=readelf`
5120fi
5121
5122if test -z "$OBJDUMP"; then
5123 OBJDUMP=`$CC -print-prog-name=objdump`
5124fi
5125
5126if test -z "$NM"; then
5127 NM=`$CC -print-prog-name=nm`
5128fi
5129
5130
5131
5132# Accept binutils 2.39 or newer.
5133libc_cv_with_lld=no
5134case $($LD --version) in
5135 "GNU gold"*)
5136 # Accept gold 1.14 or higher
5137 for ac_prog in $LD
5138do
5139 # Extract the first word of "$ac_prog", so it can be a program name with args.
5140set dummy $ac_prog; ac_word=$2
5141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142printf %s "checking for $ac_word... " >&6; }
5143if test ${ac_cv_prog_LD+y}
5144then :
5145 printf %s "(cached) " >&6
5146else case e in #(
5147 e) if test -n "$LD"; then
5148 ac_cv_prog_LD="$LD" # Let the user override the test.
5149else
5150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153 IFS=$as_save_IFS
5154 case $as_dir in #(((
5155 '') as_dir=./ ;;
5156 */) ;;
5157 *) as_dir=$as_dir/ ;;
5158 esac
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_LD="$ac_prog"
5162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165done
5166 done
5167IFS=$as_save_IFS
5168
5169fi ;;
5170esac
5171fi
5172LD=$ac_cv_prog_LD
5173if test -n "$LD"; then
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5175printf "%s\n" "$LD" >&6; }
5176else
5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178printf "%s\n" "no" >&6; }
5179fi
5180
5181
5182 test -n "$LD" && break
5183done
5184
5185if test -z "$LD"; then
5186 ac_verc_fail=yes
5187else
5188 # Found it, now check the version.
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5190printf %s "checking version of $LD... " >&6; }
5191 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5192 case $ac_prog_version in
5193 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5194 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*)
5195 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5196 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5197
5198 esac
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5200printf "%s\n" "$ac_prog_version" >&6; }
5201fi
5202if test $ac_verc_fail = yes; then
5203 LD=: critic_missing="$critic_missing GNU gold"
5204fi
5205
5206 ;;
5207 "LLD"*)
5208 # Accept LLD 13.0.0 or higher
5209 for ac_prog in $LD
5210do
5211 # Extract the first word of "$ac_prog", so it can be a program name with args.
5212set dummy $ac_prog; ac_word=$2
5213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214printf %s "checking for $ac_word... " >&6; }
5215if test ${ac_cv_prog_LD+y}
5216then :
5217 printf %s "(cached) " >&6
5218else case e in #(
5219 e) if test -n "$LD"; then
5220 ac_cv_prog_LD="$LD" # Let the user override the test.
5221else
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225 IFS=$as_save_IFS
5226 case $as_dir in #(((
5227 '') as_dir=./ ;;
5228 */) ;;
5229 *) as_dir=$as_dir/ ;;
5230 esac
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_LD="$ac_prog"
5234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5235 break 2
5236 fi
5237done
5238 done
5239IFS=$as_save_IFS
5240
5241fi ;;
5242esac
5243fi
5244LD=$ac_cv_prog_LD
5245if test -n "$LD"; then
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5247printf "%s\n" "$LD" >&6; }
5248else
5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250printf "%s\n" "no" >&6; }
5251fi
5252
5253
5254 test -n "$LD" && break
5255done
5256
5257if test -z "$LD"; then
5258 ac_verc_fail=yes
5259else
5260 # Found it, now check the version.
5261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5262printf %s "checking version of $LD... " >&6; }
5263 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5264 case $ac_prog_version in
5265 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5266 1[3-9].*|[2-9][0-9].*)
5267 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5268 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5269
5270 esac
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5272printf "%s\n" "$ac_prog_version" >&6; }
5273fi
5274if test $ac_verc_fail = yes; then
5275 LD=: critic_missing="$critic_missing LLD"
5276fi
5277
5278 libc_cv_with_lld=yes
5279 ;;
5280 *)
5281 for ac_prog in $LD
5282do
5283 # Extract the first word of "$ac_prog", so it can be a program name with args.
5284set dummy $ac_prog; ac_word=$2
5285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286printf %s "checking for $ac_word... " >&6; }
5287if test ${ac_cv_prog_LD+y}
5288then :
5289 printf %s "(cached) " >&6
5290else case e in #(
5291 e) if test -n "$LD"; then
5292 ac_cv_prog_LD="$LD" # Let the user override the test.
5293else
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297 IFS=$as_save_IFS
5298 case $as_dir in #(((
5299 '') as_dir=./ ;;
5300 */) ;;
5301 *) as_dir=$as_dir/ ;;
5302 esac
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_LD="$ac_prog"
5306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5307 break 2
5308 fi
5309done
5310 done
5311IFS=$as_save_IFS
5312
5313fi ;;
5314esac
5315fi
5316LD=$ac_cv_prog_LD
5317if test -n "$LD"; then
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5319printf "%s\n" "$LD" >&6; }
5320else
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322printf "%s\n" "no" >&6; }
5323fi
5324
5325
5326 test -n "$LD" && break
5327done
5328
5329if test -z "$LD"; then
5330 ac_verc_fail=yes
5331else
5332 # Found it, now check the version.
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5334printf %s "checking version of $LD... " >&6; }
5335 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5336 case $ac_prog_version in
5337 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5338 2.[1-9][0-9][0-9]*|2.39*|2.[4-9][0-9]*|[3-9].*|[1-9][0-9]*)
5339 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5340 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5341
5342 esac
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5344printf "%s\n" "$ac_prog_version" >&6; }
5345fi
5346if test $ac_verc_fail = yes; then
5347 LD=: critic_missing="$critic_missing GNU ld"
5348fi
5349
5350 ;;
5351esac
5352config_vars="$config_vars
5353with-lld = $libc_cv_with_lld"
5354
5355# These programs are version sensitive.
5356for ac_prog in gnumake gmake make
5357do
5358 # Extract the first word of "$ac_prog", so it can be a program name with args.
5359set dummy $ac_prog; ac_word=$2
5360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361printf %s "checking for $ac_word... " >&6; }
5362if test ${ac_cv_prog_MAKE+y}
5363then :
5364 printf %s "(cached) " >&6
5365else case e in #(
5366 e) if test -n "$MAKE"; then
5367 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5368else
5369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370for as_dir in $PATH
5371do
5372 IFS=$as_save_IFS
5373 case $as_dir in #(((
5374 '') as_dir=./ ;;
5375 */) ;;
5376 *) as_dir=$as_dir/ ;;
5377 esac
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_MAKE="$ac_prog"
5381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5382 break 2
5383 fi
5384done
5385 done
5386IFS=$as_save_IFS
5387
5388fi ;;
5389esac
5390fi
5391MAKE=$ac_cv_prog_MAKE
5392if test -n "$MAKE"; then
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5394printf "%s\n" "$MAKE" >&6; }
5395else
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397printf "%s\n" "no" >&6; }
5398fi
5399
5400
5401 test -n "$MAKE" && break
5402done
5403
5404if test -z "$MAKE"; then
5405 ac_verc_fail=yes
5406else
5407 # Found it, now check the version.
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
5409printf %s "checking version of $MAKE... " >&6; }
5410 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5411 case $ac_prog_version in
5412 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5413 [4-9].* | [1-9][0-9]*)
5414 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5415 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5416
5417 esac
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5419printf "%s\n" "$ac_prog_version" >&6; }
5420fi
5421if test $ac_verc_fail = yes; then
5422 critic_missing="$critic_missing make"
5423fi
5424
5425
5426for ac_prog in gnumsgfmt gmsgfmt msgfmt
5427do
5428 # Extract the first word of "$ac_prog", so it can be a program name with args.
5429set dummy $ac_prog; ac_word=$2
5430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431printf %s "checking for $ac_word... " >&6; }
5432if test ${ac_cv_prog_MSGFMT+y}
5433then :
5434 printf %s "(cached) " >&6
5435else case e in #(
5436 e) if test -n "$MSGFMT"; then
5437 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5438else
5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442 IFS=$as_save_IFS
5443 case $as_dir in #(((
5444 '') as_dir=./ ;;
5445 */) ;;
5446 *) as_dir=$as_dir/ ;;
5447 esac
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5450 ac_cv_prog_MSGFMT="$ac_prog"
5451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454done
5455 done
5456IFS=$as_save_IFS
5457
5458fi ;;
5459esac
5460fi
5461MSGFMT=$ac_cv_prog_MSGFMT
5462if test -n "$MSGFMT"; then
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5464printf "%s\n" "$MSGFMT" >&6; }
5465else
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467printf "%s\n" "no" >&6; }
5468fi
5469
5470
5471 test -n "$MSGFMT" && break
5472done
5473
5474if test -z "$MSGFMT"; then
5475 ac_verc_fail=yes
5476else
5477 # Found it, now check the version.
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5479printf %s "checking version of $MSGFMT... " >&6; }
5480 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5481 case $ac_prog_version in
5482 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5483 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5484 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5485 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5486
5487 esac
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5489printf "%s\n" "$ac_prog_version" >&6; }
5490fi
5491if test $ac_verc_fail = yes; then
5492 MSGFMT=: aux_missing="$aux_missing msgfmt"
5493fi
5494
5495for ac_prog in makeinfo
5496do
5497 # Extract the first word of "$ac_prog", so it can be a program name with args.
5498set dummy $ac_prog; ac_word=$2
5499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500printf %s "checking for $ac_word... " >&6; }
5501if test ${ac_cv_prog_MAKEINFO+y}
5502then :
5503 printf %s "(cached) " >&6
5504else case e in #(
5505 e) if test -n "$MAKEINFO"; then
5506 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5507else
5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511 IFS=$as_save_IFS
5512 case $as_dir in #(((
5513 '') as_dir=./ ;;
5514 */) ;;
5515 *) as_dir=$as_dir/ ;;
5516 esac
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_MAKEINFO="$ac_prog"
5520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5521 break 2
5522 fi
5523done
5524 done
5525IFS=$as_save_IFS
5526
5527fi ;;
5528esac
5529fi
5530MAKEINFO=$ac_cv_prog_MAKEINFO
5531if test -n "$MAKEINFO"; then
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5533printf "%s\n" "$MAKEINFO" >&6; }
5534else
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536printf "%s\n" "no" >&6; }
5537fi
5538
5539
5540 test -n "$MAKEINFO" && break
5541done
5542
5543if test -z "$MAKEINFO"; then
5544 ac_verc_fail=yes
5545else
5546 # Found it, now check the version.
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5548printf %s "checking version of $MAKEINFO... " >&6; }
5549 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5550 case $ac_prog_version in
5551 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5552 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
5553 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5554 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5555
5556 esac
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5558printf "%s\n" "$ac_prog_version" >&6; }
5559fi
5560if test $ac_verc_fail = yes; then
5561 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5562fi
5563
5564for ac_prog in sed
5565do
5566 # Extract the first word of "$ac_prog", so it can be a program name with args.
5567set dummy $ac_prog; ac_word=$2
5568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569printf %s "checking for $ac_word... " >&6; }
5570if test ${ac_cv_prog_SED+y}
5571then :
5572 printf %s "(cached) " >&6
5573else case e in #(
5574 e) if test -n "$SED"; then
5575 ac_cv_prog_SED="$SED" # Let the user override the test.
5576else
5577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578for as_dir in $PATH
5579do
5580 IFS=$as_save_IFS
5581 case $as_dir in #(((
5582 '') as_dir=./ ;;
5583 */) ;;
5584 *) as_dir=$as_dir/ ;;
5585 esac
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_SED="$ac_prog"
5589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5590 break 2
5591 fi
5592done
5593 done
5594IFS=$as_save_IFS
5595
5596fi ;;
5597esac
5598fi
5599SED=$ac_cv_prog_SED
5600if test -n "$SED"; then
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5602printf "%s\n" "$SED" >&6; }
5603else
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605printf "%s\n" "no" >&6; }
5606fi
5607
5608
5609 test -n "$SED" && break
5610done
5611
5612if test -z "$SED"; then
5613 ac_verc_fail=yes
5614else
5615 # Found it, now check the version.
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5617printf %s "checking version of $SED... " >&6; }
5618 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5619 case $ac_prog_version in
5620 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5621 3.0[2-9]*|3.[1-9]*|[4-9]*)
5622 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5623 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5624
5625 esac
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5627printf "%s\n" "$ac_prog_version" >&6; }
5628fi
5629if test $ac_verc_fail = yes; then
5630 SED=: aux_missing="$aux_missing sed"
5631fi
5632
5633for ac_prog in gawk
5634do
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636set dummy $ac_prog; ac_word=$2
5637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638printf %s "checking for $ac_word... " >&6; }
5639if test ${ac_cv_prog_AWK+y}
5640then :
5641 printf %s "(cached) " >&6
5642else case e in #(
5643 e) if test -n "$AWK"; then
5644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649 IFS=$as_save_IFS
5650 case $as_dir in #(((
5651 '') as_dir=./ ;;
5652 */) ;;
5653 *) as_dir=$as_dir/ ;;
5654 esac
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_AWK="$ac_prog"
5658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661done
5662 done
5663IFS=$as_save_IFS
5664
5665fi ;;
5666esac
5667fi
5668AWK=$ac_cv_prog_AWK
5669if test -n "$AWK"; then
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5671printf "%s\n" "$AWK" >&6; }
5672else
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674printf "%s\n" "no" >&6; }
5675fi
5676
5677
5678 test -n "$AWK" && break
5679done
5680
5681if test -z "$AWK"; then
5682 ac_verc_fail=yes
5683else
5684 # Found it, now check the version.
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
5686printf %s "checking version of $AWK... " >&6; }
5687 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5688 case $ac_prog_version in
5689 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5690 3.1.[2-9]*|3.[2-9]*|[4-9]*)
5691 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5692 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5693
5694 esac
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5696printf "%s\n" "$ac_prog_version" >&6; }
5697fi
5698if test $ac_verc_fail = yes; then
5699 critic_missing="$critic_missing gawk"
5700fi
5701
5702for ac_prog in bison
5703do
5704 # Extract the first word of "$ac_prog", so it can be a program name with args.
5705set dummy $ac_prog; ac_word=$2
5706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707printf %s "checking for $ac_word... " >&6; }
5708if test ${ac_cv_prog_BISON+y}
5709then :
5710 printf %s "(cached) " >&6
5711else case e in #(
5712 e) if test -n "$BISON"; then
5713 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5714else
5715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716for as_dir in $PATH
5717do
5718 IFS=$as_save_IFS
5719 case $as_dir in #(((
5720 '') as_dir=./ ;;
5721 */) ;;
5722 *) as_dir=$as_dir/ ;;
5723 esac
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_BISON="$ac_prog"
5727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5728 break 2
5729 fi
5730done
5731 done
5732IFS=$as_save_IFS
5733
5734fi ;;
5735esac
5736fi
5737BISON=$ac_cv_prog_BISON
5738if test -n "$BISON"; then
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5740printf "%s\n" "$BISON" >&6; }
5741else
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743printf "%s\n" "no" >&6; }
5744fi
5745
5746
5747 test -n "$BISON" && break
5748done
5749
5750if test -z "$BISON"; then
5751 ac_verc_fail=yes
5752else
5753 # Found it, now check the version.
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5755printf %s "checking version of $BISON... " >&6; }
5756 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
5757 case $ac_prog_version in
5758 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5759 2.7*|[3-9].*|[1-9][0-9]*)
5760 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5761 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5762
5763 esac
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5765printf "%s\n" "$ac_prog_version" >&6; }
5766fi
5767if test $ac_verc_fail = yes; then
5768 critic_missing="$critic_missing bison"
5769fi
5770
5771
5772# Require GCC 12.1 to build.
5773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
5774printf %s "checking if $CC is sufficient to build libc... " >&6; }
5775if test ${libc_cv_compiler_ok+y}
5776then :
5777 printf %s "(cached) " >&6
5778else case e in #(
5779 e)
5780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781/* end confdefs.h. */
5782
5783int
5784main (void)
5785{
5786
5787#if !defined __GNUC__ || __GNUC__ < 12 || (__GNUC__ == 12 && __GNUC_MINOR__ < 1)
5788#error insufficient compiler
5789#endif
5790 ;
5791 return 0;
5792}
5793_ACEOF
5794if ac_fn_c_try_cpp "$LINENO"
5795then :
5796 libc_cv_compiler_ok=yes
5797else case e in #(
5798 e) libc_cv_compiler_ok=no ;;
5799esac
5800fi
5801rm -f conftest.err conftest.i conftest.$ac_ext ;;
5802esac
5803fi
5804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
5805printf "%s\n" "$libc_cv_compiler_ok" >&6; }
5806if test $libc_cv_compiler_ok != yes
5807then :
5808 critic_missing="$critic_missing compiler"
5809fi
5810
5811if test "x$maintainer" = "xyes"; then
5812 for ac_prog in autoconf
5813do
5814 # Extract the first word of "$ac_prog", so it can be a program name with args.
5815set dummy $ac_prog; ac_word=$2
5816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817printf %s "checking for $ac_word... " >&6; }
5818if test ${ac_cv_prog_AUTOCONF+y}
5819then :
5820 printf %s "(cached) " >&6
5821else case e in #(
5822 e) if test -n "$AUTOCONF"; then
5823 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
5829 case $as_dir in #(((
5830 '') as_dir=./ ;;
5831 */) ;;
5832 *) as_dir=$as_dir/ ;;
5833 esac
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_AUTOCONF="$ac_prog"
5837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840done
5841 done
5842IFS=$as_save_IFS
5843
5844fi ;;
5845esac
5846fi
5847AUTOCONF=$ac_cv_prog_AUTOCONF
5848if test -n "$AUTOCONF"; then
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5850printf "%s\n" "$AUTOCONF" >&6; }
5851else
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853printf "%s\n" "no" >&6; }
5854fi
5855
5856
5857 test -n "$AUTOCONF" && break
5858done
5859test -n "$AUTOCONF" || AUTOCONF="no"
5860
5861 case "x$AUTOCONF" in
5862 xno|x|x:) AUTOCONF=no ;;
5863 *)
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5865printf %s "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5866if test ${libc_cv_autoconf_works+y}
5867then :
5868 printf %s "(cached) " >&6
5869else case e in #(
5870 e) if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
5871 libc_cv_autoconf_works=yes
5872 else
5873 libc_cv_autoconf_works=no
5874 fi ;;
5875esac
5876fi
5877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5878printf "%s\n" "$libc_cv_autoconf_works" >&6; }
5879 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5880 ;;
5881 esac
5882 if test "x$AUTOCONF" = xno; then
5883 aux_missing="$aux_missing autoconf"
5884 fi
5885else
5886 AUTOCONF=no
5887fi
5888
5889# Check for python3 if available, or else python.
5890for ac_prog in python3 python
5891do
5892 # Extract the first word of "$ac_prog", so it can be a program name with args.
5893set dummy $ac_prog; ac_word=$2
5894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895printf %s "checking for $ac_word... " >&6; }
5896if test ${ac_cv_prog_PYTHON_PROG+y}
5897then :
5898 printf %s "(cached) " >&6
5899else case e in #(
5900 e) if test -n "$PYTHON_PROG"; then
5901 ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test.
5902else
5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906 IFS=$as_save_IFS
5907 case $as_dir in #(((
5908 '') as_dir=./ ;;
5909 */) ;;
5910 *) as_dir=$as_dir/ ;;
5911 esac
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_PYTHON_PROG="$ac_prog"
5915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918done
5919 done
5920IFS=$as_save_IFS
5921
5922fi ;;
5923esac
5924fi
5925PYTHON_PROG=$ac_cv_prog_PYTHON_PROG
5926if test -n "$PYTHON_PROG"; then
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
5928printf "%s\n" "$PYTHON_PROG" >&6; }
5929else
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931printf "%s\n" "no" >&6; }
5932fi
5933
5934
5935 test -n "$PYTHON_PROG" && break
5936done
5937
5938if test -z "$PYTHON_PROG"; then
5939 ac_verc_fail=yes
5940else
5941 # Found it, now check the version.
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
5943printf %s "checking version of $PYTHON_PROG... " >&6; }
5944 ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
5945 case $ac_prog_version in
5946 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5947 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*)
5948 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5949 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5950
5951 esac
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5953printf "%s\n" "$ac_prog_version" >&6; }
5954fi
5955if test $ac_verc_fail = yes; then
5956 critic_missing="$critic_missing python"
5957fi
5958
5959PYTHON="$PYTHON_PROG -B"
5960
5961
5962test -n "$critic_missing" && as_fn_error $? "
5963*** These critical programs are missing or too old:$critic_missing
5964*** Check the INSTALL file for required versions." "$LINENO" 5
5965
5966test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
5967*** These auxiliary programs are missing or incompatible versions:$aux_missing
5968*** some features or tests will be disabled.
5969*** Check the INSTALL file for required versions." >&5
5970printf "%s\n" "$as_me: WARNING:
5971*** These auxiliary programs are missing or incompatible versions:$aux_missing
5972*** some features or tests will be disabled.
5973*** Check the INSTALL file for required versions." >&2;}
5974
5975
5976# Determine whether to use fpu or nofpu sysdeps directories.
5977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
5978printf %s "checking for use of fpu sysdeps directories... " >&6; }
5979if test ${libc_cv_with_fp+y}
5980then :
5981 printf %s "(cached) " >&6
5982else case e in #(
5983 e) cat > conftest.c <<EOF
5984#if $with_fp_cond
5985int dummy;
5986#else
5987# error "no hardware floating point"
5988#endif
5989EOF
5990libc_cv_with_fp=no
5991if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \
5992 1>&5 2>&5 ; then
5993 libc_cv_with_fp=yes
5994fi
5995rm -f conftest* ;;
5996esac
5997fi
5998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
5999printf "%s\n" "$libc_cv_with_fp" >&6; }
6000
6001
6002conftest_code="
6003#ifndef __clang__
6004#error Not Clang!
6005#endif
6006"
6007
6008
6009cat > conftest.c <<EOF
6010$conftest_code
6011EOF
6012
6013saved_CC="$CC"
6014CC="$TEST_CC"
6015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang in testing" >&5
6016printf %s "checking for clang in testing... " >&6; }
6017if test ${libc_cv_test_clang+y}
6018then :
6019 printf %s "(cached) " >&6
6020else case e in #(
6021 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c -o conftest 1>&5'
6022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6026 test $ac_status = 0; }; }
6027 then
6028 libc_cv_test_clang=yes
6029 else
6030 libc_cv_test_clang=no
6031 fi ;;
6032esac
6033fi
6034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_clang" >&5
6035printf "%s\n" "$libc_cv_test_clang" >&6; }
6036
6037CC="$saved_CC"
6038
6039rm -f conftest*
6040config_vars="$config_vars
6041have-test-clang = $libc_cv_test_clang"
6042
6043
6044cat > conftest.cc <<EOF
6045$conftest_code
6046EOF
6047
6048saved_CXX="$CXX"
6049CXX="$TEST_CXX"
6050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang++ in testing" >&5
6051printf %s "checking for clang++ in testing... " >&6; }
6052if test ${libc_cv_test_clangxx+y}
6053then :
6054 printf %s "(cached) " >&6
6055else case e in #(
6056 e) if { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc -o conftest 1>&5'
6057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6061 test $ac_status = 0; }; }
6062 then
6063 libc_cv_test_clangxx=yes
6064 else
6065 libc_cv_test_clangxx=no
6066 fi ;;
6067esac
6068fi
6069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_clangxx" >&5
6070printf "%s\n" "$libc_cv_test_clangxx" >&6; }
6071
6072CXX="$saved_CXX"
6073
6074rm -f conftest*
6075config_vars="$config_vars
6076have-test-clangxx = $libc_cv_test_clangxx"
6077
6078if test "$libc_cv_test_clang" = "yes"; then
6079 conftest_code="
6080 #if __clang_major__ > 19
6081 #error clang version > 19
6082 #endif
6083 "
6084
6085cat > conftest.c <<EOF
6086$conftest_code
6087EOF
6088
6089saved_CC="$CC"
6090CC="$TEST_CC"
6091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang in testing" >&5
6092printf %s "checking for clang in testing... " >&6; }
6093if test ${libc_cv_test_clang_19_or_less+y}
6094then :
6095 printf %s "(cached) " >&6
6096else case e in #(
6097 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c -o conftest 1>&5'
6098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6099 (eval $ac_try) 2>&5
6100 ac_status=$?
6101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102 test $ac_status = 0; }; }
6103 then
6104 libc_cv_test_clang_19_or_less=yes
6105 else
6106 libc_cv_test_clang_19_or_less=no
6107 fi ;;
6108esac
6109fi
6110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_clang_19_or_less" >&5
6111printf "%s\n" "$libc_cv_test_clang_19_or_less" >&6; }
6112
6113CC="$saved_CC"
6114
6115rm -f conftest*
6116fi
6117config_vars="$config_vars
6118have-test-clang-19-or-less = $libc_cv_test_clang_19_or_less"
6119
6120
6121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6122printf %s "checking for -fstack-protector... " >&6; }
6123if test ${libc_cv_ssp+y}
6124then :
6125 printf %s "(cached) " >&6
6126else case e in #(
6127 e) if { ac_try='${CC-cc} -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
6128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132 test $ac_status = 0; }; }
6133then :
6134 libc_cv_ssp=yes
6135else case e in #(
6136 e) libc_cv_ssp=no ;;
6137esac
6138fi ;;
6139esac
6140fi
6141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6142printf "%s\n" "$libc_cv_ssp" >&6; }
6143if test "$TEST_CC" = "$CC"; then
6144 libc_cv_test_ssp=$libc_cv_ssp
6145else
6146
6147saved_CC="$CC"
6148CC="$TEST_CC"
6149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector in testing" >&5
6150printf %s "checking for -fstack-protector in testing... " >&6; }
6151if test ${libc_cv_test_ssp+y}
6152then :
6153 printf %s "(cached) " >&6
6154else case e in #(
6155 e) if { ac_try='${CC-cc} -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
6156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160 test $ac_status = 0; }; }
6161then :
6162 libc_cv_test_ssp=yes
6163else case e in #(
6164 e) libc_cv_test_ssp=no ;;
6165esac
6166fi ;;
6167esac
6168fi
6169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_ssp" >&5
6170printf "%s\n" "$libc_cv_test_ssp" >&6; }
6171
6172CC="$saved_CC"
6173
6174fi
6175
6176
6177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
6178printf %s "checking for -fstack-protector-strong... " >&6; }
6179if test ${libc_cv_ssp_strong+y}
6180then :
6181 printf %s "(cached) " >&6
6182else case e in #(
6183 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
6184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
6187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6188 test $ac_status = 0; }; }
6189then :
6190 libc_cv_ssp_strong=yes
6191else case e in #(
6192 e) libc_cv_ssp_strong=no ;;
6193esac
6194fi
6195 ;;
6196esac
6197fi
6198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
6199printf "%s\n" "$libc_cv_ssp_strong" >&6; }
6200
6201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
6202printf %s "checking for -fstack-protector-all... " >&6; }
6203if test ${libc_cv_ssp_all+y}
6204then :
6205 printf %s "(cached) " >&6
6206else case e in #(
6207 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
6208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6209 (eval $ac_try) 2>&5
6210 ac_status=$?
6211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212 test $ac_status = 0; }; }
6213then :
6214 libc_cv_ssp_all=yes
6215else case e in #(
6216 e) libc_cv_ssp_all=no ;;
6217esac
6218fi
6219 ;;
6220esac
6221fi
6222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
6223printf "%s\n" "$libc_cv_ssp_all" >&6; }
6224
6225stack_protector=
6226no_stack_protector=
6227if test "$libc_cv_ssp" = yes; then
6228 no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
6229 printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
6230
6231fi
6232if test "$libc_cv_test_ssp" = yes; then
6233 printf "%s\n" "#define HAVE_TEST_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
6234
6235fi
6236
6237
6238if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
6239 stack_protector="-fstack-protector"
6240 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
6241
6242elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then
6243 stack_protector="-fstack-protector-all"
6244 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
6245
6246elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then
6247 stack_protector="-fstack-protector-strong"
6248 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
6249
6250else
6251 stack_protector="-fno-stack-protector"
6252 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
6253
6254fi
6255
6256
6257
6258
6259if test -n "$stack_protector"; then
6260 no_ssp=-fno-stack-protector
6261else
6262 no_ssp=
6263
6264 if test "$enable_stack_protector" != no; then
6265 as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
6266 fi
6267fi
6268
6269# For the multi-arch option we need support in the assembler & linker.
6270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
6271printf %s "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
6272if test ${libc_cv_ld_gnu_indirect_function+y}
6273then :
6274 printf %s "(cached) " >&6
6275else case e in #(
6276 e) cat > conftest.S <<EOF
6277.type foo,%gnu_indirect_function
6278foo:
6279.globl _start
6280_start:
6281.globl __start
6282__start:
6283.data
6284#ifdef _LP64
6285.quad foo
6286#else
6287.long foo
6288#endif
6289EOF
6290libc_cv_ld_gnu_indirect_function=no
6291if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6292 -nostartfiles -nostdlib $no_ssp \
6293 -o conftest conftest.S 1>&5 2>&5; then
6294 # Do a link to see if the backend supports IFUNC relocs.
6295 $READELF -r conftest 1>&5
6296 LC_ALL=C $READELF -Wr conftest | grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
6297 libc_cv_ld_gnu_indirect_function=yes
6298 }
6299fi
6300rm -f conftest* ;;
6301esac
6302fi
6303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
6304printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; }
6305
6306# Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
6307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
6308printf %s "checking for gcc attribute ifunc support... " >&6; }
6309if test ${libc_cv_gcc_indirect_function+y}
6310then :
6311 printf %s "(cached) " >&6
6312else case e in #(
6313 e) cat > conftest.c <<EOF
6314extern int func (int);
6315int used_func (int a)
6316{
6317 return a;
6318}
6319static void *resolver ()
6320{
6321 return &used_func;
6322}
6323extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
6324EOF
6325libc_cv_gcc_indirect_function=no
6326if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \
6327 2>&5 ; then
6328 if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then
6329 libc_cv_gcc_indirect_function=yes
6330 fi
6331fi
6332rm -f conftest* ;;
6333esac
6334fi
6335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
6336printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; }
6337
6338# Check if linker supports textrel relocation with ifunc (used on elf/tests).
6339# Note that it relies on libc_cv_ld_gnu_indirect_function test above.
6340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
6341printf %s "checking whether the linker supports textrels along with ifunc... " >&6; }
6342if test ${libc_cv_textrel_ifunc+y}
6343then :
6344 printf %s "(cached) " >&6
6345else case e in #(
6346 e) cat > conftest.S <<EOF
6347.type foo,%gnu_indirect_function
6348foo:
6349.globl _start
6350_start:
6351.globl __start
6352__start:
6353.data
6354#ifdef _LP64
6355.quad foo
6356#else
6357.long foo
6358#endif
6359.text
6360.globl address
6361address:
6362#ifdef _LP64
6363.quad address
6364#else
6365.long address
6366#endif
6367EOF
6368libc_cv_textrel_ifunc=no
6369if test $libc_cv_ld_gnu_indirect_function = yes; then
6370 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
6371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375 test $ac_status = 0; }; }; then
6376 libc_cv_textrel_ifunc=yes
6377 fi
6378fi
6379rm -f conftest* ;;
6380esac
6381fi
6382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
6383printf "%s\n" "$libc_cv_textrel_ifunc" >&6; }
6384
6385
6386# Check if CC supports attribute retain as it is used in attribute_used_retain macro.
6387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
6388printf %s "checking for GNU attribute retain support... " >&6; }
6389if test ${libc_cv_gnu_retain+y}
6390then :
6391 printf %s "(cached) " >&6
6392else case e in #(
6393 e) cat > conftest.c <<EOF
6394static int var __attribute__ ((used, retain, section ("__libc_atexit")));
6395EOF
6396libc_cv_gnu_retain=no
6397if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \
6398 2>&5 ; then
6399 libc_cv_gnu_retain=yes
6400fi
6401rm -f conftest* ;;
6402esac
6403fi
6404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
6405printf "%s\n" "$libc_cv_gnu_retain" >&6; }
6406if test $libc_cv_gnu_retain = yes; then
6407 printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h
6408
6409fi
6410config_vars="$config_vars
6411have-gnu-retain = $libc_cv_gnu_retain"
6412
6413# Check if gcc warns about alias for function with incompatible types.
6414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
6415printf %s "checking if compiler warns about alias for function with incompatible types... " >&6; }
6416if test ${libc_cv_gcc_incompatible_alias+y}
6417then :
6418 printf %s "(cached) " >&6
6419else case e in #(
6420 e) cat > conftest.c <<EOF
6421int __redirect_foo (const void *s, int c);
6422
6423__typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
6424__typeof (__redirect_foo) *foo_impl (void)
6425{
6426 return 0;
6427}
6428
6429extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
6430EOF
6431libc_cv_gcc_incompatible_alias=yes
6432if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then
6433 libc_cv_gcc_incompatible_alias=no
6434fi
6435rm -f conftest* ;;
6436esac
6437fi
6438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
6439printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; }
6440
6441if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
6442 if test x"$multi_arch" = xyes; then
6443 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
6444 else
6445 multi_arch=no
6446 fi
6447fi
6448if test x"$libc_cv_gcc_indirect_function" != xyes; then
6449 # GCC 8+ emits a warning for alias with incompatible types and it might
6450 # fail to build ifunc resolvers aliases to either weak or internal
6451 # symbols. Disables multiarch build in this case.
6452 if test x"$libc_cv_gcc_incompatible_alias" = xyes; then
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
6454printf "%s\n" "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
6455 if test x"$multi_arch" = xyes; then
6456 as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
6457 fi
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
6459printf "%s\n" "$as_me: WARNING: Multi-arch is disabled." >&2;}
6460 multi_arch=no
6461 elif test x"$multi_arch" = xyes; then
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
6463Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
6464printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
6465Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
6466 fi
6467fi
6468multi_arch_d=
6469if test x"$multi_arch" != xno; then
6470 multi_arch_d=/multiarch
6471fi
6472
6473# Compute the list of sysdep directories for this configuration.
6474# This can take a while to compute.
6475sysdep_dir=$srcdir/sysdeps
6476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
6477printf %s "checking sysdep dirs... " >&6; }
6478# Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
6479os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
6480
6481test "x$base_os" != x || case "$os" in
6482gnu*)
6483 base_os=mach/hurd ;;
6484linux*)
6485 base_os=unix/sysv ;;
6486esac
6487
6488# For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
6489tail=$os
6490ostry=$os
6491while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
6492 ostry="$ostry /$o"
6493 tail=$o
6494done
6495o=`echo $tail | sed 's/[0-9]*$//'`
6496if test $o != $tail; then
6497 ostry="$ostry /$o"
6498fi
6499# For linux-gnu, try linux-gnu, then linux.
6500o=`echo $tail | sed 's/-.*$//'`
6501if test $o != $tail; then
6502 ostry="$ostry /$o"
6503fi
6504
6505# For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
6506base=
6507tail=$base_os
6508while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
6509 set $b
6510 base="$base /$1"
6511 tail="$2"
6512done
6513
6514# For sparc/sparc32, try sparc/sparc32 and then sparc.
6515mach=
6516tail=$machine${submachine:+/$submachine}
6517while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
6518 set $m
6519 # Prepend the machine's FPU directory unless the architecture specific
6520 # preconfigure disables it.
6521 if test "$libc_cv_with_fp" = yes; then
6522 maybe_fpu=/fpu
6523 else
6524 maybe_fpu=/nofpu
6525 fi
6526 # For each machine term, try it with and then without /multiarch.
6527 for try_fpu in $maybe_fpu ''; do
6528 for try_multi in $multi_arch_d ''; do
6529 mach="$mach /$1$try_fpu$try_multi"
6530 done
6531 done
6532 tail="$2"
6533done
6534
6535
6536# Find what sysdep directories exist.
6537sysnames=
6538for b in $base ''; do
6539 for m0 in $mach ''; do
6540 for v in /$vendor ''; do
6541 test "$v" = / && continue
6542 for o in /$ostry ''; do
6543 test "$o" = / && continue
6544 for m in $mach ''; do
6545 try_suffix="$m0$b$v$o$m"
6546 if test -n "$try_suffix"; then
6547 try_srcdir="${srcdir}/"
6548 try="sysdeps$try_suffix"
6549 test -n "$enable_debug_configure" &&
6550 echo "$0 DEBUG: try $try" >&2
6551 if test -d "$try_srcdir$try"; then
6552 sysnames="$sysnames $try"
6553 { test -n "$o" || test -n "$b"; } && os_used=t
6554 { test -n "$m" || test -n "$m0"; } && machine_used=t
6555 case x${m0:-$m} in
6556 x*/$submachine) submachine_used=t ;;
6557 esac
6558 fi
6559 fi
6560 done
6561 done
6562 done
6563 done
6564done
6565
6566# If the assembler supports gnu_indirect_function symbol type and the
6567# architecture supports multi-arch, we enable multi-arch by default.
6568case $sysnames in
6569*"$multi_arch_d"*)
6570 ;;
6571*)
6572 test x"$multi_arch" = xdefault && multi_arch=no
6573 ;;
6574esac
6575if test x"$multi_arch" != xno; then
6576 printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h
6577
6578fi
6579
6580
6581if test -z "$os_used" && test "$os" != none; then
6582 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
6583fi
6584if test -z "$machine_used" && test "$machine" != none; then
6585 as_fn_error $? "The $machine is not supported." "$LINENO" 5
6586fi
6587if test -z "$submachine_used" && test -n "$submachine"; then
6588 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
6589fi
6590
6591
6592# We have now validated the configuration.
6593
6594# Expand the list of system names into a full list of directories
6595# from each element's parent name and Implies file (if present).
6596set $sysnames
6597names=
6598while test $# -gt 0; do
6599 name=$1
6600 shift
6601
6602 case " $names " in *" $name "*)
6603 # Already in the list.
6604 continue
6605 esac
6606
6607 # Report each name as we discover it, so there is no long pause in output.
6608 echo $ECHO_N "$name $ECHO_C" >&6
6609
6610 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
6611
6612 case $name in
6613 /*) xsrcdir= ;;
6614 *) xsrcdir=$srcdir/ ;;
6615 esac
6616 test -n "$enable_debug_configure" &&
6617 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
6618
6619 for implies_file in Implies Implies-before Implies-after; do
6620 implies_type=`echo $implies_file | sed s/-/_/`
6621 eval ${implies_type}=
6622 if test -f $xsrcdir$name/$implies_file; then
6623 # Collect more names from the `Implies' file (removing comments).
6624 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
6625 for x in $implied_candidate; do
6626 found=no
6627 if test -d $xsrcdir$name_base/$x; then
6628 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
6629 found=yes
6630 fi
6631 try="sysdeps/$x"
6632 try_srcdir=$srcdir/
6633 test -n "$enable_debug_configure" &&
6634 echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
6635 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
6636 then
6637 eval "${implies_type}=\"\$${implies_type} \$try\""
6638 found=yes
6639 fi
6640 if test $found = no; then
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
6642printf "%s\n" "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
6643 fi
6644 done
6645 fi
6646 done
6647
6648 # Add NAME to the list of names.
6649 names="$names $name"
6650
6651 # Find the parent of NAME, using the empty string if it has none.
6652 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
6653
6654 test -n "$enable_debug_configure" &&
6655 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
6656Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
6657
6658 # Add the names implied by NAME, and NAME's parent (if it has one), to
6659 # the list of names to be processed (the argument list). We prepend the
6660 # implied names to the list and append the parent. We want implied
6661 # directories to come before further directories inferred from the
6662 # configuration components; this ensures that for sysv4, unix/common
6663 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
6664 # after sysv4).
6665 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
6666 test -n "$sysnames" && set $sysnames
6667done
6668
6669# Add the default directories.
6670default_sysnames="sysdeps/generic"
6671sysnames="$names $default_sysnames"
6672
6673# The other names were emitted during the scan.
6674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
6675printf "%s\n" "$default_sysnames" >&6; }
6676
6677# if using special system headers, find out the compiler's sekrit
6678# header directory and add that to the list. NOTE: Only does the right
6679# thing on a system that doesn't need fixincludes. (Not presently a problem.)
6680if test -n "$sysheaders"; then
6681 SYSINCLUDES=-nostdinc
6682 for d in include include-fixed; do
6683 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
6684 SYSINCLUDES="$SYSINCLUDES -isystem $i"
6685 done
6686 SYSINCLUDES="$SYSINCLUDES \
6687-isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
6688 if test -n "$CXX"; then
6689 CXX_SYSINCLUDES=
6690 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
6691 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
6692 test "x$cxxheaders" != x &&
6693 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
6694 done
6695 fi
6696fi
6697
6698
6699
6700# Obtain some C++ header file paths. This is used to make a local
6701# copy of those headers in Makerules.
6702if test -n "$TEST_CXX"; then
6703 saved_CXX="$CXX"
6704 CXX="$TEST_CXX"
6705 find_cxx_header () {
6706 echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \
6707 | $AWK '$1 == "."{print $2}'
6708 }
6709 CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
6710 CXX_CMATH_HEADER="$(find_cxx_header cmath)"
6711 CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)"
6712 CXX="$saved_CXX"
6713fi
6714
6715
6716
6717
6718# Test if LD_LIBRARY_PATH contains the notation for the current directory
6719# since this would lead to problems installing/building glibc.
6720# LD_LIBRARY_PATH contains the current directory if one of the following
6721# is true:
6722# - one of the terminals (":" and ";") is the first or last sign
6723# - two terminals occur directly after each other
6724# - the path contains an element with a dot in it
6725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
6726printf %s "checking LD_LIBRARY_PATH variable... " >&6; }
6727case ${LD_LIBRARY_PATH} in
6728 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
6729 ld_library_path_setting="contains current directory"
6730 ;;
6731 *)
6732 ld_library_path_setting="ok"
6733 ;;
6734esac
6735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
6736printf "%s\n" "$ld_library_path_setting" >&6; }
6737if test "$ld_library_path_setting" != "ok"; then
6738as_fn_error $? "
6739*** LD_LIBRARY_PATH shouldn't contain the current directory when
6740*** building glibc. Please change the environment variable
6741*** and run configure again." "$LINENO" 5
6742fi
6743
6744# Extract the first word of "bash", so it can be a program name with args.
6745set dummy bash; ac_word=$2
6746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747printf %s "checking for $ac_word... " >&6; }
6748if test ${ac_cv_path_BASH_SHELL+y}
6749then :
6750 printf %s "(cached) " >&6
6751else case e in #(
6752 e) case $BASH_SHELL in
6753 [\\/]* | ?:[\\/]*)
6754 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
6755 ;;
6756 *)
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
6761 case $as_dir in #(((
6762 '') as_dir=./ ;;
6763 */) ;;
6764 *) as_dir=$as_dir/ ;;
6765 esac
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6768 ac_cv_path_BASH_SHELL="$as_dir$ac_word$ac_exec_ext"
6769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772done
6773 done
6774IFS=$as_save_IFS
6775
6776 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
6777 ;;
6778esac ;;
6779esac
6780fi
6781BASH_SHELL=$ac_cv_path_BASH_SHELL
6782if test -n "$BASH_SHELL"; then
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
6784printf "%s\n" "$BASH_SHELL" >&6; }
6785else
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787printf "%s\n" "no" >&6; }
6788fi
6789
6790
6791
6792# Extract the first word of "perl", so it can be a program name with args.
6793set dummy perl; ac_word=$2
6794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795printf %s "checking for $ac_word... " >&6; }
6796if test ${ac_cv_path_PERL+y}
6797then :
6798 printf %s "(cached) " >&6
6799else case e in #(
6800 e) case $PERL in
6801 [\\/]* | ?:[\\/]*)
6802 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6803 ;;
6804 *)
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
6809 case $as_dir in #(((
6810 '') as_dir=./ ;;
6811 */) ;;
6812 *) as_dir=$as_dir/ ;;
6813 esac
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6816 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
6817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821 done
6822IFS=$as_save_IFS
6823
6824 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
6825 ;;
6826esac ;;
6827esac
6828fi
6829PERL=$ac_cv_path_PERL
6830if test -n "$PERL"; then
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6832printf "%s\n" "$PERL" >&6; }
6833else
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835printf "%s\n" "no" >&6; }
6836fi
6837
6838
6839if test "$PERL" != no &&
6840 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
6841 PERL=no
6842fi
6843# Extract the first word of "install-info", so it can be a program name with args.
6844set dummy install-info; ac_word=$2
6845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846printf %s "checking for $ac_word... " >&6; }
6847if test ${ac_cv_path_INSTALL_INFO+y}
6848then :
6849 printf %s "(cached) " >&6
6850else case e in #(
6851 e) case $INSTALL_INFO in
6852 [\\/]* | ?:[\\/]*)
6853 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6854 ;;
6855 *)
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
6858for as_dir in $as_dummy
6859do
6860 IFS=$as_save_IFS
6861 case $as_dir in #(((
6862 '') as_dir=./ ;;
6863 */) ;;
6864 *) as_dir=$as_dir/ ;;
6865 esac
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6868 ac_cv_path_INSTALL_INFO="$as_dir$ac_word$ac_exec_ext"
6869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872done
6873 done
6874IFS=$as_save_IFS
6875
6876 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
6877 ;;
6878esac ;;
6879esac
6880fi
6881INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6882if test -n "$INSTALL_INFO"; then
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6884printf "%s\n" "$INSTALL_INFO" >&6; }
6885else
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887printf "%s\n" "no" >&6; }
6888fi
6889
6890
6891
6892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
6893printf %s "checking for .set assembler directive... " >&6; }
6894if test ${libc_cv_asm_set_directive+y}
6895then :
6896 printf %s "(cached) " >&6
6897else case e in #(
6898 e) cat > conftest.s <<EOF
6899.text
6900foo:
6901.set glibc_conftest_frobozz,foo
6902.globl glibc_conftest_frobozz
6903EOF
6904# The alpha-dec-osf1 assembler gives only a warning for `.set'
6905# (but it doesn't work), so we must do a linking check to be sure.
6906cat > conftest1.c <<\EOF
6907extern int glibc_conftest_frobozz;
6908void _start() { glibc_conftest_frobozz = 1; }
6909EOF
6910if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6911 -nostartfiles -nostdlib $no_ssp \
6912 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
6913 libc_cv_asm_set_directive=yes
6914else
6915 libc_cv_asm_set_directive=no
6916fi
6917rm -f conftest* ;;
6918esac
6919fi
6920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
6921printf "%s\n" "$libc_cv_asm_set_directive" >&6; }
6922if test $libc_cv_asm_set_directive = yes; then
6923 printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
6924
6925fi
6926
6927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
6928printf %s "checking linker support for protected data symbol... " >&6; }
6929if test ${libc_cv_protected_data+y}
6930then :
6931 printf %s "(cached) " >&6
6932else case e in #(
6933 e) cat > conftest.c <<EOF
6934 int bar __attribute__ ((visibility ("protected"))) = 1;
6935EOF
6936 libc_cv_protected_data=no
6937 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
6938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6939 (eval $ac_try) 2>&5
6940 ac_status=$?
6941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }; }; then
6943 cat > conftest.c <<EOF
6944 extern int bar;
6945 int main (void) { return bar; }
6946EOF
6947 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
6948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952 test $ac_status = 0; }; }; then
6953 libc_cv_protected_data=yes
6954 fi
6955 fi
6956 rm -f conftest.*
6957 ;;
6958esac
6959fi
6960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
6961printf "%s\n" "$libc_cv_protected_data" >&6; }
6962
6963
6964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
6965printf %s "checking linker support for INSERT in linker script... " >&6; }
6966if test ${libc_cv_insert+y}
6967then :
6968 printf %s "(cached) " >&6
6969else case e in #(
6970 e) cat > conftest.c <<EOF
6971 int __attribute__ ((section(".bar"))) bar = 0x12345678;
6972 int test (void) { return bar; }
6973EOF
6974 cat > conftest.t <<EOF
6975 SECTIONS
6976 {
6977 .bar : { *(.bar) }
6978 }
6979 INSERT AFTER .rela.dyn;
6980EOF
6981 libc_cv_insert=no
6982 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
6983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6984 (eval $ac_try) 2>&5
6985 ac_status=$?
6986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987 test $ac_status = 0; }; }; then
6988 libc_cv_insert=yes
6989 fi
6990 rm -f conftest.*
6991 ;;
6992esac
6993fi
6994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
6995printf "%s\n" "$libc_cv_insert" >&6; }
6996
6997
6998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
6999printf %s "checking for broken __attribute__((alias()))... " >&6; }
7000if test ${libc_cv_broken_alias_attribute+y}
7001then :
7002 printf %s "(cached) " >&6
7003else case e in #(
7004 e) cat > conftest.c <<EOF
7005 extern int foo (int x) __asm ("xyzzy");
7006 int bar (int x) { return x; }
7007 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
7008 extern int dfoo;
7009 extern __typeof (dfoo) dfoo __asm ("abccb");
7010 int dfoo = 1;
7011EOF
7012 libc_cv_broken_alias_attribute=yes
7013 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
7014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7018 test $ac_status = 0; }; }; then
7019 if grep 'xyzzy' conftest.s >/dev/null &&
7020 grep 'abccb' conftest.s >/dev/null; then
7021 libc_cv_broken_alias_attribute=no
7022 fi
7023 fi
7024 rm -f conftest.c conftest.s
7025 ;;
7026esac
7027fi
7028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
7029printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; }
7030if test $libc_cv_broken_alias_attribute = yes; then
7031 as_fn_error $? "working alias attribute support required" "$LINENO" 5
7032fi
7033
7034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
7035printf %s "checking whether to put _rtld_local into .sdata section... " >&6; }
7036if test ${libc_cv_have_sdata_section+y}
7037then :
7038 printf %s "(cached) " >&6
7039else case e in #(
7040 e) echo "int i;" > conftest.c
7041 libc_cv_have_sdata_section=no
7042 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
7043 | grep '\.sdata' >/dev/null; then
7044 libc_cv_have_sdata_section=yes
7045 fi
7046 rm -f conftest.c conftest.so
7047 ;;
7048esac
7049fi
7050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
7051printf "%s\n" "$libc_cv_have_sdata_section" >&6; }
7052if test $libc_cv_have_sdata_section = yes; then
7053 printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h
7054
7055fi
7056
7057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
7058printf %s "checking for libunwind-support in compiler... " >&6; }
7059if test ${libc_cv_cc_with_libunwind+y}
7060then :
7061 printf %s "(cached) " >&6
7062else case e in #(
7063 e)
7064 cat > conftest.c <<EOF
7065int main (void) { return 0; }
7066EOF
7067 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
7068 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
7069 libc_cv_cc_with_libunwind=yes
7070 else
7071 libc_cv_cc_with_libunwind=no
7072 fi
7073 rm -f conftest* ;;
7074esac
7075fi
7076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
7077printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; }
7078
7079if test $libc_cv_cc_with_libunwind = yes; then
7080 printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
7081
7082fi
7083
7084ASFLAGS_config=
7085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
7086printf %s "checking whether --noexecstack is desirable for .S files... " >&6; }
7087if test ${libc_cv_as_noexecstack+y}
7088then :
7089 printf %s "(cached) " >&6
7090else case e in #(
7091 e) cat > conftest.c <<EOF
7092void foo (void) { }
7093EOF
7094if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
7095 -S -o conftest.s conftest.c 1>&5'
7096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7100 test $ac_status = 0; }; } \
7101 && grep .note.GNU-stack conftest.s >/dev/null \
7102 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
7103 -c -o conftest.o conftest.s 1>&5'
7104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7105 (eval $ac_try) 2>&5
7106 ac_status=$?
7107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7108 test $ac_status = 0; }; }
7109then
7110 libc_cv_as_noexecstack=yes
7111else
7112 libc_cv_as_noexecstack=no
7113fi
7114rm -f conftest* ;;
7115esac
7116fi
7117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
7118printf "%s\n" "$libc_cv_as_noexecstack" >&6; }
7119if test $libc_cv_as_noexecstack = yes; then
7120 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
7121fi
7122
7123
7124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-error-execstack" >&5
7125printf %s "checking for linker that supports --no-error-execstack... " >&6; }
7126libc_linker_feature=no
7127cat > conftest.c <<EOF
7128int _start (void) { return 42; }
7129EOF
7130if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7131 -Wl,--no-error-execstack -nostdlib -nostartfiles
7132 -fPIC -shared -o conftest.so conftest.c
7133 1>&5'
7134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7135 (eval $ac_try) 2>&5
7136 ac_status=$?
7137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7138 test $ac_status = 0; }; }
7139then
7140 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-error-execstack -nostdlib \
7141 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
7142 | grep "warning: --no-error-execstack ignored" > /dev/null 2>&1; then
7143 true
7144 else
7145 libc_linker_feature=yes
7146 fi
7147fi
7148rm -f conftest*
7149if test $libc_linker_feature = yes; then
7150 libc_cv_no_error_execstack=yes
7151else
7152 libc_cv_no_error_execstack=no
7153fi
7154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7155printf "%s\n" "$libc_linker_feature" >&6; }
7156
7157
7158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
7159printf %s "checking for linker that supports -z execstack... " >&6; }
7160libc_linker_feature=no
7161cat > conftest.c <<EOF
7162int _start (void) { return 42; }
7163EOF
7164if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7165 -Wl,-z,execstack -nostdlib -nostartfiles
7166 -fPIC -shared -o conftest.so conftest.c
7167 1>&5'
7168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
7171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172 test $ac_status = 0; }; }
7173then
7174 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack -nostdlib \
7175 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
7176 | grep "warning: -z execstack ignored" > /dev/null 2>&1; then
7177 true
7178 else
7179 libc_linker_feature=yes
7180 fi
7181fi
7182rm -f conftest*
7183if test $libc_linker_feature = yes; then
7184 libc_cv_z_execstack=yes
7185else
7186 libc_cv_z_execstack=no
7187fi
7188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7189printf "%s\n" "$libc_linker_feature" >&6; }
7190
7191
7192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
7193printf %s "checking for linker that supports -z start-stop-gc... " >&6; }
7194libc_linker_feature=no
7195cat > conftest.c <<EOF
7196int _start (void) { return 42; }
7197EOF
7198if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7199 -Wl,-z,start-stop-gc -nostdlib -nostartfiles
7200 -fPIC -shared -o conftest.so conftest.c
7201 1>&5'
7202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7206 test $ac_status = 0; }; }
7207then
7208 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc -nostdlib \
7209 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
7210 | grep "warning: -z start-stop-gc ignored" > /dev/null 2>&1; then
7211 true
7212 else
7213 libc_linker_feature=yes
7214 fi
7215fi
7216rm -f conftest*
7217if test $libc_linker_feature = yes; then
7218 libc_cv_z_start_stop_gc=yes
7219else
7220 libc_cv_z_start_stop_gc=no
7221fi
7222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7223printf "%s\n" "$libc_linker_feature" >&6; }
7224config_vars="$config_vars
7225have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
7226
7227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
7228printf %s "checking for linker that supports --depaudit... " >&6; }
7229libc_linker_feature=no
7230cat > conftest.c <<EOF
7231int _start (void) { return 42; }
7232EOF
7233if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7234 -Wl,--depaudit,x -nostdlib -nostartfiles
7235 -fPIC -shared -o conftest.so conftest.c
7236 1>&5'
7237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7238 (eval $ac_try) 2>&5
7239 ac_status=$?
7240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; }
7242then
7243 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x -nostdlib \
7244 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
7245 | grep "warning: --depaudit ignored" > /dev/null 2>&1; then
7246 true
7247 else
7248 libc_linker_feature=yes
7249 fi
7250fi
7251rm -f conftest*
7252if test $libc_linker_feature = yes; then
7253 libc_cv_depaudit=yes
7254else
7255 libc_cv_depaudit=no
7256fi
7257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7258printf "%s\n" "$libc_linker_feature" >&6; }
7259config_vars="$config_vars
7260have-depaudit = $libc_cv_depaudit"
7261
7262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
7263printf %s "checking for linker that supports -z pack-relative-relocs... " >&6; }
7264libc_linker_feature=no
7265cat > conftest.c <<EOF
7266int _start (void) { return 42; }
7267EOF
7268if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7269 -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
7270 -fPIC -shared -o conftest.so conftest.c
7271 1>&5'
7272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7276 test $ac_status = 0; }; }
7277then
7278 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs -nostdlib \
7279 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
7280 | grep "warning: -z pack-relative-relocs ignored" > /dev/null 2>&1; then
7281 true
7282 else
7283 libc_linker_feature=yes
7284 fi
7285fi
7286rm -f conftest*
7287if test $libc_linker_feature = yes; then
7288 libc_cv_dt_relr=yes
7289else
7290 libc_cv_dt_relr=no
7291fi
7292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7293printf "%s\n" "$libc_linker_feature" >&6; }
7294config_vars="$config_vars
7295have-dt-relr = $libc_cv_dt_relr"
7296
7297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
7298printf %s "checking for linker that supports --no-dynamic-linker... " >&6; }
7299libc_linker_feature=no
7300cat > conftest.c <<EOF
7301int _start (void) { return 42; }
7302EOF
7303if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7304 -Wl,--no-dynamic-linker -nostdlib -nostartfiles
7305 -fPIC -shared -o conftest.so conftest.c
7306 1>&5'
7307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7308 (eval $ac_try) 2>&5
7309 ac_status=$?
7310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7311 test $ac_status = 0; }; }
7312then
7313 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
7314 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
7315 | grep "warning: --no-dynamic-linker ignored" > /dev/null 2>&1; then
7316 true
7317 else
7318 libc_linker_feature=yes
7319 fi
7320fi
7321rm -f conftest*
7322if test $libc_linker_feature = yes; then
7323 libc_cv_no_dynamic_linker=yes
7324else
7325 libc_cv_no_dynamic_linker=no
7326fi
7327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7328printf "%s\n" "$libc_linker_feature" >&6; }
7329config_vars="$config_vars
7330have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
7331
7332
7333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
7334printf %s "checking for -static-pie... " >&6; }
7335if test ${libc_cv_static_pie+y}
7336then :
7337 printf %s "(cached) " >&6
7338else case e in #(
7339 e) if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
7340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7341 (eval $ac_try) 2>&5
7342 ac_status=$?
7343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344 test $ac_status = 0; }; }
7345then :
7346 libc_cv_static_pie=yes
7347else case e in #(
7348 e) libc_cv_static_pie=no ;;
7349esac
7350fi ;;
7351esac
7352fi
7353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
7354printf "%s\n" "$libc_cv_static_pie" >&6; }
7355if test "$TEST_CC" = "$CC"; then
7356 libc_cv_test_static_pie=$libc_cv_static_pie
7357else
7358
7359saved_CC="$CC"
7360CC="$TEST_CC"
7361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie in testing" >&5
7362printf %s "checking for -static-pie in testing... " >&6; }
7363if test ${libc_cv_test_static_pie+y}
7364then :
7365 printf %s "(cached) " >&6
7366else case e in #(
7367 e) if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
7368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7369 (eval $ac_try) 2>&5
7370 ac_status=$?
7371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372 test $ac_status = 0; }; }
7373then :
7374 libc_cv_test_static_pie=yes
7375else case e in #(
7376 e) libc_cv_test_static_pie=no
7377 ;;
7378esac
7379fi ;;
7380esac
7381fi
7382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_static_pie" >&5
7383printf "%s\n" "$libc_cv_test_static_pie" >&6; }
7384
7385CC="$saved_CC"
7386
7387fi
7388
7389config_vars="$config_vars
7390have-static-pie = $libc_cv_static_pie"
7391
7392
7393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
7394printf %s "checking for -fpie... " >&6; }
7395if test ${libc_cv_fpie+y}
7396then :
7397 printf %s "(cached) " >&6
7398else case e in #(
7399 e) if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
7400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7404 test $ac_status = 0; }; }
7405then :
7406 libc_cv_fpie=yes
7407else case e in #(
7408 e) libc_cv_fpie=no ;;
7409esac
7410fi
7411 ;;
7412esac
7413fi
7414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
7415printf "%s\n" "$libc_cv_fpie" >&6; }
7416
7417
7418
7419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
7420printf %s "checking for GLOB_DAT reloc... " >&6; }
7421if test ${libc_cv_has_glob_dat+y}
7422then :
7423 printf %s "(cached) " >&6
7424else case e in #(
7425 e) cat > conftest.c <<EOF
7426extern int mumble;
7427int foo (void) { return mumble; }
7428EOF
7429if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7430 -fPIC -shared -o conftest.so conftest.c
7431 -nostdlib -nostartfiles $no_ssp
7432 1>&5'
7433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437 test $ac_status = 0; }; }
7438then
7439 if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then
7440 libc_cv_has_glob_dat=yes
7441 else
7442 libc_cv_has_glob_dat=no
7443 fi
7444else
7445 libc_cv_has_glob_dat=no
7446fi
7447rm -f conftest* ;;
7448esac
7449fi
7450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
7451printf "%s\n" "$libc_cv_has_glob_dat" >&6; }
7452
7453
7454conftest_code="
7455__thread int i;
7456void foo (void)
7457{
7458 i = 10;
7459}
7460"
7461
7462cat > conftest.c <<EOF
7463$conftest_code
7464EOF
7465
7466saved_CC="$CC"
7467CC="$TEST_CC"
7468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tls descriptor support in testing" >&5
7469printf %s "checking for tls descriptor support in testing... " >&6; }
7470if test ${libc_cv_test_mtls_descriptor+y}
7471then :
7472 printf %s "(cached) " >&6
7473else case e in #(
7474 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_descriptor -nostdlib -nostartfiles -shared conftest.c -o conftest 1>&5'
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_test_mtls_descriptor=$mtls_descriptor
7482 else
7483 libc_cv_test_mtls_descriptor=no
7484 fi ;;
7485esac
7486fi
7487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_mtls_descriptor" >&5
7488printf "%s\n" "$libc_cv_test_mtls_descriptor" >&6; }
7489
7490CC="$saved_CC"
7491
7492rm -f conftest*
7493config_vars="$config_vars
7494have-test-mtls-descriptor = $libc_cv_test_mtls_descriptor"
7495
7496
7497cat > conftest.c <<EOF
7498$conftest_code
7499EOF
7500
7501saved_CC="$CC"
7502CC="$TEST_CC"
7503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for traditional tls support in testing" >&5
7504printf %s "checking for traditional tls support in testing... " >&6; }
7505if test ${libc_cv_test_mtls_traditional+y}
7506then :
7507 printf %s "(cached) " >&6
7508else case e in #(
7509 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_traditional -nostdlib -nostartfiles -shared conftest.c -o conftest 1>&5'
7510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; }; }
7515 then
7516 libc_cv_test_mtls_traditional=$mtls_traditional
7517 else
7518 libc_cv_test_mtls_traditional=no
7519 fi ;;
7520esac
7521fi
7522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_mtls_traditional" >&5
7523printf "%s\n" "$libc_cv_test_mtls_traditional" >&6; }
7524
7525CC="$saved_CC"
7526
7527rm -f conftest*
7528config_vars="$config_vars
7529have-test-mtls-traditional = $libc_cv_test_mtls_traditional"
7530
7531conftest_code="
7532void __foo (void)
7533{
7534}
7535extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
7536extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
7537"
7538
7539cat > conftest.c <<EOF
7540$conftest_code
7541EOF
7542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5
7543printf %s "checking if -Wno-ignored-attributes is required for aliases... " >&6; }
7544if test ${libc_cv_wno_ignored_attributes+y}
7545then :
7546 printf %s "(cached) " >&6
7547else case e in #(
7548 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror -Wno-ignored-attributes conftest.c -o conftest 1>&5'
7549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553 test $ac_status = 0; }; }
7554 then
7555 libc_cv_wno_ignored_attributes="-Wno-ignored-attributes"
7556 else
7557 libc_cv_wno_ignored_attributes=
7558 fi
7559 ;;
7560esac
7561fi
7562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5
7563printf "%s\n" "$libc_cv_wno_ignored_attributes" >&6; }
7564if test "$TEST_CC" = "$CC"; then
7565 libc_cv_test_wno_ignored_attributes=$libc_cv_wno_ignored_attributes
7566else
7567
7568saved_CC="$CC"
7569CC="$TEST_CC"
7570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases in testing" >&5
7571printf %s "checking if -Wno-ignored-attributes is required for aliases in testing... " >&6; }
7572if test ${libc_cv_test_wno_ignored_attributes+y}
7573then :
7574 printf %s "(cached) " >&6
7575else case e in #(
7576 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror -Wno-ignored-attributes conftest.c -o conftest 1>&5'
7577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581 test $ac_status = 0; }; }
7582 then
7583 libc_cv_test_wno_ignored_attributes="-Wno-ignored-attributes"
7584 else
7585 libc_cv_test_wno_ignored_attributes=
7586 fi ;;
7587esac
7588fi
7589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_wno_ignored_attributes" >&5
7590printf "%s\n" "$libc_cv_test_wno_ignored_attributes" >&6; }
7591
7592CC="$saved_CC"
7593
7594fi
7595rm -f conftest*
7596config_vars="$config_vars
7597config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
7598
7599
7600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
7601printf %s "checking whether cc puts quotes around section names... " >&6; }
7602if test ${libc_cv_have_section_quotes+y}
7603then :
7604 printf %s "(cached) " >&6
7605else case e in #(
7606 e) cat > conftest.c <<EOF
7607 static const int foo
7608 __attribute__ ((section ("bar"))) = 1;
7609EOF
7610 if ${CC-cc} -S conftest.c -o conftest.s; then
7611 if grep '\.section.*"bar"' conftest.s >/dev/null; then
7612 libc_cv_have_section_quotes=yes
7613 else
7614 libc_cv_have_section_quotes=no
7615 fi
7616 else
7617 libc_cv_have_section_quotes=unknown
7618 fi
7619 rm -f conftest.{c,s}
7620 ;;
7621esac
7622fi
7623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
7624printf "%s\n" "$libc_cv_have_section_quotes" >&6; }
7625if test $libc_cv_have_section_quotes = yes; then
7626 printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
7627
7628fi
7629
7630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
7631printf %s "checking for __builtin_memset... " >&6; }
7632if test ${libc_cv_gcc_builtin_memset+y}
7633then :
7634 printf %s "(cached) " >&6
7635else case e in #(
7636 e) cat > conftest.c <<\EOF
7637void zero (void *x)
7638{
7639 __builtin_memset (x, 0, 1000);
7640}
7641EOF
7642if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
7643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647 test $ac_status = 0; }; };
7648then
7649 libc_cv_gcc_builtin_memset=no
7650else
7651 libc_cv_gcc_builtin_memset=yes
7652fi
7653rm -f conftest* ;;
7654esac
7655fi
7656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
7657printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; }
7658if test "$libc_cv_gcc_builtin_memset" = yes ; then
7659 printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
7660
7661fi
7662
7663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
7664printf %s "checking for redirection of built-in functions... " >&6; }
7665if test ${libc_cv_gcc_builtin_redirection+y}
7666then :
7667 printf %s "(cached) " >&6
7668else case e in #(
7669 e) cat > conftest.c <<\EOF
7670extern char *strstr (const char *, const char *) __asm ("my_strstr");
7671char *foo (const char *a, const char *b)
7672{
7673 return __builtin_strstr (a, b);
7674}
7675EOF
7676if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
7677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7678 (eval $ac_try) 2>&5
7679 ac_status=$?
7680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7681 test $ac_status = 0; }; };
7682then
7683 libc_cv_gcc_builtin_redirection=yes
7684else
7685 libc_cv_gcc_builtin_redirection=no
7686fi
7687rm -f conftest* ;;
7688esac
7689fi
7690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
7691printf "%s\n" "$libc_cv_gcc_builtin_redirection" >&6; }
7692if test "$libc_cv_gcc_builtin_redirection" = no; then
7693 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
7694fi
7695
7696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
7697printf %s "checking for compiler option to disable generation of FMA instructions... " >&6; }
7698if test ${libc_cv_cc_nofma+y}
7699then :
7700 printf %s "(cached) " >&6
7701else case e in #(
7702 e) libc_cv_cc_nofma=
7703for opt in -ffp-contract=off -mno-fused-madd; do
7704 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7706 (eval $ac_try) 2>&5
7707 ac_status=$?
7708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7709 test $ac_status = 0; }; }
7710then :
7711 libc_cv_cc_nofma=$opt; break
7712fi
7713done ;;
7714esac
7715fi
7716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
7717printf "%s\n" "$libc_cv_cc_nofma" >&6; }
7718
7719
7720if test -n "$submachine"; then
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7722printf %s "checking for compiler option for CPU variant... " >&6; }
7723if test ${libc_cv_cc_submachine+y}
7724then :
7725 printf %s "(cached) " >&6
7726else case e in #(
7727 e) libc_cv_cc_submachine=no
7728 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7729 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7734 test $ac_status = 0; }; }
7735then :
7736
7737 libc_cv_cc_submachine="$opt"
7738 break
7739fi
7740 done ;;
7741esac
7742fi
7743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7744printf "%s\n" "$libc_cv_cc_submachine" >&6; }
7745 if test "x$libc_cv_cc_submachine" = xno; then
7746 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
7747 fi
7748fi
7749
7750
7751
7752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
7753printf %s "checking for compiler option that -fsignaling-nans... " >&6; }
7754if test ${libc_cv_cc_signaling_nans+y}
7755then :
7756 printf %s "(cached) " >&6
7757else case e in #(
7758 e) if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
7759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7763 test $ac_status = 0; }; }
7764then :
7765 libc_cv_cc_signaling_nans=-fsignaling-nans
7766else case e in #(
7767 e) libc_cv_cc_signaling_nans= ;;
7768esac
7769fi ;;
7770esac
7771fi
7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
7773printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; }
7774if test "$TEST_CC" = "$CC"; then
7775 libc_cv_test_cc_signaling_nans=$libc_cv_cc_signaling_nans
7776else
7777
7778saved_CC="$CC"
7779CC="$TEST_CC"
7780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans in testing" >&5
7781printf %s "checking for compiler option that -fsignaling-nans in testing... " >&6; }
7782if test ${libc_cv_test_cc_signaling_nans+y}
7783then :
7784 printf %s "(cached) " >&6
7785else case e in #(
7786 e) if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
7787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7788 (eval $ac_try) 2>&5
7789 ac_status=$?
7790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7791 test $ac_status = 0; }; }
7792then :
7793 libc_cv_test_cc_signaling_nans=-fsignaling-nans
7794else case e in #(
7795 e) libc_cv_test_cc_signaling_nans= ;;
7796esac
7797fi ;;
7798esac
7799fi
7800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_signaling_nans" >&5
7801printf "%s\n" "$libc_cv_test_cc_signaling_nans" >&6; }
7802
7803CC="$saved_CC"
7804
7805fi
7806
7807config_vars="$config_vars
7808config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
7809
7810
7811
7812
7813saved_CC="$CC"
7814CC="$TEST_CC"
7815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fsemantic-interposition in testing" >&5
7816printf %s "checking -fsemantic-interposition in testing... " >&6; }
7817if test ${libc_cv_test_cc_cflags_fsemantic_interposition+y}
7818then :
7819 printf %s "(cached) " >&6
7820else case e in #(
7821 e) if { ac_try='${CC-cc} -c -Werror -fsemantic-interposition -xc /dev/null -S -o /dev/null'
7822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; }; }
7827then :
7828 libc_cv_test_cc_cflags_fsemantic_interposition=yes
7829else case e in #(
7830 e) libc_cv_test_cc_cflags_fsemantic_interposition=no
7831 ;;
7832esac
7833fi ;;
7834esac
7835fi
7836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_cflags_fsemantic_interposition" >&5
7837printf "%s\n" "$libc_cv_test_cc_cflags_fsemantic_interposition" >&6; }
7838
7839CC="$saved_CC"
7840
7841
7842config_vars="$config_vars
7843have-test-cc-cflags-fsemantic-interposition = $libc_cv_test_cc_cflags_fsemantic_interposition"
7844
7845
7846
7847saved_CC="$CC"
7848CC="$TEST_CC"
7849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -ffloat-store in testing" >&5
7850printf %s "checking for -ffloat-store in testing... " >&6; }
7851if test ${libc_cv_test_cc_float_store+y}
7852then :
7853 printf %s "(cached) " >&6
7854else case e in #(
7855 e) if { ac_try='${CC-cc} -Werror -ffloat-store -xc /dev/null -S -o /dev/null'
7856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7857 (eval $ac_try) 2>&5
7858 ac_status=$?
7859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; }; }
7861then :
7862 libc_cv_test_cc_float_store="-ffloat-store"
7863else case e in #(
7864 e) libc_cv_test_cc_float_store= ;;
7865esac
7866fi ;;
7867esac
7868fi
7869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_float_store" >&5
7870printf "%s\n" "$libc_cv_test_cc_float_store" >&6; }
7871
7872CC="$saved_CC"
7873
7874
7875config_vars="$config_vars
7876test-config-cflags-float-store = $libc_cv_test_cc_float_store"
7877
7878conftest_code="
7879void
7880__attribute__ ((__optimize__ (\"-fno-tree-loop-distribute-patterns\")))
7881foo (void) {}
7882"
7883
7884cat > conftest.c <<EOF
7885$conftest_code
7886EOF
7887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works" >&5
7888printf %s "checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works... " >&6; }
7889if test ${libc_cv_cc_loop_to_function+y}
7890then :
7891 printf %s "(cached) " >&6
7892else case e in #(
7893 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5'
7894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7898 test $ac_status = 0; }; }
7899 then
7900 libc_cv_cc_loop_to_function=yes
7901 else
7902 libc_cv_cc_loop_to_function=no
7903 fi
7904 ;;
7905esac
7906fi
7907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
7908printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; }
7909if test "$TEST_CC" = "$CC"; then
7910 libc_cv_test_cc_loop_to_function=$libc_cv_cc_loop_to_function
7911else
7912
7913saved_CC="$CC"
7914CC="$TEST_CC"
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works in testing" >&5
7916printf %s "checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works in testing... " >&6; }
7917if test ${libc_cv_test_cc_loop_to_function+y}
7918then :
7919 printf %s "(cached) " >&6
7920else case e in #(
7921 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5'
7922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7923 (eval $ac_try) 2>&5
7924 ac_status=$?
7925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7926 test $ac_status = 0; }; }
7927 then
7928 libc_cv_test_cc_loop_to_function=yes
7929 else
7930 libc_cv_test_cc_loop_to_function=no
7931 fi ;;
7932esac
7933fi
7934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_loop_to_function" >&5
7935printf "%s\n" "$libc_cv_test_cc_loop_to_function" >&6; }
7936
7937CC="$saved_CC"
7938
7939fi
7940rm -f conftest*
7941if test $libc_cv_cc_loop_to_function = yes; then
7942 printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
7943
7944fi
7945if test $libc_cv_test_cc_loop_to_function = yes; then
7946 printf "%s\n" "#define HAVE_TEST_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
7947
7948fi
7949
7950
7951
7952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wimplicit-fallthrough" >&5
7953printf %s "checking for -Wimplicit-fallthrough... " >&6; }
7954if test ${libc_cv_cc_wimplicit_fallthrough+y}
7955then :
7956 printf %s "(cached) " >&6
7957else case e in #(
7958 e) if { ac_try='${CC-cc} -Werror -Wimplicit-fallthrough -xc /dev/null -S -o /dev/null'
7959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7960 (eval $ac_try) 2>&5
7961 ac_status=$?
7962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7963 test $ac_status = 0; }; }
7964then :
7965 libc_cv_cc_wimplicit_fallthrough=-Wimplicit-fallthrough
7966else case e in #(
7967 e) libc_cv_cc_wimplicit_fallthrough= ;;
7968esac
7969fi ;;
7970esac
7971fi
7972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wimplicit_fallthrough" >&5
7973printf "%s\n" "$libc_cv_cc_wimplicit_fallthrough" >&6; }
7974if test "$TEST_CC" = "$CC"; then
7975 libc_cv_test_cc_wimplicit_fallthrough=$libc_cv_cc_wimplicit_fallthrough
7976else
7977
7978saved_CC="$CC"
7979CC="$TEST_CC"
7980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wimplicit-fallthrough in testing" >&5
7981printf %s "checking for -Wimplicit-fallthrough in testing... " >&6; }
7982if test ${libc_cv_test_cc_wimplicit_fallthrough+y}
7983then :
7984 printf %s "(cached) " >&6
7985else case e in #(
7986 e) if { ac_try='${CC-cc} -Werror -Wimplicit-fallthrough -xc /dev/null -S -o /dev/null'
7987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7988 (eval $ac_try) 2>&5
7989 ac_status=$?
7990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7991 test $ac_status = 0; }; }
7992then :
7993 libc_cv_test_cc_wimplicit_fallthrough=-Wimplicit-fallthrough
7994else case e in #(
7995 e) libc_cv_test_cc_wimplicit_fallthrough= ;;
7996esac
7997fi ;;
7998esac
7999fi
8000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_wimplicit_fallthrough" >&5
8001printf "%s\n" "$libc_cv_test_cc_wimplicit_fallthrough" >&6; }
8002
8003CC="$saved_CC"
8004
8005fi
8006
8007config_vars="$config_vars
8008cc-option-wimplicit-fallthrough = $libc_cv_cc_wimplicit_fallthrough"
8009
8010
8011
8012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wfree-labels" >&5
8013printf %s "checking for -Wfree-labels... " >&6; }
8014if test ${libc_cv_cc_wfree_labels+y}
8015then :
8016 printf %s "(cached) " >&6
8017else case e in #(
8018 e) if { ac_try='${CC-cc} -Werror -Wfree-labels -xc /dev/null -S -o /dev/null'
8019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8020 (eval $ac_try) 2>&5
8021 ac_status=$?
8022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8023 test $ac_status = 0; }; }
8024then :
8025 libc_cv_cc_wfree_labels=-Wfree-labels
8026else case e in #(
8027 e) libc_cv_cc_wfree_labels= ;;
8028esac
8029fi ;;
8030esac
8031fi
8032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wfree_labels" >&5
8033printf "%s\n" "$libc_cv_cc_wfree_labels" >&6; }
8034if test "$TEST_CC" = "$CC"; then
8035 libc_cv_test_cc_wfree_labels=$libc_cv_cc_wfree_labels
8036else
8037
8038saved_CC="$CC"
8039CC="$TEST_CC"
8040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wfree-labels in testing" >&5
8041printf %s "checking for -Wfree-labels in testing... " >&6; }
8042if test ${libc_cv_test_cc_wfree_labels+y}
8043then :
8044 printf %s "(cached) " >&6
8045else case e in #(
8046 e) if { ac_try='${CC-cc} -Werror -Wfree-labels -xc /dev/null -S -o /dev/null'
8047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051 test $ac_status = 0; }; }
8052then :
8053 libc_cv_test_cc_wfree_labels=-Wfree-labels
8054else case e in #(
8055 e) libc_cv_test_cc_wfree_labels= ;;
8056esac
8057fi ;;
8058esac
8059fi
8060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_wfree_labels" >&5
8061printf "%s\n" "$libc_cv_test_cc_wfree_labels" >&6; }
8062
8063CC="$saved_CC"
8064
8065fi
8066
8067config_vars="$config_vars
8068cc-option-wfree-labels = $libc_cv_cc_wfree_labels"
8069
8070
8071
8072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-parameter-name" >&5
8073printf %s "checking for -Wmissing-parameter-name... " >&6; }
8074if test ${libc_cv_cc_wmissing_parameter_name+y}
8075then :
8076 printf %s "(cached) " >&6
8077else case e in #(
8078 e) if { ac_try='${CC-cc} -Werror -Wmissing-parameter-name -xc /dev/null -S -o /dev/null'
8079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8080 (eval $ac_try) 2>&5
8081 ac_status=$?
8082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083 test $ac_status = 0; }; }
8084then :
8085 libc_cv_cc_wmissing_parameter_name=-Wmissing-parameter-name
8086else case e in #(
8087 e) libc_cv_cc_wmissing_parameter_name= ;;
8088esac
8089fi ;;
8090esac
8091fi
8092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wmissing_parameter_name" >&5
8093printf "%s\n" "$libc_cv_cc_wmissing_parameter_name" >&6; }
8094if test "$TEST_CC" = "$CC"; then
8095 libc_cv_test_cc_wmissing_parameter_name=$libc_cv_cc_wmissing_parameter_name
8096else
8097
8098saved_CC="$CC"
8099CC="$TEST_CC"
8100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-parameter-name in testing" >&5
8101printf %s "checking for -Wmissing-parameter-name in testing... " >&6; }
8102if test ${libc_cv_test_cc_wmissing_parameter_name+y}
8103then :
8104 printf %s "(cached) " >&6
8105else case e in #(
8106 e) if { ac_try='${CC-cc} -Werror -Wmissing-parameter-name -xc /dev/null -S -o /dev/null'
8107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8111 test $ac_status = 0; }; }
8112then :
8113 libc_cv_test_cc_wmissing_parameter_name=-Wmissing-parameter-name
8114else case e in #(
8115 e) libc_cv_test_cc_wmissing_parameter_name= ;;
8116esac
8117fi ;;
8118esac
8119fi
8120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_wmissing_parameter_name" >&5
8121printf "%s\n" "$libc_cv_test_cc_wmissing_parameter_name" >&6; }
8122
8123CC="$saved_CC"
8124
8125fi
8126
8127config_vars="$config_vars
8128cc-option-wmissing-parameter-name = $libc_cv_cc_wmissing_parameter_name"
8129
8130
8131conftest_code="
8132void bar (void (*callback) (void));
8133int foo (void)
8134{
8135 int var = 0;
8136 void callback (void) { var = 1; }
8137 bar (callback);
8138 return var;
8139}
8140"
8141
8142
8143cat > conftest.c <<EOF
8144$conftest_code
8145EOF
8146
8147saved_CC="$CC"
8148CC="$TEST_CC"
8149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for trampolines in testing" >&5
8150printf %s "checking support for trampolines in testing... " >&6; }
8151if test ${libc_cv_test_cc_trampolines+y}
8152then :
8153 printf %s "(cached) " >&6
8154else case e in #(
8155 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5'
8156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8157 (eval $ac_try) 2>&5
8158 ac_status=$?
8159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8160 test $ac_status = 0; }; }
8161 then
8162 libc_cv_test_cc_trampolines=yes
8163 else
8164 libc_cv_test_cc_trampolines=no
8165
8166 fi ;;
8167esac
8168fi
8169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_trampolines" >&5
8170printf "%s\n" "$libc_cv_test_cc_trampolines" >&6; }
8171
8172CC="$saved_CC"
8173
8174rm -f conftest*
8175config_vars="$config_vars
8176have-test-cc-trampoline = $libc_cv_test_cc_trampolines"
8177
8178
8179
8180saved_CC="$CC"
8181CC="$TEST_CC"
8182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wno-restrict in testing" >&5
8183printf %s "checking -Wno-restrict in testing... " >&6; }
8184if test ${libc_cv_test_cflags_wno_restrict+y}
8185then :
8186 printf %s "(cached) " >&6
8187else case e in #(
8188 e) if { ac_try='${CC-cc} -c -Werror -Wno-restrict -xc /dev/null -S -o /dev/null'
8189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8193 test $ac_status = 0; }; }
8194then :
8195 libc_cv_test_cflags_wno_restrict=-Wno-restrict
8196else case e in #(
8197 e) libc_cv_test_cflags_wno_restrict=
8198 ;;
8199esac
8200fi ;;
8201esac
8202fi
8203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cflags_wno_restrict" >&5
8204printf "%s\n" "$libc_cv_test_cflags_wno_restrict" >&6; }
8205
8206CC="$saved_CC"
8207
8208
8209config_vars="$config_vars
8210test-config-cflags-wno-restrict = $libc_cv_test_cflags_wno_restrict"
8211
8212
8213
8214saved_CC="$CC"
8215CC="$TEST_CC"
8216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wno-fortify-source in testing" >&5
8217printf %s "checking -Wno-fortify-source in testing... " >&6; }
8218if test ${libc_cv_test_cflags_wno_fortify_source+y}
8219then :
8220 printf %s "(cached) " >&6
8221else case e in #(
8222 e) if { ac_try='${CC-cc} -c -Werror -Wno-fortify-source -xc /dev/null -S -o /dev/null'
8223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8227 test $ac_status = 0; }; }
8228then :
8229 libc_cv_test_cflags_wno_fortify_source=-Wno-fortify-source
8230else case e in #(
8231 e) libc_cv_test_cflags_wno_fortify_source=
8232 ;;
8233esac
8234fi ;;
8235esac
8236fi
8237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cflags_wno_fortify_source" >&5
8238printf "%s\n" "$libc_cv_test_cflags_wno_fortify_source" >&6; }
8239
8240CC="$saved_CC"
8241
8242
8243config_vars="$config_vars
8244test-config-cflags-wno-fortify-source = $libc_cv_test_cflags_wno_fortify_source"
8245
8246
8247
8248saved_CC="$CC"
8249CC="$TEST_CC"
8250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -finput-charset=ascii in testing" >&5
8251printf %s "checking -finput-charset=ascii in testing... " >&6; }
8252if test ${libc_cv_test_cflags_finput_charset_ascii+y}
8253then :
8254 printf %s "(cached) " >&6
8255else case e in #(
8256 e) if { ac_try='${CC-cc} -c -Werror -finput-charset=ascii -xc /dev/null -S -o /dev/null'
8257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8261 test $ac_status = 0; }; }
8262then :
8263 libc_cv_test_cflags_finput_charset_ascii="-finput-charset=ascii"
8264else case e in #(
8265 e) libc_cv_test_cflags_finput_charset_ascii=
8266 ;;
8267esac
8268fi ;;
8269esac
8270fi
8271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cflags_finput_charset_ascii" >&5
8272printf "%s\n" "$libc_cv_test_cflags_finput_charset_ascii" >&6; }
8273
8274CC="$saved_CC"
8275
8276
8277config_vars="$config_vars
8278test-config-cflags-finput-charset-ascii = $libc_cv_test_cflags_finput_charset_ascii"
8279
8280
8281
8282saved_CXX="$CXX"
8283CXX="$TEST_CXX"
8284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CXX -finput-charset=ascii in testing" >&5
8285printf %s "checking $CXX -finput-charset=ascii in testing... " >&6; }
8286if test ${libc_cv_test_cxxflags_finput_charset_ascii+y}
8287then :
8288 printf %s "(cached) " >&6
8289else case e in #(
8290 e) if { ac_try='${CXX-c++} -c -Werror -finput-charset=ascii -xc++ /dev/null -S -o /dev/null'
8291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8295 test $ac_status = 0; }; }
8296then :
8297 libc_cv_test_cxxflags_finput_charset_ascii="-finput-charset=ascii"
8298else case e in #(
8299 e) libc_cv_test_cxxflags_finput_charset_ascii=
8300 ;;
8301esac
8302fi ;;
8303esac
8304fi
8305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cxxflags_finput_charset_ascii" >&5
8306printf "%s\n" "$libc_cv_test_cxxflags_finput_charset_ascii" >&6; }
8307
8308CXX="$saved_CXX"
8309
8310
8311config_vars="$config_vars
8312test-config-cxxflags-finput-charset-ascii = $libc_cv_test_cxxflags_finput_charset_ascii"
8313
8314conftest_code="
8315extern int not_exist (void);
8316
8317inline int make_unique (void)
8318{
8319 /* Static variables in inline functions and classes
8320 generate STB_GNU_UNIQUE symbols. */
8321 static int unique;
8322 return ++unique;
8323}
8324
8325int foo (void)
8326{
8327 return make_unique () + not_exist ();
8328}
8329"
8330
8331
8332cat > conftest.cc <<EOF
8333$conftest_code
8334EOF
8335
8336saved_CXX="$CXX"
8337CXX="$TEST_CXX"
8338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for STB_GNU_UNIQUE in testing" >&5
8339printf %s "checking for STB_GNU_UNIQUE in testing... " >&6; }
8340if test ${libc_cv_test_stb_gnu_unique+y}
8341then :
8342 printf %s "(cached) " >&6
8343else case e in #(
8344 e) if { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc -o conftest 1>&5'
8345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8349 test $ac_status = 0; }; }
8350 then
8351
8352if LC_ALL=C $READELF -sW conftest \
8353 | grep -q "UNIQUE.* _ZZ11make_uniquevE6unique"; then
8354 libc_cv_test_stb_gnu_unique=yes
8355else
8356 libc_cv_test_stb_gnu_unique=no
8357fi
8358
8359 else
8360 libc_cv_test_stb_gnu_unique=no
8361 fi ;;
8362esac
8363fi
8364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_stb_gnu_unique" >&5
8365printf "%s\n" "$libc_cv_test_stb_gnu_unique" >&6; }
8366
8367CXX="$saved_CXX"
8368
8369rm -f conftest*
8370config_vars="$config_vars
8371have-test-stb-gnu-unique = $libc_cv_test_stb_gnu_unique"
8372
8373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
8374printf %s "checking for libgd... " >&6; }
8375if test "$with_gd" != "no"; then
8376 old_CFLAGS="$CFLAGS"
8377 CFLAGS="$CFLAGS $libgd_include"
8378 old_LDFLAGS="$LDFLAGS"
8379 LDFLAGS="$LDFLAGS $libgd_ldflags"
8380 old_LIBS="$LIBS"
8381 LIBS="$LIBS -lgd -lpng -lz -lm"
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383/* end confdefs.h. */
8384#include <gd.h>
8385int
8386main (void)
8387{
8388gdImagePng (0, 0)
8389 ;
8390 return 0;
8391}
8392_ACEOF
8393if ac_fn_c_try_link "$LINENO"
8394then :
8395 LIBGD=yes
8396else case e in #(
8397 e) LIBGD=no ;;
8398esac
8399fi
8400rm -f core conftest.err conftest.$ac_objext conftest.beam \
8401 conftest$ac_exeext conftest.$ac_ext
8402 CFLAGS="$old_CFLAGS"
8403 LDFLAGS="$old_LDFLAGS"
8404 LIBS="$old_LIBS"
8405else
8406 LIBGD=no
8407fi
8408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
8409printf "%s\n" "$LIBGD" >&6; }
8410
8411
8412# SELinux detection
8413if test x$with_selinux = xno ; then
8414 have_selinux=no;
8415else
8416 # See if we have the SELinux library
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
8418printf %s "checking for is_selinux_enabled in -lselinux... " >&6; }
8419if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
8420then :
8421 printf %s "(cached) " >&6
8422else case e in #(
8423 e) ac_check_lib_save_LIBS=$LIBS
8424LIBS="-lselinux $LIBS"
8425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426/* end confdefs.h. */
8427
8428/* Override any GCC internal prototype to avoid an error.
8429 Use char because int might match the return type of a GCC
8430 builtin and then its argument prototype would still apply.
8431 The 'extern "C"' is for builds by C++ compilers;
8432 although this is not generally supported in C code supporting it here
8433 has little cost and some practical benefit (sr 110532). */
8434#ifdef __cplusplus
8435extern "C"
8436#endif
8437char is_selinux_enabled (void);
8438int
8439main (void)
8440{
8441return is_selinux_enabled ();
8442 ;
8443 return 0;
8444}
8445_ACEOF
8446if ac_fn_c_try_link "$LINENO"
8447then :
8448 ac_cv_lib_selinux_is_selinux_enabled=yes
8449else case e in #(
8450 e) ac_cv_lib_selinux_is_selinux_enabled=no ;;
8451esac
8452fi
8453rm -f core conftest.err conftest.$ac_objext conftest.beam \
8454 conftest$ac_exeext conftest.$ac_ext
8455LIBS=$ac_check_lib_save_LIBS ;;
8456esac
8457fi
8458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8459printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
8460if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
8461then :
8462 have_selinux=yes
8463else case e in #(
8464 e) have_selinux=no ;;
8465esac
8466fi
8467
8468 if test x$with_selinux = xyes ; then
8469 if test x$have_selinux = xno ; then
8470 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
8471 fi
8472 fi
8473fi
8474# Check if we're building with SELinux support.
8475if test "x$have_selinux" = xyes; then
8476
8477printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
8478
8479
8480 # See if we have the libaudit library
8481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
8482printf %s "checking for audit_log_user_avc_message in -laudit... " >&6; }
8483if test ${ac_cv_lib_audit_audit_log_user_avc_message+y}
8484then :
8485 printf %s "(cached) " >&6
8486else case e in #(
8487 e) ac_check_lib_save_LIBS=$LIBS
8488LIBS="-laudit $LIBS"
8489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490/* end confdefs.h. */
8491
8492/* Override any GCC internal prototype to avoid an error.
8493 Use char because int might match the return type of a GCC
8494 builtin and then its argument prototype would still apply.
8495 The 'extern "C"' is for builds by C++ compilers;
8496 although this is not generally supported in C code supporting it here
8497 has little cost and some practical benefit (sr 110532). */
8498#ifdef __cplusplus
8499extern "C"
8500#endif
8501char audit_log_user_avc_message (void);
8502int
8503main (void)
8504{
8505return audit_log_user_avc_message ();
8506 ;
8507 return 0;
8508}
8509_ACEOF
8510if ac_fn_c_try_link "$LINENO"
8511then :
8512 ac_cv_lib_audit_audit_log_user_avc_message=yes
8513else case e in #(
8514 e) ac_cv_lib_audit_audit_log_user_avc_message=no ;;
8515esac
8516fi
8517rm -f core conftest.err conftest.$ac_objext conftest.beam \
8518 conftest$ac_exeext conftest.$ac_ext
8519LIBS=$ac_check_lib_save_LIBS ;;
8520esac
8521fi
8522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
8523printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
8524if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes
8525then :
8526 have_libaudit=yes
8527else case e in #(
8528 e) have_libaudit=no ;;
8529esac
8530fi
8531
8532 if test "x$have_libaudit" = xyes; then
8533
8534printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h
8535
8536 fi
8537
8538
8539 # See if we have the libcap library
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
8541printf %s "checking for cap_init in -lcap... " >&6; }
8542if test ${ac_cv_lib_cap_cap_init+y}
8543then :
8544 printf %s "(cached) " >&6
8545else case e in #(
8546 e) ac_check_lib_save_LIBS=$LIBS
8547LIBS="-lcap $LIBS"
8548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549/* end confdefs.h. */
8550
8551/* Override any GCC internal prototype to avoid an error.
8552 Use char because int might match the return type of a GCC
8553 builtin and then its argument prototype would still apply.
8554 The 'extern "C"' is for builds by C++ compilers;
8555 although this is not generally supported in C code supporting it here
8556 has little cost and some practical benefit (sr 110532). */
8557#ifdef __cplusplus
8558extern "C"
8559#endif
8560char cap_init (void);
8561int
8562main (void)
8563{
8564return cap_init ();
8565 ;
8566 return 0;
8567}
8568_ACEOF
8569if ac_fn_c_try_link "$LINENO"
8570then :
8571 ac_cv_lib_cap_cap_init=yes
8572else case e in #(
8573 e) ac_cv_lib_cap_cap_init=no ;;
8574esac
8575fi
8576rm -f core conftest.err conftest.$ac_objext conftest.beam \
8577 conftest$ac_exeext conftest.$ac_ext
8578LIBS=$ac_check_lib_save_LIBS ;;
8579esac
8580fi
8581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
8582printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; }
8583if test "x$ac_cv_lib_cap_cap_init" = xyes
8584then :
8585 have_libcap=yes
8586else case e in #(
8587 e) have_libcap=no ;;
8588esac
8589fi
8590
8591 if test "x$have_libcap" = xyes; then
8592
8593printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
8594
8595 fi
8596
8597fi
8598
8599
8600no_fortify_source="-U_FORTIFY_SOURCE"
8601fortify_source="${no_fortify_source}"
8602
8603
8604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level" >&5
8605printf %s "checking for maximum supported _FORTIFY_SOURCE level... " >&6; }
8606if test ${libc_cv_supported_fortify_source+y}
8607then :
8608 printf %s "(cached) " >&6
8609else case e in #(
8610 e)
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612/* end confdefs.h. */
8613
8614int
8615main (void)
8616{
8617__builtin_dynamic_object_size("", 0)
8618 ;
8619 return 0;
8620}
8621_ACEOF
8622if ac_fn_c_try_link "$LINENO"
8623then :
8624 libc_cv_supported_fortify_source=3
8625else case e in #(
8626 e) libc_cv_supported_fortify_source=2 ;;
8627esac
8628fi
8629rm -f core conftest.err conftest.$ac_objext conftest.beam \
8630 conftest$ac_exeext conftest.$ac_ext
8631 ;;
8632esac
8633fi
8634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5
8635printf "%s\n" "$libc_cv_supported_fortify_source" >&6; }
8636if test "$TEST_CC" = "$CC"; then
8637 libc_cv_test_supported_fortify_source=$libc_cv_supported_fortify_source
8638else
8639
8640saved_CC="$CC"
8641CC="$TEST_CC"
8642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level in testing" >&5
8643printf %s "checking for maximum supported _FORTIFY_SOURCE level in testing... " >&6; }
8644if test ${libc_cv_test_supported_fortify_source+y}
8645then :
8646 printf %s "(cached) " >&6
8647else case e in #(
8648 e)
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650/* end confdefs.h. */
8651
8652int
8653main (void)
8654{
8655__builtin_dynamic_object_size("", 0)
8656 ;
8657 return 0;
8658}
8659_ACEOF
8660if ac_fn_c_try_link "$LINENO"
8661then :
8662 libc_cv_test_supported_fortify_source=3
8663else case e in #(
8664 e) libc_cv_test_supported_fortify_source=2 ;;
8665esac
8666fi
8667rm -f core conftest.err conftest.$ac_objext conftest.beam \
8668 conftest$ac_exeext conftest.$ac_ext
8669 ;;
8670esac
8671fi
8672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_supported_fortify_source" >&5
8673printf "%s\n" "$libc_cv_test_supported_fortify_source" >&6; }
8674
8675CC="$saved_CC"
8676
8677fi
8678
8679
8680
8681case $enable_fortify_source in #(
8682 yes) :
8683 libc_cv_fortify_source=yes enable_fortify_source=$libc_cv_supported_fortify_source ;; #(
8684 1|2) :
8685 libc_cv_fortify_source=yes ;; #(
8686 3) :
8687 if test $libc_cv_supported_fortify_source = 3
8688then :
8689 libc_cv_fortify_source=yes
8690else case e in #(
8691 e) as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 ;;
8692esac
8693fi ;; #(
8694 *) :
8695 libc_cv_fortify_source=no ;;
8696esac
8697
8698if test "$libc_cv_fortify_source" = yes
8699then :
8700 fortify_source="${fortify_source} -D_FORTIFY_SOURCE=${enable_fortify_source}"
8701
8702fi
8703
8704
8705
8706
8707
8708config_vars="$config_vars
8709supported-fortify = $libc_cv_supported_fortify_source"
8710
8711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712/* end confdefs.h. */
8713
8714int
8715main (void)
8716{
8717
8718#ifndef _FILE_OFFSET_BITS
8719# error _FILE_OFFSET_BITS not defined
8720#endif
8721 ;
8722 return 0;
8723}
8724_ACEOF
8725if ac_fn_c_try_cpp "$LINENO"
8726then :
8727 libc_cv_compiler_default_file_offset_bits=yes
8728else case e in #(
8729 e) libc_cv_compiler_default_file_offset_bits=no ;;
8730esac
8731fi
8732rm -f conftest.err conftest.i conftest.$ac_ext
8733if test "$libc_cv_compiler_default_file_offset_bits" = yes
8734then :
8735 no_file_offset_bits_source="-U_FILE_OFFSET_BITS"
8736fi
8737
8738config_vars="$config_vars
8739no-file-offset-bits-source = $no_file_offset_bits_source"
8740
8741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742/* end confdefs.h. */
8743
8744int
8745main (void)
8746{
8747
8748#ifndef _TIME_BITS
8749# error _TIME_BITS not defined
8750#endif
8751 ;
8752 return 0;
8753}
8754_ACEOF
8755if ac_fn_c_try_cpp "$LINENO"
8756then :
8757 libc_cv_compiler_default_time_bits=yes
8758else case e in #(
8759 e) libc_cv_compiler_default_time_bits=no ;;
8760esac
8761fi
8762rm -f conftest.err conftest.i conftest.$ac_ext
8763if test "$libc_cv_compiler_default_time_bits" = yes
8764then :
8765 no_time_bits_source="-U_TIME_BITS"
8766fi
8767
8768config_vars="$config_vars
8769no-time-bits-source = $no_time_bits_source"
8770
8771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
8772printf %s "checking whether the assembler requires one version per symbol... " >&6; }
8773if test ${libc_cv_symver_needs_alias+y}
8774then :
8775 printf %s "(cached) " >&6
8776else case e in #(
8777 e) cat > conftest.s <<EOF
8778 .text
8779testfunc:
8780 .globl testfunc
8781 .symver testfunc, testfunc1@VERSION1
8782 .symver testfunc, testfunc1@VERSION2
8783EOF
8784 libc_cv_symver_needs_alias=no
8785 if ${CC-cc} $ASFLAGS -c conftest.s 2>&5; then
8786 libc_cv_symver_needs_alias=no
8787 else
8788 libc_cv_symver_needs_alias=yes
8789 fi
8790 rm conftest.*
8791 ;;
8792esac
8793fi
8794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
8795printf "%s\n" "$libc_cv_symver_needs_alias" >&6; }
8796if test "$libc_cv_symver_needs_alias" = yes; then
8797 printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
8798
8799fi
8800
8801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
8802printf %s "checking for __builtin_trap with no external dependencies... " >&6; }
8803if test ${libc_cv_builtin_trap+y}
8804then :
8805 printf %s "(cached) " >&6
8806else case e in #(
8807 e) libc_cv_builtin_trap=no
8808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809/* end confdefs.h. */
8810
8811int
8812main (void)
8813{
8814__builtin_trap ()
8815 ;
8816 return 0;
8817}
8818_ACEOF
8819if ac_fn_c_try_compile "$LINENO"
8820then :
8821
8822libc_undefs=`$NM -u conftest.o |
8823 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
8824 2>&5` || {
8825 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
8826}
8827echo >&5 "libc_undefs='$libc_undefs'"
8828if test -z "$libc_undefs"; then
8829 libc_cv_builtin_trap=yes
8830fi
8831fi
8832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8833esac
8834fi
8835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
8836printf "%s\n" "$libc_cv_builtin_trap" >&6; }
8837if test $libc_cv_builtin_trap = yes; then
8838 printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
8839
8840fi
8841
8842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __attribute__ ((aligned (65536)))" >&5
8843printf %s "checking whether the compiler supports __attribute__ ((aligned (65536)))... " >&6; }
8844if test ${libc_cv_aligned_65536+y}
8845then :
8846 printf %s "(cached) " >&6
8847else case e in #(
8848 e)
8849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850/* end confdefs.h. */
8851
8852char bss0xb5dce8 __attribute__ ((aligned (65536)));
8853
8854_ACEOF
8855if ac_fn_c_try_compile "$LINENO"
8856then :
8857 libc_cv_aligned_65536=yes
8858else case e in #(
8859 e) libc_cv_aligned_65536=no ;;
8860esac
8861fi
8862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8863 ;;
8864esac
8865fi
8866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aligned_65536" >&5
8867printf "%s\n" "$libc_cv_aligned_65536" >&6; }
8868config_vars="$config_vars
8869aligned-65536 = $libc_cv_aligned_65536"
8870
8871ac_ext=cpp
8872ac_cpp='$CXXCPP $CPPFLAGS'
8873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8876
8877
8878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
8879printf %s "checking whether the C++ compiler supports thread_local... " >&6; }
8880if test ${libc_cv_cxx_thread_local+y}
8881then :
8882 printf %s "(cached) " >&6
8883else case e in #(
8884 e)
8885old_CXXFLAGS="$CXXFLAGS"
8886CXXFLAGS="$CXXFLAGS -std=gnu++11"
8887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888/* end confdefs.h. */
8889
8890#include <thread>
8891
8892// Compiler support.
8893struct S
8894{
8895 S ();
8896 ~S ();
8897};
8898thread_local S s;
8899S * get () { return &s; }
8900
8901// libstdc++ support.
8902#ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
8903#error __cxa_thread_atexit_impl not supported
8904#endif
8905
8906_ACEOF
8907if ac_fn_cxx_try_compile "$LINENO"
8908then :
8909 libc_cv_cxx_thread_local=yes
8910else case e in #(
8911 e) libc_cv_cxx_thread_local=no ;;
8912esac
8913fi
8914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8915CXXFLAGS="$old_CXXFLAGS"
8916 ;;
8917esac
8918fi
8919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
8920printf "%s\n" "$libc_cv_cxx_thread_local" >&6; }
8921
8922
8923ac_ext=c
8924ac_cpp='$CPP $CPPFLAGS'
8925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8927ac_compiler_gnu=$ac_cv_c_compiler_gnu
8928
8929
8930### End of automated tests.
8931### Now run sysdeps configure fragments.
8932
8933# They also can set these variables.
8934use_ldconfig=no
8935ldd_rewrite_script=no
8936libc_cv_sysconfdir=$sysconfdir
8937libc_cv_localstatedir=$localstatedir
8938libc_cv_gcc_unwind_find_fde=no
8939libc_cv_idn=no
8940pthread_in_libc=yes
8941
8942# Iterate over all the sysdep directories we will use, running their
8943# configure fragments.
8944for dir in $sysnames; do
8945 case $dir in
8946 /*) dest=$dir ;;
8947 *) dest=$srcdir/$dir ;;
8948 esac
8949 if test -r $dest/configure; then
8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
8951printf "%s\n" "running configure fragment for $dir" >&6; }
8952 . $dest/configure
8953 fi
8954done
8955
8956if test x"$build_mathvec" = xnotset; then
8957 build_mathvec=no
8958fi
8959config_vars="$config_vars
8960build-mathvec = $build_mathvec"
8961
8962
8963
8964
8965if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8966 printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
8967
8968fi
8969
8970
8971# A sysdeps configure fragment can reset this if IFUNC is not actually
8972# usable even though the assembler knows how to generate the symbol type.
8973if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
8974 printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h
8975
8976fi
8977config_vars="$config_vars
8978have-ifunc = $libc_cv_ld_gnu_indirect_function"
8979
8980if test x"$libc_cv_gcc_indirect_function" = xyes; then
8981 printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h
8982
8983fi
8984config_vars="$config_vars
8985have-gcc-ifunc = $libc_cv_gcc_indirect_function"
8986
8987# This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
8988# configure fragment can override the value to prevent this AC_DEFINE.
8989
8990if test "x$use_nscd" != xno; then
8991 printf "%s\n" "#define USE_NSCD 1" >>confdefs.h
8992
8993fi
8994if test "x$build_nscd" = xdefault; then
8995 build_nscd=$use_nscd
8996fi
8997
8998
8999
9000
9001
9002
9003
9004
9005if test x$use_ldconfig = xyes; then
9006 printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h
9007
9008fi
9009
9010
9011
9012
9013
9014
9015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
9016printf %s "checking whether -fPIC is default... " >&6; }
9017if test ${libc_cv_pic_default+y}
9018then :
9019 printf %s "(cached) " >&6
9020else case e in #(
9021 e) libc_cv_pic_default=yes
9022cat > conftest.c <<EOF
9023#if defined __PIC__ || defined __pic__ || defined PIC || defined pic
9024# error PIC is default.
9025#endif
9026EOF
9027if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
9028 libc_cv_pic_default=no
9029fi
9030rm -f conftest.* ;;
9031esac
9032fi
9033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
9034printf "%s\n" "$libc_cv_pic_default" >&6; }
9035config_vars="$config_vars
9036build-pic-default = $libc_cv_pic_default"
9037
9038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
9039printf %s "checking whether -fPIE is default... " >&6; }
9040if test ${libc_cv_cc_pie_default+y}
9041then :
9042 printf %s "(cached) " >&6
9043else case e in #(
9044 e) libc_cv_cc_pie_default=yes
9045cat > conftest.c <<EOF
9046#if defined __PIE__ || defined __pie__ || defined PIE || defined pie
9047# error PIE is default.
9048#endif
9049EOF
9050if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
9051 libc_cv_cc_pie_default=no
9052fi
9053rm -f conftest.* ;;
9054esac
9055fi
9056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
9057printf "%s\n" "$libc_cv_cc_pie_default" >&6; }
9058config_vars="$config_vars
9059cc-pie-default = $libc_cv_cc_pie_default"
9060
9061# Get Position Dependent Executable (PDE) load address to be used to
9062# load static Position Independent Executable (PIE) at a known working
9063# non-zero load address. This is only used by glibc tests to verify
9064# that PIE and static PIE with non-zero load address work correctly.
9065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PDE load address" >&5
9066printf %s "checking PDE load address... " >&6; }
9067if test ${libc_cv_pde_load_address+y}
9068then :
9069 printf %s "(cached) " >&6
9070else case e in #(
9071 e) cat > conftest.S <<EOF
9072.globl _start
9073_start:
9074.globl __start
9075__start:
9076 .byte 0
9077EOF
9078if test $libc_cv_cc_pie_default = yes; then
9079 pde_ld_flags="-no-pie"
9080fi
9081if ${CC-cc} $pde_ld_flags $CFLAGS $CPPFLAGS $LDFLAGS \
9082 -nostartfiles -nostdlib $no_ssp \
9083 -o conftest conftest.S 1>&5 2>&5; then
9084 # Get the load address of the first PT_LOAD segment.
9085 libc_cv_pde_load_address=$(LC_ALL=C $READELF -Wl conftest \
9086 | $AWK '/LOAD/ { print $3; exit 0; }')
9087else
9088 as_fn_error $? "${CC-cc} can not create PDE" "$LINENO" 5
9089fi
9090rm -f conftest* ;;
9091esac
9092fi
9093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pde_load_address" >&5
9094printf "%s\n" "$libc_cv_pde_load_address" >&6; }
9095config_vars="$config_vars
9096pde-load-address = $libc_cv_pde_load_address"
9097
9098# Get the linker command-line option to load executable at a non-zero
9099# load address. This is only used by glibc tests to verify that PIE and
9100# static PIE with non-zero load address work correctly.
9101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -Ttext-segment=$libc_cv_pde_load_address" >&5
9102printf %s "checking for linker that supports -Ttext-segment=$libc_cv_pde_load_address... " >&6; }
9103libc_linker_feature=no
9104cat > conftest.c <<EOF
9105int _start (void) { return 42; }
9106EOF
9107if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
9108 -Wl,-Ttext-segment=$libc_cv_pde_load_address -nostdlib -nostartfiles
9109 -fPIC -shared -o conftest.so conftest.c
9110 1>&5'
9111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9112 (eval $ac_try) 2>&5
9113 ac_status=$?
9114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9115 test $ac_status = 0; }; }
9116then
9117 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-Ttext-segment=$libc_cv_pde_load_address -nostdlib \
9118 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
9119 | grep "warning: -Ttext-segment=$libc_cv_pde_load_address ignored" > /dev/null 2>&1; then
9120 true
9121 else
9122 libc_linker_feature=yes
9123 fi
9124fi
9125rm -f conftest*
9126if test $libc_linker_feature = yes; then
9127 libc_cv_load_address_ldflag=-Wl,-Ttext-segment
9128else
9129 libc_cv_load_address_ldflag=
9130fi
9131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
9132printf "%s\n" "$libc_linker_feature" >&6; }
9133config_vars="$config_vars
9134load-address-ldflag = $libc_cv_load_address_ldflag"
9135
9136# Check if compilers support GCS in branch protection:
9137
9138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports -mbranch-protection=gcs" >&5
9139printf %s "checking if compiler supports -mbranch-protection=gcs... " >&6; }
9140if test ${libc_cv_cc_gcs+y}
9141then :
9142 printf %s "(cached) " >&6
9143else case e in #(
9144 e) if { ac_try='${CC-cc} -Werror -mbranch-protection=gcs -xc /dev/null -S -o /dev/null'
9145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9146 (eval $ac_try) 2>&5
9147 ac_status=$?
9148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9149 test $ac_status = 0; }; }
9150then :
9151 libc_cv_cc_gcs=yes
9152else case e in #(
9153 e) libc_cv_cc_gcs=no ;;
9154esac
9155fi ;;
9156esac
9157fi
9158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_gcs" >&5
9159printf "%s\n" "$libc_cv_cc_gcs" >&6; }
9160if test "$TEST_CC" = "$CC"; then
9161 libc_cv_test_cc_gcs=$libc_cv_cc_gcs
9162else
9163
9164saved_CC="$CC"
9165CC="$TEST_CC"
9166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports -mbranch-protection=gcs in testing" >&5
9167printf %s "checking if compiler supports -mbranch-protection=gcs in testing... " >&6; }
9168if test ${libc_cv_test_cc_gcs+y}
9169then :
9170 printf %s "(cached) " >&6
9171else case e in #(
9172 e) if { ac_try='${CC-cc} -Werror -mbranch-protection=gcs -xc /dev/null -S -o /dev/null'
9173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9177 test $ac_status = 0; }; }
9178then :
9179 libc_cv_test_cc_gcs=yes
9180else case e in #(
9181 e) libc_cv_test_cc_gcs=no ;;
9182esac
9183fi ;;
9184esac
9185fi
9186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_gcs" >&5
9187printf "%s\n" "$libc_cv_test_cc_gcs" >&6; }
9188
9189CC="$saved_CC"
9190
9191fi
9192
9193config_vars="$config_vars
9194have-cc-gcs = $libc_cv_cc_gcs"
9195config_vars="$config_vars
9196have-test-cc-gcs = $libc_cv_test_cc_gcs"
9197
9198# Check if linker supports GCS marking
9199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z gcs=always" >&5
9200printf %s "checking for linker that supports -z gcs=always... " >&6; }
9201libc_linker_feature=no
9202cat > conftest.c <<EOF
9203int _start (void) { return 42; }
9204EOF
9205if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
9206 -Wl,-z,gcs=always -nostdlib -nostartfiles
9207 -fPIC -shared -o conftest.so conftest.c
9208 1>&5'
9209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9213 test $ac_status = 0; }; }
9214then
9215 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,gcs=always -nostdlib \
9216 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
9217 | grep "warning: -z gcs=always ignored" > /dev/null 2>&1; then
9218 true
9219 else
9220 libc_linker_feature=yes
9221 fi
9222fi
9223rm -f conftest*
9224if test $libc_linker_feature = yes; then
9225 libc_cv_ld_gcs=yes
9226else
9227 libc_cv_ld_gcs=no
9228fi
9229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
9230printf "%s\n" "$libc_linker_feature" >&6; }
9231config_vars="$config_vars
9232have-ld-gcs = $libc_cv_ld_gcs"
9233
9234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
9235printf %s "checking if we can build programs as PIE... " >&6; }
9236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h. */
9238#ifdef PIE_UNSUPPORTED
9239# error PIE is not supported
9240#endif
9241_ACEOF
9242if ac_fn_c_try_compile "$LINENO"
9243then :
9244 libc_cv_pie_supported=yes
9245else case e in #(
9246 e) libc_cv_pie_supported=no ;;
9247esac
9248fi
9249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
9251printf "%s\n" "$libc_cv_pie_supported" >&6; }
9252# Disable build-pie-default if target does not support it or glibc is
9253# configured with --disable-default-pie.
9254if test "x$default_pie" = xno; then
9255 build_pie_default=no
9256else
9257 build_pie_default=$libc_cv_pie_supported
9258fi
9259config_vars="$config_vars
9260build-pie-default = $build_pie_default"
9261
9262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
9263printf %s "checking if we can build static PIE programs... " >&6; }
9264libc_cv_static_pie_supported=$libc_cv_pie_supported
9265if test "x$libc_cv_pie_supported" != xno \
9266 -a "$libc_cv_no_dynamic_linker" = yes; then
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268/* end confdefs.h. */
9269#ifndef SUPPORT_STATIC_PIE
9270# error static PIE is not supported
9271#endif
9272_ACEOF
9273if ac_fn_c_try_compile "$LINENO"
9274then :
9275 libc_cv_static_pie_supported=yes
9276else case e in #(
9277 e) libc_cv_static_pie_supported=no ;;
9278esac
9279fi
9280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9281fi
9282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
9283printf "%s\n" "$libc_cv_static_pie_supported" >&6; }
9284
9285# Enable static-pie only if it is available and glibc isn't configured
9286# with --disable-default-pie.
9287if test "x$default_pie" = xno; then
9288 libc_cv_static_pie=no
9289else
9290 libc_cv_static_pie=$libc_cv_static_pie_supported
9291fi
9292if test "$libc_cv_static_pie" = "yes"; then
9293 printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h
9294
9295fi
9296config_vars="$config_vars
9297enable-static-pie = $libc_cv_static_pie"
9298
9299# Check if we can link support functionality against libgcc_s.
9300# Must not be used for linking installed binaries, to produce the
9301# same binaries for bootstrapped and bootstrapping builds (the latter
9302# with a GCC that does not build libgcc_s).
9303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC can link against -lgcc_s" >&5
9304printf %s "checking whether $CC can link against -lgcc_s... " >&6; }
9305if test ${libc_cv_have_libgcc_s+y}
9306then :
9307 printf %s "(cached) " >&6
9308else case e in #(
9309 e) old_LIBS="$LIBS"
9310 LIBS="$LIBS -lgcc_s"
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312/* end confdefs.h. */
9313
9314int
9315main (void)
9316{
9317
9318 ;
9319 return 0;
9320}
9321_ACEOF
9322if ac_fn_c_try_link "$LINENO"
9323then :
9324 libc_cv_have_libgcc_s=yes
9325else case e in #(
9326 e) libc_cv_have_libgcc_s=no ;;
9327esac
9328fi
9329rm -f core conftest.err conftest.$ac_objext conftest.beam \
9330 conftest$ac_exeext conftest.$ac_ext
9331 LIBS="$old_LIBS" ;;
9332esac
9333fi
9334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_libgcc_s" >&5
9335printf "%s\n" "$libc_cv_have_libgcc_s" >&6; }
9336config_vars="$config_vars
9337have-libgcc_s = $libc_cv_have_libgcc_s"
9338
9339# Support configure.ac under sysdeps.
9340
9341
9342
9343
9344# Set the `multidir' variable by grabbing the variable from the compiler.
9345# We do it once and save the result in a generated makefile.
9346libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
9357RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
9358
9359
9360
9361if test "$pthread_in_libc" = yes; then
9362 printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h
9363
9364fi
9365
9366
9367ac_config_files="$ac_config_files config.make Makefile"
9368
9369ac_config_commands="$ac_config_commands default"
9370
9371cat >confcache <<\_ACEOF
9372# This file is a shell script that caches the results of configure
9373# tests run on this system so they can be shared between configure
9374# scripts and configure runs, see configure's option --config-cache.
9375# It is not useful on other systems. If it contains results you don't
9376# want to keep, you may remove or edit it.
9377#
9378# config.status only pays attention to the cache file if you give it
9379# the --recheck option to rerun configure.
9380#
9381# 'ac_cv_env_foo' variables (set or unset) will be overridden when
9382# loading this file, other *unset* 'ac_cv_foo' will be assigned the
9383# following values.
9384
9385_ACEOF
9386
9387# The following way of writing the cache mishandles newlines in values,
9388# but we know of no workaround that is simple, portable, and efficient.
9389# So, we kill variables containing newlines.
9390# Ultrix sh set writes to stderr and can't be redirected directly,
9391# and sets the high bit in the cache file unless we assign to the vars.
9392(
9393 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9394 eval ac_val=\$$ac_var
9395 case $ac_val in #(
9396 *${as_nl}*)
9397 case $ac_var in #(
9398 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9399printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9400 esac
9401 case $ac_var in #(
9402 _ | IFS | as_nl) ;; #(
9403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9404 *) { eval $ac_var=; unset $ac_var;} ;;
9405 esac ;;
9406 esac
9407 done
9408
9409 (set) 2>&1 |
9410 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9411 *${as_nl}ac_space=\ *)
9412 # 'set' does not quote correctly, so add quotes: double-quote
9413 # substitution turns \\\\ into \\, and sed turns \\ into \.
9414 sed -n \
9415 "s/'/'\\\\''/g;
9416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9417 ;; #(
9418 *)
9419 # 'set' quotes correctly as required by POSIX, so do not add quotes.
9420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9421 ;;
9422 esac |
9423 sort
9424) |
9425 sed '
9426 /^ac_cv_env_/b end
9427 t clear
9428 :clear
9429 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9430 t end
9431 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9432 :end' >>confcache
9433if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9434 if test -w "$cache_file"; then
9435 if test "x$cache_file" != "x/dev/null"; then
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9437printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9438 if test ! -f "$cache_file" || test -h "$cache_file"; then
9439 cat confcache >"$cache_file"
9440 else
9441 case $cache_file in #(
9442 */* | ?:*)
9443 mv -f confcache "$cache_file"$$ &&
9444 mv -f "$cache_file"$$ "$cache_file" ;; #(
9445 *)
9446 mv -f confcache "$cache_file" ;;
9447 esac
9448 fi
9449 fi
9450 else
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9452printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9453 fi
9454fi
9455rm -f confcache
9456
9457test "x$prefix" = xNONE && prefix=$ac_default_prefix
9458# Let make expand exec_prefix.
9459test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9460
9461DEFS=-DHAVE_CONFIG_H
9462
9463ac_libobjs=
9464ac_ltlibobjs=
9465U=
9466for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9467 # 1. Remove the extension, and $U if already installed.
9468 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9469 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9470 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9471 # will be set to the directory where LIBOBJS objects are built.
9472 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9473 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9474done
9475LIBOBJS=$ac_libobjs
9476
9477LTLIBOBJS=$ac_ltlibobjs
9478
9479
9480
9481: "${CONFIG_STATUS=./config.status}"
9482ac_write_fail=0
9483ac_clean_files_save=$ac_clean_files
9484ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9486printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9487as_write_fail=0
9488cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9489#! $SHELL
9490# Generated by $as_me.
9491# Run this file to recreate the current configuration.
9492# Compiler output produced by configure, useful for debugging
9493# configure, is in config.log if it exists.
9494
9495debug=false
9496ac_cs_recheck=false
9497ac_cs_silent=false
9498
9499SHELL=\${CONFIG_SHELL-$SHELL}
9500export SHELL
9501_ASEOF
9502cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9503## -------------------- ##
9504## M4sh Initialization. ##
9505## -------------------- ##
9506
9507# Be more Bourne compatible
9508DUALCASE=1; export DUALCASE # for MKS sh
9509if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9510then :
9511 emulate sh
9512 NULLCMD=:
9513 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9514 # is contrary to our usage. Disable this feature.
9515 alias -g '${1+"$@"}'='"$@"'
9516 setopt NO_GLOB_SUBST
9517else case e in #(
9518 e) case `(set -o) 2>/dev/null` in #(
9519 *posix*) :
9520 set -o posix ;; #(
9521 *) :
9522 ;;
9523esac ;;
9524esac
9525fi
9526
9527
9528
9529# Reset variables that may have inherited troublesome values from
9530# the environment.
9531
9532# IFS needs to be set, to space, tab, and newline, in precisely that order.
9533# (If _AS_PATH_WALK were called with IFS unset, it would have the
9534# side effect of setting IFS to empty, thus disabling word splitting.)
9535# Quoting is to prevent editors from complaining about space-tab.
9536as_nl='
9537'
9538export as_nl
9539IFS=" "" $as_nl"
9540
9541PS1='$ '
9542PS2='> '
9543PS4='+ '
9544
9545# Ensure predictable behavior from utilities with locale-dependent output.
9546LC_ALL=C
9547export LC_ALL
9548LANGUAGE=C
9549export LANGUAGE
9550
9551# We cannot yet rely on "unset" to work, but we need these variables
9552# to be unset--not just set to an empty or harmless value--now, to
9553# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9554# also avoids known problems related to "unset" and subshell syntax
9555# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9556for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
9557do eval test \${$as_var+y} \
9558 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9559done
9560
9561# Ensure that fds 0, 1, and 2 are open.
9562if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
9563if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
9564if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
9565
9566# The user is always right.
9567if ${PATH_SEPARATOR+false} :; then
9568 PATH_SEPARATOR=:
9569 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9570 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9571 PATH_SEPARATOR=';'
9572 }
9573fi
9574
9575
9576# Find who we are. Look in the path if we contain no directory separator.
9577as_myself=
9578case $0 in #((
9579 *[\\/]* ) as_myself=$0 ;;
9580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581for as_dir in $PATH
9582do
9583 IFS=$as_save_IFS
9584 case $as_dir in #(((
9585 '') as_dir=./ ;;
9586 */) ;;
9587 *) as_dir=$as_dir/ ;;
9588 esac
9589 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9590 done
9591IFS=$as_save_IFS
9592
9593 ;;
9594esac
9595# We did not find ourselves, most probably we were run as 'sh COMMAND'
9596# in which case we are not to be found in the path.
9597if test "x$as_myself" = x; then
9598 as_myself=$0
9599fi
9600if test ! -f "$as_myself"; then
9601 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9602 exit 1
9603fi
9604
9605
9606
9607# as_fn_error STATUS ERROR [LINENO LOG_FD]
9608# ----------------------------------------
9609# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9610# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9611# script with STATUS, using 1 if that was 0.
9612as_fn_error ()
9613{
9614 as_status=$1; test $as_status -eq 0 && as_status=1
9615 if test "$4"; then
9616 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9618 fi
9619 printf "%s\n" "$as_me: error: $2" >&2
9620 as_fn_exit $as_status
9621} # as_fn_error
9622
9623
9624# as_fn_set_status STATUS
9625# -----------------------
9626# Set $? to STATUS, without forking.
9627as_fn_set_status ()
9628{
9629 return $1
9630} # as_fn_set_status
9631
9632# as_fn_exit STATUS
9633# -----------------
9634# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9635as_fn_exit ()
9636{
9637 set +e
9638 as_fn_set_status $1
9639 exit $1
9640} # as_fn_exit
9641
9642# as_fn_unset VAR
9643# ---------------
9644# Portably unset VAR.
9645as_fn_unset ()
9646{
9647 { eval $1=; unset $1;}
9648}
9649as_unset=as_fn_unset
9650
9651# as_fn_append VAR VALUE
9652# ----------------------
9653# Append the text in VALUE to the end of the definition contained in VAR. Take
9654# advantage of any shell optimizations that allow amortized linear growth over
9655# repeated appends, instead of the typical quadratic growth present in naive
9656# implementations.
9657if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9658then :
9659 eval 'as_fn_append ()
9660 {
9661 eval $1+=\$2
9662 }'
9663else case e in #(
9664 e) as_fn_append ()
9665 {
9666 eval $1=\$$1\$2
9667 } ;;
9668esac
9669fi # as_fn_append
9670
9671# as_fn_arith ARG...
9672# ------------------
9673# Perform arithmetic evaluation on the ARGs, and store the result in the
9674# global $as_val. Take advantage of shells that can avoid forks. The arguments
9675# must be portable across $(()) and expr.
9676if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9677then :
9678 eval 'as_fn_arith ()
9679 {
9680 as_val=$(( $* ))
9681 }'
9682else case e in #(
9683 e) as_fn_arith ()
9684 {
9685 as_val=`expr "$@" || test $? -eq 1`
9686 } ;;
9687esac
9688fi # as_fn_arith
9689
9690
9691if expr a : '\(a\)' >/dev/null 2>&1 &&
9692 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9693 as_expr=expr
9694else
9695 as_expr=false
9696fi
9697
9698if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9699 as_basename=basename
9700else
9701 as_basename=false
9702fi
9703
9704if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9705 as_dirname=dirname
9706else
9707 as_dirname=false
9708fi
9709
9710as_me=`$as_basename -- "$0" ||
9711$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9712 X"$0" : 'X\(//\)$' \| \
9713 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9714printf "%s\n" X/"$0" |
9715 sed '/^.*\/\([^/][^/]*\)\/*$/{
9716 s//\1/
9717 q
9718 }
9719 /^X\/\(\/\/\)$/{
9720 s//\1/
9721 q
9722 }
9723 /^X\/\(\/\).*/{
9724 s//\1/
9725 q
9726 }
9727 s/.*/./; q'`
9728
9729# Avoid depending upon Character Ranges.
9730as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9731as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9732as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9733as_cr_digits='0123456789'
9734as_cr_alnum=$as_cr_Letters$as_cr_digits
9735
9736
9737# Determine whether it's possible to make 'echo' print without a newline.
9738# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9739# for compatibility with existing Makefiles.
9740ECHO_C= ECHO_N= ECHO_T=
9741case `echo -n x` in #(((((
9742-n*)
9743 case `echo 'xy\c'` in
9744 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9745 xy) ECHO_C='\c';;
9746 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9747 ECHO_T=' ';;
9748 esac;;
9749*)
9750 ECHO_N='-n';;
9751esac
9752
9753# For backward compatibility with old third-party macros, we provide
9754# the shell variables $as_echo and $as_echo_n. New code should use
9755# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9756as_echo='printf %s\n'
9757as_echo_n='printf %s'
9758
9759rm -f conf$$ conf$$.exe conf$$.file
9760if test -d conf$$.dir; then
9761 rm -f conf$$.dir/conf$$.file
9762else
9763 rm -f conf$$.dir
9764 mkdir conf$$.dir 2>/dev/null
9765fi
9766if (echo >conf$$.file) 2>/dev/null; then
9767 if ln -s conf$$.file conf$$ 2>/dev/null; then
9768 as_ln_s='ln -s'
9769 # ... but there are two gotchas:
9770 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
9771 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
9772 # In both cases, we have to default to 'cp -pR'.
9773 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9774 as_ln_s='cp -pR'
9775 elif ln conf$$.file conf$$ 2>/dev/null; then
9776 as_ln_s=ln
9777 else
9778 as_ln_s='cp -pR'
9779 fi
9780else
9781 as_ln_s='cp -pR'
9782fi
9783rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9784rmdir conf$$.dir 2>/dev/null
9785
9786
9787# as_fn_mkdir_p
9788# -------------
9789# Create "$as_dir" as a directory, including parents if necessary.
9790as_fn_mkdir_p ()
9791{
9792
9793 case $as_dir in #(
9794 -*) as_dir=./$as_dir;;
9795 esac
9796 test -d "$as_dir" || eval $as_mkdir_p || {
9797 as_dirs=
9798 while :; do
9799 case $as_dir in #(
9800 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9801 *) as_qdir=$as_dir;;
9802 esac
9803 as_dirs="'$as_qdir' $as_dirs"
9804 as_dir=`$as_dirname -- "$as_dir" ||
9805$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9806 X"$as_dir" : 'X\(//\)[^/]' \| \
9807 X"$as_dir" : 'X\(//\)$' \| \
9808 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9809printf "%s\n" X"$as_dir" |
9810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9811 s//\1/
9812 q
9813 }
9814 /^X\(\/\/\)[^/].*/{
9815 s//\1/
9816 q
9817 }
9818 /^X\(\/\/\)$/{
9819 s//\1/
9820 q
9821 }
9822 /^X\(\/\).*/{
9823 s//\1/
9824 q
9825 }
9826 s/.*/./; q'`
9827 test -d "$as_dir" && break
9828 done
9829 test -z "$as_dirs" || eval "mkdir $as_dirs"
9830 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9831
9832
9833} # as_fn_mkdir_p
9834if mkdir -p . 2>/dev/null; then
9835 as_mkdir_p='mkdir -p "$as_dir"'
9836else
9837 test -d ./-p && rmdir ./-p
9838 as_mkdir_p=false
9839fi
9840
9841
9842# as_fn_executable_p FILE
9843# -----------------------
9844# Test if FILE is an executable regular file.
9845as_fn_executable_p ()
9846{
9847 test -f "$1" && test -x "$1"
9848} # as_fn_executable_p
9849as_test_x='test -x'
9850as_executable_p=as_fn_executable_p
9851
9852# Sed expression to map a string onto a valid CPP name.
9853as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9854as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
9855
9856# Sed expression to map a string onto a valid variable name.
9857as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9858as_tr_sh="eval sed '$as_sed_sh'" # deprecated
9859
9860
9861exec 6>&1
9862## ----------------------------------- ##
9863## Main body of $CONFIG_STATUS script. ##
9864## ----------------------------------- ##
9865_ASEOF
9866test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9867
9868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9869# Save the log message, to keep $0 and so on meaningful, and to
9870# report actual input values of CONFIG_FILES etc. instead of their
9871# values after options handling.
9872ac_log="
9873This file was extended by GNU C Library $as_me (see version.h), which was
9874generated by GNU Autoconf 2.72. Invocation command line was
9875
9876 CONFIG_FILES = $CONFIG_FILES
9877 CONFIG_HEADERS = $CONFIG_HEADERS
9878 CONFIG_LINKS = $CONFIG_LINKS
9879 CONFIG_COMMANDS = $CONFIG_COMMANDS
9880 $ $0 $@
9881
9882on `(hostname || uname -n) 2>/dev/null | sed 1q`
9883"
9884
9885_ACEOF
9886
9887case $ac_config_files in *"
9888"*) set x $ac_config_files; shift; ac_config_files=$*;;
9889esac
9890
9891case $ac_config_headers in *"
9892"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9893esac
9894
9895
9896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9897# Files that config.status was made for.
9898config_files="$ac_config_files"
9899config_headers="$ac_config_headers"
9900config_commands="$ac_config_commands"
9901
9902_ACEOF
9903
9904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9905ac_cs_usage="\
9906'$as_me' instantiates files and other configuration actions
9907from templates according to the current configuration. Unless the files
9908and actions are specified as TAGs, all are instantiated by default.
9909
9910Usage: $0 [OPTION]... [TAG]...
9911
9912 -h, --help print this help, then exit
9913 -V, --version print version number and configuration settings, then exit
9914 --config print configuration, then exit
9915 -q, --quiet, --silent
9916 do not print progress messages
9917 -d, --debug don't remove temporary files
9918 --recheck update $as_me by reconfiguring in the same conditions
9919 --file=FILE[:TEMPLATE]
9920 instantiate the configuration file FILE
9921 --header=FILE[:TEMPLATE]
9922 instantiate the configuration header FILE
9923
9924Configuration files:
9925$config_files
9926
9927Configuration headers:
9928$config_headers
9929
9930Configuration commands:
9931$config_commands
9932
9933Report bugs to <https://sourceware.org/bugzilla/>.
9934GNU C Library home page: <https://www.gnu.org/software/glibc/>.
9935General help using GNU software: <https://www.gnu.org/gethelp/>."
9936
9937_ACEOF
9938ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9939ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9941ac_cs_config='$ac_cs_config_escaped'
9942ac_cs_version="\\
9943GNU C Library config.status (see version.h)
9944configured by $0, generated by GNU Autoconf 2.72,
9945 with options \\"\$ac_cs_config\\"
9946
9947Copyright (C) 2023 Free Software Foundation, Inc.
9948This config.status script is free software; the Free Software Foundation
9949gives unlimited permission to copy, distribute and modify it."
9950
9951ac_pwd='$ac_pwd'
9952srcdir='$srcdir'
9953INSTALL='$INSTALL'
9954test -n "\$AWK" || AWK=awk
9955_ACEOF
9956
9957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9958# The default lists apply if the user does not specify any file.
9959ac_need_defaults=:
9960while test $# != 0
9961do
9962 case $1 in
9963 --*=?*)
9964 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9965 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9966 ac_shift=:
9967 ;;
9968 --*=)
9969 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9970 ac_optarg=
9971 ac_shift=:
9972 ;;
9973 *)
9974 ac_option=$1
9975 ac_optarg=$2
9976 ac_shift=shift
9977 ;;
9978 esac
9979
9980 case $ac_option in
9981 # Handling of the options.
9982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9983 ac_cs_recheck=: ;;
9984 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9985 printf "%s\n" "$ac_cs_version"; exit ;;
9986 --config | --confi | --conf | --con | --co | --c )
9987 printf "%s\n" "$ac_cs_config"; exit ;;
9988 --debug | --debu | --deb | --de | --d | -d )
9989 debug=: ;;
9990 --file | --fil | --fi | --f )
9991 $ac_shift
9992 case $ac_optarg in
9993 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9994 '') as_fn_error $? "missing file argument" ;;
9995 esac
9996 as_fn_append CONFIG_FILES " '$ac_optarg'"
9997 ac_need_defaults=false;;
9998 --header | --heade | --head | --hea )
9999 $ac_shift
10000 case $ac_optarg in
10001 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10002 esac
10003 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10004 ac_need_defaults=false;;
10005 --he | --h)
10006 # Conflict between --help and --header
10007 as_fn_error $? "ambiguous option: '$1'
10008Try '$0 --help' for more information.";;
10009 --help | --hel | -h )
10010 printf "%s\n" "$ac_cs_usage"; exit ;;
10011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10012 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10013 ac_cs_silent=: ;;
10014
10015 # This is an error.
10016 -*) as_fn_error $? "unrecognized option: '$1'
10017Try '$0 --help' for more information." ;;
10018
10019 *) as_fn_append ac_config_targets " $1"
10020 ac_need_defaults=false ;;
10021
10022 esac
10023 shift
10024done
10025
10026ac_configure_extra_args=
10027
10028if $ac_cs_silent; then
10029 exec 6>/dev/null
10030 ac_configure_extra_args="$ac_configure_extra_args --silent"
10031fi
10032
10033_ACEOF
10034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10035if \$ac_cs_recheck; then
10036 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10037 shift
10038 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10039 CONFIG_SHELL='$SHELL'
10040 export CONFIG_SHELL
10041 exec "\$@"
10042fi
10043
10044_ACEOF
10045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10046exec 5>>config.log
10047{
10048 echo
10049 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10050## Running $as_me. ##
10051_ASBOX
10052 printf "%s\n" "$ac_log"
10053} >&5
10054
10055_ACEOF
10056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10057#
10058# INIT-COMMANDS
10059#
10060config_vars='$config_vars'
10061
10062_ACEOF
10063
10064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10065
10066# Handling of arguments.
10067for ac_config_target in $ac_config_targets
10068do
10069 case $ac_config_target in
10070 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10071 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
10072 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10073 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10074
10075 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
10076 esac
10077done
10078
10079
10080# If the user did not use the arguments to specify the items to instantiate,
10081# then the envvar interface is used. Set only those that are not.
10082# We use the long form for the default assignment because of an extremely
10083# bizarre bug on SunOS 4.1.3.
10084if $ac_need_defaults; then
10085 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10086 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
10087 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
10088fi
10089
10090# Have a temporary directory for convenience. Make it in the build tree
10091# simply because there is no reason against having it here, and in addition,
10092# creating and moving files from /tmp can sometimes cause problems.
10093# Hook for its removal unless debugging.
10094# Note that there is a small window in which the directory will not be cleaned:
10095# after its creation but before its name has been assigned to '$tmp'.
10096$debug ||
10097{
10098 tmp= ac_tmp=
10099 trap 'exit_status=$?
10100 : "${ac_tmp:=$tmp}"
10101 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10102' 0
10103 trap 'as_fn_exit 1' 1 2 13 15
10104}
10105# Create a (secure) tmp directory for tmp files.
10106
10107{
10108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10109 test -d "$tmp"
10110} ||
10111{
10112 tmp=./conf$$-$RANDOM
10113 (umask 077 && mkdir "$tmp")
10114} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10115ac_tmp=$tmp
10116
10117# Set up the scripts for CONFIG_FILES section.
10118# No need to generate them if there are no CONFIG_FILES.
10119# This happens for instance with './config.status config.h'.
10120if test -n "$CONFIG_FILES"; then
10121
10122
10123ac_cr=`echo X | tr X '\015'`
10124# On cygwin, bash can eat \r inside `` if the user requested igncr.
10125# But we know of no other shell where ac_cr would be empty at this
10126# point, so we can use a bashism as a fallback.
10127if test "x$ac_cr" = x; then
10128 eval ac_cr=\$\'\\r\'
10129fi
10130ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10131if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10132 ac_cs_awk_cr='\\r'
10133else
10134 ac_cs_awk_cr=$ac_cr
10135fi
10136
10137echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10138_ACEOF
10139
10140
10141{
10142 echo "cat >conf$$subs.awk <<_ACEOF" &&
10143 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10144 echo "_ACEOF"
10145} >conf$$subs.sh ||
10146 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10147ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10148ac_delim='%!_!# '
10149for ac_last_try in false false false false false :; do
10150 . ./conf$$subs.sh ||
10151 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10152
10153 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10154 if test $ac_delim_n = $ac_delim_num; then
10155 break
10156 elif $ac_last_try; then
10157 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10158 else
10159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10160 fi
10161done
10162rm -f conf$$subs.sh
10163
10164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10165cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10166_ACEOF
10167sed -n '
10168h
10169s/^/S["/; s/!.*/"]=/
10170p
10171g
10172s/^[^!]*!//
10173:repl
10174t repl
10175s/'"$ac_delim"'$//
10176t delim
10177:nl
10178h
10179s/\(.\{148\}\)..*/\1/
10180t more1
10181s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10182p
10183n
10184b repl
10185:more1
10186s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10187p
10188g
10189s/.\{148\}//
10190t nl
10191:delim
10192h
10193s/\(.\{148\}\)..*/\1/
10194t more2
10195s/["\\]/\\&/g; s/^/"/; s/$/"/
10196p
10197b
10198:more2
10199s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10200p
10201g
10202s/.\{148\}//
10203t delim
10204' <conf$$subs.awk | sed '
10205/^[^""]/{
10206 N
10207 s/\n//
10208}
10209' >>$CONFIG_STATUS || ac_write_fail=1
10210rm -f conf$$subs.awk
10211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10212_ACAWK
10213cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10214 for (key in S) S_is_set[key] = 1
10215 FS = "\a"
10216
10217}
10218{
10219 line = $ 0
10220 nfields = split(line, field, "@")
10221 substed = 0
10222 len = length(field[1])
10223 for (i = 2; i < nfields; i++) {
10224 key = field[i]
10225 keylen = length(key)
10226 if (S_is_set[key]) {
10227 value = S[key]
10228 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10229 len += length(value) + length(field[++i])
10230 substed = 1
10231 } else
10232 len += 1 + keylen
10233 }
10234
10235 print line
10236}
10237
10238_ACAWK
10239_ACEOF
10240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10241if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10242 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10243else
10244 cat
10245fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10246 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10247_ACEOF
10248
10249# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10250# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10251# trailing colons and then remove the whole line if VPATH becomes empty
10252# (actually we leave an empty line to preserve line numbers).
10253if test "x$srcdir" = x.; then
10254 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10255h
10256s///
10257s/^/:/
10258s/[ ]*$/:/
10259s/:\$(srcdir):/:/g
10260s/:\${srcdir}:/:/g
10261s/:@srcdir@:/:/g
10262s/^:*//
10263s/:*$//
10264x
10265s/\(=[ ]*\).*/\1/
10266G
10267s/\n//
10268s/^[^=]*=[ ]*$//
10269}'
10270fi
10271
10272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10273fi # test -n "$CONFIG_FILES"
10274
10275# Set up the scripts for CONFIG_HEADERS section.
10276# No need to generate them if there are no CONFIG_HEADERS.
10277# This happens for instance with './config.status Makefile'.
10278if test -n "$CONFIG_HEADERS"; then
10279cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10280BEGIN {
10281_ACEOF
10282
10283# Transform confdefs.h into an awk script 'defines.awk', embedded as
10284# here-document in config.status, that substitutes the proper values into
10285# config.h.in to produce config.h.
10286
10287# Create a delimiter string that does not exist in confdefs.h, to ease
10288# handling of long lines.
10289ac_delim='%!_!# '
10290for ac_last_try in false false :; do
10291 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10292 if test -z "$ac_tt"; then
10293 break
10294 elif $ac_last_try; then
10295 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10296 else
10297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10298 fi
10299done
10300
10301# For the awk script, D is an array of macro values keyed by name,
10302# likewise P contains macro parameters if any. Preserve backslash
10303# newline sequences.
10304
10305ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10306sed -n '
10307s/.\{148\}/&'"$ac_delim"'/g
10308t rset
10309:rset
10310s/^[ ]*#[ ]*define[ ][ ]*/ /
10311t def
10312d
10313:def
10314s/\\$//
10315t bsnl
10316s/["\\]/\\&/g
10317s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10318D["\1"]=" \3"/p
10319s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10320d
10321:bsnl
10322s/["\\]/\\&/g
10323s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10324D["\1"]=" \3\\\\\\n"\\/p
10325t cont
10326s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10327t cont
10328d
10329:cont
10330n
10331s/.\{148\}/&'"$ac_delim"'/g
10332t clear
10333:clear
10334s/\\$//
10335t bsnlc
10336s/["\\]/\\&/g; s/^/"/; s/$/"/p
10337d
10338:bsnlc
10339s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10340b cont
10341' <confdefs.h | sed '
10342s/'"$ac_delim"'/"\\\
10343"/g' >>$CONFIG_STATUS || ac_write_fail=1
10344
10345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10346 for (key in D) D_is_set[key] = 1
10347 FS = "\a"
10348}
10349/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10350 line = \$ 0
10351 split(line, arg, " ")
10352 if (arg[1] == "#") {
10353 defundef = arg[2]
10354 mac1 = arg[3]
10355 } else {
10356 defundef = substr(arg[1], 2)
10357 mac1 = arg[2]
10358 }
10359 split(mac1, mac2, "(") #)
10360 macro = mac2[1]
10361 prefix = substr(line, 1, index(line, defundef) - 1)
10362 if (D_is_set[macro]) {
10363 # Preserve the white space surrounding the "#".
10364 print prefix "define", macro P[macro] D[macro]
10365 next
10366 } else {
10367 # Replace #undef with comments. This is necessary, for example,
10368 # in the case of _POSIX_SOURCE, which is predefined and required
10369 # on some systems where configure will not decide to define it.
10370 if (defundef == "undef") {
10371 print "/*", prefix defundef, macro, "*/"
10372 next
10373 }
10374 }
10375}
10376{ print }
10377_ACAWK
10378_ACEOF
10379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10380 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10381fi # test -n "$CONFIG_HEADERS"
10382
10383
10384eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10385shift
10386for ac_tag
10387do
10388 case $ac_tag in
10389 :[FHLC]) ac_mode=$ac_tag; continue;;
10390 esac
10391 case $ac_mode$ac_tag in
10392 :[FHL]*:*);;
10393 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
10394 :[FH]-) ac_tag=-:-;;
10395 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10396 esac
10397 ac_save_IFS=$IFS
10398 IFS=:
10399 set x $ac_tag
10400 IFS=$ac_save_IFS
10401 shift
10402 ac_file=$1
10403 shift
10404
10405 case $ac_mode in
10406 :L) ac_source=$1;;
10407 :[FH])
10408 ac_file_inputs=
10409 for ac_f
10410 do
10411 case $ac_f in
10412 -) ac_f="$ac_tmp/stdin";;
10413 *) # Look for the file first in the build tree, then in the source tree
10414 # (if the path is not absolute). The absolute path cannot be DOS-style,
10415 # because $ac_f cannot contain ':'.
10416 test -f "$ac_f" ||
10417 case $ac_f in
10418 [\\/$]*) false;;
10419 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10420 esac ||
10421 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
10422 esac
10423 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10424 as_fn_append ac_file_inputs " '$ac_f'"
10425 done
10426
10427 # Let's still pretend it is 'configure' which instantiates (i.e., don't
10428 # use $as_me), people would be surprised to read:
10429 # /* config.h. Generated by config.status. */
10430 configure_input='Generated from '`
10431 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10432 `' by configure.'
10433 if test x"$ac_file" != x-; then
10434 configure_input="$ac_file. $configure_input"
10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10436printf "%s\n" "$as_me: creating $ac_file" >&6;}
10437 fi
10438 # Neutralize special characters interpreted by sed in replacement strings.
10439 case $configure_input in #(
10440 *\&* | *\|* | *\\* )
10441 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10442 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10443 *) ac_sed_conf_input=$configure_input;;
10444 esac
10445
10446 case $ac_tag in
10447 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10449 esac
10450 ;;
10451 esac
10452
10453 ac_dir=`$as_dirname -- "$ac_file" ||
10454$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10455 X"$ac_file" : 'X\(//\)[^/]' \| \
10456 X"$ac_file" : 'X\(//\)$' \| \
10457 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10458printf "%s\n" X"$ac_file" |
10459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10460 s//\1/
10461 q
10462 }
10463 /^X\(\/\/\)[^/].*/{
10464 s//\1/
10465 q
10466 }
10467 /^X\(\/\/\)$/{
10468 s//\1/
10469 q
10470 }
10471 /^X\(\/\).*/{
10472 s//\1/
10473 q
10474 }
10475 s/.*/./; q'`
10476 as_dir="$ac_dir"; as_fn_mkdir_p
10477 ac_builddir=.
10478
10479case "$ac_dir" in
10480.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10481*)
10482 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10483 # A ".." for each directory in $ac_dir_suffix.
10484 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10485 case $ac_top_builddir_sub in
10486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10488 esac ;;
10489esac
10490ac_abs_top_builddir=$ac_pwd
10491ac_abs_builddir=$ac_pwd$ac_dir_suffix
10492# for backward compatibility:
10493ac_top_builddir=$ac_top_build_prefix
10494
10495case $srcdir in
10496 .) # We are building in place.
10497 ac_srcdir=.
10498 ac_top_srcdir=$ac_top_builddir_sub
10499 ac_abs_top_srcdir=$ac_pwd ;;
10500 [\\/]* | ?:[\\/]* ) # Absolute name.
10501 ac_srcdir=$srcdir$ac_dir_suffix;
10502 ac_top_srcdir=$srcdir
10503 ac_abs_top_srcdir=$srcdir ;;
10504 *) # Relative name.
10505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10506 ac_top_srcdir=$ac_top_build_prefix$srcdir
10507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10508esac
10509ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10510
10511
10512 case $ac_mode in
10513 :F)
10514 #
10515 # CONFIG_FILE
10516 #
10517
10518 case $INSTALL in
10519 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10520 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10521 esac
10522_ACEOF
10523
10524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10525# If the template does not know about datarootdir, expand it.
10526# FIXME: This hack should be removed a few years after 2.60.
10527ac_datarootdir_hack=; ac_datarootdir_seen=
10528ac_sed_dataroot='
10529/datarootdir/ {
10530 p
10531 q
10532}
10533/@datadir@/p
10534/@docdir@/p
10535/@infodir@/p
10536/@localedir@/p
10537/@mandir@/p'
10538case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10539*datarootdir*) ac_datarootdir_seen=yes;;
10540*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10542printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10543_ACEOF
10544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10545 ac_datarootdir_hack='
10546 s&@datadir@&$datadir&g
10547 s&@docdir@&$docdir&g
10548 s&@infodir@&$infodir&g
10549 s&@localedir@&$localedir&g
10550 s&@mandir@&$mandir&g
10551 s&\\\${datarootdir}&$datarootdir&g' ;;
10552esac
10553_ACEOF
10554
10555# Neutralize VPATH when '$srcdir' = '.'.
10556# Shell code in configure.ac might set extrasub.
10557# FIXME: do we really want to maintain this feature?
10558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10559ac_sed_extra="$ac_vpsub
10560$extrasub
10561_ACEOF
10562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10563:t
10564/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10565s|@configure_input@|$ac_sed_conf_input|;t t
10566s&@top_builddir@&$ac_top_builddir_sub&;t t
10567s&@top_build_prefix@&$ac_top_build_prefix&;t t
10568s&@srcdir@&$ac_srcdir&;t t
10569s&@abs_srcdir@&$ac_abs_srcdir&;t t
10570s&@top_srcdir@&$ac_top_srcdir&;t t
10571s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10572s&@builddir@&$ac_builddir&;t t
10573s&@abs_builddir@&$ac_abs_builddir&;t t
10574s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10575s&@INSTALL@&$ac_INSTALL&;t t
10576$ac_datarootdir_hack
10577"
10578eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10579 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10580
10581test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10582 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10584 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
10586which seems to be undefined. Please make sure it is defined" >&5
10587printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
10588which seems to be undefined. Please make sure it is defined" >&2;}
10589
10590 rm -f "$ac_tmp/stdin"
10591 case $ac_file in
10592 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10593 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10594 esac \
10595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10596 ;;
10597 :H)
10598 #
10599 # CONFIG_HEADER
10600 #
10601 if test x"$ac_file" != x-; then
10602 {
10603 printf "%s\n" "/* $configure_input */" >&1 \
10604 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10605 } >"$ac_tmp/config.h" \
10606 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10607 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10609printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
10610 else
10611 rm -f "$ac_file"
10612 mv "$ac_tmp/config.h" "$ac_file" \
10613 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10614 fi
10615 else
10616 printf "%s\n" "/* $configure_input */" >&1 \
10617 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10618 || as_fn_error $? "could not create -" "$LINENO" 5
10619 fi
10620 ;;
10621
10622 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10623printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
10624 ;;
10625 esac
10626
10627
10628 case $ac_file$ac_mode in
10629 "default":C)
10630case $CONFIG_FILES in *config.make*)
10631echo "$config_vars" >> config.make;;
10632esac
10633test -d bits || mkdir bits ;;
10634
10635 esac
10636done # for ac_tag
10637
10638
10639as_fn_exit 0
10640_ACEOF
10641ac_clean_files=$ac_clean_files_save
10642
10643test $ac_write_fail = 0 ||
10644 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10645
10646
10647# configure is writing to config.log, and then calls config.status.
10648# config.status does its own redirection, appending to config.log.
10649# Unfortunately, on DOS this fails, as config.log is still kept open
10650# by configure, so config.status won't be able to write to it; its
10651# output is simply discarded. So we exec the FD to /dev/null,
10652# effectively closing config.log, so it can be properly (re)opened and
10653# appended to by config.status. When coming back to configure, we
10654# need to make the FD available again.
10655if test "$no_create" != yes; then
10656 ac_cs_success=:
10657 ac_config_status_args=
10658 test "$silent" = yes &&
10659 ac_config_status_args="$ac_config_status_args --quiet"
10660 exec 5>/dev/null
10661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10662 exec 5>>config.log
10663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10664 # would make configure fail if this is the last instruction.
10665 $ac_cs_success || as_fn_exit 1
10666fi
10667
10668#
10669# CONFIG_SUBDIRS section.
10670#
10671if test "$no_recursion" != yes; then
10672
10673 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10674 # so they do not pile up.
10675 ac_sub_configure_args=
10676 ac_prev=
10677 eval "set x $ac_configure_args"
10678 shift
10679 for ac_arg
10680 do
10681 if test -n "$ac_prev"; then
10682 ac_prev=
10683 continue
10684 fi
10685 case $ac_arg in
10686 -cache-file | --cache-file | --cache-fil | --cache-fi \
10687 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10688 ac_prev=cache_file ;;
10689 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10690 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10691 | --c=*)
10692 ;;
10693 --config-cache | -C)
10694 ;;
10695 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10696 ac_prev=srcdir ;;
10697 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10698 ;;
10699 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10700 ac_prev=prefix ;;
10701 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10702 ;;
10703 --disable-option-checking)
10704 ;;
10705 *)
10706 case $ac_arg in
10707 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10708 esac
10709 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10710 esac
10711 done
10712
10713 # Always prepend --prefix to ensure using the same prefix
10714 # in subdir configurations.
10715 ac_arg="--prefix=$prefix"
10716 case $ac_arg in
10717 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10718 esac
10719 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10720
10721 # Pass --silent
10722 if test "$silent" = yes; then
10723 ac_sub_configure_args="--silent $ac_sub_configure_args"
10724 fi
10725
10726 # Always prepend --disable-option-checking to silence warnings, since
10727 # different subdirs can have different --enable and --with options.
10728 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10729
10730 ac_popdir=`pwd`
10731 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10732
10733 # Do not complain, so a configure script can configure whichever
10734 # parts of a large source tree are present.
10735 test -d "$srcdir/$ac_dir" || continue
10736
10737 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10739 printf "%s\n" "$ac_msg" >&6
10740 as_dir="$ac_dir"; as_fn_mkdir_p
10741 ac_builddir=.
10742
10743case "$ac_dir" in
10744.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10745*)
10746 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10747 # A ".." for each directory in $ac_dir_suffix.
10748 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10749 case $ac_top_builddir_sub in
10750 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10751 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10752 esac ;;
10753esac
10754ac_abs_top_builddir=$ac_pwd
10755ac_abs_builddir=$ac_pwd$ac_dir_suffix
10756# for backward compatibility:
10757ac_top_builddir=$ac_top_build_prefix
10758
10759case $srcdir in
10760 .) # We are building in place.
10761 ac_srcdir=.
10762 ac_top_srcdir=$ac_top_builddir_sub
10763 ac_abs_top_srcdir=$ac_pwd ;;
10764 [\\/]* | ?:[\\/]* ) # Absolute name.
10765 ac_srcdir=$srcdir$ac_dir_suffix;
10766 ac_top_srcdir=$srcdir
10767 ac_abs_top_srcdir=$srcdir ;;
10768 *) # Relative name.
10769 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10770 ac_top_srcdir=$ac_top_build_prefix$srcdir
10771 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10772esac
10773ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10774
10775
10776 cd "$ac_dir"
10777
10778 # Check for configure.gnu first; this name is used for a wrapper for
10779 # Metaconfig's "Configure" on case-insensitive file systems.
10780 if test -f "$ac_srcdir/configure.gnu"; then
10781 ac_sub_configure=$ac_srcdir/configure.gnu
10782 elif test -f "$ac_srcdir/configure"; then
10783 ac_sub_configure=$ac_srcdir/configure
10784 else
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10786printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10787 ac_sub_configure=
10788 fi
10789
10790 # The recursion is here.
10791 if test -n "$ac_sub_configure"; then
10792 # Make the cache file name correct relative to the subdirectory.
10793 case $cache_file in
10794 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10795 *) # Relative name.
10796 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10797 esac
10798
10799 { 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
10800printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10801 # The eval makes quoting arguments work.
10802 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10803 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10804 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10805 fi
10806
10807 cd "$ac_popdir"
10808 done
10809fi
10810if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10812printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10813fi
10814
10815