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