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