]> git.ipfire.org Git - thirdparty/glibc.git/blame - configure
elf: Restore support for _r_debug interpositions and copy relocations
[thirdparty/glibc.git] / configure
CommitLineData
cd6ede75 1#! /bin/sh
3a12e572 2# Guess values for system-dependent variables and create Makefiles.
98ffc1bf 3# Generated by GNU Autoconf 2.72 for GNU C Library (see version.h).
f4b07664 4#
a306c790 5# Report bugs to <https://sourceware.org/bugzilla/>.
3a12e572 6#
b08c89d9 7#
98ffc1bf 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
c6cb8783 9# Inc.
b08c89d9
UD
10#
11#
3a12e572
UD
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
b08c89d9
UD
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
cd6ede75 17
26f56c1c
UD
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
c6cb8783
SP
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
3a12e572
UD
22 emulate sh
23 NULLCMD=:
322e23db 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
f4b07664
RM
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
26f56c1c 27 setopt NO_GLOB_SUBST
98ffc1bf
AH
28else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
b08c89d9
UD
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
98ffc1bf 34esac ;;
26f56c1c 35esac
26f56c1c
UD
36fi
37
38
c6cb8783
SP
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.
322e23db
UD
47as_nl='
48'
49export as_nl
c6cb8783
SP
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
322e23db
UD
76
77# The user is always right.
c6cb8783 78if ${PATH_SEPARATOR+false} :; then
322e23db
UD
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 }
3a12e572 84fi
cd6ede75 85
f4b07664 86
26f56c1c 87# Find who we are. Look in the path if we contain no directory separator.
f318beb8 88as_myself=
b08c89d9 89case $0 in #((
26f56c1c
UD
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94 IFS=$as_save_IFS
c6cb8783
SP
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
b08c89d9 101 done
26f56c1c
UD
102IFS=$as_save_IFS
103
104 ;;
105esac
98ffc1bf 106# We did not find ourselves, most probably we were run as 'sh COMMAND'
26f56c1c
UD
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
c6cb8783 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b08c89d9 113 exit 1
26f56c1c
UD
114fi
115
b08c89d9 116
f4a58f0d
L
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
98ffc1bf 136# out after a failed 'exec'.
c6cb8783
SP
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
f4a58f0d
L
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
b08c89d9 142if test "x$CONFIG_SHELL" = x; then
98ffc1bf 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
c6cb8783 144then :
b08c89d9
UD
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
98ffc1bf
AH
151else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
b08c89d9
UD
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
98ffc1bf 157esac ;;
b08c89d9
UD
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.; }
c6cb8783
SP
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
b08c89d9 174
98ffc1bf
AH
175else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177esac
b08c89d9 178fi
f4a58f0d 179test x\$exitcode = x0 || exit 1
c6cb8783
SP
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
f4a58f0d 182test -x / || exit 1"
b08c89d9
UD
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'\" &&
3d0dbdc4 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
c6cb8783
SP
187 if (eval "$as_required") 2>/dev/null
188then :
b08c89d9 189 as_have_required=yes
98ffc1bf
AH
190else case e in #(
191 e) as_have_required=no ;;
192esac
b08c89d9 193fi
c6cb8783
SP
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195then :
b08c89d9 196
98ffc1bf
AH
197else case e in #(
198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b08c89d9
UD
199as_found=false
200for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201do
202 IFS=$as_save_IFS
c6cb8783
SP
203 case $as_dir in #(((
204 '') as_dir=./ ;;
205 */) ;;
206 *) as_dir=$as_dir/ ;;
207 esac
b08c89d9
UD
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.
c6cb8783 213 as_shell=$as_dir$as_base
b08c89d9 214 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
c6cb8783
SP
215 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216then :
b08c89d9 217 CONFIG_SHELL=$as_shell as_have_required=yes
c6cb8783
SP
218 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219then :
b08c89d9
UD
220 break 2
221fi
222fi
223 done;;
224 esac
225 as_found=false
226done
b08c89d9 227IFS=$as_save_IFS
c6cb8783
SP
228if $as_found
229then :
b08c89d9 230
98ffc1bf
AH
231else case e in #(
232 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
c6cb8783
SP
233 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
98ffc1bf
AH
236fi ;;
237esac
c6cb8783 238fi
b08c89d9 239
c6cb8783
SP
240
241 if test "x$CONFIG_SHELL" != x
242then :
f4a58f0d
L
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
98ffc1bf 259# out after a failed 'exec'.
c6cb8783 260printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
f4a58f0d 261exit 255
b08c89d9
UD
262fi
263
c6cb8783
SP
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."
b08c89d9 271 else
c6cb8783 272 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
a306c790 273$0: https://sourceware.org/bugzilla/ about your system,
f318beb8 274$0: including any error possibly output before this
b08c89d9
UD
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
98ffc1bf
AH
279fi ;;
280esac
b08c89d9
UD
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
c6cb8783 301
b08c89d9
UD
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 #(
c6cb8783 333 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
b08c89d9
UD
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 ||
c6cb8783 342printf "%s\n" X"$as_dir" |
b08c89d9
UD
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"
4a531bb0 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b08c89d9
UD
364
365
366} # as_fn_mkdir_p
f4a58f0d
L
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
b08c89d9
UD
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.
c6cb8783
SP
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382then :
b08c89d9
UD
383 eval 'as_fn_append ()
384 {
385 eval $1+=\$2
386 }'
98ffc1bf
AH
387else case e in #(
388 e) as_fn_append ()
b08c89d9
UD
389 {
390 eval $1=\$$1\$2
98ffc1bf
AH
391 } ;;
392esac
b08c89d9
UD
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.
c6cb8783
SP
400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401then :
b08c89d9
UD
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
98ffc1bf
AH
406else case e in #(
407 e) as_fn_arith ()
b08c89d9
UD
408 {
409 as_val=`expr "$@" || test $? -eq 1`
98ffc1bf
AH
410 } ;;
411esac
b08c89d9
UD
412fi # as_fn_arith
413
414
4a531bb0
L
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
b08c89d9
UD
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
4a531bb0 419# script with STATUS, using 1 if that was 0.
b08c89d9
UD
420as_fn_error ()
421{
4a531bb0
L
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
c6cb8783 425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b08c89d9 426 fi
c6cb8783 427 printf "%s\n" "$as_me: error: $2" >&2
b08c89d9
UD
428 as_fn_exit $as_status
429} # as_fn_error
430
26f56c1c
UD
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f4b07664
RM
433 as_expr=expr
434else
435 as_expr=false
436fi
437
26f56c1c 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
f4b07664
RM
439 as_basename=basename
440else
441 as_basename=false
442fi
3a12e572 443
b08c89d9
UD
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446else
447 as_dirname=false
448fi
3a12e572 449
26f56c1c 450as_me=`$as_basename -- "$0" ||
3a12e572
UD
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
26f56c1c 453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
c6cb8783 454printf "%s\n" X/"$0" |
26f56c1c
UD
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'`
3a12e572 468
b08c89d9
UD
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
f4b07664 475
3a12e572 476
b08c89d9
UD
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 '
98ffc1bf
AH
487 t clear
488 :clear
b08c89d9
UD
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" ||
c6cb8783 500 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cd6ede75 501
f4a58f0d
L
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
b08c89d9
UD
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
26f56c1c 512}
cd6ede75 513
c6cb8783
SP
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.
b08c89d9
UD
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
650425ce 530
c6cb8783
SP
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
b08c89d9
UD
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
26f56c1c 543fi
b08c89d9
UD
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:
98ffc1bf
AH
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'.
b08c89d9 551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f4a58f0d 552 as_ln_s='cp -pR'
b08c89d9
UD
553 elif ln conf$$.file conf$$ 2>/dev/null; then
554 as_ln_s=ln
555 else
f4a58f0d 556 as_ln_s='cp -pR'
b08c89d9 557 fi
26f56c1c 558else
f4a58f0d 559 as_ln_s='cp -pR'
26f56c1c 560fi
b08c89d9
UD
561rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
562rmdir conf$$.dir 2>/dev/null
26f56c1c 563
b08c89d9
UD
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
26f56c1c
UD
569fi
570
f4a58f0d
L
571as_test_x='test -x'
572as_executable_p=as_fn_executable_p
26f56c1c 573
b08c89d9 574# Sed expression to map a string onto a valid CPP name.
98ffc1bf
AH
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
26f56c1c 577
b08c89d9 578# Sed expression to map a string onto a valid variable name.
98ffc1bf
AH
579as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580as_tr_sh="eval sed '$as_sed_sh'" # deprecated
26f56c1c
UD
581
582
b08c89d9
UD
583test -n "$DJDIR" || exec 7<&0 </dev/null
584exec 6>&1
cd6ede75 585
3a12e572 586# Name of the host.
4a531bb0 587# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
3a12e572
UD
588# so uname gets run too.
589ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
590
3a12e572
UD
591#
592# Initializations.
593#
cd6ede75 594ac_default_prefix=/usr/local
26f56c1c 595ac_clean_files=
f4b07664 596ac_config_libobj_dir=.
26f56c1c 597LIBOBJS=
3a12e572
UD
598cross_compiling=no
599subdirs=
600MFLAGS=
601MAKEFLAGS=
3a12e572 602
3a12e572 603# Identity of this package.
f4b07664 604PACKAGE_NAME='GNU C Library'
f318beb8 605PACKAGE_TARNAME='glibc'
f4b07664
RM
606PACKAGE_VERSION='(see version.h)'
607PACKAGE_STRING='GNU C Library (see version.h)'
a306c790 608PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/'
02d35f06 609PACKAGE_URL='https://www.gnu.org/software/glibc/'
3a12e572
UD
610
611ac_unique_file="include/features.h"
322e23db 612enable_option_checking=no
322e23db 613ac_subst_vars='LTLIBOBJS
a152f366 614LIBOBJS
ad201afe 615pthread_in_libc
322e23db
UD
616RELEASE
617VERSION
618mach_interface_list
619DEFINES
322e23db 620static_nss
322e23db 621profile
abcb584d 622libc_cv_multidir
b79f2575
L
623libc_cv_test_x86_have_amx_tile
624test_enable_cet
625libc_cv_test_cc_mprefer_vector_width
322e23db
UD
626shared
627static
322e23db
UD
628ldd_rewrite_script
629use_ldconfig
322e23db 630libc_cv_rootsbindir
4248b1b1 631libc_cv_localstatedir
322e23db 632libc_cv_sysconfdir
90fe682d 633libc_cv_complocaledir
aaa8cb4b 634libc_cv_rtlddir
322e23db 635libc_cv_slibdir
3cc3ef96 636use_nscd
322e23db 637libc_cv_gcc_unwind_find_fde
7ffa9423 638libc_extra_cppflags
30b99d79 639libc_extra_cflags
99e1dc0a 640libc_cv_cxx_thread_local
4d8965f1 641no_time_bits_source
3f1932ed 642no_file_offset_bits_source
64d9580c
FB
643fortify_source
644no_fortify_source
645libc_cv_fortify_source
646enable_fortify_source
b79f2575 647libc_cv_test_supported_fortify_source
322e23db
UD
648have_selinux
649have_libcap
650have_libaudit
651LIBGD
03da41d4 652libc_cv_test_cc_wmissing_parameter_name
4f4c4fcd 653libc_cv_test_cc_wfree_labels
b79f2575 654libc_cv_test_cc_wimplicit_fallthrough
85c2e611 655libc_cv_cc_loop_to_function
b79f2575 656libc_cv_test_cc_signaling_nans
322e23db 657libc_cv_cc_submachine
bef0b507 658libc_cv_cc_nofma
b79f2575 659libc_cv_test_wno_ignored_attributes
89569c8b 660libc_cv_has_glob_dat
322e23db 661libc_cv_fpie
b79f2575 662libc_cv_test_static_pie
322e23db 663libc_cv_z_execstack
a2bd5008 664libc_cv_no_error_execstack
322e23db 665ASFLAGS_config
322e23db 666libc_cv_cc_with_libunwind
19f1a11e 667libc_cv_insert
83569fb8 668libc_cv_protected_data
322e23db
UD
669INSTALL_INFO
670PERL
322e23db 671BASH_SHELL
a65ea28d 672CXX_BITS_STD_ABS_H
fc3e1337
FW
673CXX_CMATH_HEADER
674CXX_CSTDLIB_HEADER
322e23db
UD
675CXX_SYSINCLUDES
676SYSINCLUDES
43ecc41d
AZ
677sysnames
678submachine
679multi_arch
680libc_cv_textrel_ifunc
681no_stack_protector
682stack_protector
683libc_cv_ssp
684libc_cv_with_fp
8ce8299f
SP
685PYTHON
686PYTHON_PROG
322e23db 687AUTOCONF
1faaf703 688BISON
0786794f 689AWK
322e23db
UD
690SED
691MAKEINFO
692MSGFMT
693MAKE
322e23db 694LD
02abdab0
AZ
695NM
696OBJDUMP
697READELF
6014c65d 698GPROF
1b74661a 699OBJCOPY
322e23db
UD
700AR
701LN_S
702INSTALL_DATA
703INSTALL_SCRIPT
704INSTALL_PROGRAM
322e23db 705base_machine
e4608715 706build_pt_chown
c53d909c 707build_nscd
33784089 708memory_tagging
a4ecc9eb 709enable_werror
322e23db
UD
710force_install
711bindnow
740b3dbe 712hardcoded_path_in_tests
1cba4036 713enable_timezone_tools
6c0be743 714man_pages_version
9ba202c7 715rtld_early_cflags
6413fcde 716extra_nonshared_cflags
c91c505f 717sysheaders
b79f2575 718TEST_CXX
322e23db
UD
719ac_ct_CXX
720CXXFLAGS
721CXX
722CPP
723cross_compiling
724BUILD_CC
b79f2575 725TEST_CC
322e23db
UD
726OBJEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
c16a054d
AS
732host_os
733host_vendor
734host_cpu
735host
736build_os
737build_vendor
738build_cpu
739build
7967983f 740subdirs
8b748aed
JM
741REPORT_BUGS_TEXI
742REPORT_BUGS_TO
743PKGVERSION_TEXI
744PKGVERSION
322e23db
UD
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
c6cb8783 764runstatedir
322e23db
UD
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
b08c89d9 776PACKAGE_URL
322e23db
UD
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
a152f366 784ac_subst_files=''
322e23db
UD
785ac_user_opts='
786enable_option_checking
8b748aed
JM
787with_pkgversion
788with_bugurl
ba144c17 789enable_static_c___tests
23f12e6e 790enable_static_c___link_check
322e23db
UD
791with_gd
792with_gd_include
793with_gd_lib
322e23db 794with_binutils
322e23db 795with_selinux
322e23db 796with_headers
6413fcde 797with_nonshared_cflags
9ba202c7 798with_rtld_early_cflags
bada2e31 799with_timeoutfactor
6c0be743 800with_man_pages
322e23db 801enable_sanity_checks
322e23db
UD
802enable_shared
803enable_profile
23645707 804enable_default_pie
1cba4036 805enable_timezone_tools
740b3dbe 806enable_hardcoded_path_in_tests
322e23db
UD
807enable_hidden_plt
808enable_bind_now
03baef1c 809enable_stack_protector
322e23db
UD
810enable_static_nss
811enable_force_install
8894bad3 812enable_maintainer_mode
322e23db 813enable_kernel
a4ecc9eb 814enable_werror
322e23db 815enable_multi_arch
33784089 816enable_memory_tagging
3a097cc7 817enable_systemtap
c53d909c 818enable_build_nscd
3cc3ef96 819enable_nscd
e4608715 820enable_pt_chown
5695d46f 821enable_mathvec
f753fa7d 822enable_cet
ebae2f5a 823enable_scv
64d9580c 824enable_fortify_source
322e23db
UD
825with_cpu
826'
a152f366
UD
827 ac_precious_vars='build_alias
828host_alias
829target_alias
830CC
831CFLAGS
832LDFLAGS
833LIBS
834CPPFLAGS
b79f2575 835TEST_CC
a152f366
UD
836CPP
837CXX
838CXXFLAGS
b79f2575
L
839CCC
840TEST_CXX'
644d3857 841ac_subdirs_all=''
a152f366
UD
842
843# Initialize some variables set by options.
844ac_init_help=
845ac_init_version=false
322e23db
UD
846ac_unrecognized_opts=
847ac_unrecognized_sep=
a152f366
UD
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'
c6cb8783 879runstatedir='${localstatedir}/run'
a152f366
UD
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
882docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
26f56c1c
UD
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
cd6ede75 891
cd6ede75 892ac_prev=
26f56c1c 893ac_dashdash=
cd6ede75
UD
894for ac_option
895do
cd6ede75
UD
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
26f56c1c 898 eval $ac_prev=\$ac_option
cd6ede75
UD
899 ac_prev=
900 continue
901 fi
902
26f56c1c 903 case $ac_option in
f318beb8
UD
904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *=) ac_optarg= ;;
906 *) ac_optarg=yes ;;
26f56c1c 907 esac
cd6ede75 908
26f56c1c
UD
909 case $ac_dashdash$ac_option in
910 --)
911 ac_dashdash=yes ;;
cd6ede75
UD
912
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3a12e572 916 bindir=$ac_optarg ;;
cd6ede75
UD
917
918 -build | --build | --buil | --bui | --bu)
3a12e572 919 ac_prev=build_alias ;;
cd6ede75 920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3a12e572 921 build_alias=$ac_optarg ;;
cd6ede75
UD
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=*)
3a12e572
UD
928 cache_file=$ac_optarg ;;
929
930 --config-cache | -C)
931 cache_file=config.cache ;;
cd6ede75 932
26f56c1c 933 -datadir | --datadir | --datadi | --datad)
cd6ede75 934 ac_prev=datadir ;;
26f56c1c 935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
3a12e572 936 datadir=$ac_optarg ;;
cd6ede75 937
26f56c1c
UD
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
cd6ede75 945 -disable-* | --disable-*)
322e23db 946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cd6ede75 947 # Reject names that are not valid shell variable names.
322e23db 948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
98ffc1bf 949 as_fn_error $? "invalid feature name: '$ac_useropt'"
322e23db 950 ac_useropt_orig=$ac_useropt
c6cb8783 951 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
322e23db
UD
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 ;;
26f56c1c
UD
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 ;;
cd6ede75
UD
970
971 -enable-* | --enable-*)
322e23db 972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cd6ede75 973 # Reject names that are not valid shell variable names.
322e23db 974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
98ffc1bf 975 as_fn_error $? "invalid feature name: '$ac_useropt'"
322e23db 976 ac_useropt_orig=$ac_useropt
c6cb8783 977 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
322e23db
UD
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 ;;
cd6ede75
UD
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=*)
3a12e572 994 exec_prefix=$ac_optarg ;;
cd6ede75
UD
995
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
999
3a12e572
UD
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 ;;
cd6ede75
UD
1006
1007 -host | --host | --hos | --ho)
3a12e572 1008 ac_prev=host_alias ;;
cd6ede75 1009 -host=* | --host=* | --hos=* | --ho=*)
3a12e572 1010 host_alias=$ac_optarg ;;
cd6ede75 1011
26f56c1c
UD
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
cd6ede75
UD
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=*)
3a12e572 1023 includedir=$ac_optarg ;;
cd6ede75
UD
1024
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3a12e572 1028 infodir=$ac_optarg ;;
cd6ede75
UD
1029
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3a12e572 1033 libdir=$ac_optarg ;;
cd6ede75
UD
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=*)
3a12e572 1040 libexecdir=$ac_optarg ;;
cd6ede75 1041
26f56c1c
UD
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1046
cd6ede75 1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
26f56c1c 1048 | --localstate | --localstat | --localsta | --localst | --locals)
cd6ede75
UD
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
26f56c1c 1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
3a12e572 1052 localstatedir=$ac_optarg ;;
cd6ede75
UD
1053
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3a12e572 1057 mandir=$ac_optarg ;;
cd6ede75
UD
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 \
3a12e572 1064 | --no-cr | --no-c | -n)
cd6ede75
UD
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=*)
3a12e572 1078 oldincludedir=$ac_optarg ;;
cd6ede75
UD
1079
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3a12e572 1083 prefix=$ac_optarg ;;
cd6ede75
UD
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=*)
3a12e572 1090 program_prefix=$ac_optarg ;;
cd6ede75
UD
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=*)
3a12e572 1097 program_suffix=$ac_optarg ;;
cd6ede75
UD
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=*)
3a12e572 1114 program_transform_name=$ac_optarg ;;
cd6ede75 1115
26f56c1c
UD
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
cd6ede75
UD
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1129
c6cb8783
SP
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
cd6ede75
UD
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
3a12e572 1143 sbindir=$ac_optarg ;;
cd6ede75
UD
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=*)
3a12e572 1154 sharedstatedir=$ac_optarg ;;
cd6ede75
UD
1155
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
3a12e572 1159 site=$ac_optarg ;;
cd6ede75
UD
1160
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3a12e572 1164 srcdir=$ac_optarg ;;
cd6ede75
UD
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=*)
3a12e572 1171 sysconfdir=$ac_optarg ;;
cd6ede75
UD
1172
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
3a12e572 1174 ac_prev=target_alias ;;
cd6ede75 1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3a12e572 1176 target_alias=$ac_optarg ;;
cd6ede75
UD
1177
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1180
3a12e572
UD
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
cd6ede75
UD
1183
1184 -with-* | --with-*)
322e23db 1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cd6ede75 1186 # Reject names that are not valid shell variable names.
322e23db 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
98ffc1bf 1188 as_fn_error $? "invalid package name: '$ac_useropt'"
322e23db 1189 ac_useropt_orig=$ac_useropt
c6cb8783 1190 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
322e23db
UD
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 ;;
cd6ede75
UD
1199
1200 -without-* | --without-*)
322e23db 1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cd6ede75 1202 # Reject names that are not valid shell variable names.
322e23db 1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
98ffc1bf 1204 as_fn_error $? "invalid package name: '$ac_useropt'"
322e23db 1205 ac_useropt_orig=$ac_useropt
c6cb8783 1206 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
322e23db
UD
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 ;;
cd6ede75
UD
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=*)
3a12e572 1225 x_includes=$ac_optarg ;;
cd6ede75
UD
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=*)
3a12e572 1232 x_libraries=$ac_optarg ;;
cd6ede75 1233
98ffc1bf
AH
1234 -*) as_fn_error $? "unrecognized option: '$ac_option'
1235Try '$0 --help' for more information"
cd6ede75
UD
1236 ;;
1237
3a12e572
UD
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
b08c89d9
UD
1241 case $ac_envvar in #(
1242 '' | [0-9]* | *[!_$as_cr_alnum]* )
98ffc1bf 1243 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
b08c89d9 1244 esac
26f56c1c 1245 eval $ac_envvar=\$ac_optarg
3a12e572
UD
1246 export $ac_envvar ;;
1247
cd6ede75 1248 *)
3a12e572 1249 # FIXME: should be removed in autoconf 3.0.
c6cb8783 1250 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
3a12e572 1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
c6cb8783 1252 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
f318beb8 1253 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cd6ede75
UD
1254 ;;
1255
1256 esac
1257done
1258
1259if test -n "$ac_prev"; then
3a12e572 1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
4a531bb0 1261 as_fn_error $? "missing argument to $ac_option"
cd6ede75 1262fi
cd6ede75 1263
322e23db
UD
1264if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1266 no) ;;
4a531bb0 1267 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c6cb8783 1268 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
322e23db
UD
1269 esac
1270fi
1271
1272# Check all directory arguments for consistency.
26f56c1c
UD
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 \
c6cb8783 1276 libdir localedir mandir runstatedir
cd6ede75 1277do
26f56c1c 1278 eval ac_val=\$$ac_var
322e23db
UD
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.
3a12e572 1286 case $ac_val in
26f56c1c
UD
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cd6ede75 1289 esac
4a531bb0 1290 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cd6ede75
UD
1291done
1292
98ffc1bf 1293# There might be people who depend on the old broken behavior: '$host'
3a12e572
UD
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
3a12e572
UD
1304 elif test "x$build_alias" != "x$host_alias"; then
1305 cross_compiling=yes
1306 fi
1307fi
cd6ede75 1308
3a12e572
UD
1309ac_tool_prefix=
1310test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312test "$silent" = yes && exec 6>/dev/null
cd6ede75 1313
cd6ede75 1314
26f56c1c
UD
1315ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316ac_ls_di=`ls -di .` &&
1317ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
4a531bb0 1318 as_fn_error $? "working directory cannot be determined"
26f56c1c 1319test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
4a531bb0 1320 as_fn_error $? "pwd does not report name of working directory"
26f56c1c
UD
1321
1322
cd6ede75
UD
1323# Find the source files, if location was not specified.
1324if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
26f56c1c 1326 # Try the directory containing this script, then the parent directory.
322e23db
UD
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 ||
c6cb8783 1332printf "%s\n" X"$as_myself" |
26f56c1c
UD
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'`
cd6ede75 1350 srcdir=$ac_confdir
26f56c1c 1351 if test ! -r "$srcdir/$ac_unique_file"; then
cd6ede75
UD
1352 srcdir=..
1353 fi
1354else
1355 ac_srcdir_defaulted=no
1356fi
26f56c1c
UD
1357if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
4a531bb0 1359 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cd6ede75 1360fi
98ffc1bf 1361ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
26f56c1c 1362ac_abs_confdir=`(
4a531bb0 1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
26f56c1c
UD
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
3a12e572
UD
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
98ffc1bf 1389'configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
3a12e572
UD
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
98ffc1bf 1403 -q, --quiet, --silent do not print 'checking ...' messages
3a12e572 1404 --cache-file=FILE cache test results in FILE [disabled]
98ffc1bf 1405 -C, --config-cache alias for '--cache-file=config.cache'
3a12e572 1406 -n, --no-create do not create output files
98ffc1bf 1407 --srcdir=DIR find the sources in DIR [configure dir or '..']
3a12e572 1408
3a12e572
UD
1409Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
322e23db 1411 [$ac_default_prefix]
3a12e572 1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
322e23db 1413 [PREFIX]
3a12e572 1414
98ffc1bf
AH
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'.
3a12e572
UD
1419
1420For better control, use the options below.
1421
1422Fine tuning of the installation directories:
322e23db
UD
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]
c6cb8783 1429 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
322e23db
UD
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]
f318beb8 1438 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
322e23db
UD
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
3a12e572
UD
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
cd6ede75 1452
3a12e572 1453if test -n "$ac_init_help"; then
f4b07664
RM
1454 case $ac_init_help in
1455 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1456 esac
3a12e572
UD
1457 cat <<\_ACEOF
1458
1459Optional Features:
322e23db 1460 --disable-option-checking ignore unrecognized --enable/--with options
3a12e572
UD
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ba144c17
L
1463 --disable-static-c++-tests
1464 disable static C++ tests[default=no]
23f12e6e
L
1465 --disable-static-c++-link-check
1466 disable static C++ link check [default=no]
6b7f6183
RM
1467 --disable-sanity-checks really do not use threads (should not be used except
1468 in special situations) [default=yes]
a0da5fe1 1469 --enable-shared build shared library [default=yes if GNU ld]
11bf311e 1470 --enable-profile build profiled library [default=no]
23645707
SP
1471 --disable-default-pie Do not build glibc programs and the testsuite as PIE
1472 [default=no]
1cba4036 1473 --disable-timezone-tools
44f826e3 1474 do not install timezone tools [default=install]
740b3dbe
L
1475 --enable-hardcoded-path-in-tests
1476 hardcode newly built glibc path in tests
1477 [default=no]
3a12e572 1478 --disable-hidden-plt do not hide internal function calls to avoid PLT
4df8c11d 1479 --enable-bind-now disable lazy relocations in DSOs
03baef1c
NA
1480 --enable-stack-protector=[yes|no|all|strong]
1481 Use -fstack-protector[-all|-strong] to detect glibc
1482 buffer overflows
6b7f6183 1483 --enable-static-nss build static NSS modules [default=no]
3a12e572 1484 --disable-force-install don't force installation of files from this package,
6b7f6183 1485 even if they are older than the installed files
8894bad3
AM
1486 --enable-maintainer-mode
1487 enable make rules and dependencies not useful (and
1488 sometimes confusing) to the casual installer
6b7f6183
RM
1489 --enable-kernel=VERSION compile for compatibility with kernel not older than
1490 VERSION
a4ecc9eb 1491 --disable-werror do not build with -Werror
425ce2ed
UD
1492 --enable-multi-arch enable single DSO with optimizations for multiple
1493 architectures
33784089
RE
1494 --enable-memory-tagging enable memory tagging if supported by the
1495 architecture [default=no]
3a097cc7 1496 --enable-systemtap enable systemtap static probe points [default=no]
c53d909c 1497 --disable-build-nscd disable building and installing the nscd daemon
3cc3ef96 1498 --disable-nscd library functions will not contact the nscd daemon
e4608715 1499 --enable-pt_chown Enable building and installing pt_chown
5695d46f
AS
1500 --enable-mathvec Enable building and installing mathvec [default
1501 depends on architecture]
f753fa7d
L
1502 --enable-cet enable Intel Control-flow Enforcement Technology
1503 (CET), x86 only
ebae2f5a
MC
1504 --disable-scv syscalls will not use scv instruction, even if the
1505 kernel supports it, powerpc only
64d9580c
FB
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.
3a12e572
UD
1510
1511Optional Packages:
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
8b748aed
JM
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
3a12e572
UD
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
6b7f6183 1519 --with-binutils=PATH specify location of binutils (as and ld)
74a30a58 1520 --with-selinux if building with SELinux support
6b7f6183 1521 --with-headers=PATH location of system headers to use (for example
26f56c1c 1522 /usr/src/linux/include) [default=compiler default]
6413fcde
FW
1523 --with-nonshared-cflags=CFLAGS
1524 build nonshared libraries with additional CFLAGS
9ba202c7
FW
1525 --with-rtld-early-cflags=CFLAGS
1526 build early initialization with additional CFLAGS
bada2e31
L
1527 --with-timeoutfactor=NUM
1528 specify an integer to scale the timeout
6c0be743
DD
1529 --with-man-pages=VERSION
1530 tie manual to a specific man-pages version
2ceaa76a 1531 --with-cpu=CPU select code for CPU variant
3a12e572
UD
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>
26f56c1c 1538 LIBS libraries to pass to the linker, e.g. -l<library>
b08c89d9 1539 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
26f56c1c 1540 you have headers in a nonstandard directory <include dir>
b79f2575 1541 TEST_CC C compiler for testing
3a12e572 1542 CPP C preprocessor
925c3c5c
UD
1543 CXX C++ compiler command
1544 CXXFLAGS C++ compiler flags
b79f2575 1545 TEST_CXX C++ compiler for testing
3a12e572 1546
98ffc1bf 1547Use these variables to override the choices made by 'configure' or to help
3a12e572
UD
1548it to find libraries and programs with nonstandard names/locations.
1549
a306c790 1550Report bugs to <https://sourceware.org/bugzilla/>.
02d35f06 1551GNU C Library home page: <https://www.gnu.org/software/glibc/>.
c6cb8783 1552General help using GNU software: <https://www.gnu.org/gethelp/>.
3a12e572 1553_ACEOF
26f56c1c 1554ac_status=$?
3a12e572
UD
1555fi
1556
1557if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
3a12e572 1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
322e23db
UD
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562 continue
3a12e572
UD
1563 ac_builddir=.
1564
26f56c1c
UD
1565case "$ac_dir" in
1566.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567*)
c6cb8783 1568 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
26f56c1c 1569 # A ".." for each directory in $ac_dir_suffix.
c6cb8783 1570 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26f56c1c
UD
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
3a12e572
UD
1580
1581case $srcdir in
26f56c1c 1582 .) # We are building in place.
3a12e572 1583 ac_srcdir=.
26f56c1c
UD
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
3a12e572 1587 ac_srcdir=$srcdir$ac_dir_suffix;
26f56c1c
UD
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 ;;
3a12e572 1594esac
26f56c1c
UD
1595ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597 cd "$ac_dir" || { ac_status=$?; continue; }
c6cb8783
SP
1598 # Check for configure.gnu first; this name is used for a wrapper for
1599 # Metaconfig's "Configure" on case-insensitive file systems.
26f56c1c
UD
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
3a12e572 1606 else
c6cb8783 1607 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
26f56c1c
UD
1608 fi || ac_status=$?
1609 cd "$ac_pwd" || { ac_status=$?; break; }
3a12e572
UD
1610 done
1611fi
1612
26f56c1c 1613test -n "$ac_init_help" && exit $ac_status
3a12e572
UD
1614if $ac_init_version; then
1615 cat <<\_ACEOF
f4b07664 1616GNU C Library configure (see version.h)
98ffc1bf 1617generated by GNU Autoconf 2.72
3a12e572 1618
98ffc1bf 1619Copyright (C) 2023 Free Software Foundation, Inc.
3a12e572
UD
1620This configure script is free software; the Free Software Foundation
1621gives unlimited permission to copy, distribute and modify it.
1622_ACEOF
26f56c1c 1623 exit
3a12e572 1624fi
3a12e572 1625
b08c89d9
UD
1626## ------------------------ ##
1627## Autoconf initialization. ##
1628## ------------------------ ##
3a12e572 1629
b08c89d9
UD
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 ()
3a12e572 1634{
b08c89d9 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c6cb8783 1636 rm -f conftest.$ac_objext conftest.beam
b08c89d9
UD
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\""
c6cb8783 1643printf "%s\n" "$ac_try_echo"; } >&5
b08c89d9
UD
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
c6cb8783 1651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b08c89d9
UD
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
c6cb8783
SP
1655 } && test -s conftest.$ac_objext
1656then :
b08c89d9 1657 ac_retval=0
98ffc1bf
AH
1658else case e in #(
1659 e) printf "%s\n" "$as_me: failed program was:" >&5
b08c89d9 1660sed 's/^/| /' conftest.$ac_ext >&5
3a12e572 1661
98ffc1bf
AH
1662 ac_retval=1 ;;
1663esac
b08c89d9 1664fi
f318beb8 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b08c89d9 1666 as_fn_set_status $ac_retval
3a12e572 1667
b08c89d9 1668} # ac_fn_c_try_compile
3a12e572 1669
b08c89d9
UD
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
c6cb8783 1676 rm -f conftest.$ac_objext conftest.beam
b08c89d9
UD
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\""
c6cb8783 1683printf "%s\n" "$ac_try_echo"; } >&5
b08c89d9
UD
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
c6cb8783 1691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b08c89d9
UD
1692 test $ac_status = 0; } && {
1693 test -z "$ac_cxx_werror_flag" ||
1694 test ! -s conftest.err
c6cb8783
SP
1695 } && test -s conftest.$ac_objext
1696then :
b08c89d9 1697 ac_retval=0
98ffc1bf
AH
1698else case e in #(
1699 e) printf "%s\n" "$as_me: failed program was:" >&5
b08c89d9
UD
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
98ffc1bf
AH
1702 ac_retval=1 ;;
1703esac
b08c89d9 1704fi
f318beb8 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b08c89d9
UD
1706 as_fn_set_status $ac_retval
1707
1708} # ac_fn_cxx_try_compile
1709
e4693aa7
RM
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
c6cb8783 1716 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
e4693aa7
RM
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\""
c6cb8783 1723printf "%s\n" "$ac_try_echo"; } >&5
e4693aa7
RM
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
c6cb8783 1731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
e4693aa7
RM
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
c6cb8783
SP
1738 }
1739then :
e4693aa7 1740 ac_retval=0
98ffc1bf
AH
1741else case e in #(
1742 e) printf "%s\n" "$as_me: failed program was:" >&5
e4693aa7
RM
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
98ffc1bf
AH
1745 ac_retval=1 ;;
1746esac
e4693aa7
RM
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
dff8da6b
PE
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 ()
b08c89d9
UD
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
dff8da6b 1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
b08c89d9
UD
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\""
c6cb8783 1770printf "%s\n" "$ac_try_echo"; } >&5
dff8da6b 1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
b08c89d9
UD
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
c6cb8783 1778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
dff8da6b
PE
1779 test $ac_status = 0; } > conftest.i && {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
b08c89d9 1781 test ! -s conftest.err
c6cb8783
SP
1782 }
1783then :
b08c89d9 1784 ac_retval=0
98ffc1bf
AH
1785else case e in #(
1786 e) printf "%s\n" "$as_me: failed program was:" >&5
b08c89d9
UD
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
98ffc1bf
AH
1789 ac_retval=1 ;;
1790esac
b08c89d9 1791fi
f318beb8 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b08c89d9
UD
1793 as_fn_set_status $ac_retval
1794
dff8da6b 1795} # ac_fn_c_try_cpp
b190bccc 1796
dff8da6b
PE
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 ()
b190bccc
NT
1801{
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
dff8da6b
PE
1803 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1804 if { { ac_try="$ac_link"
b190bccc
NT
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\""
c6cb8783 1810printf "%s\n" "$ac_try_echo"; } >&5
dff8da6b 1811 (eval "$ac_link") 2>conftest.err
b190bccc
NT
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
c6cb8783 1818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
dff8da6b
PE
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
b190bccc 1821 test ! -s conftest.err
dff8da6b
PE
1822 } && test -s conftest$ac_exeext && {
1823 test "$cross_compiling" = yes ||
1824 test -x conftest$ac_exeext
c6cb8783
SP
1825 }
1826then :
b190bccc 1827 ac_retval=0
98ffc1bf
AH
1828else case e in #(
1829 e) printf "%s\n" "$as_me: failed program was:" >&5
b190bccc
NT
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
98ffc1bf
AH
1832 ac_retval=1 ;;
1833esac
b190bccc 1834fi
dff8da6b
PE
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
b190bccc
NT
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
dff8da6b 1843} # ac_fn_c_try_link
c6cb8783
SP
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
b08c89d9
UD
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
98ffc1bf 1869generated by GNU Autoconf 2.72. Invocation command line was
b08c89d9 1870
c6cb8783 1871 $ $0$ac_configure_args_raw
b08c89d9
UD
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
3a12e572
UD
1899
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903 IFS=$as_save_IFS
c6cb8783
SP
1904 case $as_dir in #(((
1905 '') as_dir=./ ;;
1906 */) ;;
1907 *) as_dir=$as_dir/ ;;
1908 esac
1909 printf "%s\n" "PATH: $as_dir"
b08c89d9 1910 done
26f56c1c 1911IFS=$as_save_IFS
3a12e572
UD
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.
2abf9ff1 1927# Strip out --silent because we don't want to record it for future runs.
3a12e572 1928# Also quote any args containing shell meta-characters.
2abf9ff1 1929# Make two passes to allow for proper duplicate-argument suppression.
3a12e572 1930ac_configure_args=
2abf9ff1
RM
1931ac_configure_args0=
1932ac_configure_args1=
2abf9ff1
RM
1933ac_must_keep_next=false
1934for ac_pass in 1 2
3a12e572 1935do
2abf9ff1
RM
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 ;;
26f56c1c 1943 *\'*)
c6cb8783 1944 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2abf9ff1
RM
1945 esac
1946 case $ac_pass in
b08c89d9 1947 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2abf9ff1 1948 2)
b08c89d9 1949 as_fn_append ac_configure_args1 " '$ac_arg'"
2abf9ff1 1950 if test $ac_must_keep_next = true; then
9382fcee 1951 ac_must_keep_next=false # Got value, back to normal.
2abf9ff1 1952 else
9382fcee
RM
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
2abf9ff1 1964 fi
b08c89d9 1965 as_fn_append ac_configure_args " '$ac_arg'"
2abf9ff1
RM
1966 ;;
1967 esac
1968 done
3a12e572 1969done
b08c89d9
UD
1970{ ac_configure_args0=; unset ac_configure_args0;}
1971{ ac_configure_args1=; unset ac_configure_args1;}
3a12e572
UD
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.
26f56c1c
UD
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.
3a12e572 1978trap 'exit_status=$?
c6cb8783
SP
1979 # Sanitize IFS.
1980 IFS=" "" $as_nl"
3a12e572
UD
1981 # Save into config.log some information that might help in debugging.
1982 {
1983 echo
f4b07664 1984
c6cb8783 1985 printf "%s\n" "## ---------------- ##
3a12e572 1986## Cache variables. ##
4a531bb0 1987## ---------------- ##"
3a12e572
UD
1988 echo
1989 # The following way of writing the cache mishandles newlines in values,
26f56c1c
UD
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 #(
c6cb8783
SP
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;} ;;
26f56c1c
UD
1998 esac
1999 case $ac_var in #(
2000 _ | IFS | as_nl) ;; #(
322e23db 2001 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b08c89d9 2002 *) { eval $ac_var=; unset $ac_var;} ;;
26f56c1c
UD
2003 esac ;;
2004 esac
2005 done
3a12e572 2006 (set) 2>&1 |
26f56c1c
UD
2007 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008 *${as_nl}ac_space=\ *)
3a12e572 2009 sed -n \
26f56c1c
UD
2010 "s/'\''/'\''\\\\'\'''\''/g;
2011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012 ;; #(
3a12e572 2013 *)
26f56c1c 2014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3a12e572 2015 ;;
26f56c1c
UD
2016 esac |
2017 sort
2018)
3a12e572 2019 echo
f4b07664 2020
c6cb8783 2021 printf "%s\n" "## ----------------- ##
f4b07664 2022## Output variables. ##
4a531bb0 2023## ----------------- ##"
f4b07664
RM
2024 echo
2025 for ac_var in $ac_subst_vars
2026 do
26f56c1c
UD
2027 eval ac_val=\$$ac_var
2028 case $ac_val in
c6cb8783 2029 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
26f56c1c 2030 esac
c6cb8783 2031 printf "%s\n" "$ac_var='\''$ac_val'\''"
f4b07664
RM
2032 done | sort
2033 echo
2034
2035 if test -n "$ac_subst_files"; then
c6cb8783 2036 printf "%s\n" "## ------------------- ##
26f56c1c 2037## File substitutions. ##
4a531bb0 2038## ------------------- ##"
f4b07664
RM
2039 echo
2040 for ac_var in $ac_subst_files
2041 do
26f56c1c
UD
2042 eval ac_val=\$$ac_var
2043 case $ac_val in
c6cb8783 2044 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
26f56c1c 2045 esac
c6cb8783 2046 printf "%s\n" "$ac_var='\''$ac_val'\''"
f4b07664
RM
2047 done | sort
2048 echo
2049 fi
2050
3a12e572 2051 if test -s confdefs.h; then
c6cb8783 2052 printf "%s\n" "## ----------- ##
3a12e572 2053## confdefs.h. ##
4a531bb0 2054## ----------- ##"
3a12e572 2055 echo
26f56c1c 2056 cat confdefs.h
3a12e572
UD
2057 echo
2058 fi
2059 test "$ac_signal" != 0 &&
c6cb8783
SP
2060 printf "%s\n" "$as_me: caught signal $ac_signal"
2061 printf "%s\n" "$as_me: exit $exit_status"
3a12e572 2062 } >&5
26f56c1c
UD
2063 rm -f core *.core core.conftest.* &&
2064 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3a12e572 2065 exit $exit_status
26f56c1c 2066' 0
3a12e572 2067for ac_signal in 1 2 13 15; do
b08c89d9 2068 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3a12e572
UD
2069done
2070ac_signal=0
2071
2072# confdefs.h avoids OS command line length limits that DEFS can exceed.
26f56c1c 2073rm -f -r conftest* confdefs.h
3a12e572 2074
c6cb8783 2075printf "%s\n" "/* confdefs.h */" > confdefs.h
b08c89d9 2076
3a12e572
UD
2077# Predefined preprocessor variables.
2078
c6cb8783 2079printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3a12e572 2080
c6cb8783 2081printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3a12e572 2082
c6cb8783 2083printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3a12e572 2084
c6cb8783 2085printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3a12e572 2086
c6cb8783 2087printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3a12e572 2088
c6cb8783 2089printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
b08c89d9 2090
3a12e572
UD
2091
2092# Let the site file select an alternate cache file if it wants to.
322e23db 2093# Prefer an explicitly selected file to automatically selected ones.
26f56c1c 2094if test -n "$CONFIG_SITE"; then
c6cb8783 2095 ac_site_files="$CONFIG_SITE"
26f56c1c 2096elif test "x$prefix" != xNONE; then
c6cb8783 2097 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
26f56c1c 2098else
c6cb8783 2099 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
cd6ede75 2100fi
c6cb8783
SP
2101
2102for ac_site_file in $ac_site_files
26f56c1c 2103do
c6cb8783
SP
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;}
3a12e572 2113 sed 's/^/| /' "$ac_site_file" >&5
4a531bb0 2114 . "$ac_site_file" \
98ffc1bf
AH
2115 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2116printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4a531bb0 2117as_fn_error $? "failed to load site script $ac_site_file
98ffc1bf 2118See 'config.log' for more details" "$LINENO" 5; }
cd6ede75
UD
2119 fi
2120done
2121
2122if test -r "$cache_file"; then
b08c89d9
UD
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
c6cb8783
SP
2126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3a12e572 2128 case $cache_file in
26f56c1c
UD
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
3a12e572
UD
2131 esac
2132 fi
cd6ede75 2133else
c6cb8783
SP
2134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3a12e572
UD
2136 >$cache_file
2137fi
2138
c6cb8783
SP
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);
98ffc1bf 2154static char *e (char **p, int i)
c6cb8783
SP
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
98ffc1bf
AH
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
c6cb8783
SP
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='
98ffc1bf 2210/* Does the compiler advertise C99 conformance? */
c6cb8783
SP
2211#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2212# error "Compiler does not advertise C99 conformance"
2213#endif
2214
98ffc1bf
AH
2215// See if C++-style comments work.
2216
c6cb8783
SP
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);
98ffc1bf 2222extern void free (void *);
c6cb8783
SP
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{
c6cb8783
SP
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;
98ffc1bf
AH
2337 // Work around memory leak warnings.
2338 free (ia);
c6cb8783
SP
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='
98ffc1bf 2360/* Does the compiler advertise C11 conformance? */
c6cb8783
SP
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
98ffc1bf
AH
2759else case e in #(
2760 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2761esac
c6cb8783
SP
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
3a12e572
UD
2779# Check that the precious variables saved in the cache have kept the same
2780# value.
2781ac_cache_corrupted=false
26f56c1c 2782for ac_var in $ac_precious_vars; do
3a12e572
UD
2783 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2784 eval ac_new_set=\$ac_env_${ac_var}_set
26f56c1c
UD
2785 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2786 eval ac_new_val=\$ac_env_${ac_var}_value
3a12e572
UD
2787 case $ac_old_set,$ac_new_set in
2788 set,)
98ffc1bf
AH
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;}
3a12e572
UD
2791 ac_cache_corrupted=: ;;
2792 ,set)
98ffc1bf
AH
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;}
3a12e572
UD
2795 ac_cache_corrupted=: ;;
2796 ,);;
2797 *)
2798 if test "x$ac_old_val" != "x$ac_new_val"; then
322e23db
UD
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
98ffc1bf
AH
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;}
322e23db
UD
2805 ac_cache_corrupted=:
2806 else
98ffc1bf
AH
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;}
322e23db
UD
2809 eval $ac_var=\$ac_old_val
2810 fi
98ffc1bf
AH
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;}
3a12e572
UD
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
c6cb8783 2820 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3a12e572
UD
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.
b08c89d9 2825 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3a12e572
UD
2826 esac
2827 fi
2828done
2829if $ac_cache_corrupted; then
98ffc1bf
AH
2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2831printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
c6cb8783
SP
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;}
98ffc1bf 2834 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
c6cb8783 2835 and start over" "$LINENO" 5
cd6ede75 2836fi
b08c89d9
UD
2837## -------------------- ##
2838## Main body of script. ##
2839## -------------------- ##
cd6ede75 2840
b08c89d9
UD
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
3a12e572
UD
2846
2847
cd6ede75 2848
b08c89d9 2849ac_config_headers="$ac_config_headers config.h"
63bda0c1 2850
444518fe 2851
cd6ede75 2852
8b748aed
JM
2853
2854
2855# Check whether --with-pkgversion was given.
c6cb8783
SP
2856if test ${with_pkgversion+y}
2857then :
8b748aed
JM
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
98ffc1bf
AH
2863else case e in #(
2864 e) PKGVERSION="(GNU libc) "
2865 ;;
2866esac
8b748aed
JM
2867fi
2868
2869 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2870
2871
2872
2873
2874
2875# Check whether --with-bugurl was given.
c6cb8783
SP
2876if test ${with_bugurl+y}
2877then :
8b748aed
JM
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
98ffc1bf
AH
2885else case e in #(
2886 e) BUGURL="https://www.gnu.org/software/libc/bugs.html"
2887 ;;
2888esac
8b748aed
JM
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
c6cb8783 2905printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h
8b748aed
JM
2906
2907
c6cb8783 2908printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h
8b748aed
JM
2909
2910
918b5606
L
2911# Glibc should not depend on any header files
2912
2913
bb931195
TS
2914# We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2915# here to work around the Autoconf issue discussed in
a306c790 2916# <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
bb931195
TS
2917# AC_PROG_CPP
2918
b5a5da23
TS
2919# We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2920# issue discussed in
a306c790 2921# <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
b5a5da23
TS
2922
2923
7967983f
RM
2924
2925
2926subdirs="$subdirs "
2927
2928
c16a054d 2929
c6cb8783
SP
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
98ffc1bf
AH
2941else case e in #(
2942 e) ac_build_alias=$build_alias
c16a054d 2943test "x$ac_build_alias" = x &&
c6cb8783 2944 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
c16a054d 2945test "x$ac_build_alias" = x &&
4a531bb0 2946 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
c6cb8783
SP
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
98ffc1bf
AH
2949 ;;
2950esac
c16a054d 2951fi
c6cb8783
SP
2952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2953printf "%s\n" "$ac_cv_build" >&6; }
c16a054d
AS
2954case $ac_cv_build in
2955*-*-*) ;;
4a531bb0 2956*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
c16a054d
AS
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
c6cb8783
SP
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
98ffc1bf
AH
2977else case e in #(
2978 e) if test "x$host_alias" = x; then
c16a054d
AS
2979 ac_cv_host=$ac_cv_build
2980else
c6cb8783
SP
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
c16a054d 2983fi
98ffc1bf
AH
2984 ;;
2985esac
c16a054d 2986fi
c6cb8783
SP
2987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2988printf "%s\n" "$ac_cv_host" >&6; }
c16a054d
AS
2989case $ac_cv_host in
2990*-*-*) ;;
4a531bb0 2991*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
c16a054d
AS
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
c6cb8783
SP
3008
3009
3010
3011
3012
3013
3014
3015
3016
a152f366
UD
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
c6cb8783
SP
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
98ffc1bf
AH
3030else case e in #(
3031 e) if test -n "$CC"; then
a152f366
UD
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
c6cb8783
SP
3038 case $as_dir in #(((
3039 '') as_dir=./ ;;
3040 */) ;;
3041 *) as_dir=$as_dir/ ;;
3042 esac
b08c89d9 3043 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 3044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
a152f366 3045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
c6cb8783 3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
a152f366
UD
3047 break 2
3048 fi
3049done
b08c89d9 3050 done
a152f366 3051IFS=$as_save_IFS
c8f3e6db 3052
98ffc1bf
AH
3053fi ;;
3054esac
26f56c1c 3055fi
a152f366
UD
3056CC=$ac_cv_prog_CC
3057if test -n "$CC"; then
c6cb8783
SP
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059printf "%s\n" "$CC" >&6; }
a152f366 3060else
c6cb8783
SP
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062printf "%s\n" "no" >&6; }
26f56c1c
UD
3063fi
3064
e41db95b 3065
e41db95b 3066fi
a152f366
UD
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
c6cb8783
SP
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
98ffc1bf
AH
3076else case e in #(
3077 e) if test -n "$ac_ct_CC"; then
a152f366 3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a5a0310d 3079else
a152f366
UD
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
c6cb8783
SP
3084 case $as_dir in #(((
3085 '') as_dir=./ ;;
3086 */) ;;
3087 *) as_dir=$as_dir/ ;;
3088 esac
b08c89d9 3089 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 3090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
a152f366 3091 ac_cv_prog_ac_ct_CC="gcc"
c6cb8783 3092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
a152f366
UD
3093 break 2
3094 fi
3095done
b08c89d9 3096 done
a152f366 3097IFS=$as_save_IFS
cd6ede75 3098
98ffc1bf
AH
3099fi ;;
3100esac
a152f366
UD
3101fi
3102ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103if test -n "$ac_ct_CC"; then
c6cb8783
SP
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105printf "%s\n" "$ac_ct_CC" >&6; }
cd6ede75 3106else
c6cb8783
SP
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108printf "%s\n" "no" >&6; }
26f56c1c
UD
3109fi
3110
a152f366
UD
3111 if test "x$ac_ct_CC" = x; then
3112 CC=""
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115yes:)
c6cb8783
SP
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;}
a152f366
UD
3118ac_tool_warned=yes ;;
3119esac
3120 CC=$ac_ct_CC
3121 fi
74a30a58 3122else
a152f366 3123 CC="$ac_cv_prog_CC"
26f56c1c
UD
3124fi
3125
a152f366
UD
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
c6cb8783
SP
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
98ffc1bf
AH
3135else case e in #(
3136 e) if test -n "$CC"; then
a152f366
UD
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
c6cb8783
SP
3143 case $as_dir in #(((
3144 '') as_dir=./ ;;
3145 */) ;;
3146 *) as_dir=$as_dir/ ;;
3147 esac
b08c89d9 3148 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 3149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
a152f366 3150 ac_cv_prog_CC="${ac_tool_prefix}cc"
c6cb8783 3151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
a152f366
UD
3152 break 2
3153 fi
3154done
b08c89d9 3155 done
a152f366 3156IFS=$as_save_IFS
74a30a58 3157
98ffc1bf
AH
3158fi ;;
3159esac
a152f366
UD
3160fi
3161CC=$ac_cv_prog_CC
3162if test -n "$CC"; then
c6cb8783
SP
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164printf "%s\n" "$CC" >&6; }
5af3245a 3165else
c6cb8783
SP
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167printf "%s\n" "no" >&6; }
26f56c1c
UD
3168fi
3169
5af3245a 3170
a152f366 3171 fi
26f56c1c 3172fi
a152f366
UD
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
c6cb8783
SP
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
98ffc1bf
AH
3181else case e in #(
3182 e) if test -n "$CC"; then
a152f366
UD
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
c6cb8783
SP
3190 case $as_dir in #(((
3191 '') as_dir=./ ;;
3192 */) ;;
3193 *) as_dir=$as_dir/ ;;
3194 esac
b08c89d9 3195 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783
SP
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
a152f366
UD
3198 ac_prog_rejected=yes
3199 continue
3200 fi
3201 ac_cv_prog_CC="cc"
c6cb8783 3202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
a152f366
UD
3203 break 2
3204 fi
3205done
b08c89d9 3206 done
a152f366 3207IFS=$as_save_IFS
26f56c1c 3208
a152f366
UD
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
c6cb8783 3218 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
6b3f2b3d 3219 fi
4442d7e8 3220fi
98ffc1bf
AH
3221fi ;;
3222esac
26f56c1c 3223fi
a152f366
UD
3224CC=$ac_cv_prog_CC
3225if test -n "$CC"; then
c6cb8783
SP
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227printf "%s\n" "$CC" >&6; }
7dbde9db 3228else
c6cb8783
SP
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230printf "%s\n" "no" >&6; }
26f56c1c
UD
3231fi
3232
7dbde9db 3233
26f56c1c 3234fi
a152f366
UD
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
c6cb8783
SP
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
98ffc1bf
AH
3246else case e in #(
3247 e) if test -n "$CC"; then
a152f366 3248 ac_cv_prog_CC="$CC" # Let the user override the test.
cd6ede75 3249else
a152f366
UD
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253 IFS=$as_save_IFS
c6cb8783
SP
3254 case $as_dir in #(((
3255 '') as_dir=./ ;;
3256 */) ;;
3257 *) as_dir=$as_dir/ ;;
3258 esac
b08c89d9 3259 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 3260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
a152f366 3261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
c6cb8783 3262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
a152f366
UD
3263 break 2
3264 fi
3265done
b08c89d9 3266 done
a152f366 3267IFS=$as_save_IFS
26f56c1c 3268
98ffc1bf
AH
3269fi ;;
3270esac
a152f366
UD
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
c6cb8783
SP
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275printf "%s\n" "$CC" >&6; }
650425ce 3276else
c6cb8783
SP
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278printf "%s\n" "no" >&6; }
26f56c1c
UD
3279fi
3280
cd6ede75 3281
a152f366
UD
3282 test -n "$CC" && break
3283 done
26f56c1c 3284fi
a152f366
UD
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
c6cb8783
SP
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
98ffc1bf
AH
3296else case e in #(
3297 e) if test -n "$ac_ct_CC"; then
a152f366
UD
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
c6cb8783
SP
3304 case $as_dir in #(((
3305 '') as_dir=./ ;;
3306 */) ;;
3307 *) as_dir=$as_dir/ ;;
3308 esac
b08c89d9 3309 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 3310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
a152f366 3311 ac_cv_prog_ac_ct_CC="$ac_prog"
c6cb8783 3312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
a152f366
UD
3313 break 2
3314 fi
3315done
b08c89d9 3316 done
a152f366 3317IFS=$as_save_IFS
62ab42d6 3318
98ffc1bf
AH
3319fi ;;
3320esac
a152f366
UD
3321fi
3322ac_ct_CC=$ac_cv_prog_ac_ct_CC
3323if test -n "$ac_ct_CC"; then
c6cb8783
SP
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3325printf "%s\n" "$ac_ct_CC" >&6; }
35f1e827 3326else
c6cb8783
SP
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328printf "%s\n" "no" >&6; }
26f56c1c
UD
3329fi
3330
35f1e827 3331
a152f366
UD
3332 test -n "$ac_ct_CC" && break
3333done
35f1e827 3334
a152f366
UD
3335 if test "x$ac_ct_CC" = x; then
3336 CC=""
3337 else
3338 case $cross_compiling:$ac_tool_warned in
3339yes:)
c6cb8783
SP
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
98ffc1bf
AH
3358else case e in #(
3359 e) if test -n "$CC"; then
c6cb8783
SP
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
98ffc1bf
AH
3381fi ;;
3382esac
c6cb8783
SP
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
98ffc1bf
AH
3404else case e in #(
3405 e) if test -n "$ac_ct_CC"; then
c6cb8783
SP
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
98ffc1bf
AH
3427fi ;;
3428esac
c6cb8783
SP
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;}
a152f366
UD
3446ac_tool_warned=yes ;;
3447esac
3448 CC=$ac_ct_CC
3449 fi
c6cb8783
SP
3450else
3451 CC="$ac_cv_prog_CC"
26f56c1c 3452fi
cd6ede75 3453
26f56c1c 3454fi
8d4b5a8a
UD
3455
3456
98ffc1bf
AH
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;}
4a531bb0 3459as_fn_error $? "no acceptable C compiler found in \$PATH
98ffc1bf 3460See 'config.log' for more details" "$LINENO" 5; }
26f56c1c 3461
a152f366 3462# Provide some information about the compiler.
c6cb8783 3463printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
322e23db
UD
3464set X $ac_compile
3465ac_compiler=$2
c6cb8783 3466for ac_option in --version -v -V -qversion -version; do
b08c89d9 3467 { { ac_try="$ac_compiler $ac_option >&5"
a152f366
UD
3468case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471esac
b08c89d9 3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
c6cb8783 3473printf "%s\n" "$ac_try_echo"; } >&5
b08c89d9 3474 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
a152f366 3475 ac_status=$?
b08c89d9
UD
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
c6cb8783 3483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b08c89d9
UD
3484 test $ac_status = 0; }
3485done
26f56c1c 3486
a152f366 3487EXEEXT=
c6cb8783
SP
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
98ffc1bf
AH
3493else case e in #(
3494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366 3495/* end confdefs.h. */
749a9a4f 3496
a152f366 3497int
c6cb8783 3498main (void)
a152f366 3499{
749a9a4f 3500
a152f366
UD
3501 ;
3502 return 0;
3503}
3504_ACEOF
3505rm -f conftest.o conftest.obj
b08c89d9 3506if { { ac_try="$ac_compile"
a152f366
UD
3507case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510esac
b08c89d9 3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
c6cb8783 3512printf "%s\n" "$ac_try_echo"; } >&5
a152f366
UD
3513 (eval "$ac_compile") 2>&5
3514 ac_status=$?
c6cb8783
SP
3515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }
3517then :
a152f366
UD
3518 for ac_file in conftest.o conftest.obj conftest.*; do
3519 test -f "$ac_file" || continue;
3520 case $ac_file in
322e23db 3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
a152f366
UD
3522 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3523 break;;
3524 esac
3525done
98ffc1bf
AH
3526else case e in #(
3527 e) printf "%s\n" "$as_me: failed program was:" >&5
a152f366 3528sed 's/^/| /' conftest.$ac_ext >&5
26f56c1c 3529
98ffc1bf
AH
3530{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3531printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4a531bb0 3532as_fn_error $? "cannot compute suffix of object files: cannot compile
98ffc1bf
AH
3533See 'config.log' for more details" "$LINENO" 5; } ;;
3534esac
26f56c1c 3535fi
98ffc1bf
AH
3536rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3537esac
cd6ede75 3538fi
c6cb8783
SP
3539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3540printf "%s\n" "$ac_cv_objext" >&6; }
a152f366
UD
3541OBJEXT=$ac_cv_objext
3542ac_objext=$OBJEXT
c6cb8783
SP
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
98ffc1bf
AH
3548else case e in #(
3549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366 3550/* end confdefs.h. */
73237de3 3551
a152f366 3552int
c6cb8783 3553main (void)
a152f366
UD
3554{
3555#ifndef __GNUC__
3556 choke me
3557#endif
73237de3 3558
a152f366
UD
3559 ;
3560 return 0;
3561}
3562_ACEOF
c6cb8783
SP
3563if ac_fn_c_try_compile "$LINENO"
3564then :
a152f366 3565 ac_compiler_gnu=yes
98ffc1bf
AH
3566else case e in #(
3567 e) ac_compiler_gnu=no ;;
3568esac
26f56c1c 3569fi
c6cb8783 3570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
a152f366 3571ac_cv_c_compiler_gnu=$ac_compiler_gnu
98ffc1bf
AH
3572 ;;
3573esac
26f56c1c 3574fi
c6cb8783
SP
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
322e23db
UD
3579if test $ac_compiler_gnu = yes; then
3580 GCC=yes
3581else
3582 GCC=
3583fi
c6cb8783 3584ac_test_CFLAGS=${CFLAGS+y}
a152f366 3585ac_save_CFLAGS=$CFLAGS
c6cb8783
SP
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
98ffc1bf
AH
3591else case e in #(
3592 e) ac_save_c_werror_flag=$ac_c_werror_flag
a152f366
UD
3593 ac_c_werror_flag=yes
3594 ac_cv_prog_cc_g=no
3595 CFLAGS="-g"
b08c89d9 3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366 3597/* end confdefs.h. */
26f56c1c 3598
a152f366 3599int
c6cb8783 3600main (void)
a152f366 3601{
958f238f 3602
a152f366
UD
3603 ;
3604 return 0;
3605}
3606_ACEOF
c6cb8783
SP
3607if ac_fn_c_try_compile "$LINENO"
3608then :
a152f366 3609 ac_cv_prog_cc_g=yes
98ffc1bf
AH
3610else case e in #(
3611 e) CFLAGS=""
b08c89d9 3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366 3613/* end confdefs.h. */
425ce2ed 3614
a152f366 3615int
c6cb8783 3616main (void)
a152f366 3617{
425ce2ed 3618
a152f366
UD
3619 ;
3620 return 0;
3621}
3622_ACEOF
c6cb8783
SP
3623if ac_fn_c_try_compile "$LINENO"
3624then :
425ce2ed 3625
98ffc1bf
AH
3626else case e in #(
3627 e) ac_c_werror_flag=$ac_save_c_werror_flag
a152f366 3628 CFLAGS="-g"
b08c89d9 3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366 3630/* end confdefs.h. */
425ce2ed 3631
a152f366 3632int
c6cb8783 3633main (void)
a152f366 3634{
425ce2ed 3635
a152f366
UD
3636 ;
3637 return 0;
3638}
3639_ACEOF
c6cb8783
SP
3640if ac_fn_c_try_compile "$LINENO"
3641then :
a152f366 3642 ac_cv_prog_cc_g=yes
ff886b82 3643fi
98ffc1bf
AH
3644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3645esac
ff886b82 3646fi
98ffc1bf
AH
3647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3648esac
a152f366 3649fi
c6cb8783 3650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
98ffc1bf
AH
3651 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3652esac
ff886b82 3653fi
c6cb8783
SP
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
a152f366
UD
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
ff886b82 3664else
a152f366
UD
3665 if test "$GCC" = yes; then
3666 CFLAGS="-O2"
3667 else
3668 CFLAGS=
ff886b82 3669 fi
ff886b82 3670fi
c6cb8783
SP
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
98ffc1bf
AH
3679else case e in #(
3680 e) ac_cv_prog_cc_c11=no
c6cb8783
SP
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
98ffc1bf
AH
3697CC=$ac_save_CC ;;
3698esac
c6cb8783
SP
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; }
98ffc1bf
AH
3705else case e in #(
3706 e) if test "x$ac_cv_prog_cc_c11" = x
c6cb8783
SP
3707then :
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3709printf "%s\n" "none needed" >&6; }
98ffc1bf
AH
3710else case e in #(
3711 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
c6cb8783 3712printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
98ffc1bf
AH
3713 CC="$CC $ac_cv_prog_cc_c11" ;;
3714esac
c6cb8783
SP
3715fi
3716 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
98ffc1bf
AH
3717 ac_prog_cc_stdc=c11 ;;
3718esac
c6cb8783
SP
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
98ffc1bf
AH
3728else case e in #(
3729 e) ac_cv_prog_cc_c99=no
c6cb8783
SP
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
98ffc1bf
AH
3746CC=$ac_save_CC ;;
3747esac
c6cb8783
SP
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; }
98ffc1bf
AH
3754else case e in #(
3755 e) if test "x$ac_cv_prog_cc_c99" = x
c6cb8783
SP
3756then :
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3758printf "%s\n" "none needed" >&6; }
98ffc1bf
AH
3759else case e in #(
3760 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
c6cb8783 3761printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
98ffc1bf
AH
3762 CC="$CC $ac_cv_prog_cc_c99" ;;
3763esac
c6cb8783
SP
3764fi
3765 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
98ffc1bf
AH
3766 ac_prog_cc_stdc=c99 ;;
3767esac
c6cb8783
SP
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
98ffc1bf
AH
3777else case e in #(
3778 e) ac_cv_prog_cc_c89=no
c6cb8783
SP
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
98ffc1bf
AH
3795CC=$ac_save_CC ;;
3796esac
c6cb8783
SP
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; }
98ffc1bf
AH
3803else case e in #(
3804 e) if test "x$ac_cv_prog_cc_c89" = x
c6cb8783
SP
3805then :
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3807printf "%s\n" "none needed" >&6; }
98ffc1bf
AH
3808else case e in #(
3809 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
c6cb8783 3810printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
98ffc1bf
AH
3811 CC="$CC $ac_cv_prog_cc_c89" ;;
3812esac
c6cb8783
SP
3813fi
3814 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
98ffc1bf
AH
3815 ac_prog_cc_stdc=c89 ;;
3816esac
c6cb8783
SP
3817fi
3818fi
a152f366
UD
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
b79f2575
L
3826
3827if test -z "$TEST_CC"; then
3828 TEST_CC="$CC"
3829fi
a152f366
UD
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
c6cb8783
SP
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
98ffc1bf
AH
3840else case e in #(
3841 e) if test -n "$BUILD_CC"; then
a152f366 3842 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
ff886b82
UD
3843else
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847 IFS=$as_save_IFS
c6cb8783
SP
3848 case $as_dir in #(((
3849 '') as_dir=./ ;;
3850 */) ;;
3851 *) as_dir=$as_dir/ ;;
3852 esac
b08c89d9 3853 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 3854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
a152f366 3855 ac_cv_prog_BUILD_CC="$ac_prog"
c6cb8783 3856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
ff886b82
UD
3857 break 2
3858 fi
3859done
b08c89d9 3860 done
ff886b82
UD
3861IFS=$as_save_IFS
3862
98ffc1bf
AH
3863fi ;;
3864esac
ff886b82 3865fi
a152f366
UD
3866BUILD_CC=$ac_cv_prog_BUILD_CC
3867if test -n "$BUILD_CC"; then
c6cb8783
SP
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3869printf "%s\n" "$BUILD_CC" >&6; }
ff886b82 3870else
c6cb8783
SP
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872printf "%s\n" "no" >&6; }
ff886b82
UD
3873fi
3874
3875
a152f366 3876 test -n "$BUILD_CC" && break
ff886b82 3877done
ff886b82
UD
3878
3879fi
ff886b82 3880
a152f366
UD
3881# On Suns, sometimes $CPP names a directory.
3882if test -n "$CPP" && test -d "$CPP"; then
3883 CPP=
ff886b82 3884fi
a152f366 3885if test -z "$CPP"; then
bb931195 3886 CPP="$CC -E"
ff886b82 3887fi
a152f366 3888
e4693aa7 3889
ba144c17
L
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
6c0be743
DD
3897else case e in #(
3898 e) static_cxx_tests=yes ;;
3899esac
ba144c17
L
3900fi
3901
3902config_vars="$config_vars
3903static-cxx-tests = $static_cxx_tests"
3904
23f12e6e
L
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
6c0be743
DD
3909else case e in #(
3910 e) static_cxx_link_check=yes ;;
3911esac
23f12e6e
L
3912fi
3913
3914
ad36038c 3915# We need the C++ compiler for testing and libsupport.
c6cb8783
SP
3916
3917
3918
3919
3920
3921
a152f366
UD
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
c6cb8783 3932 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
a152f366
UD
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
c6cb8783
SP
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
98ffc1bf
AH
3941else case e in #(
3942 e) if test -n "$CXX"; then
a152f366
UD
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
c6cb8783
SP
3949 case $as_dir in #(((
3950 '') as_dir=./ ;;
3951 */) ;;
3952 *) as_dir=$as_dir/ ;;
3953 esac
b08c89d9 3954 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 3955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
a152f366 3956 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
c6cb8783 3957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
a152f366
UD
3958 break 2
3959 fi
3960done
b08c89d9 3961 done
a152f366
UD
3962IFS=$as_save_IFS
3963
98ffc1bf
AH
3964fi ;;
3965esac
a152f366
UD
3966fi
3967CXX=$ac_cv_prog_CXX
3968if test -n "$CXX"; then
c6cb8783
SP
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3970printf "%s\n" "$CXX" >&6; }
a152f366 3971else
c6cb8783
SP
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973printf "%s\n" "no" >&6; }
a152f366
UD
3974fi
3975
3976
3977 test -n "$CXX" && break
3978 done
3979fi
3980if test -z "$CXX"; then
3981 ac_ct_CXX=$CXX
c6cb8783 3982 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
a152f366
UD
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
c6cb8783
SP
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
98ffc1bf
AH
3991else case e in #(
3992 e) if test -n "$ac_ct_CXX"; then
a152f366
UD
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
c6cb8783
SP
3999 case $as_dir in #(((
4000 '') as_dir=./ ;;
4001 */) ;;
4002 *) as_dir=$as_dir/ ;;
4003 esac
b08c89d9 4004 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 4005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
a152f366 4006 ac_cv_prog_ac_ct_CXX="$ac_prog"
c6cb8783 4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
a152f366
UD
4008 break 2
4009 fi
4010done
b08c89d9 4011 done
a152f366
UD
4012IFS=$as_save_IFS
4013
98ffc1bf
AH
4014fi ;;
4015esac
a152f366
UD
4016fi
4017ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4018if test -n "$ac_ct_CXX"; then
c6cb8783
SP
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4020printf "%s\n" "$ac_ct_CXX" >&6; }
a152f366 4021else
c6cb8783
SP
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023printf "%s\n" "no" >&6; }
a152f366
UD
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:)
c6cb8783
SP
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;}
a152f366
UD
4037ac_tool_warned=yes ;;
4038esac
4039 CXX=$ac_ct_CXX
4040 fi
4041fi
4042
4043 fi
4044fi
4045# Provide some information about the compiler.
c6cb8783 4046printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
322e23db
UD
4047set X $ac_compile
4048ac_compiler=$2
b08c89d9
UD
4049for ac_option in --version -v -V -qversion; do
4050 { { ac_try="$ac_compiler $ac_option >&5"
a152f366
UD
4051case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054esac
b08c89d9 4055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
c6cb8783 4056printf "%s\n" "$ac_try_echo"; } >&5
b08c89d9 4057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
a152f366 4058 ac_status=$?
b08c89d9
UD
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
c6cb8783 4066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b08c89d9
UD
4067 test $ac_status = 0; }
4068done
a152f366 4069
c6cb8783
SP
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
98ffc1bf
AH
4075else case e in #(
4076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff886b82
UD
4077/* end confdefs.h. */
4078
4079int
c6cb8783 4080main (void)
ff886b82 4081{
a152f366
UD
4082#ifndef __GNUC__
4083 choke me
4084#endif
ff886b82
UD
4085
4086 ;
4087 return 0;
4088}
4089_ACEOF
c6cb8783
SP
4090if ac_fn_cxx_try_compile "$LINENO"
4091then :
a152f366 4092 ac_compiler_gnu=yes
98ffc1bf
AH
4093else case e in #(
4094 e) ac_compiler_gnu=no ;;
4095esac
ff886b82 4096fi
c6cb8783 4097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
a152f366 4098ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
98ffc1bf
AH
4099 ;;
4100esac
ff886b82 4101fi
c6cb8783
SP
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
322e23db
UD
4106if test $ac_compiler_gnu = yes; then
4107 GXX=yes
4108else
4109 GXX=
4110fi
c6cb8783 4111ac_test_CXXFLAGS=${CXXFLAGS+y}
a152f366 4112ac_save_CXXFLAGS=$CXXFLAGS
c6cb8783
SP
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
98ffc1bf
AH
4118else case e in #(
4119 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
a152f366
UD
4120 ac_cxx_werror_flag=yes
4121 ac_cv_prog_cxx_g=no
4122 CXXFLAGS="-g"
b08c89d9 4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff886b82 4124/* end confdefs.h. */
ff886b82 4125
ff886b82 4126int
c6cb8783 4127main (void)
ff886b82 4128{
a152f366 4129
ff886b82
UD
4130 ;
4131 return 0;
4132}
4133_ACEOF
c6cb8783
SP
4134if ac_fn_cxx_try_compile "$LINENO"
4135then :
a152f366 4136 ac_cv_prog_cxx_g=yes
98ffc1bf
AH
4137else case e in #(
4138 e) CXXFLAGS=""
b08c89d9 4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366 4140/* end confdefs.h. */
ff886b82 4141
a152f366 4142int
c6cb8783 4143main (void)
a152f366 4144{
ff886b82 4145
a152f366
UD
4146 ;
4147 return 0;
4148}
ff886b82 4149_ACEOF
c6cb8783
SP
4150if ac_fn_cxx_try_compile "$LINENO"
4151then :
ff886b82 4152
98ffc1bf
AH
4153else case e in #(
4154 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
a152f366 4155 CXXFLAGS="-g"
b08c89d9 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff886b82 4157/* end confdefs.h. */
a152f366 4158
ff886b82 4159int
c6cb8783 4160main (void)
ff886b82 4161{
a152f366 4162
ff886b82
UD
4163 ;
4164 return 0;
4165}
4166_ACEOF
c6cb8783
SP
4167if ac_fn_cxx_try_compile "$LINENO"
4168then :
a152f366 4169 ac_cv_prog_cxx_g=yes
ff886b82 4170fi
98ffc1bf
AH
4171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4172esac
a152f366 4173fi
98ffc1bf
AH
4174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4175esac
a152f366 4176fi
c6cb8783 4177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
98ffc1bf
AH
4178 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4179esac
a152f366 4180fi
c6cb8783
SP
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
a152f366
UD
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
3a12e572 4191else
a152f366
UD
4192 if test "$GXX" = yes; then
4193 CXXFLAGS="-O2"
4194 else
4195 CXXFLAGS=
4196 fi
3a12e572 4197fi
c6cb8783
SP
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
98ffc1bf
AH
4206else case e in #(
4207 e) ac_cv_prog_cxx_cxx11=no
c6cb8783
SP
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
98ffc1bf
AH
4224CXX=$ac_save_CXX ;;
4225esac
c6cb8783
SP
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; }
98ffc1bf
AH
4232else case e in #(
4233 e) if test "x$ac_cv_prog_cxx_cxx11" = x
c6cb8783
SP
4234then :
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4236printf "%s\n" "none needed" >&6; }
98ffc1bf
AH
4237else case e in #(
4238 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
c6cb8783 4239printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
98ffc1bf
AH
4240 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4241esac
c6cb8783
SP
4242fi
4243 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
98ffc1bf
AH
4244 ac_prog_cxx_stdcxx=cxx11 ;;
4245esac
c6cb8783
SP
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
98ffc1bf
AH
4255else case e in #(
4256 e) ac_cv_prog_cxx_cxx98=no
c6cb8783
SP
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
98ffc1bf
AH
4273CXX=$ac_save_CXX ;;
4274esac
c6cb8783
SP
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; }
98ffc1bf
AH
4281else case e in #(
4282 e) if test "x$ac_cv_prog_cxx_cxx98" = x
c6cb8783
SP
4283then :
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4285printf "%s\n" "none needed" >&6; }
98ffc1bf
AH
4286else case e in #(
4287 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
c6cb8783 4288printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
98ffc1bf
AH
4289 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4290esac
c6cb8783
SP
4291fi
4292 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
98ffc1bf
AH
4293 ac_prog_cxx_stdcxx=cxx98 ;;
4294esac
c6cb8783
SP
4295fi
4296fi
4297
a152f366
UD
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
26f56c1c 4303
b79f2575 4304
ad36038c 4305saved_CXX="$CXX"
b79f2575 4306if test -z "$TEST_CXX"; then
b79f2575
L
4307 TEST_CXX="$CXX"
4308else
b79f2575
L
4309 CXX="$TEST_CXX"
4310fi
e4693aa7 4311# It's useless to us if it can't link programs (e.g. missing -lstdc++).
0cae3f4b 4312
c6cb8783
SP
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
98ffc1bf
AH
4318else case e in #(
4319 e) ac_ext=cpp
e4693aa7
RM
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
0cae3f4b 4324
d337ceb7 4325# Default, dynamic case.
e4693aa7
RM
4326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h. */
0cae3f4b 4328
e4693aa7 4329int
c6cb8783 4330main (void)
e4693aa7 4331{
0cae3f4b 4332
e4693aa7
RM
4333 ;
4334 return 0;
4335}
4336_ACEOF
c6cb8783
SP
4337if ac_fn_cxx_try_link "$LINENO"
4338then :
e4693aa7 4339 libc_cv_cxx_link_ok=yes
98ffc1bf
AH
4340else case e in #(
4341 e) libc_cv_cxx_link_ok=no ;;
4342esac
0cae3f4b 4343fi
c6cb8783 4344rm -f core conftest.err conftest.$ac_objext conftest.beam \
e4693aa7 4345 conftest$ac_exeext conftest.$ac_ext
ba144c17 4346if test $static_cxx_link_check$static_cxx_tests = yesyes; then
23f12e6e
L
4347 # Static case.
4348 old_LDFLAGS="$LDFLAGS"
4349 LDFLAGS="$LDFLAGS -static"
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d337ceb7
FW
4351/* end confdefs.h. */
4352
4353#include <iostream>
4354
4355int
4356main()
4357{
4358 std::cout << "Hello, world!";
4359 return 0;
4360}
4361
4362_ACEOF
c6cb8783
SP
4363if ac_fn_cxx_try_link "$LINENO"
4364then :
d337ceb7 4365
98ffc1bf
AH
4366else case e in #(
4367 e) libc_cv_cxx_link_ok=no ;;
4368esac
d337ceb7 4369fi
c6cb8783 4370rm -f core conftest.err conftest.$ac_objext conftest.beam \
d337ceb7 4371 conftest$ac_exeext conftest.$ac_ext
23f12e6e
L
4372 LDFLAGS="$old_LDFLAGS"
4373fi
e4693aa7
RM
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
98ffc1bf
AH
4379 ;;
4380esac
0cae3f4b 4381fi
c6cb8783
SP
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; }
ad36038c 4384CXX="$saved_CXX"
c6cb8783
SP
4385if test $libc_cv_cxx_link_ok != yes
4386then :
3ac826b0 4387 CXX=; TEST_CXX=
b79f2575 4388fi
26f56c1c 4389
db340c90 4390if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
4a531bb0 4391 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
26f56c1c 4392fi
3a12e572 4393
a152f366
UD
4394# Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
4395
4396# Check whether --with-gd was given.
c6cb8783
SP
4397if test ${with_gd+y}
4398then :
a152f366
UD
4399 withval=$with_gd; case "$with_gd" in
4400yes|''|no) ;;
4401*) libgd_include="-I$withval/include"
4402 libgd_ldflags="-L$withval/lib" ;;
26f56c1c 4403esac
cd6ede75 4404
a152f366 4405fi
cd6ede75
UD
4406
4407
a152f366 4408# Check whether --with-gd-include was given.
c6cb8783
SP
4409if test ${with_gd_include+y}
4410then :
a152f366
UD
4411 withval=$with_gd_include; case "$with_gd_include" in
4412''|no) ;;
4413*) libgd_include="-I$withval" ;;
cd6ede75
UD
4414esac
4415
a152f366 4416fi
cd6ede75 4417
0816838f 4418
a152f366 4419# Check whether --with-gd-lib was given.
c6cb8783
SP
4420if test ${with_gd_lib+y}
4421then :
a152f366
UD
4422 withval=$with_gd_lib; case "$with_gd_lib" in
4423''|no) ;;
4424*) libgd_ldflags="-L$withval" ;;
cd6ede75
UD
4425esac
4426
a808d541
UD
4427fi
4428
f4b07664 4429
a152f366
UD
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
2ceaa76a 4438
2ceaa76a 4439
a152f366 4440# Check whether --with-binutils was given.
c6cb8783
SP
4441if test ${with_binutils+y}
4442then :
a152f366 4443 withval=$with_binutils; path_binutils=$withval
98ffc1bf
AH
4444else case e in #(
4445 e) path_binutils='' ;;
4446esac
a152f366 4447fi
ff886b82
UD
4448
4449
a152f366 4450# Check whether --with-selinux was given.
c6cb8783
SP
4451if test ${with_selinux+y}
4452then :
a152f366 4453 withval=$with_selinux; with_selinux=$withval
98ffc1bf
AH
4454else case e in #(
4455 e) with_selinux=auto ;;
4456esac
a152f366 4457fi
e0a3ed4f 4458
8f73811b 4459
e0a3ed4f 4460
a152f366 4461# Check whether --with-headers was given.
c6cb8783
SP
4462if test ${with_headers+y}
4463then :
a152f366 4464 withval=$with_headers; sysheaders=$withval
98ffc1bf
AH
4465else case e in #(
4466 e) sysheaders='' ;;
4467esac
7efb9bd1
UD
4468fi
4469
dfd2257a 4470
f781ef40
RM
4471
4472
6413fcde 4473# Check whether --with-nonshared-cflags was given.
c6cb8783
SP
4474if test ${with_nonshared_cflags+y}
4475then :
6413fcde 4476 withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval
98ffc1bf
AH
4477else case e in #(
4478 e) extra_nonshared_cflags= ;;
4479esac
6413fcde
FW
4480fi
4481
4482
4483
9ba202c7 4484# Check whether --with-rtld-early-cflags was given.
c6cb8783
SP
4485if test ${with_rtld_early_cflags+y}
4486then :
9ba202c7 4487 withval=$with_rtld_early_cflags; rtld_early_cflags=$withval
98ffc1bf
AH
4488else case e in #(
4489 e) rtld_early_cflags= ;;
4490esac
9ba202c7
FW
4491fi
4492
4493
4494
bada2e31
L
4495
4496# Check whether --with-timeoutfactor was given.
c6cb8783
SP
4497if test ${with_timeoutfactor+y}
4498then :
bada2e31 4499 withval=$with_timeoutfactor; timeoutfactor=$withval
98ffc1bf
AH
4500else case e in #(
4501 e) timeoutfactor=1 ;;
4502esac
bada2e31
L
4503fi
4504
c6cb8783 4505printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h
bada2e31
L
4506
4507
6c0be743
DD
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
a152f366 4519# Check whether --enable-sanity-checks was given.
c6cb8783
SP
4520if test ${enable_sanity_checks+y}
4521then :
a152f366 4522 enableval=$enable_sanity_checks; enable_sanity=$enableval
98ffc1bf
AH
4523else case e in #(
4524 e) enable_sanity=yes ;;
4525esac
dfd2257a
UD
4526fi
4527
cd6ede75 4528
a152f366 4529# Check whether --enable-shared was given.
c6cb8783
SP
4530if test ${enable_shared+y}
4531then :
a152f366 4532 enableval=$enable_shared; shared=$enableval
98ffc1bf
AH
4533else case e in #(
4534 e) shared=yes ;;
4535esac
a152f366 4536fi
cd6ede75 4537
a152f366 4538# Check whether --enable-profile was given.
c6cb8783
SP
4539if test ${enable_profile+y}
4540then :
a152f366 4541 enableval=$enable_profile; profile=$enableval
98ffc1bf
AH
4542else case e in #(
4543 e) profile=no ;;
4544esac
a152f366 4545fi
cd6ede75 4546
23645707 4547# Check whether --enable-default-pie was given.
c6cb8783
SP
4548if test ${enable_default_pie+y}
4549then :
23645707 4550 enableval=$enable_default_pie; default_pie=$enableval
98ffc1bf
AH
4551else case e in #(
4552 e) default_pie=yes ;;
4553esac
9d7a3741
L
4554fi
4555
1cba4036 4556# Check whether --enable-timezone-tools was given.
c6cb8783
SP
4557if test ${enable_timezone_tools+y}
4558then :
1cba4036 4559 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
98ffc1bf
AH
4560else case e in #(
4561 e) enable_timezone_tools=yes ;;
4562esac
1cba4036
MF
4563fi
4564
4565
a152f366 4566
740b3dbe 4567# Check whether --enable-hardcoded-path-in-tests was given.
c6cb8783
SP
4568if test ${enable_hardcoded_path_in_tests+y}
4569then :
740b3dbe 4570 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
98ffc1bf
AH
4571else case e in #(
4572 e) hardcoded_path_in_tests=no ;;
4573esac
740b3dbe
L
4574fi
4575
4576
4577
a152f366 4578# Check whether --enable-hidden-plt was given.
c6cb8783
SP
4579if test ${enable_hidden_plt+y}
4580then :
a152f366 4581 enableval=$enable_hidden_plt; hidden=$enableval
98ffc1bf
AH
4582else case e in #(
4583 e) hidden=yes ;;
4584esac
2de7874e 4585fi
cd6ede75 4586
a152f366 4587if test "x$hidden" = xno; then
c6cb8783 4588 printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h
cd6ede75 4589
a152f366 4590fi
e0a3ed4f 4591
a152f366 4592# Check whether --enable-bind-now was given.
c6cb8783
SP
4593if test ${enable_bind_now+y}
4594then :
a152f366 4595 enableval=$enable_bind_now; bindnow=$enableval
98ffc1bf
AH
4596else case e in #(
4597 e) bindnow=no ;;
4598esac
a152f366 4599fi
e0a3ed4f 4600
e0a3ed4f 4601
6901def6 4602if test "x$bindnow" = xyes; then
c6cb8783 4603 printf "%s\n" "#define BIND_NOW 1" >>confdefs.h
6901def6
L
4604
4605fi
e0a3ed4f 4606
03baef1c 4607# Check whether --enable-stack-protector was given.
c6cb8783
SP
4608if test ${enable_stack_protector+y}
4609then :
03baef1c 4610 enableval=$enable_stack_protector; enable_stack_protector=$enableval
98ffc1bf
AH
4611else case e in #(
4612 e) enable_stack_protector=no ;;
4613esac
03baef1c
NA
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
a152f366 4621# Check whether --enable-static-nss was given.
c6cb8783
SP
4622if test ${enable_static_nss+y}
4623then :
a152f366 4624 enableval=$enable_static_nss; static_nss=$enableval
98ffc1bf
AH
4625else case e in #(
4626 e) static_nss=no ;;
4627esac
a152f366 4628fi
e0a3ed4f 4629
a152f366
UD
4630if test x"$static_nss" = xyes || test x"$shared" = xno; then
4631 static_nss=yes
c6cb8783 4632 printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h
cd6ede75 4633
a152f366 4634fi
cd6ede75 4635
a152f366 4636# Check whether --enable-force-install was given.
c6cb8783
SP
4637if test ${enable_force_install+y}
4638then :
a152f366 4639 enableval=$enable_force_install; force_install=$enableval
98ffc1bf
AH
4640else case e in #(
4641 e) force_install=yes ;;
4642esac
a152f366 4643fi
ff886b82 4644
3a12e572 4645
cd6ede75 4646
8894bad3 4647# Check whether --enable-maintainer-mode was given.
c6cb8783
SP
4648if test ${enable_maintainer_mode+y}
4649then :
8894bad3 4650 enableval=$enable_maintainer_mode; maintainer=$enableval
98ffc1bf
AH
4651else case e in #(
4652 e) maintainer=no ;;
4653esac
8894bad3
AM
4654fi
4655
4656
a152f366 4657# Check whether --enable-kernel was given.
c6cb8783
SP
4658if test ${enable_kernel+y}
4659then :
a152f366 4660 enableval=$enable_kernel; minimum_kernel=$enableval
cd6ede75 4661fi
a152f366
UD
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=
cd6ede75
UD
4669 fi
4670fi
cd6ede75 4671
a4ecc9eb 4672# Check whether --enable-werror was given.
c6cb8783
SP
4673if test ${enable_werror+y}
4674then :
a4ecc9eb 4675 enableval=$enable_werror; enable_werror=$enableval
98ffc1bf
AH
4676else case e in #(
4677 e) enable_werror=yes ;;
4678esac
a4ecc9eb
JM
4679fi
4680
4681
4682
a152f366 4683# Check whether --enable-multi-arch was given.
c6cb8783
SP
4684if test ${enable_multi_arch+y}
4685then :
a152f366 4686 enableval=$enable_multi_arch; multi_arch=$enableval
98ffc1bf
AH
4687else case e in #(
4688 e) multi_arch=default ;;
4689esac
cd6ede75
UD
4690fi
4691
4bca4c17 4692
33784089 4693# Check whether --enable-memory-tagging was given.
c6cb8783
SP
4694if test ${enable_memory_tagging+y}
4695then :
33784089 4696 enableval=$enable_memory_tagging; memory_tagging=$enableval
98ffc1bf
AH
4697else case e in #(
4698 e) memory_tagging=no ;;
4699esac
33784089
RE
4700fi
4701
4702if test "$memory_tagging" = yes; then
4703 # Only enable this on architectures that support it.
4704 case $host_cpu in
4705 aarch64)
c6cb8783 4706 printf "%s\n" "#define USE_MTAG 1" >>confdefs.h
33784089
RE
4707
4708 ;;
4709 esac
4710fi
4711
4712
3a097cc7 4713# Check whether --enable-systemtap was given.
c6cb8783
SP
4714if test ${enable_systemtap+y}
4715then :
3a097cc7 4716 enableval=$enable_systemtap; systemtap=$enableval
98ffc1bf
AH
4717else case e in #(
4718 e) systemtap=no ;;
4719esac
3a097cc7
RM
4720fi
4721
4722if test "x$systemtap" != xno; then
dff8da6b
PE
4723
4724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
c6cb8783
SP
4725printf %s "checking for systemtap static probe support... " >&6; }
4726if test ${libc_cv_sdt+y}
4727then :
4728 printf %s "(cached) " >&6
98ffc1bf
AH
4729else case e in #(
4730 e) old_CFLAGS="$CFLAGS"
783dd2d3 4731 CFLAGS="-std=gnu11 $CFLAGS"
3a097cc7
RM
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
c6cb8783
SP
4741if ac_fn_c_try_compile "$LINENO"
4742then :
3a097cc7 4743 libc_cv_sdt=yes
98ffc1bf
AH
4744else case e in #(
4745 e) libc_cv_sdt=no ;;
4746esac
3a097cc7 4747fi
c6cb8783 4748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
98ffc1bf
AH
4749 CFLAGS="$old_CFLAGS" ;;
4750esac
3a097cc7 4751fi
c6cb8783
SP
4752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
4753printf "%s\n" "$libc_cv_sdt" >&6; }
3a097cc7 4754 if test $libc_cv_sdt = yes; then
c6cb8783 4755 printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h
3a097cc7
RM
4756
4757 elif test "x$systemtap" != xauto; then
98ffc1bf
AH
4758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4759printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3a097cc7 4760as_fn_error $? "systemtap support needs sys/sdt.h with asm support
98ffc1bf 4761See 'config.log' for more details" "$LINENO" 5; }
3a097cc7
RM
4762 fi
4763fi
4764
c53d909c 4765# Check whether --enable-build-nscd was given.
c6cb8783
SP
4766if test ${enable_build_nscd+y}
4767then :
c53d909c 4768 enableval=$enable_build_nscd; build_nscd=$enableval
98ffc1bf
AH
4769else case e in #(
4770 e) build_nscd=default ;;
4771esac
c53d909c
RM
4772fi
4773
4774
4775
3cc3ef96
RM
4776# Note the use of $use_nscd is near the bottom of the file.
4777# Check whether --enable-nscd was given.
c6cb8783
SP
4778if test ${enable_nscd+y}
4779then :
3cc3ef96 4780 enableval=$enable_nscd; use_nscd=$enableval
98ffc1bf
AH
4781else case e in #(
4782 e) use_nscd=yes ;;
4783esac
3cc3ef96
RM
4784fi
4785
4786
e4608715 4787# Check whether --enable-pt_chown was given.
c6cb8783
SP
4788if test ${enable_pt_chown+y}
4789then :
e4608715 4790 enableval=$enable_pt_chown; build_pt_chown=$enableval
98ffc1bf
AH
4791else case e in #(
4792 e) build_pt_chown=no ;;
4793esac
e4608715
CD
4794fi
4795
4796
8c12f01d 4797if test "$build_pt_chown" = yes; then
c6cb8783 4798 printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h
e4608715
CD
4799
4800fi
4801
ebf27d12
ST
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
5695d46f 4814# Check whether --enable-mathvec was given.
c6cb8783
SP
4815if test ${enable_mathvec+y}
4816then :
5695d46f 4817 enableval=$enable_mathvec; build_mathvec=$enableval
98ffc1bf
AH
4818else case e in #(
4819 e) build_mathvec=notset ;;
4820esac
5695d46f
AS
4821fi
4822
4823
b190bccc 4824
9fb81390
FW
4825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h. */
4827
4828int
c6cb8783 4829main (void)
9fb81390
FW
4830{
4831
4832#ifndef __CET__
ae7a94e5 4833# error no CET compiler support
9fb81390
FW
4834#endif
4835 ;
4836 return 0;
4837}
4838_ACEOF
c6cb8783
SP
4839if ac_fn_c_try_cpp "$LINENO"
4840then :
9fb81390 4841 libc_cv_compiler_default_cet=yes
98ffc1bf
AH
4842else case e in #(
4843 e) libc_cv_compiler_default_cet=no ;;
4844esac
9fb81390 4845fi
b190bccc 4846rm -f conftest.err conftest.i conftest.$ac_ext
9fb81390 4847
f753fa7d 4848# Check whether --enable-cet was given.
c6cb8783
SP
4849if test ${enable_cet+y}
4850then :
f753fa7d 4851 enableval=$enable_cet; enable_cet=$enableval
98ffc1bf
AH
4852else case e in #(
4853 e) enable_cet=$libc_cv_compiler_default_cet ;;
4854esac
f753fa7d
L
4855fi
4856
4857
ebae2f5a 4858# Check whether --enable-scv was given.
c6cb8783
SP
4859if test ${enable_scv+y}
4860then :
ebae2f5a 4861 enableval=$enable_scv; use_scv=$enableval
98ffc1bf
AH
4862else case e in #(
4863 e) use_scv=yes ;;
4864esac
ebae2f5a
MC
4865fi
4866
4867
c6cb8783
SP
4868if test "$use_scv" != "no"
4869then :
4870 printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h
ebae2f5a
MC
4871
4872fi
4873
64d9580c 4874# Check whether --enable-fortify-source was given.
c6cb8783
SP
4875if test ${enable_fortify_source+y}
4876then :
64d9580c 4877 enableval=$enable_fortify_source; enable_fortify_source=$enableval
98ffc1bf
AH
4878else case e in #(
4879 e) enable_fortify_source=no ;;
4880esac
64d9580c
FB
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
a152f366
UD
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
3a12e572 4892
a152f366
UD
4893# Don't allow vendor == "unknown"
4894test "$config_vendor" = unknown && config_vendor=
4895config_os="`echo $config_os | sed 's/^unknown-//'`"
3a12e572 4896
a152f366 4897# Some configurations imply other options.
0269750c 4898elf=yes
3a12e572 4899
644d3857 4900# The configure fragment of a port can modify these to supplement
a152f366
UD
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=''
3a12e572 4907
a152f366 4908submachine=
26f56c1c 4909
a152f366 4910# Check whether --with-cpu was given.
c6cb8783
SP
4911if test ${with_cpu+y}
4912then :
a152f366 4913 withval=$with_cpu; case "$withval" in
4a531bb0 4914 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
a152f366
UD
4915 no) ;;
4916 *) submachine="$withval" ;;
4917 esac
3a12e572
UD
4918
4919fi
3a12e572 4920
3a12e572 4921
05439291
RM
4922# An preconfigure script can set this when it wants to disable the sanity
4923# check below.
4924libc_config_ok=no
4925
8df5d347
JM
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
3d53d18f
AZ
4931# A preconfigure script may define another name to TLS descriptor variant
4932mtls_descriptor=gnu2
4933
848f0e46
L
4934# A preconfigure script may define another name to traditional TLS variant
4935mtls_traditional=gnu
4936
10a803e0
RM
4937if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
4938then
c6cb8783
SP
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
4940printf %s "checking for sysdeps preconfigure fragments... " >&6; }
10a803e0
RM
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
c6cb8783
SP
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
4947printf "%s\n" "" >&6; }
10a803e0
RM
4948fi
4949
3a12e572 4950
a152f366
UD
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
2ce4f015 4958 *-linux* | *-gnu*)
a152f366
UD
4959 ;;
4960 *)
4e58b648
MF
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:
656ee792 4965*** https://sourceware.org/glibc/wiki/#Development
4e58b648 4966*** and join the community!" "$LINENO" 5
a152f366
UD
4967 ;;
4968 esac
3a12e572 4969fi
2abf9ff1 4970
3e239be6
JM
4971# Set base_machine if not set by a preconfigure fragment.
4972test -n "$base_machine" || base_machine=$machine
26f56c1c 4973
3a12e572 4974
43ecc41d
AZ
4975### Locate tools.
4976
c6cb8783
SP
4977
4978 # Find a good install program. We prefer a C program (faster),
43ecc41d
AZ
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.
c6cb8783
SP
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; }
43ecc41d 4994if test -z "$INSTALL"; then
c6cb8783
SP
4995if test ${ac_cv_path_install+y}
4996then :
4997 printf %s "(cached) " >&6
98ffc1bf
AH
4998else case e in #(
4999 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43ecc41d
AZ
5000for as_dir in $PATH
5001do
5002 IFS=$as_save_IFS
c6cb8783
SP
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]/* | \
43ecc41d
AZ
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
c6cb8783 5020 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
43ecc41d 5021 if test $ac_prog = install &&
c6cb8783 5022 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43ecc41d
AZ
5023 # AIX install. It has an incompatible calling convention.
5024 :
5025 elif test $ac_prog = install &&
c6cb8783 5026 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43ecc41d
AZ
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
c6cb8783 5034 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
43ecc41d
AZ
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
c6cb8783 5039 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
43ecc41d
AZ
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
98ffc1bf
AH
5053 ;;
5054esac
8df5d347 5055fi
c6cb8783 5056 if test ${ac_cv_path_install+y}; then
43ecc41d
AZ
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
8df5d347 5065fi
c6cb8783
SP
5066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5067printf "%s\n" "$INSTALL" >&6; }
8df5d347 5068
43ecc41d
AZ
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}'
8df5d347 5072
43ecc41d
AZ
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
c6cb8783
SP
5081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5082printf %s "checking whether ln -s works... " >&6; }
43ecc41d
AZ
5083LN_S=$as_ln_s
5084if test "$LN_S" = "ln -s"; then
c6cb8783
SP
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5086printf "%s\n" "yes" >&6; }
03baef1c 5087else
c6cb8783
SP
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5089printf "%s\n" "no, using $LN_S" >&6; }
03baef1c
NA
5090fi
5091
43ecc41d
AZ
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"
03baef1c 5098fi
43ecc41d
AZ
5099case "$CC" in
5100 *fuse-ld=lld*) LDNAME=ld.lld;;
5101 *) LDNAME=ld;;
5102esac
2d2d7e1a
AZ
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
03baef1c 5109
2d2d7e1a
AZ
5110if test -z "$OBJCOPY"; then
5111 OBJCOPY=`$CC -print-prog-name=objcopy`
5112fi
43ecc41d 5113
2d2d7e1a
AZ
5114if test -z "$GPROF"; then
5115 GPROF=`$CC -print-prog-name=gprof`
5116fi
43ecc41d 5117
02abdab0
AZ
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
43ecc41d 5130
03baef1c 5131
e53ab208 5132# Accept binutils 2.39 or newer.
43ecc41d
AZ
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
c6cb8783
SP
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
98ffc1bf
AH
5146else case e in #(
5147 e) if test -n "$LD"; then
43ecc41d
AZ
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
c6cb8783
SP
5154 case $as_dir in #(((
5155 '') as_dir=./ ;;
5156 */) ;;
5157 *) as_dir=$as_dir/ ;;
5158 esac
43ecc41d 5159 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 5160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43ecc41d 5161 ac_cv_prog_LD="$ac_prog"
c6cb8783 5162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43ecc41d
AZ
5163 break 2
5164 fi
5165done
5166 done
5167IFS=$as_save_IFS
5168
98ffc1bf
AH
5169fi ;;
5170esac
cd6ae7ea 5171fi
43ecc41d
AZ
5172LD=$ac_cv_prog_LD
5173if test -n "$LD"; then
c6cb8783
SP
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5175printf "%s\n" "$LD" >&6; }
43ecc41d 5176else
c6cb8783
SP
5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178printf "%s\n" "no" >&6; }
cd6ae7ea 5179fi
cd6ae7ea 5180
8f6f5362 5181
43ecc41d
AZ
5182 test -n "$LD" && break
5183done
8f6f5362 5184
43ecc41d
AZ
5185if test -z "$LD"; then
5186 ac_verc_fail=yes
5187else
5188 # Found it, now check the version.
c6cb8783
SP
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5190printf %s "checking version of $LD... " >&6; }
43ecc41d
AZ
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
c6cb8783
SP
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5200printf "%s\n" "$ac_prog_version" >&6; }
8f6f5362 5201fi
43ecc41d
AZ
5202if test $ac_verc_fail = yes; then
5203 LD=: critic_missing="$critic_missing GNU gold"
8f6f5362 5204fi
8f6f5362 5205
43ecc41d
AZ
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
c6cb8783
SP
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
98ffc1bf
AH
5218else case e in #(
5219 e) if test -n "$LD"; then
43ecc41d
AZ
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
c6cb8783
SP
5226 case $as_dir in #(((
5227 '') as_dir=./ ;;
5228 */) ;;
5229 *) as_dir=$as_dir/ ;;
5230 esac
43ecc41d 5231 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 5232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43ecc41d 5233 ac_cv_prog_LD="$ac_prog"
c6cb8783 5234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43ecc41d 5235 break 2
8f6f5362 5236 fi
43ecc41d
AZ
5237done
5238 done
5239IFS=$as_save_IFS
5240
98ffc1bf
AH
5241fi ;;
5242esac
43ecc41d
AZ
5243fi
5244LD=$ac_cv_prog_LD
5245if test -n "$LD"; then
c6cb8783
SP
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5247printf "%s\n" "$LD" >&6; }
43ecc41d 5248else
c6cb8783
SP
5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250printf "%s\n" "no" >&6; }
84b9230c
MF
5251fi
5252
3a12e572 5253
43ecc41d 5254 test -n "$LD" && break
3a12e572 5255done
43ecc41d
AZ
5256
5257if test -z "$LD"; then
5258 ac_verc_fail=yes
5259else
5260 # Found it, now check the version.
c6cb8783
SP
5261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5262printf %s "checking version of $LD... " >&6; }
43ecc41d
AZ
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
c6cb8783
SP
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5272printf "%s\n" "$ac_prog_version" >&6; }
a152f366 5273fi
43ecc41d
AZ
5274if test $ac_verc_fail = yes; then
5275 LD=: critic_missing="$critic_missing LLD"
cd6ede75 5276fi
3a12e572 5277
43ecc41d
AZ
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
c6cb8783
SP
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
98ffc1bf
AH
5290else case e in #(
5291 e) if test -n "$LD"; then
43ecc41d
AZ
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
c6cb8783
SP
5298 case $as_dir in #(((
5299 '') as_dir=./ ;;
5300 */) ;;
5301 *) as_dir=$as_dir/ ;;
5302 esac
43ecc41d 5303 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 5304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43ecc41d 5305 ac_cv_prog_LD="$ac_prog"
c6cb8783 5306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43ecc41d 5307 break 2
925c3c5c
UD
5308 fi
5309done
a152f366 5310 done
43ecc41d 5311IFS=$as_save_IFS
6f89d2f3 5312
98ffc1bf
AH
5313fi ;;
5314esac
925c3c5c 5315fi
43ecc41d
AZ
5316LD=$ac_cv_prog_LD
5317if test -n "$LD"; then
c6cb8783
SP
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5319printf "%s\n" "$LD" >&6; }
43ecc41d 5320else
c6cb8783
SP
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322printf "%s\n" "no" >&6; }
925c3c5c
UD
5323fi
5324
26f56c1c 5325
43ecc41d
AZ
5326 test -n "$LD" && break
5327done
a152f366 5328
43ecc41d
AZ
5329if test -z "$LD"; then
5330 ac_verc_fail=yes
5331else
5332 # Found it, now check the version.
c6cb8783
SP
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5334printf %s "checking version of $LD... " >&6; }
43ecc41d
AZ
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;;
e53ab208 5338 2.[1-9][0-9][0-9]*|2.39*|2.[4-9][0-9]*|[3-9].*|[1-9][0-9]*)
43ecc41d
AZ
5339 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5340 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
26f56c1c 5341
a152f366 5342 esac
c6cb8783
SP
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5344printf "%s\n" "$ac_prog_version" >&6; }
43ecc41d
AZ
5345fi
5346if test $ac_verc_fail = yes; then
5347 LD=: critic_missing="$critic_missing GNU ld"
5348fi
925c3c5c 5349
43ecc41d
AZ
5350 ;;
5351esac
5352config_vars="$config_vars
5353with-lld = $libc_cv_with_lld"
a152f366 5354
43ecc41d
AZ
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
c6cb8783
SP
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
98ffc1bf
AH
5365else case e in #(
5366 e) if test -n "$MAKE"; then
43ecc41d
AZ
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
c6cb8783
SP
5373 case $as_dir in #(((
5374 '') as_dir=./ ;;
5375 */) ;;
5376 *) as_dir=$as_dir/ ;;
5377 esac
43ecc41d 5378 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 5379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43ecc41d 5380 ac_cv_prog_MAKE="$ac_prog"
c6cb8783 5381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43ecc41d
AZ
5382 break 2
5383 fi
5384done
ba75122d 5385 done
43ecc41d 5386IFS=$as_save_IFS
925c3c5c 5387
98ffc1bf
AH
5388fi ;;
5389esac
43ecc41d
AZ
5390fi
5391MAKE=$ac_cv_prog_MAKE
5392if test -n "$MAKE"; then
c6cb8783
SP
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5394printf "%s\n" "$MAKE" >&6; }
43ecc41d 5395else
c6cb8783
SP
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397printf "%s\n" "no" >&6; }
43ecc41d 5398fi
925c3c5c 5399
ba75122d 5400
43ecc41d 5401 test -n "$MAKE" && break
a152f366 5402done
2abf9ff1 5403
43ecc41d
AZ
5404if test -z "$MAKE"; then
5405 ac_verc_fail=yes
5406else
5407 # Found it, now check the version.
c6cb8783
SP
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
5409printf %s "checking version of $MAKE... " >&6; }
43ecc41d
AZ
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;;
925c3c5c 5416
43ecc41d 5417 esac
c6cb8783
SP
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5419printf "%s\n" "$ac_prog_version" >&6; }
43ecc41d
AZ
5420fi
5421if test $ac_verc_fail = yes; then
5422 critic_missing="$critic_missing make"
5423fi
26f56c1c 5424
26f56c1c 5425
43ecc41d
AZ
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
c6cb8783
SP
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
98ffc1bf
AH
5435else case e in #(
5436 e) if test -n "$MSGFMT"; then
43ecc41d
AZ
5437 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5438else
5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a152f366
UD
5440for as_dir in $PATH
5441do
5442 IFS=$as_save_IFS
c6cb8783
SP
5443 case $as_dir in #(((
5444 '') as_dir=./ ;;
5445 */) ;;
5446 *) as_dir=$as_dir/ ;;
5447 esac
43ecc41d 5448 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 5449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43ecc41d 5450 ac_cv_prog_MSGFMT="$ac_prog"
c6cb8783 5451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43ecc41d
AZ
5452 break 2
5453 fi
5454done
b08c89d9 5455 done
a152f366 5456IFS=$as_save_IFS
2abf9ff1 5457
98ffc1bf
AH
5458fi ;;
5459esac
26f56c1c 5460fi
43ecc41d
AZ
5461MSGFMT=$ac_cv_prog_MSGFMT
5462if test -n "$MSGFMT"; then
c6cb8783
SP
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5464printf "%s\n" "$MSGFMT" >&6; }
26f56c1c 5465else
c6cb8783
SP
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467printf "%s\n" "no" >&6; }
26f56c1c 5468fi
a152f366 5469
925c3c5c 5470
43ecc41d
AZ
5471 test -n "$MSGFMT" && break
5472done
1b74661a 5473
43ecc41d
AZ
5474if test -z "$MSGFMT"; then
5475 ac_verc_fail=yes
5476else
5477 # Found it, now check the version.
c6cb8783
SP
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5479printf %s "checking version of $MSGFMT... " >&6; }
43ecc41d
AZ
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;;
6014c65d 5486
43ecc41d 5487 esac
c6cb8783
SP
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5489printf "%s\n" "$ac_prog_version" >&6; }
43ecc41d
AZ
5490fi
5491if test $ac_verc_fail = yes; then
5492 MSGFMT=: aux_missing="$aux_missing msgfmt"
5493fi
4baa087a 5494
43ecc41d
AZ
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
c6cb8783
SP
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
98ffc1bf
AH
5504else case e in #(
5505 e) if test -n "$MAKEINFO"; then
43ecc41d 5506 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4baa087a 5507else
43ecc41d
AZ
5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511 IFS=$as_save_IFS
c6cb8783
SP
5512 case $as_dir in #(((
5513 '') as_dir=./ ;;
5514 */) ;;
5515 *) as_dir=$as_dir/ ;;
5516 esac
43ecc41d 5517 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 5518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43ecc41d 5519 ac_cv_prog_MAKEINFO="$ac_prog"
c6cb8783 5520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43ecc41d
AZ
5521 break 2
5522 fi
5523done
5524 done
5525IFS=$as_save_IFS
5526
98ffc1bf
AH
5527fi ;;
5528esac
4baa087a 5529fi
43ecc41d
AZ
5530MAKEINFO=$ac_cv_prog_MAKEINFO
5531if test -n "$MAKEINFO"; then
c6cb8783
SP
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5533printf "%s\n" "$MAKEINFO" >&6; }
4baa087a 5534else
c6cb8783
SP
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536printf "%s\n" "no" >&6; }
43ecc41d
AZ
5537fi
5538
5539
5540 test -n "$MAKEINFO" && break
5541done
5542
5543if test -z "$MAKEINFO"; then
5544 ac_verc_fail=yes
4baa087a 5545else
43ecc41d 5546 # Found it, now check the version.
c6cb8783
SP
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5548printf %s "checking version of $MAKEINFO... " >&6; }
43ecc41d
AZ
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
c6cb8783
SP
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5558printf "%s\n" "$ac_prog_version" >&6; }
4baa087a 5559fi
43ecc41d
AZ
5560if test $ac_verc_fail = yes; then
5561 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4baa087a 5562fi
4baa087a 5563
43ecc41d 5564for ac_prog in sed
4baa087a
RM
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
c6cb8783
SP
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
98ffc1bf
AH
5573else case e in #(
5574 e) if test -n "$SED"; then
43ecc41d 5575 ac_cv_prog_SED="$SED" # Let the user override the test.
4baa087a
RM
5576else
5577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578for as_dir in $PATH
5579do
5580 IFS=$as_save_IFS
c6cb8783
SP
5581 case $as_dir in #(((
5582 '') as_dir=./ ;;
5583 */) ;;
5584 *) as_dir=$as_dir/ ;;
5585 esac
b08c89d9 5586 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 5587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43ecc41d 5588 ac_cv_prog_SED="$ac_prog"
c6cb8783 5589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4baa087a
RM
5590 break 2
5591 fi
5592done
b08c89d9 5593 done
26f56c1c 5594IFS=$as_save_IFS
4baa087a 5595
98ffc1bf
AH
5596fi ;;
5597esac
4baa087a 5598fi
43ecc41d
AZ
5599SED=$ac_cv_prog_SED
5600if test -n "$SED"; then
c6cb8783
SP
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5602printf "%s\n" "$SED" >&6; }
4baa087a 5603else
c6cb8783
SP
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605printf "%s\n" "no" >&6; }
4baa087a
RM
5606fi
5607
26f56c1c 5608
43ecc41d 5609 test -n "$SED" && break
4baa087a
RM
5610done
5611
43ecc41d 5612if test -z "$SED"; then
4baa087a
RM
5613 ac_verc_fail=yes
5614else
5615 # Found it, now check the version.
c6cb8783
SP
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5617printf %s "checking version of $SED... " >&6; }
43ecc41d 5618 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4baa087a
RM
5619 case $ac_prog_version in
5620 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
43ecc41d 5621 3.0[2-9]*|3.[1-9]*|[4-9]*)
4baa087a
RM
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
c6cb8783
SP
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5627printf "%s\n" "$ac_prog_version" >&6; }
4baa087a
RM
5628fi
5629if test $ac_verc_fail = yes; then
43ecc41d 5630 SED=: aux_missing="$aux_missing sed"
4baa087a
RM
5631fi
5632
43ecc41d 5633for ac_prog in gawk
f300dc73
L
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
c6cb8783
SP
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
98ffc1bf
AH
5642else case e in #(
5643 e) if test -n "$AWK"; then
43ecc41d 5644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
f300dc73
L
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649 IFS=$as_save_IFS
c6cb8783
SP
5650 case $as_dir in #(((
5651 '') as_dir=./ ;;
5652 */) ;;
5653 *) as_dir=$as_dir/ ;;
5654 esac
f300dc73 5655 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 5656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43ecc41d 5657 ac_cv_prog_AWK="$ac_prog"
c6cb8783 5658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f300dc73
L
5659 break 2
5660 fi
5661done
5662 done
5663IFS=$as_save_IFS
5664
98ffc1bf
AH
5665fi ;;
5666esac
f300dc73 5667fi
43ecc41d
AZ
5668AWK=$ac_cv_prog_AWK
5669if test -n "$AWK"; then
c6cb8783
SP
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5671printf "%s\n" "$AWK" >&6; }
f300dc73 5672else
c6cb8783
SP
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674printf "%s\n" "no" >&6; }
f300dc73
L
5675fi
5676
5677
43ecc41d 5678 test -n "$AWK" && break
f300dc73
L
5679done
5680
43ecc41d 5681if test -z "$AWK"; then
f300dc73
L
5682 ac_verc_fail=yes
5683else
5684 # Found it, now check the version.
c6cb8783
SP
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
5686printf %s "checking version of $AWK... " >&6; }
43ecc41d 5687 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
f300dc73
L
5688 case $ac_prog_version in
5689 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
43ecc41d 5690 3.1.[2-9]*|3.[2-9]*|[4-9]*)
f300dc73
L
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
c6cb8783
SP
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5696printf "%s\n" "$ac_prog_version" >&6; }
f300dc73
L
5697fi
5698if test $ac_verc_fail = yes; then
43ecc41d 5699 critic_missing="$critic_missing gawk"
f300dc73
L
5700fi
5701
43ecc41d 5702for ac_prog in bison
224edada
FS
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
c6cb8783
SP
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
98ffc1bf
AH
5711else case e in #(
5712 e) if test -n "$BISON"; then
43ecc41d 5713 ac_cv_prog_BISON="$BISON" # Let the user override the test.
224edada
FS
5714else
5715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716for as_dir in $PATH
5717do
5718 IFS=$as_save_IFS
c6cb8783
SP
5719 case $as_dir in #(((
5720 '') as_dir=./ ;;
5721 */) ;;
5722 *) as_dir=$as_dir/ ;;
5723 esac
224edada 5724 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 5725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43ecc41d 5726 ac_cv_prog_BISON="$ac_prog"
c6cb8783 5727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
224edada
FS
5728 break 2
5729 fi
5730done
5731 done
5732IFS=$as_save_IFS
5733
98ffc1bf
AH
5734fi ;;
5735esac
224edada 5736fi
43ecc41d
AZ
5737BISON=$ac_cv_prog_BISON
5738if test -n "$BISON"; then
c6cb8783
SP
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5740printf "%s\n" "$BISON" >&6; }
224edada 5741else
c6cb8783
SP
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743printf "%s\n" "no" >&6; }
224edada
FS
5744fi
5745
5746
43ecc41d 5747 test -n "$BISON" && break
224edada
FS
5748done
5749
43ecc41d 5750if test -z "$BISON"; then
224edada
FS
5751 ac_verc_fail=yes
5752else
5753 # Found it, now check the version.
c6cb8783
SP
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5755printf %s "checking version of $BISON... " >&6; }
43ecc41d 5756 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
224edada
FS
5757 case $ac_prog_version in
5758 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
43ecc41d 5759 2.7*|[3-9].*|[1-9][0-9]*)
224edada
FS
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
c6cb8783
SP
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5765printf "%s\n" "$ac_prog_version" >&6; }
224edada
FS
5766fi
5767if test $ac_verc_fail = yes; then
43ecc41d 5768 critic_missing="$critic_missing bison"
224edada
FS
5769fi
5770
43ecc41d 5771
27b96e06 5772# Require GCC 12.1 to build.
c6cb8783
SP
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
98ffc1bf
AH
5778else case e in #(
5779 e)
43ecc41d
AZ
5780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781/* end confdefs.h. */
5782
5783int
c6cb8783 5784main (void)
43ecc41d
AZ
5785{
5786
27b96e06 5787#if !defined __GNUC__ || __GNUC__ < 12 || (__GNUC__ == 12 && __GNUC_MINOR__ < 1)
43ecc41d
AZ
5788#error insufficient compiler
5789#endif
5790 ;
5791 return 0;
5792}
5793_ACEOF
c6cb8783
SP
5794if ac_fn_c_try_cpp "$LINENO"
5795then :
43ecc41d 5796 libc_cv_compiler_ok=yes
98ffc1bf
AH
5797else case e in #(
5798 e) libc_cv_compiler_ok=no ;;
5799esac
43ecc41d 5800fi
98ffc1bf
AH
5801rm -f conftest.err conftest.i conftest.$ac_ext ;;
5802esac
43ecc41d 5803fi
c6cb8783
SP
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 :
43ecc41d
AZ
5808 critic_missing="$critic_missing compiler"
5809fi
5810
43ecc41d
AZ
5811if test "x$maintainer" = "xyes"; then
5812 for ac_prog in autoconf
4baa087a
RM
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
c6cb8783
SP
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
98ffc1bf
AH
5821else case e in #(
5822 e) if test -n "$AUTOCONF"; then
43ecc41d 5823 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
cd6ede75 5824else
3a12e572
UD
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
c6cb8783
SP
5829 case $as_dir in #(((
5830 '') as_dir=./ ;;
5831 */) ;;
5832 *) as_dir=$as_dir/ ;;
5833 esac
b08c89d9 5834 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 5835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43ecc41d 5836 ac_cv_prog_AUTOCONF="$ac_prog"
c6cb8783 5837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3a12e572
UD
5838 break 2
5839 fi
5840done
b08c89d9 5841 done
26f56c1c 5842IFS=$as_save_IFS
3a12e572 5843
98ffc1bf
AH
5844fi ;;
5845esac
cd6ede75 5846fi
43ecc41d
AZ
5847AUTOCONF=$ac_cv_prog_AUTOCONF
5848if test -n "$AUTOCONF"; then
c6cb8783
SP
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5850printf "%s\n" "$AUTOCONF" >&6; }
cd6ede75 5851else
c6cb8783
SP
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853printf "%s\n" "no" >&6; }
cd6ede75
UD
5854fi
5855
26f56c1c 5856
43ecc41d 5857 test -n "$AUTOCONF" && break
4baa087a 5858done
43ecc41d 5859test -n "$AUTOCONF" || AUTOCONF="no"
4baa087a 5860
43ecc41d
AZ
5861 case "x$AUTOCONF" in
5862 xno|x|x:) AUTOCONF=no ;;
5863 *)
c6cb8783
SP
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
98ffc1bf
AH
5869else case e in #(
5870 e) if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
43ecc41d
AZ
5871 libc_cv_autoconf_works=yes
5872 else
5873 libc_cv_autoconf_works=no
98ffc1bf
AH
5874 fi ;;
5875esac
3a12e572 5876fi
c6cb8783
SP
5877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5878printf "%s\n" "$libc_cv_autoconf_works" >&6; }
43ecc41d
AZ
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
4baa087a
RM
5887fi
5888
43ecc41d
AZ
5889# Check for python3 if available, or else python.
5890for ac_prog in python3 python
4baa087a
RM
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
c6cb8783
SP
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
98ffc1bf
AH
5899else case e in #(
5900 e) if test -n "$PYTHON_PROG"; then
43ecc41d 5901 ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test.
cd6ede75 5902else
3a12e572
UD
5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906 IFS=$as_save_IFS
c6cb8783
SP
5907 case $as_dir in #(((
5908 '') as_dir=./ ;;
5909 */) ;;
5910 *) as_dir=$as_dir/ ;;
5911 esac
b08c89d9 5912 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 5913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43ecc41d 5914 ac_cv_prog_PYTHON_PROG="$ac_prog"
c6cb8783 5915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3a12e572
UD
5916 break 2
5917 fi
5918done
b08c89d9 5919 done
26f56c1c 5920IFS=$as_save_IFS
3a12e572 5921
98ffc1bf
AH
5922fi ;;
5923esac
cd6ede75 5924fi
43ecc41d
AZ
5925PYTHON_PROG=$ac_cv_prog_PYTHON_PROG
5926if test -n "$PYTHON_PROG"; then
c6cb8783
SP
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
5928printf "%s\n" "$PYTHON_PROG" >&6; }
cd6ede75 5929else
c6cb8783
SP
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931printf "%s\n" "no" >&6; }
cd6ede75
UD
5932fi
5933
26f56c1c 5934
43ecc41d 5935 test -n "$PYTHON_PROG" && break
4baa087a 5936done
5edb9387 5937
43ecc41d 5938if test -z "$PYTHON_PROG"; then
4baa087a 5939 ac_verc_fail=yes
5edb9387 5940else
4baa087a 5941 # Found it, now check the version.
c6cb8783
SP
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
5943printf %s "checking version of $PYTHON_PROG... " >&6; }
43ecc41d 5944 ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
4baa087a
RM
5945 case $ac_prog_version in
5946 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
43ecc41d 5947 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*)
4baa087a
RM
5948 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5949 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5edb9387 5950
4baa087a 5951 esac
c6cb8783
SP
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5953printf "%s\n" "$ac_prog_version" >&6; }
5edb9387 5954fi
4baa087a 5955if test $ac_verc_fail = yes; then
43ecc41d 5956 critic_missing="$critic_missing python"
5edb9387 5957fi
cd6ede75 5958
43ecc41d
AZ
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
c6cb8783 5966test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
43ecc41d
AZ
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
c6cb8783 5970printf "%s\n" "$as_me: WARNING:
43ecc41d
AZ
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.
c6cb8783
SP
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
98ffc1bf
AH
5982else case e in #(
5983 e) cat > conftest.c <<EOF
43ecc41d
AZ
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
c4d23330 5994fi
98ffc1bf
AH
5995rm -f conftest* ;;
5996esac
c4d23330 5997fi
c6cb8783
SP
5998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
5999printf "%s\n" "$libc_cv_with_fp" >&6; }
43ecc41d
AZ
6000
6001
eb02fb77
L
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
5a96da21
DC
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
494eb254 6120
c6cb8783
SP
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
98ffc1bf 6126else case e in #(
494eb254 6127 e) if { ac_try='${CC-cc} -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
43ecc41d
AZ
6128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
c6cb8783
SP
6131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132 test $ac_status = 0; }; }
6133then :
43ecc41d 6134 libc_cv_ssp=yes
98ffc1bf
AH
6135else case e in #(
6136 e) libc_cv_ssp=no ;;
6137esac
494eb254 6138fi ;;
98ffc1bf 6139esac
43ecc41d 6140fi
c6cb8783
SP
6141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6142printf "%s\n" "$libc_cv_ssp" >&6; }
494eb254
L
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
26f56c1c 6176
c6cb8783
SP
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
98ffc1bf
AH
6182else case e in #(
6183 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
43ecc41d
AZ
6184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
c6cb8783
SP
6187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6188 test $ac_status = 0; }; }
6189then :
43ecc41d 6190 libc_cv_ssp_strong=yes
98ffc1bf
AH
6191else case e in #(
6192 e) libc_cv_ssp_strong=no ;;
6193esac
c4d23330 6194fi
98ffc1bf
AH
6195 ;;
6196esac
c4d23330 6197fi
c6cb8783
SP
6198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
6199printf "%s\n" "$libc_cv_ssp_strong" >&6; }
c4d23330 6200
c6cb8783
SP
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
98ffc1bf
AH
6206else case e in #(
6207 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
43ecc41d
AZ
6208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6209 (eval $ac_try) 2>&5
6210 ac_status=$?
c6cb8783
SP
6211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212 test $ac_status = 0; }; }
6213then :
43ecc41d 6214 libc_cv_ssp_all=yes
98ffc1bf
AH
6215else case e in #(
6216 e) libc_cv_ssp_all=no ;;
6217esac
43ecc41d 6218fi
98ffc1bf
AH
6219 ;;
6220esac
0786794f 6221fi
c6cb8783
SP
6222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
6223printf "%s\n" "$libc_cv_ssp_all" >&6; }
43ecc41d
AZ
6224
6225stack_protector=
6226no_stack_protector=
6227if test "$libc_cv_ssp" = yes; then
6228 no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
c6cb8783 6229 printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
43ecc41d 6230
0786794f 6231fi
494eb254
L
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
43ecc41d
AZ
6237
6238if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
6239 stack_protector="-fstack-protector"
c6cb8783 6240 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
43ecc41d
AZ
6241
6242elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then
6243 stack_protector="-fstack-protector-all"
c6cb8783 6244 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
43ecc41d
AZ
6245
6246elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then
6247 stack_protector="-fstack-protector-strong"
c6cb8783 6248 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
43ecc41d 6249
0786794f 6250else
43ecc41d 6251 stack_protector="-fno-stack-protector"
c6cb8783 6252 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
43ecc41d 6253
0786794f
AM
6254fi
6255
6256
0786794f 6257
43ecc41d
AZ
6258
6259if test -n "$stack_protector"; then
6260 no_ssp=-fno-stack-protector
0786794f 6261else
43ecc41d 6262 no_ssp=
0786794f 6263
43ecc41d
AZ
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
0786794f
AM
6267fi
6268
43ecc41d 6269# For the multi-arch option we need support in the assembler & linker.
c6cb8783
SP
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
98ffc1bf
AH
6275else case e in #(
6276 e) cat > conftest.S <<EOF
43ecc41d
AZ
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
98ffc1bf
AH
6300rm -f conftest* ;;
6301esac
43ecc41d 6302fi
c6cb8783
SP
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; }
43ecc41d
AZ
6305
6306# Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
c6cb8783
SP
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
98ffc1bf
AH
6312else case e in #(
6313 e) cat > conftest.c <<EOF
43ecc41d
AZ
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
1faaf703 6330 fi
1faaf703 6331fi
98ffc1bf
AH
6332rm -f conftest* ;;
6333esac
43ecc41d 6334fi
c6cb8783
SP
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; }
43ecc41d
AZ
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.
c6cb8783
SP
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
98ffc1bf
AH
6345else case e in #(
6346 e) cat > conftest.S <<EOF
43ecc41d
AZ
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=$?
c6cb8783 6374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43ecc41d
AZ
6375 test $ac_status = 0; }; }; then
6376 libc_cv_textrel_ifunc=yes
6377 fi
1faaf703 6378fi
98ffc1bf
AH
6379rm -f conftest* ;;
6380esac
1faaf703 6381fi
c6cb8783
SP
6382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
6383printf "%s\n" "$libc_cv_textrel_ifunc" >&6; }
1faaf703
JB
6384
6385
43ecc41d 6386# Check if CC supports attribute retain as it is used in attribute_used_retain macro.
c6cb8783
SP
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
98ffc1bf
AH
6392else case e in #(
6393 e) cat > conftest.c <<EOF
43ecc41d
AZ
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
1faaf703 6400fi
98ffc1bf
AH
6401rm -f conftest* ;;
6402esac
1faaf703 6403fi
c6cb8783
SP
6404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
6405printf "%s\n" "$libc_cv_gnu_retain" >&6; }
43ecc41d 6406if test $libc_cv_gnu_retain = yes; then
c6cb8783 6407 printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h
1faaf703 6408
43ecc41d
AZ
6409fi
6410config_vars="$config_vars
6411have-gnu-retain = $libc_cv_gnu_retain"
4baa087a 6412
43ecc41d 6413# Check if gcc warns about alias for function with incompatible types.
c6cb8783
SP
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
98ffc1bf
AH
6419else case e in #(
6420 e) cat > conftest.c <<EOF
43ecc41d 6421int __redirect_foo (const void *s, int c);
461a7b1e 6422
43ecc41d
AZ
6423__typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
6424__typeof (__redirect_foo) *foo_impl (void)
461a7b1e 6425{
461a7b1e
RM
6426 return 0;
6427}
43ecc41d
AZ
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
461a7b1e 6434fi
98ffc1bf
AH
6435rm -f conftest* ;;
6436esac
461a7b1e 6437fi
c6cb8783
SP
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; }
461a7b1e 6440
43ecc41d
AZ
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
30b99d79 6446 fi
30b99d79 6447fi
43ecc41d
AZ
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
c6cb8783
SP
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;}
43ecc41d
AZ
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
c6cb8783
SP
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;}
43ecc41d
AZ
6460 multi_arch=no
6461 elif test x"$multi_arch" = xyes; then
c6cb8783 6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
43ecc41d 6463Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
c6cb8783 6464printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
43ecc41d
AZ
6465Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
6466 fi
30b99d79 6467fi
43ecc41d
AZ
6468multi_arch_d=
6469if test x"$multi_arch" != xno; then
6470 multi_arch_d=/multiarch
30b99d79
RM
6471fi
6472
43ecc41d
AZ
6473# Compute the list of sysdep directories for this configuration.
6474# This can take a while to compute.
6475sysdep_dir=$srcdir/sysdeps
c6cb8783
SP
6476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
6477printf %s "checking sysdep dirs... " >&6; }
43ecc41d
AZ
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
30b99d79 6487
43ecc41d
AZ
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"
30b99d79 6498fi
43ecc41d
AZ
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
30b99d79 6525 fi
43ecc41d
AZ
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"
30b99d79 6533done
43ecc41d
AZ
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
30b99d79 6563 done
43ecc41d 6564done
30b99d79 6565
43ecc41d
AZ
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 ;;
30b99d79 6574esac
43ecc41d 6575if test x"$multi_arch" != xno; then
c6cb8783 6576 printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h
30b99d79 6577
43ecc41d 6578fi
d30cf5bb 6579
c4d23330 6580
43ecc41d
AZ
6581if test -z "$os_used" && test "$os" != none; then
6582 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
c4d23330 6583fi
43ecc41d
AZ
6584if test -z "$machine_used" && test "$machine" != none; then
6585 as_fn_error $? "The $machine is not supported." "$LINENO" 5
c4d23330 6586fi
43ecc41d
AZ
6587if test -z "$submachine_used" && test -n "$submachine"; then
6588 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
c4d23330
RM
6589fi
6590
26f56c1c 6591
43ecc41d 6592# We have now validated the configuration.
c4d23330 6593
43ecc41d
AZ
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
8894bad3 6605 esac
c4d23330 6606
43ecc41d
AZ
6607 # Report each name as we discover it, so there is no long pause in output.
6608 echo $ECHO_N "$name $ECHO_C" >&6
8ce8299f 6609
43ecc41d 6610 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
8ce8299f 6611
43ecc41d
AZ
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
8ce8299f 6618
43ecc41d
AZ
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
c6cb8783
SP
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;}
43ecc41d
AZ
6643 fi
6644 done
6645 fi
6646 done
8ce8299f 6647
43ecc41d
AZ
6648 # Add NAME to the list of names.
6649 names="$names $name"
8ce8299f 6650
43ecc41d
AZ
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`"
c6982f7e 6653
43ecc41d
AZ
6654 test -n "$enable_debug_configure" &&
6655 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
6656Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
c6982f7e 6657
43ecc41d
AZ
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
8ce8299f 6668
43ecc41d
AZ
6669# Add the default directories.
6670default_sysnames="sysdeps/generic"
6671sysnames="$names $default_sysnames"
32a448ed 6672
43ecc41d 6673# The other names were emitted during the scan.
c6cb8783
SP
6674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
6675printf "%s\n" "$default_sysnames" >&6; }
ea9f119b 6676
3c720987
UD
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
67fbfa5c
RM
6681 SYSINCLUDES=-nostdinc
6682 for d in include include-fixed; do
22dca1ea 6683 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
67fbfa5c
RM
6684 SYSINCLUDES="$SYSINCLUDES -isystem $i"
6685 done
6686 SYSINCLUDES="$SYSINCLUDES \
3d6ce23a 6687-isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
ef226fec 6688 if test -n "$CXX"; then
7872cfb0 6689 CXX_SYSINCLUDES=
67060746
AC
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
ef226fec 6695 fi
3c720987
UD
6696fi
6697
6698
ef226fec 6699
fc3e1337
FW
6700# Obtain some C++ header file paths. This is used to make a local
6701# copy of those headers in Makerules.
ad36038c
L
6702if test -n "$TEST_CXX"; then
6703 saved_CXX="$CXX"
6704 CXX="$TEST_CXX"
fc3e1337 6705 find_cxx_header () {
596183a1
AZ
6706 echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \
6707 | $AWK '$1 == "."{print $2}'
fc3e1337
FW
6708 }
6709 CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
6710 CXX_CMATH_HEADER="$(find_cxx_header cmath)"
a65ea28d 6711 CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)"
ad36038c 6712 CXX="$saved_CXX"
fc3e1337
FW
6713fi
6714
6715
6716
a65ea28d 6717
3911660e
UD
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
c6cb8783
SP
6725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
6726printf %s "checking LD_LIBRARY_PATH variable... " >&6; }
3911660e
UD
6727case ${LD_LIBRARY_PATH} in
6728 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
b3a86ae1 6729 ld_library_path_setting="contains current directory"
3911660e
UD
6730 ;;
6731 *)
6732 ld_library_path_setting="ok"
6733 ;;
6734esac
c6cb8783
SP
6735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
6736printf "%s\n" "$ld_library_path_setting" >&6; }
3911660e 6737if test "$ld_library_path_setting" != "ok"; then
4a531bb0 6738as_fn_error $? "
3a12e572
UD
6739*** LD_LIBRARY_PATH shouldn't contain the current directory when
6740*** building glibc. Please change the environment variable
b08c89d9 6741*** and run configure again." "$LINENO" 5
3911660e
UD
6742fi
6743
cd6ede75
UD
6744# Extract the first word of "bash", so it can be a program name with args.
6745set dummy bash; ac_word=$2
c6cb8783
SP
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
98ffc1bf
AH
6751else case e in #(
6752 e) case $BASH_SHELL in
3a12e572 6753 [\\/]* | ?:[\\/]*)
26f56c1c 6754 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
cd6ede75
UD
6755 ;;
6756 *)
3a12e572
UD
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
c6cb8783
SP
6761 case $as_dir in #(((
6762 '') as_dir=./ ;;
6763 */) ;;
6764 *) as_dir=$as_dir/ ;;
6765 esac
b08c89d9 6766 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783
SP
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
3a12e572
UD
6770 break 2
6771 fi
6772done
b08c89d9 6773 done
26f56c1c 6774IFS=$as_save_IFS
3a12e572 6775
26f56c1c 6776 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
cd6ede75 6777 ;;
98ffc1bf 6778esac ;;
cd6ede75
UD
6779esac
6780fi
26f56c1c
UD
6781BASH_SHELL=$ac_cv_path_BASH_SHELL
6782if test -n "$BASH_SHELL"; then
c6cb8783
SP
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
6784printf "%s\n" "$BASH_SHELL" >&6; }
cd6ede75 6785else
c6cb8783
SP
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787printf "%s\n" "no" >&6; }
cd6ede75
UD
6788fi
6789
26f56c1c 6790
cd6ede75 6791
c0016081
UD
6792# Extract the first word of "perl", so it can be a program name with args.
6793set dummy perl; ac_word=$2
c6cb8783
SP
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
98ffc1bf
AH
6799else case e in #(
6800 e) case $PERL in
3a12e572 6801 [\\/]* | ?:[\\/]*)
a2b08ee5
UD
6802 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6803 ;;
6804 *)
3a12e572
UD
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
c6cb8783
SP
6809 case $as_dir in #(((
6810 '') as_dir=./ ;;
6811 */) ;;
6812 *) as_dir=$as_dir/ ;;
6813 esac
b08c89d9 6814 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783
SP
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
3a12e572
UD
6818 break 2
6819 fi
6820done
b08c89d9 6821 done
26f56c1c 6822IFS=$as_save_IFS
3a12e572 6823
c0016081 6824 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
a2b08ee5 6825 ;;
98ffc1bf 6826esac ;;
a2b08ee5
UD
6827esac
6828fi
3a12e572 6829PERL=$ac_cv_path_PERL
a2b08ee5 6830if test -n "$PERL"; then
c6cb8783
SP
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6832printf "%s\n" "$PERL" >&6; }
a2b08ee5 6833else
c6cb8783
SP
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835printf "%s\n" "no" >&6; }
a2b08ee5
UD
6836fi
6837
26f56c1c 6838
2fd5d029
RM
6839if test "$PERL" != no &&
6840 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
6841 PERL=no
fc304e02 6842fi
c0016081
UD
6843# Extract the first word of "install-info", so it can be a program name with args.
6844set dummy install-info; ac_word=$2
c6cb8783
SP
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
98ffc1bf
AH
6850else case e in #(
6851 e) case $INSTALL_INFO in
3a12e572 6852 [\\/]* | ?:[\\/]*)
c0016081
UD
6853 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6854 ;;
6855 *)
3a12e572 6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f4b07664
RM
6857as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
6858for as_dir in $as_dummy
3a12e572
UD
6859do
6860 IFS=$as_save_IFS
c6cb8783
SP
6861 case $as_dir in #(((
6862 '') as_dir=./ ;;
6863 */) ;;
6864 *) as_dir=$as_dir/ ;;
6865 esac
b08c89d9 6866 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783
SP
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
3a12e572
UD
6870 break 2
6871 fi
6872done
b08c89d9 6873 done
26f56c1c 6874IFS=$as_save_IFS
3a12e572 6875
c0016081
UD
6876 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
6877 ;;
98ffc1bf 6878esac ;;
c0016081
UD
6879esac
6880fi
3a12e572 6881INSTALL_INFO=$ac_cv_path_INSTALL_INFO
c0016081 6882if test -n "$INSTALL_INFO"; then
c6cb8783
SP
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6884printf "%s\n" "$INSTALL_INFO" >&6; }
c0016081 6885else
c6cb8783
SP
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887printf "%s\n" "no" >&6; }
c0016081
UD
6888fi
6889
26f56c1c 6890
26f56c1c 6891
c6cb8783
SP
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
98ffc1bf
AH
6897else case e in #(
6898 e) cat > conftest.s <<EOF
8c0c01db 6899.text
cd6ede75
UD
6900foo:
6901.set glibc_conftest_frobozz,foo
7b8e0d49 6902.globl glibc_conftest_frobozz
cd6ede75
UD
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;
640f0119 6908void _start() { glibc_conftest_frobozz = 1; }
cd6ede75
UD
6909EOF
6910if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
66a704c4 6911 -nostartfiles -nostdlib $no_ssp \
cd6ede75
UD
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
98ffc1bf
AH
6917rm -f conftest* ;;
6918esac
cd6ede75 6919fi
c6cb8783
SP
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; }
cd6ede75 6922if test $libc_cv_asm_set_directive = yes; then
c6cb8783 6923 printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
cd6ede75
UD
6924
6925fi
6926
c6cb8783
SP
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
98ffc1bf
AH
6932else case e in #(
6933 e) cat > conftest.c <<EOF
2a723ff6 6934 int bar __attribute__ ((visibility ("protected"))) = 1;
83569fb8 6935EOF
2a723ff6 6936 libc_cv_protected_data=no
66a704c4 6937 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
83569fb8
L
6938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6939 (eval $ac_try) 2>&5
6940 ac_status=$?
c6cb8783 6941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83569fb8 6942 test $ac_status = 0; }; }; then
2a723ff6
JM
6943 cat > conftest.c <<EOF
6944 extern int bar;
6945 int main (void) { return bar; }
83569fb8 6946EOF
66a704c4 6947 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
83569fb8
L
6948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
c6cb8783 6951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83569fb8 6952 test $ac_status = 0; }; }; then
2a723ff6 6953 libc_cv_protected_data=yes
83569fb8 6954 fi
2a723ff6
JM
6955 fi
6956 rm -f conftest.*
98ffc1bf
AH
6957 ;;
6958esac
83569fb8 6959fi
c6cb8783
SP
6960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
6961printf "%s\n" "$libc_cv_protected_data" >&6; }
83569fb8
L
6962
6963
c6cb8783
SP
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
98ffc1bf
AH
6969else case e in #(
6970 e) cat > conftest.c <<EOF
5f07d47e 6971 int __attribute__ ((section(".bar"))) bar = 0x12345678;
19f1a11e
L
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=$?
c6cb8783 6986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19f1a11e
L
6987 test $ac_status = 0; }; }; then
6988 libc_cv_insert=yes
6989 fi
6990 rm -f conftest.*
98ffc1bf
AH
6991 ;;
6992esac
19f1a11e 6993fi
c6cb8783
SP
6994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
6995printf "%s\n" "$libc_cv_insert" >&6; }
19f1a11e
L
6996
6997
c6cb8783
SP
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
98ffc1bf
AH
7003else case e in #(
7004 e) cat > conftest.c <<EOF
a0da5fe1
UD
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;
37ba7d66 7011EOF
a0da5fe1
UD
7012 libc_cv_broken_alias_attribute=yes
7013 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
b08c89d9 7014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
61cea1c3
RM
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
c6cb8783 7017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b08c89d9 7018 test $ac_status = 0; }; }; then
a0da5fe1
UD
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
98ffc1bf
AH
7025 ;;
7026esac
3a12e572 7027fi
c6cb8783
SP
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; }
a0da5fe1
UD
7030if test $libc_cv_broken_alias_attribute = yes; then
7031 as_fn_error $? "working alias attribute support required" "$LINENO" 5
7032fi
37ba7d66 7033
c6cb8783
SP
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
98ffc1bf
AH
7039else case e in #(
7040 e) echo "int i;" > conftest.c
2a723ff6
JM
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
98ffc1bf
AH
7047 ;;
7048esac
3a12e572 7049fi
c6cb8783
SP
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; }
2a723ff6 7052if test $libc_cv_have_sdata_section = yes; then
c6cb8783 7053 printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h
0d01dace 7054
a0da5fe1 7055fi
0d01dace 7056
c6cb8783
SP
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
98ffc1bf
AH
7062else case e in #(
7063 e)
a0da5fe1 7064 cat > conftest.c <<EOF
cbdb12de
UD
7065int main (void) { return 0; }
7066EOF
a0da5fe1 7067 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
8175a253 7068 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
a0da5fe1
UD
7069 libc_cv_cc_with_libunwind=yes
7070 else
7071 libc_cv_cc_with_libunwind=no
7072 fi
98ffc1bf
AH
7073 rm -f conftest* ;;
7074esac
c776b3d7 7075fi
c6cb8783
SP
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; }
c776b3d7 7078
a0da5fe1 7079if test $libc_cv_cc_with_libunwind = yes; then
c6cb8783 7080 printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
c776b3d7 7081
a0da5fe1 7082fi
c776b3d7 7083
a0da5fe1 7084ASFLAGS_config=
c6cb8783
SP
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
98ffc1bf
AH
7090else case e in #(
7091 e) cat > conftest.c <<EOF
35915ec8
UD
7092void foo (void) { }
7093EOF
a0da5fe1
UD
7094if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
7095 -S -o conftest.s conftest.c 1>&5'
b08c89d9 7096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35915ec8
UD
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
c6cb8783 7099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b08c89d9 7100 test $ac_status = 0; }; } \
8175a253 7101 && grep .note.GNU-stack conftest.s >/dev/null \
a0da5fe1
UD
7102 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
7103 -c -o conftest.o conftest.s 1>&5'
b08c89d9 7104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35915ec8
UD
7105 (eval $ac_try) 2>&5
7106 ac_status=$?
c6cb8783 7107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b08c89d9 7108 test $ac_status = 0; }; }
a0da5fe1
UD
7109then
7110 libc_cv_as_noexecstack=yes
7111else
7112 libc_cv_as_noexecstack=no
7113fi
98ffc1bf
AH
7114rm -f conftest* ;;
7115esac
35915ec8 7116fi
c6cb8783
SP
7117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
7118printf "%s\n" "$libc_cv_as_noexecstack" >&6; }
a0da5fe1
UD
7119if test $libc_cv_as_noexecstack = yes; then
7120 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
7121fi
35915ec8 7122
2abf9ff1 7123
a2bd5008
SJ
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
59dc232d 7131 -Wl,--no-error-execstack -nostdlib -nostartfiles
a2bd5008
SJ
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
59dc232d 7140 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-error-execstack -nostdlib \
a2bd5008
SJ
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
c6cb8783
SP
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; }
6bfea974 7160libc_linker_feature=no
6cfc50f4 7161cat > conftest.c <<EOF
2abf9ff1
RM
7162int _start (void) { return 42; }
7163EOF
6cfc50f4
AZ
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'
b08c89d9 7168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2abf9ff1
RM
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
c6cb8783 7171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b08c89d9 7172 test $ac_status = 0; }; }
6cfc50f4
AZ
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
6bfea974
L
7180 fi
7181fi
6cfc50f4 7182rm -f conftest*
6bfea974 7183if test $libc_linker_feature = yes; then
a0da5fe1
UD
7184 libc_cv_z_execstack=yes
7185else
7186 libc_cv_z_execstack=no
7187fi
c6cb8783
SP
7188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7189printf "%s\n" "$libc_linker_feature" >&6; }
cd6ede75 7190
0f124303 7191
c6cb8783
SP
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; }
cd6ae7ea 7194libc_linker_feature=no
6cfc50f4 7195cat > conftest.c <<EOF
cd6ae7ea
FS
7196int _start (void) { return 42; }
7197EOF
6cfc50f4
AZ
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'
cd6ae7ea
FS
7202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
c6cb8783 7205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cd6ae7ea 7206 test $ac_status = 0; }; }
6cfc50f4
AZ
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
cd6ae7ea
FS
7214 fi
7215fi
6cfc50f4 7216rm -f conftest*
cd6ae7ea
FS
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
c6cb8783
SP
7222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7223printf "%s\n" "$libc_linker_feature" >&6; }
cd6ae7ea
FS
7224config_vars="$config_vars
7225have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
7226
c6cb8783
SP
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; }
9926f6e2 7229libc_linker_feature=no
6cfc50f4 7230cat > conftest.c <<EOF
9926f6e2
FS
7231int _start (void) { return 42; }
7232EOF
6cfc50f4
AZ
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'
9926f6e2
FS
7237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7238 (eval $ac_try) 2>&5
7239 ac_status=$?
c6cb8783 7240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9926f6e2 7241 test $ac_status = 0; }; }
6cfc50f4
AZ
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
9926f6e2
FS
7249 fi
7250fi
6cfc50f4 7251rm -f conftest*
9926f6e2
FS
7252if test $libc_linker_feature = yes; then
7253 libc_cv_depaudit=yes
7254else
7255 libc_cv_depaudit=no
7256fi
c6cb8783
SP
7257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7258printf "%s\n" "$libc_linker_feature" >&6; }
9926f6e2
FS
7259config_vars="$config_vars
7260have-depaudit = $libc_cv_depaudit"
7261
c6cb8783
SP
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; }
e895cff5 7264libc_linker_feature=no
6cfc50f4 7265cat > conftest.c <<EOF
e895cff5
FS
7266int _start (void) { return 42; }
7267EOF
6cfc50f4
AZ
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'
e895cff5
FS
7272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
c6cb8783 7275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
e895cff5 7276 test $ac_status = 0; }; }
6cfc50f4
AZ
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
e895cff5 7284 fi
e895cff5 7285fi
6cfc50f4 7286rm -f conftest*
e895cff5
FS
7287if test $libc_linker_feature = yes; then
7288 libc_cv_dt_relr=yes
7289else
7290 libc_cv_dt_relr=no
7291fi
c6cb8783
SP
7292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7293printf "%s\n" "$libc_linker_feature" >&6; }
e895cff5
FS
7294config_vars="$config_vars
7295have-dt-relr = $libc_cv_dt_relr"
7296
c6cb8783
SP
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; }
9d7a3741 7299libc_linker_feature=no
6cfc50f4 7300cat > conftest.c <<EOF
9d7a3741
L
7301int _start (void) { return 42; }
7302EOF
6cfc50f4
AZ
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'
9d7a3741
L
7307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7308 (eval $ac_try) 2>&5
7309 ac_status=$?
c6cb8783 7310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d7a3741 7311 test $ac_status = 0; }; }
6cfc50f4
AZ
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
9d7a3741
L
7319 fi
7320fi
6cfc50f4 7321rm -f conftest*
9d7a3741
L
7322if test $libc_linker_feature = yes; then
7323 libc_cv_no_dynamic_linker=yes
7324else
7325 libc_cv_no_dynamic_linker=no
7326fi
c6cb8783
SP
7327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7328printf "%s\n" "$libc_linker_feature" >&6; }
9d7a3741
L
7329config_vars="$config_vars
7330have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
7331
b79f2575 7332
c6cb8783
SP
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
98ffc1bf
AH
7338else case e in #(
7339 e) if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
9d7a3741
L
7340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7341 (eval $ac_try) 2>&5
7342 ac_status=$?
c6cb8783
SP
7343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344 test $ac_status = 0; }; }
7345then :
9d7a3741 7346 libc_cv_static_pie=yes
98ffc1bf
AH
7347else case e in #(
7348 e) libc_cv_static_pie=no ;;
7349esac
b79f2575 7350fi ;;
98ffc1bf 7351esac
9d7a3741 7352fi
c6cb8783
SP
7353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
7354printf "%s\n" "$libc_cv_static_pie" >&6; }
b79f2575
L
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
9d7a3741
L
7389config_vars="$config_vars
7390have-static-pie = $libc_cv_static_pie"
7391
b79f2575 7392
c6cb8783
SP
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
98ffc1bf
AH
7398else case e in #(
7399 e) if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
b08c89d9 7400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
0f124303
UD
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
c6cb8783
SP
7403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7404 test $ac_status = 0; }; }
7405then :
a0da5fe1 7406 libc_cv_fpie=yes
98ffc1bf
AH
7407else case e in #(
7408 e) libc_cv_fpie=no ;;
7409esac
a0da5fe1 7410fi
98ffc1bf
AH
7411 ;;
7412esac
0f124303 7413fi
c6cb8783
SP
7414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
7415printf "%s\n" "$libc_cv_fpie" >&6; }
0f124303
UD
7416
7417
871b9158 7418
c6cb8783
SP
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
98ffc1bf
AH
7424else case e in #(
7425 e) cat > conftest.c <<EOF
89569c8b
L
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
66a704c4 7431 -nostdlib -nostartfiles $no_ssp
89569c8b
L
7432 1>&5'
7433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
c6cb8783 7436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89569c8b
L
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
98ffc1bf
AH
7447rm -f conftest* ;;
7448esac
89569c8b 7449fi
c6cb8783
SP
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; }
89569c8b
L
7452
7453
b79f2575 7454conftest_code="
61655555
L
7455__thread int i;
7456void foo (void)
7457{
7458 i = 10;
7459}
b79f2575
L
7460"
7461
7462cat > conftest.c <<EOF
7463$conftest_code
61655555 7464EOF
61655555 7465
b79f2575
L
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}
c6cb8783
SP
7471then :
7472 printf %s "(cached) " >&6
98ffc1bf 7473else case e in #(
1294926d 7474 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_descriptor -nostdlib -nostartfiles -shared conftest.c -o conftest 1>&5'
b79f2575
L
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; }; }
1294926d
L
7480 then
7481 libc_cv_test_mtls_descriptor=$mtls_descriptor
7482 else
7483 libc_cv_test_mtls_descriptor=no
7484 fi ;;
b79f2575
L
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
b79f2575
L
7492rm -f conftest*
7493config_vars="$config_vars
1294926d 7494have-test-mtls-descriptor = $libc_cv_test_mtls_descriptor"
b79f2575 7495
848f0e46
L
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
b79f2575 7531conftest_code="
8d98c7c0
AZ
7532void __foo (void)
7533{
7534}
7535extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
7536extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
b79f2575
L
7537"
7538
7539cat > conftest.c <<EOF
7540$conftest_code
8d98c7c0 7541EOF
b79f2575
L
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'
8d98c7c0
AZ
7549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
c6cb8783 7552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8d98c7c0 7553 test $ac_status = 0; }; }
b79f2575
L
7554 then
7555 libc_cv_wno_ignored_attributes="-Wno-ignored-attributes"
7556 else
7557 libc_cv_wno_ignored_attributes=
7558 fi
7559 ;;
98ffc1bf 7560esac
8d98c7c0 7561fi
c6cb8783
SP
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; }
b79f2575
L
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*
8d98c7c0
AZ
7596config_vars="$config_vars
7597config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
7598
b79f2575 7599
c6cb8783
SP
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
98ffc1bf
AH
7605else case e in #(
7606 e) cat > conftest.c <<EOF
a0da5fe1
UD
7607 static const int foo
7608 __attribute__ ((section ("bar"))) = 1;
e26dd47f 7609EOF
a0da5fe1
UD
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
e26dd47f 7613 else
a0da5fe1 7614 libc_cv_have_section_quotes=no
e26dd47f 7615 fi
a0da5fe1
UD
7616 else
7617 libc_cv_have_section_quotes=unknown
7618 fi
7619 rm -f conftest.{c,s}
98ffc1bf
AH
7620 ;;
7621esac
3a12e572 7622fi
c6cb8783
SP
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; }
a0da5fe1 7625if test $libc_cv_have_section_quotes = yes; then
c6cb8783 7626 printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
cd6ede75 7627
9a97d1f7
UD
7628fi
7629
c6cb8783
SP
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
98ffc1bf
AH
7635else case e in #(
7636 e) cat > conftest.c <<\EOF
d555194c
UD
7637void zero (void *x)
7638{
a52d1562 7639 __builtin_memset (x, 0, 1000);
d555194c
UD
7640}
7641EOF
e37fc4aa 7642if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
b08c89d9 7643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3a12e572
UD
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
c6cb8783 7646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b08c89d9 7647 test $ac_status = 0; }; };
d555194c
UD
7648then
7649 libc_cv_gcc_builtin_memset=no
7650else
7651 libc_cv_gcc_builtin_memset=yes
7652fi
98ffc1bf
AH
7653rm -f conftest* ;;
7654esac
d555194c 7655fi
c6cb8783
SP
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; }
d555194c 7658if test "$libc_cv_gcc_builtin_memset" = yes ; then
c6cb8783 7659 printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
d555194c
UD
7660
7661fi
7662
c6cb8783
SP
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
98ffc1bf
AH
7668else case e in #(
7669 e) cat > conftest.c <<\EOF
85dd1003
UD
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
e37fc4aa 7676if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
b08c89d9 7677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
85dd1003
UD
7678 (eval $ac_try) 2>&5
7679 ac_status=$?
c6cb8783 7680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b08c89d9 7681 test $ac_status = 0; }; };
85dd1003
UD
7682then
7683 libc_cv_gcc_builtin_redirection=yes
7684else
7685 libc_cv_gcc_builtin_redirection=no
7686fi
98ffc1bf
AH
7687rm -f conftest* ;;
7688esac
85dd1003 7689fi
c6cb8783
SP
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; }
3ce1f295
UD
7692if test "$libc_cv_gcc_builtin_redirection" = no; then
7693 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
85dd1003
UD
7694fi
7695
c6cb8783
SP
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
98ffc1bf
AH
7701else case e in #(
7702 e) libc_cv_cc_nofma=
7998fa78
AS
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=$?
c6cb8783
SP
7708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7709 test $ac_status = 0; }; }
7710then :
7998fa78
AS
7711 libc_cv_cc_nofma=$opt; break
7712fi
98ffc1bf
AH
7713done ;;
7714esac
7998fa78 7715fi
c6cb8783
SP
7716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
7717printf "%s\n" "$libc_cv_cc_nofma" >&6; }
7998fa78 7718
bef0b507 7719
2cf9ad57 7720if test -n "$submachine"; then
c6cb8783
SP
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
98ffc1bf
AH
7726else case e in #(
7727 e) libc_cv_cc_submachine=no
2cf9ad57
RM
7728 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7729 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
b08c89d9 7730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2cf9ad57
RM
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
c6cb8783
SP
7733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7734 test $ac_status = 0; }; }
7735then :
40b601fb 7736
2cf9ad57
RM
7737 libc_cv_cc_submachine="$opt"
7738 break
40b601fb 7739fi
98ffc1bf
AH
7740 done ;;
7741esac
2cf9ad57 7742fi
c6cb8783
SP
7743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7744printf "%s\n" "$libc_cv_cc_submachine" >&6; }
2cf9ad57 7745 if test "x$libc_cv_cc_submachine" = xno; then
4a531bb0 7746 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
2cf9ad57
RM
7747 fi
7748fi
7749
7750
b79f2575 7751
c6cb8783
SP
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
98ffc1bf
AH
7757else case e in #(
7758 e) if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
5c5a8b99
AZ
7759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
c6cb8783
SP
7762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7763 test $ac_status = 0; }; }
7764then :
5c5a8b99 7765 libc_cv_cc_signaling_nans=-fsignaling-nans
98ffc1bf
AH
7766else case e in #(
7767 e) libc_cv_cc_signaling_nans= ;;
7768esac
b79f2575 7769fi ;;
98ffc1bf 7770esac
5c5a8b99 7771fi
c6cb8783
SP
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; }
b79f2575
L
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
5c5a8b99
AZ
7807config_vars="$config_vars
7808config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
7809
b79f2575 7810
56cdc529
L
7811
7812
03feea74
L
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
56cdc529
L
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
494eb254
L
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; }
c6cb8783
SP
7889if test ${libc_cv_cc_loop_to_function+y}
7890then :
7891 printf %s "(cached) " >&6
98ffc1bf 7892else case e in #(
494eb254 7893 e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5'
85c2e611
AZ
7894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
c6cb8783 7897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85c2e611 7898 test $ac_status = 0; }; }
494eb254
L
7899 then
7900 libc_cv_cc_loop_to_function=yes
7901 else
7902 libc_cv_cc_loop_to_function=no
7903 fi
7904 ;;
98ffc1bf 7905esac
85c2e611 7906fi
c6cb8783
SP
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; }
494eb254
L
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*
85c2e611 7941if test $libc_cv_cc_loop_to_function = yes; then
c6cb8783 7942 printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
85c2e611
AZ
7943
7944fi
494eb254
L
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
85c2e611
AZ
7949
7950
b79f2575 7951
4331769c
FW
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 #(
dad44389 7967 e) libc_cv_cc_wimplicit_fallthrough= ;;
4331769c 7968esac
b79f2575 7969fi ;;
4331769c
FW
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; }
b79f2575
L
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
4331769c
FW
8007config_vars="$config_vars
8008cc-option-wimplicit-fallthrough = $libc_cv_cc_wimplicit_fallthrough"
8009
b79f2575 8010
4f4c4fcd
FW
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
03da41d4
FW
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
d9d30f6c
L
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
a0704d9f
L
8178
8179
2271e0d2
AZ
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
31c47126
L
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
a0704d9f
L
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"
15ab68bf
L
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; }
a0704d9f
L
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
8d25b9f2
L
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
c6cb8783
SP
8373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
8374printf %s "checking for libgd... " >&6; }
6dab8688
UD
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"
b08c89d9 8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2abf9ff1 8383/* end confdefs.h. */
c8f3e6db 8384#include <gd.h>
3a12e572 8385int
c6cb8783 8386main (void)
3a12e572 8387{
c8f3e6db 8388gdImagePng (0, 0)
3a12e572
UD
8389 ;
8390 return 0;
8391}
8392_ACEOF
c6cb8783
SP
8393if ac_fn_c_try_link "$LINENO"
8394then :
c8f3e6db 8395 LIBGD=yes
98ffc1bf
AH
8396else case e in #(
8397 e) LIBGD=no ;;
8398esac
c8f3e6db 8399fi
c6cb8783 8400rm -f core conftest.err conftest.$ac_objext conftest.beam \
b08c89d9 8401 conftest$ac_exeext conftest.$ac_ext
6dab8688
UD
8402 CFLAGS="$old_CFLAGS"
8403 LDFLAGS="$old_LDFLAGS"
8404 LIBS="$old_LIBS"
8405else
8406 LIBGD=no
8407fi
c6cb8783
SP
8408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
8409printf "%s\n" "$LIBGD" >&6; }
3a12e572
UD
8410
8411
74a30a58
UD
8412# SELinux detection
8413if test x$with_selinux = xno ; then
8414 have_selinux=no;
8415else
8416 # See if we have the SELinux library
c6cb8783
SP
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
98ffc1bf
AH
8422else case e in #(
8423 e) ac_check_lib_save_LIBS=$LIBS
74a30a58 8424LIBS="-lselinux $LIBS"
b08c89d9 8425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74a30a58
UD
8426/* end confdefs.h. */
8427
26f56c1c
UD
8428/* Override any GCC internal prototype to avoid an error.
8429 Use char because int might match the return type of a GCC
98ffc1bf
AH
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);
74a30a58 8438int
c6cb8783 8439main (void)
74a30a58 8440{
26f56c1c 8441return is_selinux_enabled ();
74a30a58
UD
8442 ;
8443 return 0;
8444}
8445_ACEOF
c6cb8783
SP
8446if ac_fn_c_try_link "$LINENO"
8447then :
74a30a58 8448 ac_cv_lib_selinux_is_selinux_enabled=yes
98ffc1bf
AH
8449else case e in #(
8450 e) ac_cv_lib_selinux_is_selinux_enabled=no ;;
8451esac
74a30a58 8452fi
c6cb8783 8453rm -f core conftest.err conftest.$ac_objext conftest.beam \
b08c89d9 8454 conftest$ac_exeext conftest.$ac_ext
98ffc1bf
AH
8455LIBS=$ac_check_lib_save_LIBS ;;
8456esac
74a30a58 8457fi
c6cb8783
SP
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 :
74a30a58 8462 have_selinux=yes
98ffc1bf
AH
8463else case e in #(
8464 e) have_selinux=no ;;
8465esac
74a30a58
UD
8466fi
8467
8f1913a9 8468 if test x$with_selinux = xyes ; then
74a30a58 8469 if test x$have_selinux = xno ; then
0699f766 8470 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
74a30a58
UD
8471 fi
8472 fi
8473fi
8474# Check if we're building with SELinux support.
8475if test "x$have_selinux" = xyes; then
8476
c6cb8783 8477printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
74a30a58 8478
b399a0c2
UD
8479
8480 # See if we have the libaudit library
c6cb8783
SP
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
98ffc1bf
AH
8486else case e in #(
8487 e) ac_check_lib_save_LIBS=$LIBS
b399a0c2 8488LIBS="-laudit $LIBS"
b08c89d9 8489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b399a0c2
UD
8490/* end confdefs.h. */
8491
26f56c1c
UD
8492/* Override any GCC internal prototype to avoid an error.
8493 Use char because int might match the return type of a GCC
98ffc1bf
AH
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);
b399a0c2 8502int
c6cb8783 8503main (void)
b399a0c2 8504{
26f56c1c 8505return audit_log_user_avc_message ();
b399a0c2
UD
8506 ;
8507 return 0;
8508}
8509_ACEOF
c6cb8783
SP
8510if ac_fn_c_try_link "$LINENO"
8511then :
b2f97341 8512 ac_cv_lib_audit_audit_log_user_avc_message=yes
98ffc1bf
AH
8513else case e in #(
8514 e) ac_cv_lib_audit_audit_log_user_avc_message=no ;;
8515esac
b399a0c2 8516fi
c6cb8783 8517rm -f core conftest.err conftest.$ac_objext conftest.beam \
b08c89d9 8518 conftest$ac_exeext conftest.$ac_ext
98ffc1bf
AH
8519LIBS=$ac_check_lib_save_LIBS ;;
8520esac
b399a0c2 8521fi
c6cb8783
SP
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 :
b399a0c2 8526 have_libaudit=yes
98ffc1bf
AH
8527else case e in #(
8528 e) have_libaudit=no ;;
8529esac
b399a0c2
UD
8530fi
8531
8532 if test "x$have_libaudit" = xyes; then
8533
c6cb8783 8534printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h
b399a0c2
UD
8535
8536 fi
8537
1f063dca
UD
8538
8539 # See if we have the libcap library
c6cb8783
SP
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
98ffc1bf
AH
8545else case e in #(
8546 e) ac_check_lib_save_LIBS=$LIBS
1f063dca 8547LIBS="-lcap $LIBS"
b08c89d9 8548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1f063dca
UD
8549/* end confdefs.h. */
8550
26f56c1c
UD
8551/* Override any GCC internal prototype to avoid an error.
8552 Use char because int might match the return type of a GCC
98ffc1bf
AH
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);
1f063dca 8561int
c6cb8783 8562main (void)
1f063dca 8563{
26f56c1c 8564return cap_init ();
1f063dca
UD
8565 ;
8566 return 0;
8567}
8568_ACEOF
c6cb8783
SP
8569if ac_fn_c_try_link "$LINENO"
8570then :
1f063dca 8571 ac_cv_lib_cap_cap_init=yes
98ffc1bf
AH
8572else case e in #(
8573 e) ac_cv_lib_cap_cap_init=no ;;
8574esac
1f063dca 8575fi
c6cb8783 8576rm -f core conftest.err conftest.$ac_objext conftest.beam \
b08c89d9 8577 conftest$ac_exeext conftest.$ac_ext
98ffc1bf
AH
8578LIBS=$ac_check_lib_save_LIBS ;;
8579esac
1f063dca 8580fi
c6cb8783
SP
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 :
1f063dca 8585 have_libcap=yes
98ffc1bf
AH
8586else case e in #(
8587 e) have_libcap=no ;;
8588esac
1f063dca
UD
8589fi
8590
8591 if test "x$have_libcap" = xyes; then
8592
c6cb8783 8593printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
1f063dca
UD
8594
8595 fi
8596
74a30a58
UD
8597fi
8598
8599
127cefd8 8600no_fortify_source="-U_FORTIFY_SOURCE"
64d9580c
FB
8601fortify_source="${no_fortify_source}"
8602
b79f2575 8603
a3090c2c
AZ
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}
c6cb8783
SP
8607then :
8608 printf %s "(cached) " >&6
98ffc1bf
AH
8609else case e in #(
8610 e)
b79f2575 8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61653dfb
RM
8612/* end confdefs.h. */
8613
8614int
c6cb8783 8615main (void)
61653dfb 8616{
64d9580c 8617__builtin_dynamic_object_size("", 0)
61653dfb
RM
8618 ;
8619 return 0;
8620}
8621_ACEOF
c6cb8783
SP
8622if ac_fn_c_try_link "$LINENO"
8623then :
a3090c2c 8624 libc_cv_supported_fortify_source=3
98ffc1bf
AH
8625else case e in #(
8626 e) libc_cv_supported_fortify_source=2 ;;
8627esac
61653dfb 8628fi
c6cb8783 8629rm -f core conftest.err conftest.$ac_objext conftest.beam \
64d9580c 8630 conftest$ac_exeext conftest.$ac_ext
98ffc1bf
AH
8631 ;;
8632esac
64d9580c 8633fi
a3090c2c
AZ
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; }
b79f2575
L
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
64d9580c
FB
8680
8681case $enable_fortify_source in #(
a3090c2c
AZ
8682 yes) :
8683 libc_cv_fortify_source=yes enable_fortify_source=$libc_cv_supported_fortify_source ;; #(
64d9580c
FB
8684 1|2) :
8685 libc_cv_fortify_source=yes ;; #(
8686 3) :
a3090c2c 8687 if test $libc_cv_supported_fortify_source = 3
c6cb8783 8688then :
64d9580c 8689 libc_cv_fortify_source=yes
98ffc1bf
AH
8690else case e in #(
8691 e) as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 ;;
8692esac
64d9580c
FB
8693fi ;; #(
8694 *) :
8695 libc_cv_fortify_source=no ;;
8696esac
8697
c6cb8783
SP
8698if test "$libc_cv_fortify_source" = yes
8699then :
127cefd8 8700 fortify_source="${fortify_source} -D_FORTIFY_SOURCE=${enable_fortify_source}"
64d9580c 8701
61653dfb
RM
8702fi
8703
8704
64d9580c
FB
8705
8706
8707
a3090c2c
AZ
8708config_vars="$config_vars
8709supported-fortify = $libc_cv_supported_fortify_source"
64d9580c 8710
3f1932ed
AZ
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
4d8965f1
AZ
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"
3f1932ed 8770
c6cb8783
SP
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
98ffc1bf
AH
8776else case e in #(
8777 e) cat > conftest.s <<EOF
0923f74a
FW
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.*
98ffc1bf
AH
8791 ;;
8792esac
0923f74a 8793fi
c6cb8783
SP
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; }
0923f74a 8796if test "$libc_cv_symver_needs_alias" = yes; then
c6cb8783 8797 printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
0923f74a
FW
8798
8799fi
8800
c6cb8783
SP
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
98ffc1bf
AH
8806else case e in #(
8807 e) libc_cv_builtin_trap=no
9fe7e787
RM
8808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809/* end confdefs.h. */
8810
8811int
c6cb8783 8812main (void)
9fe7e787
RM
8813{
8814__builtin_trap ()
8815 ;
8816 return 0;
8817}
8818_ACEOF
c6cb8783
SP
8819if ac_fn_c_try_compile "$LINENO"
8820then :
9fe7e787
RM
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
98ffc1bf
AH
8832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8833esac
9fe7e787 8834fi
c6cb8783
SP
8835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
8836printf "%s\n" "$libc_cv_builtin_trap" >&6; }
9fe7e787 8837if test $libc_cv_builtin_trap = yes; then
c6cb8783 8838 printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
9fe7e787
RM
8839
8840fi
8841
9b91484b
L
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
99e1dc0a
FW
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
c6cb8783
SP
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
98ffc1bf
AH
8883else case e in #(
8884 e)
99e1dc0a
FW
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
c6cb8783
SP
8907if ac_fn_cxx_try_compile "$LINENO"
8908then :
99e1dc0a 8909 libc_cv_cxx_thread_local=yes
98ffc1bf
AH
8910else case e in #(
8911 e) libc_cv_cxx_thread_local=no ;;
8912esac
99e1dc0a 8913fi
c6cb8783 8914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
99e1dc0a 8915CXXFLAGS="$old_CXXFLAGS"
98ffc1bf
AH
8916 ;;
8917esac
99e1dc0a 8918fi
c6cb8783
SP
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; }
99e1dc0a
FW
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
cd6ede75
UD
8930### End of automated tests.
8931### Now run sysdeps configure fragments.
8932
cb343854 8933# They also can set these variables.
b43b13ac 8934use_ldconfig=no
cb343854 8935ldd_rewrite_script=no
77259608 8936libc_cv_sysconfdir=$sysconfdir
4248b1b1 8937libc_cv_localstatedir=$localstatedir
74bd2300 8938libc_cv_gcc_unwind_find_fde=no
e2fd3cbe 8939libc_cv_idn=no
ad201afe 8940pthread_in_libc=yes
cb343854 8941
cd6ede75 8942# Iterate over all the sysdep directories we will use, running their
09055553 8943# configure fragments.
cd6ede75
UD
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
c6cb8783
SP
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; }
cd6ede75
UD
8952 . $dest/configure
8953 fi
cd6ede75
UD
8954done
8955
5695d46f
AS
8956if test x"$build_mathvec" = xnotset; then
8957 build_mathvec=no
8958fi
8959config_vars="$config_vars
8960build-mathvec = $build_mathvec"
8961
7ffa9423
AZ
8962
8963
8964
74bd2300 8965if test x$libc_cv_gcc_unwind_find_fde = xyes; then
c6cb8783 8966 printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
74bd2300
UD
8967
8968fi
8969
8970
6e6249d0
RM
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
c6cb8783 8974 printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h
6e6249d0
RM
8975
8976fi
92ad88fe
L
8977config_vars="$config_vars
8978have-ifunc = $libc_cv_ld_gnu_indirect_function"
6e6249d0 8979
022dfdce 8980if test x"$libc_cv_gcc_indirect_function" = xyes; then
c6cb8783 8981 printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h
022dfdce
SL
8982
8983fi
16b59780
ST
8984config_vars="$config_vars
8985have-gcc-ifunc = $libc_cv_gcc_indirect_function"
022dfdce 8986
3cc3ef96
RM
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
c6cb8783 8991 printf "%s\n" "#define USE_NSCD 1" >>confdefs.h
3cc3ef96
RM
8992
8993fi
c53d909c
RM
8994if test "x$build_nscd" = xdefault; then
8995 build_nscd=$use_nscd
8996fi
3cc3ef96 8997
cd6ede75
UD
8998
8999
9000
9001
9002
cb343854 9003
dff14448 9004
f57f8055 9005if test x$use_ldconfig = xyes; then
c6cb8783 9006 printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h
f57f8055
RM
9007
9008fi
af968f62 9009
3b100462 9010
eae47a36 9011
7998fa78 9012
650425ce 9013
a334319f 9014
c6cb8783
SP
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
98ffc1bf
AH
9020else case e in #(
9021 e) libc_cv_pic_default=yes
cc3fa755 9022cat > conftest.c <<EOF
9756dfe1 9023#if defined __PIC__ || defined __pic__ || defined PIC || defined pic
cc3fa755
UD
9024# error PIC is default.
9025#endif
9026EOF
9027if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
ff886b82 9028 libc_cv_pic_default=no
cc3fa755 9029fi
98ffc1bf
AH
9030rm -f conftest.* ;;
9031esac
cc3fa755 9032fi
c6cb8783
SP
9033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
9034printf "%s\n" "$libc_cv_pic_default" >&6; }
23645707
SP
9035config_vars="$config_vars
9036build-pic-default = $libc_cv_pic_default"
cc3fa755 9037
c6cb8783
SP
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
98ffc1bf
AH
9043else case e in #(
9044 e) libc_cv_cc_pie_default=yes
cc08749b
L
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
00c714df 9051 libc_cv_cc_pie_default=no
cc08749b 9052fi
98ffc1bf
AH
9053rm -f conftest.* ;;
9054esac
cc08749b 9055fi
c6cb8783
SP
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; }
23645707
SP
9058config_vars="$config_vars
9059cc-pie-default = $libc_cv_cc_pie_default"
abcb584d 9060
e7b55327
L
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:
bce70034 9076 .byte 0
e7b55327
L
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
c05086d9
YK
9136# Check if compilers support GCS in branch protection:
9137
c05086d9
YK
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
c6cb8783
SP
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; }
ded3aeb2 9236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23645707
SP
9237/* end confdefs.h. */
9238#ifdef PIE_UNSUPPORTED
9239# error PIE is not supported
9240#endif
9241_ACEOF
c6cb8783
SP
9242if ac_fn_c_try_compile "$LINENO"
9243then :
ded3aeb2 9244 libc_cv_pie_supported=yes
98ffc1bf
AH
9245else case e in #(
9246 e) libc_cv_pie_supported=no ;;
9247esac
23645707 9248fi
c6cb8783
SP
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; }
ded3aeb2
L
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
23645707 9258fi
23645707 9259config_vars="$config_vars
ded3aeb2 9260build-pie-default = $build_pie_default"
23645707 9261
c6cb8783
SP
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; }
ded3aeb2
L
9264libc_cv_static_pie_supported=$libc_cv_pie_supported
9265if test "x$libc_cv_pie_supported" != xno \
23645707 9266 -a "$libc_cv_no_dynamic_linker" = yes; then
374cef32
SN
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
c6cb8783
SP
9273if ac_fn_c_try_compile "$LINENO"
9274then :
ded3aeb2 9275 libc_cv_static_pie_supported=yes
98ffc1bf
AH
9276else case e in #(
9277 e) libc_cv_static_pie_supported=no ;;
9278esac
374cef32 9279fi
c6cb8783 9280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ded3aeb2 9281fi
c6cb8783
SP
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; }
ded3aeb2
L
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
c6cb8783 9293 printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h
9d7a3741
L
9294
9295fi
9296config_vars="$config_vars
23645707
SP
9297enable-static-pie = $libc_cv_static_pie"
9298
5dfbc3c4
FW
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
b79f2575
L
9339# Support configure.ac under sysdeps.
9340
9341
9342
9343
23645707
SP
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
9d7a3741 9348
2103c260 9349
2103c260 9350
2103c260 9351
cc3fa755 9352
cd6ede75
UD
9353
9354
9355
ee74a442
UD
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
cd6ede75
UD
9359
9360
ad201afe 9361if test "$pthread_in_libc" = yes; then
c6cb8783 9362 printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h
ad201afe
FW
9363
9364fi
9365
9366
728e272a 9367ac_config_files="$ac_config_files config.make Makefile"
f4b07664 9368
26f56c1c 9369ac_config_commands="$ac_config_commands default"
f4b07664 9370
3a12e572 9371cat >confcache <<\_ACEOF
cd6ede75
UD
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
3a12e572
UD
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.
cd6ede75 9377#
3a12e572
UD
9378# config.status only pays attention to the cache file if you give it
9379# the --recheck option to rerun configure.
cd6ede75 9380#
98ffc1bf
AH
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
3a12e572
UD
9383# following values.
9384
9385_ACEOF
9386
cd6ede75
UD
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.
26f56c1c 9389# So, we kill variables containing newlines.
cd6ede75
UD
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.
26f56c1c
UD
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 #(
c6cb8783
SP
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;} ;;
26f56c1c
UD
9400 esac
9401 case $ac_var in #(
9402 _ | IFS | as_nl) ;; #(
322e23db 9403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b08c89d9 9404 *) { eval $ac_var=; unset $ac_var;} ;;
26f56c1c
UD
9405 esac ;;
9406 esac
9407 done
9408
3a12e572 9409 (set) 2>&1 |
26f56c1c
UD
9410 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9411 *${as_nl}ac_space=\ *)
98ffc1bf 9412 # 'set' does not quote correctly, so add quotes: double-quote
b08c89d9 9413 # substitution turns \\\\ into \\, and sed turns \\ into \.
3a12e572 9414 sed -n \
9382fcee
RM
9415 "s/'/'\\\\''/g;
9416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26f56c1c 9417 ;; #(
3a12e572 9418 *)
98ffc1bf 9419 # 'set' quotes correctly as required by POSIX, so do not add quotes.
26f56c1c 9420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3a12e572 9421 ;;
26f56c1c
UD
9422 esac |
9423 sort
9424) |
3a12e572 9425 sed '
26f56c1c 9426 /^ac_cv_env_/b end
3a12e572 9427 t clear
26f56c1c 9428 :clear
c6cb8783 9429 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
3a12e572 9430 t end
26f56c1c
UD
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
f318beb8 9435 if test "x$cache_file" != "x/dev/null"; then
c6cb8783
SP
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9437printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
f318beb8
UD
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
cd6ede75 9450 else
c6cb8783
SP
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;}
cd6ede75
UD
9453 fi
9454fi
9455rm -f confcache
9456
cd6ede75
UD
9457test "x$prefix" = xNONE && prefix=$ac_default_prefix
9458# Let make expand exec_prefix.
9459test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9460
cd6ede75
UD
9461DEFS=-DHAVE_CONFIG_H
9462
f4b07664
RM
9463ac_libobjs=
9464ac_ltlibobjs=
4a531bb0 9465U=
f4b07664
RM
9466for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9467 # 1. Remove the extension, and $U if already installed.
26f56c1c 9468 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
c6cb8783 9469 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
26f56c1c
UD
9470 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9471 # will be set to the directory where LIBOBJS objects are built.
b08c89d9
UD
9472 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9473 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
f4b07664
RM
9474done
9475LIBOBJS=$ac_libobjs
9476
9477LTLIBOBJS=$ac_ltlibobjs
9478
9479
cd6ede75 9480
f318beb8 9481: "${CONFIG_STATUS=./config.status}"
322e23db 9482ac_write_fail=0
3a12e572
UD
9483ac_clean_files_save=$ac_clean_files
9484ac_clean_files="$ac_clean_files $CONFIG_STATUS"
c6cb8783
SP
9485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9486printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
b08c89d9
UD
9487as_write_fail=0
9488cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3a12e572
UD
9489#! $SHELL
9490# Generated by $as_me.
cd6ede75 9491# Run this file to recreate the current configuration.
cd6ede75 9492# Compiler output produced by configure, useful for debugging
3a12e572 9493# configure, is in config.log if it exists.
cd6ede75 9494
3a12e572 9495debug=false
2abf9ff1
RM
9496ac_cs_recheck=false
9497ac_cs_silent=false
3a12e572 9498
b08c89d9
UD
9499SHELL=\${CONFIG_SHELL-$SHELL}
9500export SHELL
9501_ASEOF
9502cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9503## -------------------- ##
9504## M4sh Initialization. ##
9505## -------------------- ##
3a12e572 9506
26f56c1c
UD
9507# Be more Bourne compatible
9508DUALCASE=1; export DUALCASE # for MKS sh
c6cb8783
SP
9509if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9510then :
3a12e572
UD
9511 emulate sh
9512 NULLCMD=:
322e23db 9513 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
f4b07664
RM
9514 # is contrary to our usage. Disable this feature.
9515 alias -g '${1+"$@"}'='"$@"'
26f56c1c 9516 setopt NO_GLOB_SUBST
98ffc1bf
AH
9517else case e in #(
9518 e) case `(set -o) 2>/dev/null` in #(
b08c89d9
UD
9519 *posix*) :
9520 set -o posix ;; #(
9521 *) :
9522 ;;
98ffc1bf 9523esac ;;
26f56c1c 9524esac
26f56c1c
UD
9525fi
9526
9527
c6cb8783
SP
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.
322e23db
UD
9536as_nl='
9537'
9538export as_nl
c6cb8783
SP
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
322e23db
UD
9565
9566# The user is always right.
c6cb8783 9567if ${PATH_SEPARATOR+false} :; then
322e23db
UD
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 }
3a12e572
UD
9573fi
9574
f4b07664 9575
26f56c1c 9576# Find who we are. Look in the path if we contain no directory separator.
f318beb8 9577as_myself=
b08c89d9 9578case $0 in #((
26f56c1c
UD
9579 *[\\/]* ) as_myself=$0 ;;
9580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581for as_dir in $PATH
9582do
9583 IFS=$as_save_IFS
c6cb8783
SP
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
b08c89d9 9590 done
26f56c1c
UD
9591IFS=$as_save_IFS
9592
9593 ;;
9594esac
98ffc1bf 9595# We did not find ourselves, most probably we were run as 'sh COMMAND'
26f56c1c
UD
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
c6cb8783 9601 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b08c89d9 9602 exit 1
26f56c1c
UD
9603fi
9604
b08c89d9
UD
9605
9606
4a531bb0
L
9607# as_fn_error STATUS ERROR [LINENO LOG_FD]
9608# ----------------------------------------
b08c89d9
UD
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
4a531bb0 9611# script with STATUS, using 1 if that was 0.
b08c89d9
UD
9612as_fn_error ()
9613{
4a531bb0
L
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
c6cb8783 9617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b08c89d9 9618 fi
c6cb8783 9619 printf "%s\n" "$as_me: error: $2" >&2
b08c89d9
UD
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
c6cb8783 9650
b08c89d9
UD
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.
c6cb8783
SP
9657if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9658then :
b08c89d9
UD
9659 eval 'as_fn_append ()
9660 {
9661 eval $1+=\$2
9662 }'
98ffc1bf
AH
9663else case e in #(
9664 e) as_fn_append ()
b08c89d9
UD
9665 {
9666 eval $1=\$$1\$2
98ffc1bf
AH
9667 } ;;
9668esac
b08c89d9
UD
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.
c6cb8783
SP
9676if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9677then :
b08c89d9
UD
9678 eval 'as_fn_arith ()
9679 {
9680 as_val=$(( $* ))
9681 }'
98ffc1bf
AH
9682else case e in #(
9683 e) as_fn_arith ()
b08c89d9
UD
9684 {
9685 as_val=`expr "$@" || test $? -eq 1`
98ffc1bf
AH
9686 } ;;
9687esac
b08c89d9
UD
9688fi # as_fn_arith
9689
9690
26f56c1c
UD
9691if expr a : '\(a\)' >/dev/null 2>&1 &&
9692 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f4b07664
RM
9693 as_expr=expr
9694else
9695 as_expr=false
9696fi
9697
26f56c1c 9698if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
f4b07664
RM
9699 as_basename=basename
9700else
9701 as_basename=false
9702fi
3a12e572 9703
b08c89d9
UD
9704if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9705 as_dirname=dirname
9706else
9707 as_dirname=false
9708fi
3a12e572 9709
26f56c1c 9710as_me=`$as_basename -- "$0" ||
3a12e572
UD
9711$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9712 X"$0" : 'X\(//\)$' \| \
26f56c1c 9713 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
c6cb8783 9714printf "%s\n" X/"$0" |
26f56c1c
UD
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'`
3a12e572 9728
b08c89d9
UD
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
26f56c1c 9735
c6cb8783
SP
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.
26f56c1c 9740ECHO_C= ECHO_N= ECHO_T=
b08c89d9 9741case `echo -n x` in #(((((
26f56c1c 9742-n*)
b08c89d9 9743 case `echo 'xy\c'` in
26f56c1c 9744 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b08c89d9
UD
9745 xy) ECHO_C='\c';;
9746 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9747 ECHO_T=' ';;
26f56c1c
UD
9748 esac;;
9749*)
9750 ECHO_N='-n';;
3a12e572 9751esac
cd6ede75 9752
c6cb8783
SP
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
3a12e572 9759rm -f conf$$ conf$$.exe conf$$.file
26f56c1c
UD
9760if test -d conf$$.dir; then
9761 rm -f conf$$.dir/conf$$.file
9762else
9763 rm -f conf$$.dir
322e23db
UD
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:
98ffc1bf
AH
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'.
322e23db 9773 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f4a58f0d 9774 as_ln_s='cp -pR'
322e23db
UD
9775 elif ln conf$$.file conf$$ 2>/dev/null; then
9776 as_ln_s=ln
9777 else
f4a58f0d 9778 as_ln_s='cp -pR'
322e23db 9779 fi
3a12e572 9780else
f4a58f0d 9781 as_ln_s='cp -pR'
cd6ede75 9782fi
26f56c1c
UD
9783rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9784rmdir conf$$.dir 2>/dev/null
cd6ede75 9785
b08c89d9
UD
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 #(
c6cb8783 9800 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
b08c89d9
UD
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 ||
c6cb8783 9809printf "%s\n" X"$as_dir" |
b08c89d9
UD
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"
4a531bb0 9830 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b08c89d9
UD
9831
9832
9833} # as_fn_mkdir_p
f4b07664 9834if mkdir -p . 2>/dev/null; then
b08c89d9 9835 as_mkdir_p='mkdir -p "$as_dir"'
f4b07664 9836else
9382fcee 9837 test -d ./-p && rmdir ./-p
f4b07664
RM
9838 as_mkdir_p=false
9839fi
9840
f4a58f0d
L
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
cd6ede75 9851
3a12e572 9852# Sed expression to map a string onto a valid CPP name.
98ffc1bf
AH
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
3a12e572
UD
9855
9856# Sed expression to map a string onto a valid variable name.
98ffc1bf
AH
9857as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9858as_tr_sh="eval sed '$as_sed_sh'" # deprecated
3a12e572
UD
9859
9860
3a12e572 9861exec 6>&1
b08c89d9
UD
9862## ----------------------------------- ##
9863## Main body of $CONFIG_STATUS script. ##
9864## ----------------------------------- ##
9865_ASEOF
9866test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3a12e572 9867
b08c89d9
UD
9868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9869# Save the log message, to keep $0 and so on meaningful, and to
3a12e572 9870# report actual input values of CONFIG_FILES etc. instead of their
26f56c1c
UD
9871# values after options handling.
9872ac_log="
f4b07664 9873This file was extended by GNU C Library $as_me (see version.h), which was
98ffc1bf 9874generated by GNU Autoconf 2.72. Invocation command line was
3a12e572
UD
9875
9876 CONFIG_FILES = $CONFIG_FILES
9877 CONFIG_HEADERS = $CONFIG_HEADERS
9878 CONFIG_LINKS = $CONFIG_LINKS
9879 CONFIG_COMMANDS = $CONFIG_COMMANDS
9880 $ $0 $@
9881
26f56c1c
UD
9882on `(hostname || uname -n) 2>/dev/null | sed 1q`
9883"
9884
3a12e572
UD
9885_ACEOF
9886
322e23db
UD
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
3a12e572 9897# Files that config.status was made for.
26f56c1c
UD
9898config_files="$ac_config_files"
9899config_headers="$ac_config_headers"
9900config_commands="$ac_config_commands"
3a12e572 9901
26f56c1c 9902_ACEOF
3a12e572 9903
322e23db 9904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3a12e572 9905ac_cs_usage="\
98ffc1bf 9906'$as_me' instantiates files and other configuration actions
b08c89d9
UD
9907from templates according to the current configuration. Unless the files
9908and actions are specified as TAGs, all are instantiated by default.
3a12e572 9909
b08c89d9 9910Usage: $0 [OPTION]... [TAG]...
3a12e572
UD
9911
9912 -h, --help print this help, then exit
26f56c1c 9913 -V, --version print version number and configuration settings, then exit
b08c89d9 9914 --config print configuration, then exit
322e23db
UD
9915 -q, --quiet, --silent
9916 do not print progress messages
3a12e572
UD
9917 -d, --debug don't remove temporary files
9918 --recheck update $as_me by reconfiguring in the same conditions
322e23db
UD
9919 --file=FILE[:TEMPLATE]
9920 instantiate the configuration file FILE
9921 --header=FILE[:TEMPLATE]
9922 instantiate the configuration header FILE
3a12e572
UD
9923
9924Configuration files:
9925$config_files
9926
9927Configuration headers:
9928$config_headers
9929
3a12e572
UD
9930Configuration commands:
9931$config_commands
9932
a306c790 9933Report bugs to <https://sourceware.org/bugzilla/>.
02d35f06 9934GNU C Library home page: <https://www.gnu.org/software/glibc/>.
c6cb8783 9935General help using GNU software: <https://www.gnu.org/gethelp/>."
3a12e572 9936
26f56c1c 9937_ACEOF
c6cb8783
SP
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"`
322e23db 9940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6cb8783 9941ac_cs_config='$ac_cs_config_escaped'
3a12e572 9942ac_cs_version="\\
f4b07664 9943GNU C Library config.status (see version.h)
98ffc1bf 9944configured by $0, generated by GNU Autoconf 2.72,
b08c89d9 9945 with options \\"\$ac_cs_config\\"
3a12e572 9946
98ffc1bf 9947Copyright (C) 2023 Free Software Foundation, Inc.
3a12e572
UD
9948This config.status script is free software; the Free Software Foundation
9949gives unlimited permission to copy, distribute and modify it."
26f56c1c
UD
9950
9951ac_pwd='$ac_pwd'
9952srcdir='$srcdir'
9953INSTALL='$INSTALL'
322e23db 9954test -n "\$AWK" || AWK=awk
3a12e572
UD
9955_ACEOF
9956
322e23db
UD
9957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9958# The default lists apply if the user does not specify any file.
3a12e572
UD
9959ac_need_defaults=:
9960while test $# != 0
9961do
9962 case $1 in
f318beb8 9963 --*=?*)
26f56c1c
UD
9964 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9965 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
f4b07664
RM
9966 ac_shift=:
9967 ;;
f318beb8
UD
9968 --*=)
9969 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9970 ac_optarg=
9971 ac_shift=:
9972 ;;
26f56c1c 9973 *)
f4b07664
RM
9974 ac_option=$1
9975 ac_optarg=$2
9976 ac_shift=shift
3a12e572 9977 ;;
cd6ede75
UD
9978 esac
9979
f4b07664 9980 case $ac_option in
3a12e572 9981 # Handling of the options.
2abf9ff1
RM
9982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9983 ac_cs_recheck=: ;;
26f56c1c 9984 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
c6cb8783 9985 printf "%s\n" "$ac_cs_version"; exit ;;
b08c89d9 9986 --config | --confi | --conf | --con | --co | --c )
c6cb8783 9987 printf "%s\n" "$ac_cs_config"; exit ;;
26f56c1c 9988 --debug | --debu | --deb | --de | --d | -d )
3a12e572
UD
9989 debug=: ;;
9990 --file | --fil | --fi | --f )
f4b07664 9991 $ac_shift
322e23db 9992 case $ac_optarg in
c6cb8783 9993 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f318beb8 9994 '') as_fn_error $? "missing file argument" ;;
322e23db 9995 esac
b08c89d9 9996 as_fn_append CONFIG_FILES " '$ac_optarg'"
3a12e572
UD
9997 ac_need_defaults=false;;
9998 --header | --heade | --head | --hea )
f4b07664 9999 $ac_shift
322e23db 10000 case $ac_optarg in
c6cb8783 10001 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
322e23db 10002 esac
b08c89d9 10003 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3a12e572 10004 ac_need_defaults=false;;
26f56c1c
UD
10005 --he | --h)
10006 # Conflict between --help and --header
98ffc1bf
AH
10007 as_fn_error $? "ambiguous option: '$1'
10008Try '$0 --help' for more information.";;
26f56c1c 10009 --help | --hel | -h )
c6cb8783 10010 printf "%s\n" "$ac_cs_usage"; exit ;;
2abf9ff1
RM
10011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10012 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10013 ac_cs_silent=: ;;
3a12e572
UD
10014
10015 # This is an error.
98ffc1bf
AH
10016 -*) as_fn_error $? "unrecognized option: '$1'
10017Try '$0 --help' for more information." ;;
3a12e572 10018
b08c89d9 10019 *) as_fn_append ac_config_targets " $1"
26f56c1c 10020 ac_need_defaults=false ;;
cd6ede75 10021
3a12e572
UD
10022 esac
10023 shift
10024done
10025
2abf9ff1
RM
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
322e23db 10034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2abf9ff1 10035if \$ac_cs_recheck; then
f4a58f0d 10036 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
322e23db 10037 shift
c6cb8783 10038 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
322e23db 10039 CONFIG_SHELL='$SHELL'
26f56c1c 10040 export CONFIG_SHELL
322e23db 10041 exec "\$@"
2abf9ff1
RM
10042fi
10043
3a12e572 10044_ACEOF
322e23db 10045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26f56c1c
UD
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
c6cb8783 10052 printf "%s\n" "$ac_log"
26f56c1c 10053} >&5
3a12e572 10054
26f56c1c 10055_ACEOF
322e23db 10056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3a12e572 10057#
26f56c1c 10058# INIT-COMMANDS
3a12e572 10059#
3a12e572
UD
10060config_vars='$config_vars'
10061
10062_ACEOF
10063
322e23db 10064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26f56c1c
UD
10065
10066# Handling of arguments.
3a12e572
UD
10067for ac_config_target in $ac_config_targets
10068do
26f56c1c
UD
10069 case $ac_config_target in
10070 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10071 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
728e272a 10072 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26f56c1c
UD
10073 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10074
98ffc1bf 10075 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
3a12e572
UD
10076 esac
10077done
10078
26f56c1c 10079
3a12e572
UD
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
c6cb8783
SP
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
3a12e572
UD
10088fi
10089
2abf9ff1 10090# Have a temporary directory for convenience. Make it in the build tree
26f56c1c 10091# simply because there is no reason against having it here, and in addition,
2abf9ff1 10092# creating and moving files from /tmp can sometimes cause problems.
26f56c1c
UD
10093# Hook for its removal unless debugging.
10094# Note that there is a small window in which the directory will not be cleaned:
98ffc1bf 10095# after its creation but before its name has been assigned to '$tmp'.
3a12e572
UD
10096$debug ||
10097{
f318beb8 10098 tmp= ac_tmp=
26f56c1c 10099 trap 'exit_status=$?
f318beb8
UD
10100 : "${ac_tmp:=$tmp}"
10101 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26f56c1c 10102' 0
b08c89d9 10103 trap 'as_fn_exit 1' 1 2 13 15
3a12e572 10104}
3a12e572 10105# Create a (secure) tmp directory for tmp files.
2abf9ff1 10106
3a12e572 10107{
26f56c1c 10108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f318beb8 10109 test -d "$tmp"
3a12e572
UD
10110} ||
10111{
26f56c1c
UD
10112 tmp=./conf$$-$RANDOM
10113 (umask 077 && mkdir "$tmp")
4a531bb0 10114} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
f318beb8 10115ac_tmp=$tmp
3a12e572 10116
322e23db
UD
10117# Set up the scripts for CONFIG_FILES section.
10118# No need to generate them if there are no CONFIG_FILES.
98ffc1bf 10119# This happens for instance with './config.status config.h'.
26f56c1c
UD
10120if test -n "$CONFIG_FILES"; then
10121
a152f366 10122
b08c89d9
UD
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
322e23db
UD
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
4a531bb0 10132 ac_cs_awk_cr='\\r'
322e23db
UD
10133else
10134 ac_cs_awk_cr=$ac_cr
26f56c1c
UD
10135fi
10136
f318beb8 10137echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26f56c1c
UD
10138_ACEOF
10139
10140
322e23db
UD
10141{
10142 echo "cat >conf$$subs.awk <<_ACEOF" &&
10143 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10144 echo "_ACEOF"
10145} >conf$$subs.sh ||
4a531bb0
L
10146 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10147ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26f56c1c
UD
10148ac_delim='%!_!# '
10149for ac_last_try in false false false false false :; do
322e23db 10150 . ./conf$$subs.sh ||
4a531bb0 10151 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
322e23db
UD
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
26f56c1c
UD
10155 break
10156 elif $ac_last_try; then
4a531bb0 10157 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26f56c1c
UD
10158 else
10159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10160 fi
10161done
322e23db
UD
10162rm -f conf$$subs.sh
10163
10164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f318beb8 10165cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
322e23db
UD
10166_ACEOF
10167sed -n '
10168h
10169s/^/S["/; s/!.*/"]=/
10170p
10171g
10172s/^[^!]*!//
10173:repl
10174t repl
10175s/'"$ac_delim"'$//
10176t delim
10177:nl
10178h
b08c89d9 10179s/\(.\{148\}\)..*/\1/
322e23db
UD
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
b08c89d9 10193s/\(.\{148\}\)..*/\1/
322e23db
UD
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
f318beb8 10213cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
322e23db
UD
10214 for (key in S) S_is_set[key] = 1
10215 FS = "\a"
ff886b82 10216
322e23db
UD
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}
cd6ede75 10237
322e23db 10238_ACAWK
26f56c1c 10239_ACEOF
322e23db
UD
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
f318beb8 10245fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4a531bb0 10246 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3a12e572 10247_ACEOF
26f56c1c 10248
4a531bb0
L
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
26f56c1c
UD
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
4a531bb0
L
10254 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10255h
10256s///
10257s/^/:/
10258s/[ ]*$/:/
10259s/:\$(srcdir):/:/g
10260s/:\${srcdir}:/:/g
10261s/:@srcdir@:/:/g
10262s/^:*//
26f56c1c 10263s/:*$//
4a531bb0
L
10264x
10265s/\(=[ ]*\).*/\1/
10266G
10267s/\n//
26f56c1c
UD
10268s/^[^=]*=[ ]*$//
10269}'
10270fi
10271
322e23db 10272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26f56c1c
UD
10273fi # test -n "$CONFIG_FILES"
10274
322e23db
UD
10275# Set up the scripts for CONFIG_HEADERS section.
10276# No need to generate them if there are no CONFIG_HEADERS.
98ffc1bf 10277# This happens for instance with './config.status Makefile'.
322e23db 10278if test -n "$CONFIG_HEADERS"; then
f318beb8 10279cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
322e23db
UD
10280BEGIN {
10281_ACEOF
10282
98ffc1bf 10283# Transform confdefs.h into an awk script 'defines.awk', embedded as
322e23db
UD
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
f318beb8
UD
10291 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10292 if test -z "$ac_tt"; then
322e23db
UD
10293 break
10294 elif $ac_last_try; then
4a531bb0 10295 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
322e23db
UD
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
4a531bb0 10380 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
322e23db
UD
10381fi # test -n "$CONFIG_HEADERS"
10382
26f56c1c 10383
322e23db
UD
10384eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10385shift
10386for ac_tag
26f56c1c
UD
10387do
10388 case $ac_tag in
10389 :[FHLC]) ac_mode=$ac_tag; continue;;
10390 esac
10391 case $ac_mode$ac_tag in
10392 :[FHL]*:*);;
98ffc1bf 10393 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
26f56c1c
UD
10394 :[FH]-) ac_tag=-:-;;
10395 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
cd6ede75 10396 esac
26f56c1c
UD
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
f318beb8 10412 -) ac_f="$ac_tmp/stdin";;
26f56c1c
UD
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,
98ffc1bf 10415 # because $ac_f cannot contain ':'.
26f56c1c
UD
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 ||
98ffc1bf 10421 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
26f56c1c 10422 esac
c6cb8783 10423 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b08c89d9 10424 as_fn_append ac_file_inputs " '$ac_f'"
26f56c1c 10425 done
cd6ede75 10426
98ffc1bf 10427 # Let's still pretend it is 'configure' which instantiates (i.e., don't
26f56c1c
UD
10428 # use $as_me), people would be surprised to read:
10429 # /* config.h. Generated by config.status. */
322e23db 10430 configure_input='Generated from '`
c6cb8783 10431 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
322e23db 10432 `' by configure.'
26f56c1c
UD
10433 if test x"$ac_file" != x-; then
10434 configure_input="$ac_file. $configure_input"
c6cb8783
SP
10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10436printf "%s\n" "$as_me: creating $ac_file" >&6;}
26f56c1c 10437 fi
322e23db
UD
10438 # Neutralize special characters interpreted by sed in replacement strings.
10439 case $configure_input in #(
10440 *\&* | *\|* | *\\* )
c6cb8783 10441 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
322e23db
UD
10442 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10443 *) ac_sed_conf_input=$configure_input;;
10444 esac
26f56c1c
UD
10445
10446 case $ac_tag in
f318beb8 10447 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4a531bb0 10448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26f56c1c
UD
10449 esac
10450 ;;
10451 esac
10452
10453 ac_dir=`$as_dirname -- "$ac_file" ||
3a12e572 10454$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9382fcee
RM
10455 X"$ac_file" : 'X\(//\)[^/]' \| \
10456 X"$ac_file" : 'X\(//\)$' \| \
26f56c1c 10457 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
c6cb8783 10458printf "%s\n" X"$ac_file" |
26f56c1c
UD
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'`
b08c89d9 10476 as_dir="$ac_dir"; as_fn_mkdir_p
3a12e572
UD
10477 ac_builddir=.
10478
26f56c1c
UD
10479case "$ac_dir" in
10480.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10481*)
c6cb8783 10482 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
26f56c1c 10483 # A ".." for each directory in $ac_dir_suffix.
c6cb8783 10484 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26f56c1c
UD
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
3a12e572
UD
10494
10495case $srcdir in
26f56c1c 10496 .) # We are building in place.
3a12e572 10497 ac_srcdir=.
26f56c1c
UD
10498 ac_top_srcdir=$ac_top_builddir_sub
10499 ac_abs_top_srcdir=$ac_pwd ;;
10500 [\\/]* | ?:[\\/]* ) # Absolute name.
3a12e572 10501 ac_srcdir=$srcdir$ac_dir_suffix;
26f56c1c
UD
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 ;;
3a12e572 10508esac
26f56c1c 10509ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9382fcee 10510
cd6ede75 10511
26f56c1c
UD
10512 case $ac_mode in
10513 :F)
10514 #
10515 # CONFIG_FILE
10516 #
3a12e572
UD
10517
10518 case $INSTALL in
10519 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26f56c1c 10520 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
cd6ede75 10521 esac
26f56c1c 10522_ACEOF
cd6ede75 10523
322e23db 10524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26f56c1c
UD
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=
322e23db
UD
10528ac_sed_dataroot='
10529/datarootdir/ {
26f56c1c
UD
10530 p
10531 q
10532}
10533/@datadir@/p
10534/@docdir@/p
10535/@infodir@/p
10536/@localedir@/p
b08c89d9 10537/@mandir@/p'
322e23db 10538case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26f56c1c
UD
10539*datarootdir*) ac_datarootdir_seen=yes;;
10540*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
c6cb8783
SP
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;}
26f56c1c 10543_ACEOF
322e23db 10544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26f56c1c
UD
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
b08c89d9 10551 s&\\\${datarootdir}&$datarootdir&g' ;;
26f56c1c 10552esac
3a12e572 10553_ACEOF
26f56c1c 10554
98ffc1bf 10555# Neutralize VPATH when '$srcdir' = '.'.
26f56c1c
UD
10556# Shell code in configure.ac might set extrasub.
10557# FIXME: do we really want to maintain this feature?
322e23db
UD
10558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10559ac_sed_extra="$ac_vpsub
3a12e572
UD
10560$extrasub
10561_ACEOF
322e23db 10562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3a12e572
UD
10563:t
10564/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
322e23db 10565s|@configure_input@|$ac_sed_conf_input|;t t
26f56c1c 10566s&@top_builddir@&$ac_top_builddir_sub&;t t
322e23db 10567s&@top_build_prefix@&$ac_top_build_prefix&;t t
26f56c1c
UD
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
322e23db 10577"
f318beb8
UD
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
26f56c1c
UD
10580
10581test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
f318beb8
UD
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"; } &&
98ffc1bf 10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
4a531bb0 10586which seems to be undefined. Please make sure it is defined" >&5
98ffc1bf 10587printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
4a531bb0 10588which seems to be undefined. Please make sure it is defined" >&2;}
26f56c1c 10589
f318beb8 10590 rm -f "$ac_tmp/stdin"
3a12e572 10591 case $ac_file in
f318beb8
UD
10592 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10593 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
322e23db 10594 esac \
4a531bb0 10595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26f56c1c
UD
10596 ;;
10597 :H)
10598 #
10599 # CONFIG_HEADER
10600 #
3a12e572 10601 if test x"$ac_file" != x-; then
322e23db 10602 {
c6cb8783 10603 printf "%s\n" "/* $configure_input */" >&1 \
f318beb8
UD
10604 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10605 } >"$ac_tmp/config.h" \
4a531bb0 10606 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
f318beb8 10607 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
c6cb8783
SP
10608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10609printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
3a12e572 10610 else
322e23db 10611 rm -f "$ac_file"
f318beb8 10612 mv "$ac_tmp/config.h" "$ac_file" \
4a531bb0 10613 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
f4b07664
RM
10614 fi
10615 else
c6cb8783 10616 printf "%s\n" "/* $configure_input */" >&1 \
f318beb8 10617 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4a531bb0 10618 || as_fn_error $? "could not create -" "$LINENO" 5
f4b07664 10619 fi
26f56c1c 10620 ;;
9382fcee 10621
c6cb8783
SP
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;}
26f56c1c
UD
10624 ;;
10625 esac
3a12e572
UD
10626
10627
26f56c1c
UD
10628 case $ac_file$ac_mode in
10629 "default":C)
c0fb8a56
UD
10630case $CONFIG_FILES in *config.make*)
10631echo "$config_vars" >> config.make;;
10632esac
3a12e572 10633test -d bits || mkdir bits ;;
26f56c1c 10634
3a12e572 10635 esac
26f56c1c 10636done # for ac_tag
3a12e572 10637
3a12e572 10638
b08c89d9 10639as_fn_exit 0
3a12e572 10640_ACEOF
3a12e572
UD
10641ac_clean_files=$ac_clean_files_save
10642
322e23db 10643test $ac_write_fail = 0 ||
4a531bb0 10644 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
322e23db 10645
3a12e572
UD
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=:
2abf9ff1
RM
10657 ac_config_status_args=
10658 test "$silent" = yes &&
10659 ac_config_status_args="$ac_config_status_args --quiet"
3a12e572 10660 exec 5>/dev/null
2abf9ff1 10661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3a12e572
UD
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.
4a531bb0 10665 $ac_cs_success || as_fn_exit 1
3a12e572 10666fi
cd6ede75 10667
3a12e572
UD
10668#
10669# CONFIG_SUBDIRS section.
10670#
cd6ede75
UD
10671if test "$no_recursion" != yes; then
10672
322e23db
UD
10673 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10674 # so they do not pile up.
cd6ede75
UD
10675 ac_sub_configure_args=
10676 ac_prev=
26f56c1c
UD
10677 eval "set x $ac_configure_args"
10678 shift
10679 for ac_arg
10680 do
cd6ede75
UD
10681 if test -n "$ac_prev"; then
10682 ac_prev=
10683 continue
10684 fi
3a12e572 10685 case $ac_arg in
cd6ede75
UD
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=* \
3a12e572
UD
10690 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10691 | --c=*)
10692 ;;
10693 --config-cache | -C)
cd6ede75
UD
10694 ;;
10695 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10696 ac_prev=srcdir ;;
10697 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10698 ;;
3a12e572
UD
10699 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10700 ac_prev=prefix ;;
10701 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10702 ;;
322e23db
UD
10703 --disable-option-checking)
10704 ;;
26f56c1c
UD
10705 *)
10706 case $ac_arg in
c6cb8783 10707 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26f56c1c 10708 esac
b08c89d9 10709 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
cd6ede75
UD
10710 esac
10711 done
10712
3a12e572
UD
10713 # Always prepend --prefix to ensure using the same prefix
10714 # in subdir configurations.
26f56c1c
UD
10715 ac_arg="--prefix=$prefix"
10716 case $ac_arg in
c6cb8783 10717 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26f56c1c
UD
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
3a12e572 10725
322e23db
UD
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
3a12e572
UD
10730 ac_popdir=`pwd`
10731 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
cd6ede75
UD
10732
10733 # Do not complain, so a configure script can configure whichever
10734 # parts of a large source tree are present.
26f56c1c
UD
10735 test -d "$srcdir/$ac_dir" || continue
10736
10737 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
c6cb8783
SP
10738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10739 printf "%s\n" "$ac_msg" >&6
b08c89d9 10740 as_dir="$ac_dir"; as_fn_mkdir_p
3a12e572 10741 ac_builddir=.
cd6ede75 10742
26f56c1c
UD
10743case "$ac_dir" in
10744.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10745*)
c6cb8783 10746 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
26f56c1c 10747 # A ".." for each directory in $ac_dir_suffix.
c6cb8783 10748 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26f56c1c
UD
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
cd6ede75 10758
3a12e572 10759case $srcdir in
26f56c1c 10760 .) # We are building in place.
3a12e572 10761 ac_srcdir=.
26f56c1c
UD
10762 ac_top_srcdir=$ac_top_builddir_sub
10763 ac_abs_top_srcdir=$ac_pwd ;;
10764 [\\/]* | ?:[\\/]* ) # Absolute name.
3a12e572 10765 ac_srcdir=$srcdir$ac_dir_suffix;
26f56c1c
UD
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 ;;
9382fcee 10772esac
26f56c1c 10773ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3a12e572
UD
10774
10775
26f56c1c 10776 cd "$ac_dir"
cd6ede75 10777
c6cb8783
SP
10778 # Check for configure.gnu first; this name is used for a wrapper for
10779 # Metaconfig's "Configure" on case-insensitive file systems.
26f56c1c
UD
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
cd6ede75 10784 else
c6cb8783
SP
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;}
cd6ede75
UD
10787 ac_sub_configure=
10788 fi
10789
10790 # The recursion is here.
10791 if test -n "$ac_sub_configure"; then
cd6ede75 10792 # Make the cache file name correct relative to the subdirectory.
3a12e572
UD
10793 case $cache_file in
10794 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26f56c1c
UD
10795 *) # Relative name.
10796 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
cd6ede75 10797 esac
cd6ede75 10798
c6cb8783
SP
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;}
cd6ede75 10801 # The eval makes quoting arguments work.
26f56c1c
UD
10802 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10803 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4a531bb0 10804 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
cd6ede75
UD
10805 fi
10806
26f56c1c 10807 cd "$ac_popdir"
cd6ede75
UD
10808 done
10809fi
322e23db 10810if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
c6cb8783
SP
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;}
322e23db 10813fi
cd6ede75 10814
c6cb8783 10815