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