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