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