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