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