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