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