*** empty log message ***
[glibc.git] / configure
blob0d83cb9acd4f923f94255feee58fd396eb2bc130
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for GNU C Library (see version.h).
6 # Report bugs to <glibc>.
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.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for 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
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
52 done
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
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
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
99 rm -f conf$$.sh
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
113 for as_dir in $PATH
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
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
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; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
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; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
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 '
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; }; }
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
190 case `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= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if 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'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
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}
269 # Identity of this package.
270 PACKAGE_NAME='GNU C Library'
271 PACKAGE_TARNAME='c-library'
272 PACKAGE_VERSION='(see version.h)'
273 PACKAGE_STRING='GNU C Library (see version.h)'
274 PACKAGE_BUGREPORT='glibc'
276 ac_unique_file="include/features.h"
277 ac_subdirs_all="$ac_subdirs_all "
278 # Factoring default headers for most tests.
279 ac_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"
315 ac_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 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'
316 ac_subst_files=''
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
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.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
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
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
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=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
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" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
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"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
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 ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
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=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
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=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
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 ;;
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=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
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=*)
514 program_prefix=$ac_optarg ;;
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=*)
521 program_suffix=$ac_optarg ;;
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=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
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=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
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=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
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; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
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" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
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=*)
620 x_includes=$ac_optarg ;;
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=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
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 ;;
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}
652 esac
653 done
655 if test -n "$ac_prev"; then
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; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
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
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
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; }; };;
681 esac
682 done
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.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if 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
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
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 ||
718 echo 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'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
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; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if 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
784 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
793 Configuration:
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 \`..']
804 _ACEOF
806 cat <<_ACEOF
807 Installation 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]
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine 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
835 cat <<\_ACEOF
837 System 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
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-sanity-checks really do not use threads (should not be used except
853 in special situations) [default=yes]
854 --enable-shared build shared library [default=yes if GNU ld &
855 ELF]
856 --enable-profile build profiled library [default=yes]
857 --enable-omitfp build undebuggable optimized library
858 [default=no]
859 --enable-bounded build with runtime bounds checking
860 [default=no]
861 --disable-versioning do not include versioning information in the library
862 objects [default=yes if supported]
863 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
864 [default=glibc default]
865 --enable-add-ons[=DIRS...]
866 configure and build add-ons in DIR1,DIR2,... search
867 for add-ons if no parameter given
868 --disable-hidden-plt do not hide internal function calls to avoid PLT
869 --enable-static-nss build static NSS modules [default=no]
870 --disable-force-install don't force installation of files from this package,
871 even if they are older than the installed files
872 --enable-kernel=VERSION compile for compatibility with kernel not older than
873 VERSION
874 --enable-all-warnings enable all useful warnings gcc can issue
876 Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)
880 --with-gd=DIR find libgd include dir and library with prefix DIR
881 --with-gd-include=DIR find libgd include files in DIR
882 --with-gd-lib=DIR find libgd library files in DIR
883 --with-fp if using floating-point hardware [default=yes]
884 --with-binutils=PATH specify location of binutils (as and ld)
885 --with-elf if using the ELF object format
886 --with-xcoff if using the XCOFF object format
887 --without-cvs if CVS should not be used
888 --with-headers=PATH location of system headers to use (for example
889 /usr/src/linux/include) [default=compiler
890 default]
891 --with-tls enable support for TLS
892 --without-__thread do not use TLS features even when supporting them
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
901 CPP C preprocessor
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
906 Report bugs to <glibc>.
907 _ACEOF
910 if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
912 ac_popdir=`pwd`
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
915 ac_builddir=.
917 if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 else
922 ac_dir_suffix= ac_top_builddir=
925 case $srcdir in
926 .) # No --srcdir option. We are building in place.
927 ac_srcdir=.
928 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=.
930 else
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 fi ;;
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
936 *) # Relative path.
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 esac
940 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
941 # absolute.
942 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
943 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
944 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
945 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
947 cd $ac_dir
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
950 echo
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
953 echo
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
957 echo
958 $ac_configure --help
959 else
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 cd $ac_popdir
963 done
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
968 cat <<\_ACEOF
969 GNU C Library configure (see version.h)
970 generated by GNU Autoconf 2.57
972 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
976 _ACEOF
977 exit 0
979 exec 5>config.log
980 cat >&5 <<_ACEOF
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
984 It was created by GNU C Library $as_me (see version.h), which was
985 generated by GNU Autoconf 2.57. Invocation command line was
987 $ $0 $@
989 _ACEOF
991 cat <<_ASUNAME
992 ## --------- ##
993 ## Platform. ##
994 ## --------- ##
996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1005 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1013 _ASUNAME
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 for as_dir in $PATH
1018 IFS=$as_save_IFS
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1021 done
1023 } >&5
1025 cat >&5 <<_ACEOF
1028 ## ----------- ##
1029 ## Core tests. ##
1030 ## ----------- ##
1032 _ACEOF
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Strip out --silent because we don't want to record it for future runs.
1038 # Also quote any args containing shell meta-characters.
1039 # Make two passes to allow for proper duplicate-argument suppression.
1040 ac_configure_args=
1041 ac_configure_args0=
1042 ac_configure_args1=
1043 ac_sep=
1044 ac_must_keep_next=false
1045 for ac_pass in 1 2
1047 for ac_arg
1049 case $ac_arg in
1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 continue ;;
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 esac
1057 case $ac_pass in
1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061 if test $ac_must_keep_next = true; then
1062 ac_must_keep_next=false # Got value, back to normal.
1063 else
1064 case $ac_arg in
1065 *=* | --config-cache | -C | -disable-* | --disable-* \
1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068 | -with-* | --with-* | -without-* | --without-* | --x)
1069 case "$ac_configure_args0 " in
1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 esac
1073 -* ) ac_must_keep_next=true ;;
1074 esac
1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
1078 ac_sep=" "
1080 esac
1081 done
1082 done
1083 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1086 # When interrupted or exit'd, cleanup temporary files, and complete
1087 # config.log. We remove comments because anyway the quotes in there
1088 # would cause problems or look ugly.
1089 # WARNING: Be sure not to use single quotes in there, as some shells,
1090 # such as our DU 5.0 friend, will then `close' the trap.
1091 trap 'exit_status=$?
1092 # Save into config.log some information that might help in debugging.
1094 echo
1096 cat <<\_ASBOX
1097 ## ---------------- ##
1098 ## Cache variables. ##
1099 ## ---------------- ##
1100 _ASBOX
1101 echo
1102 # The following way of writing the cache mishandles newlines in values,
1104 (set) 2>&1 |
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 *ac_space=\ *)
1107 sed -n \
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1112 sed -n \
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1115 esac;
1117 echo
1119 cat <<\_ASBOX
1120 ## ----------------- ##
1121 ## Output variables. ##
1122 ## ----------------- ##
1123 _ASBOX
1124 echo
1125 for ac_var in $ac_subst_vars
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1129 done | sort
1130 echo
1132 if test -n "$ac_subst_files"; then
1133 cat <<\_ASBOX
1134 ## ------------- ##
1135 ## Output files. ##
1136 ## ------------- ##
1137 _ASBOX
1138 echo
1139 for ac_var in $ac_subst_files
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1147 if test -s confdefs.h; then
1148 cat <<\_ASBOX
1149 ## ----------- ##
1150 ## confdefs.h. ##
1151 ## ----------- ##
1152 _ASBOX
1153 echo
1154 sed "/^$/d" confdefs.h | sort
1155 echo
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1160 } >&5
1161 rm -f core core.* *.core &&
1162 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 exit $exit_status
1165 for ac_signal in 1 2 13 15; do
1166 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 done
1168 ac_signal=0
1170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1171 rm -rf conftest* confdefs.h
1172 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 echo >confdefs.h
1175 # Predefined preprocessor variables.
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 _ACEOF
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 _ACEOF
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 _ACEOF
1202 # Let the site file select an alternate cache file if it wants to.
1203 # Prefer explicitly selected file to automatically selected ones.
1204 if test -z "$CONFIG_SITE"; then
1205 if test "x$prefix" != xNONE; then
1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1207 else
1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211 for ac_site_file in $CONFIG_SITE; do
1212 if test -r "$ac_site_file"; then
1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214 echo "$as_me: loading site script $ac_site_file" >&6;}
1215 sed 's/^/| /' "$ac_site_file" >&5
1216 . "$ac_site_file"
1218 done
1220 if test -r "$cache_file"; then
1221 # Some versions of bash will fail to source /dev/null (special
1222 # files actually), so we avoid doing that.
1223 if test -f "$cache_file"; then
1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225 echo "$as_me: loading cache $cache_file" >&6;}
1226 case $cache_file in
1227 [\\/]* | ?:[\\/]* ) . $cache_file;;
1228 *) . ./$cache_file;;
1229 esac
1231 else
1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233 echo "$as_me: creating cache $cache_file" >&6;}
1234 >$cache_file
1237 # Check that the precious variables saved in the cache have kept the same
1238 # value.
1239 ac_cache_corrupted=false
1240 for ac_var in `(set) 2>&1 |
1241 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243 eval ac_new_set=\$ac_env_${ac_var}_set
1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245 eval ac_new_val="\$ac_env_${ac_var}_value"
1246 case $ac_old_set,$ac_new_set in
1247 set,)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,set)
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1255 ,);;
1257 if test "x$ac_old_val" != "x$ac_new_val"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261 echo "$as_me: former value: $ac_old_val" >&2;}
1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263 echo "$as_me: current value: $ac_new_val" >&2;}
1264 ac_cache_corrupted=:
1265 fi;;
1266 esac
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1269 case $ac_new_val in
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg=$ac_var=$ac_new_val ;;
1273 esac
1274 case " $ac_configure_args " in
1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 esac
1279 done
1280 if $ac_cache_corrupted; then
1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 { (exit 1); exit 1; }; }
1288 ac_ext=c
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321 ac_config_headers="$ac_config_headers config.h"
1323 ac_aux_dir=
1324 for ac_dir in scripts $srcdir/scripts; do
1325 if test -f $ac_dir/install-sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 break
1329 elif test -f $ac_dir/install.sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 break
1333 elif test -f $ac_dir/shtool; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 break
1338 done
1339 if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1342 { (exit 1); exit 1; }; }
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1350 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1351 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1352 { (exit 1); exit 1; }; }
1355 # This will get text that should go into config.make.
1356 config_vars=
1358 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
1360 # Check whether --with-gmp or --without-gmp was given.
1361 if test "${with_gmp+set}" = set; then
1362 withval="$with_gmp"
1364 case "$with_gmp" in
1365 yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5
1366 echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;}
1367 { (exit 1); exit 1; }; } ;;
1368 ''|no) ;;
1369 *) config_vars="$config_vars
1370 gmp-srcdir = $withval" ;;
1371 esac
1374 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1376 # Check whether --with-gd or --without-gd was given.
1377 if test "${with_gd+set}" = set; then
1378 withval="$with_gd"
1379 case "$with_gd" in
1380 yes|''|no) ;;
1381 *) libgd_include="-I$withval/include"
1382 libgd_ldflags="-L$withval/lib" ;;
1383 esac
1387 # Check whether --with-gd-include or --without-gd-include was given.
1388 if test "${with_gd_include+set}" = set; then
1389 withval="$with_gd_include"
1390 case "$with_gd_include" in
1391 ''|no) ;;
1392 *) libgd_include="-I$withval" ;;
1393 esac
1397 # Check whether --with-gd-lib or --without-gd-lib was given.
1398 if test "${with_gd_lib+set}" = set; then
1399 withval="$with_gd_lib"
1400 case "$with_gd_lib" in
1401 ''|no) ;;
1402 *) libgd_ldflags="-L$withval" ;;
1403 esac
1407 if test -n "$libgd_include"; then
1408 config_vars="$config_vars
1409 CFLAGS-memusagestat.c = $libgd_include"
1411 if test -n "$libgd_ldflags"; then
1412 config_vars="$config_vars
1413 libgd-LDFLAGS = $libgd_ldflags"
1417 # Check whether --with-fp or --without-fp was given.
1418 if test "${with_fp+set}" = set; then
1419 withval="$with_fp"
1420 with_fp=$withval
1421 else
1422 with_fp=yes
1426 # Check whether --with-binutils or --without-binutils was given.
1427 if test "${with_binutils+set}" = set; then
1428 withval="$with_binutils"
1429 path_binutils=$withval
1430 else
1431 path_binutils=''
1434 # Check whether --with-elf or --without-elf was given.
1435 if test "${with_elf+set}" = set; then
1436 withval="$with_elf"
1437 elf=$withval
1438 else
1439 elf=no
1442 # Check whether --with-xcoff or --without-xcoff was given.
1443 if test "${with_xcoff+set}" = set; then
1444 withval="$with_xcoff"
1445 xcoff=$withval
1446 else
1447 xcoff=no
1450 # Check whether --with-cvs or --without-cvs was given.
1451 if test "${with_cvs+set}" = set; then
1452 withval="$with_cvs"
1453 with_cvs=$withval
1454 else
1455 with_cvs=yes
1457 if test "$with_cvs" = yes; then
1458 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1459 then
1460 with_cvs=no
1466 # Check whether --with-headers or --without-headers was given.
1467 if test "${with_headers+set}" = set; then
1468 withval="$with_headers"
1469 sysheaders=$withval
1470 else
1471 sysheaders=''
1474 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
1475 if test "${enable_sanity_checks+set}" = set; then
1476 enableval="$enable_sanity_checks"
1477 enable_sanity=$enableval
1478 else
1479 enable_sanity=yes
1482 static=yes
1483 # Check whether --enable-shared or --disable-shared was given.
1484 if test "${enable_shared+set}" = set; then
1485 enableval="$enable_shared"
1486 shared=$enableval
1487 else
1488 shared=default
1490 # Check whether --enable-profile or --disable-profile was given.
1491 if test "${enable_profile+set}" = set; then
1492 enableval="$enable_profile"
1493 profile=$enableval
1494 else
1495 profile=yes
1497 # Check whether --enable-omitfp or --disable-omitfp was given.
1498 if test "${enable_omitfp+set}" = set; then
1499 enableval="$enable_omitfp"
1500 omitfp=$enableval
1501 else
1502 omitfp=no
1504 # Check whether --enable-bounded or --disable-bounded was given.
1505 if test "${enable_bounded+set}" = set; then
1506 enableval="$enable_bounded"
1507 bounded=$enableval
1508 else
1509 bounded=no
1511 # Check whether --enable-versioning or --disable-versioning was given.
1512 if test "${enable_versioning+set}" = set; then
1513 enableval="$enable_versioning"
1514 enable_versioning=$enableval
1515 else
1516 enable_versioning=yes
1519 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
1520 if test "${enable_oldest_abi+set}" = set; then
1521 enableval="$enable_oldest_abi"
1522 oldest_abi=$enableval
1523 else
1524 oldest_abi=no
1526 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
1527 oldest_abi=default
1528 else
1529 cat >>confdefs.h <<_ACEOF
1530 #define GLIBC_OLDEST_ABI "$oldest_abi"
1531 _ACEOF
1536 # Check whether --enable-add-ons or --disable-add-ons was given.
1537 if test "${enable_add_ons+set}" = set; then
1538 enableval="$enable_add_ons"
1539 case "$enableval" in
1540 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
1541 test "$add_ons" = "*" && add_ons= ;;
1542 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
1543 esac
1544 else
1545 add_ons=
1549 # Check whether --with-tls or --without-tls was given.
1550 if test "${with_tls+set}" = set; then
1551 withval="$with_tls"
1552 usetls=$withval
1553 else
1554 usetls=no
1558 # Check whether --with-__thread or --without-__thread was given.
1559 if test "${with___thread+set}" = set; then
1560 withval="$with___thread"
1561 use__thread=$withval
1562 else
1563 use__thread=yes
1566 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
1567 if test "${enable_hidden_plt+set}" = set; then
1568 enableval="$enable_hidden_plt"
1569 hidden=$enableval
1570 else
1571 hidden=yes
1573 if test "x$hidden" = xno; then
1574 cat >>confdefs.h <<\_ACEOF
1575 #define NO_HIDDEN 1
1576 _ACEOF
1582 subdirs="$subdirs "
1583 add_ons_pfx=
1584 if test x"$add_ons" != x; then
1585 for f in $add_ons; do
1586 # Some sanity checks
1587 if test "$f" = "crypt"; then
1588 { { echo "$as_me:$LINENO: error:
1589 *** It seems that you're using an old \`crypt' add-on. crypt is now
1590 *** part of glibc and using the old add-on will not work with this
1591 *** release. Start again with fresh sources and without the old
1592 *** \`crypt' add-on." >&5
1593 echo "$as_me: error:
1594 *** It seems that you're using an old \`crypt' add-on. crypt is now
1595 *** part of glibc and using the old add-on will not work with this
1596 *** release. Start again with fresh sources and without the old
1597 *** \`crypt' add-on." >&2;}
1598 { (exit 1); exit 1; }; }
1600 if test "$f" = "localedata"; then
1601 { { echo "$as_me:$LINENO: error:
1602 *** It seems that you're using an old \`localedata' add-on. localedata
1603 *** is now part of glibc and using the old add-on will not work with
1604 *** this release. Start again with fresh sources and without the old
1605 *** \`localedata' add-on." >&5
1606 echo "$as_me: error:
1607 *** It seems that you're using an old \`localedata' add-on. localedata
1608 *** is now part of glibc and using the old add-on will not work with
1609 *** this release. Start again with fresh sources and without the old
1610 *** \`localedata' add-on." >&2;}
1611 { (exit 1); exit 1; }; }
1613 # Test whether such a subdir really exists.
1614 if test -d $srcdir/$f; then
1615 add_ons_pfx="$add_ons_pfx $f/"
1616 subdirs="$subdirs $f"
1617 else
1618 { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5
1619 echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;}
1620 { (exit 1); exit 1; }; }
1622 done
1625 # Check whether --enable-static-nss or --disable-static-nss was given.
1626 if test "${enable_static_nss+set}" = set; then
1627 enableval="$enable_static_nss"
1628 static_nss=$enableval
1629 else
1630 static_nss=no
1632 if test x"$static_nss" = xyes || test x"$shared" = xno; then
1633 static_nss=yes
1634 cat >>confdefs.h <<\_ACEOF
1635 #define DO_STATIC_NSS 1
1636 _ACEOF
1640 # Check whether --enable-force-install or --disable-force-install was given.
1641 if test "${enable_force_install+set}" = set; then
1642 enableval="$enable_force_install"
1643 force_install=$enableval
1644 else
1645 force_install=yes
1649 # Check whether --enable-kernel or --disable-kernel was given.
1650 if test "${enable_kernel+set}" = set; then
1651 enableval="$enable_kernel"
1652 minimum_kernel=$enableval
1654 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
1655 # Better nothing than this.
1656 minimum_kernel=""
1657 else
1658 if test "$minimum_kernel" = current; then
1659 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
1663 # Check whether --enable-all-warnings or --disable-all-warnings was given.
1664 if test "${enable_all_warnings+set}" = set; then
1665 enableval="$enable_all_warnings"
1666 all_warnings=$enableval
1670 # Make sure we can run config.sub.
1671 $ac_config_sub sun4 >/dev/null 2>&1 ||
1672 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1673 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1674 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: checking build system type" >&5
1677 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1678 if test "${ac_cv_build+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681 ac_cv_build_alias=$build_alias
1682 test -z "$ac_cv_build_alias" &&
1683 ac_cv_build_alias=`$ac_config_guess`
1684 test -z "$ac_cv_build_alias" &&
1685 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1686 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1687 { (exit 1); exit 1; }; }
1688 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1689 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1690 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1691 { (exit 1); exit 1; }; }
1694 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1695 echo "${ECHO_T}$ac_cv_build" >&6
1696 build=$ac_cv_build
1697 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1698 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1699 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1702 echo "$as_me:$LINENO: checking host system type" >&5
1703 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1704 if test "${ac_cv_host+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 ac_cv_host_alias=$host_alias
1708 test -z "$ac_cv_host_alias" &&
1709 ac_cv_host_alias=$ac_cv_build_alias
1710 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1711 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1712 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1713 { (exit 1); exit 1; }; }
1716 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1717 echo "${ECHO_T}$ac_cv_host" >&6
1718 host=$ac_cv_host
1719 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1720 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1721 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1725 # The way shlib-versions is used to generate soversions.mk uses a
1726 # fairly simplistic model for name recognition that can't distinguish
1727 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
1728 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
1729 # tell. This doesn't get used much beyond that, so it's fairly safe.
1730 case "$host_os" in
1731 linux*)
1733 gnu*)
1734 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
1736 esac
1738 # We keep the original values in `$config_*' and never modify them, so we
1739 # can write them unchanged into config.make. Everything else uses
1740 # $machine, $vendor, and $os, and changes them whenever convenient.
1741 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
1743 # Don't allow vendor == "unknown"
1744 test "$config_vendor" = unknown && config_vendor=
1745 config_os="`echo $config_os | sed 's/^unknown-//'`"
1747 # Some configurations imply other options.
1748 case "$host_os" in
1749 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
1750 # These systems always use GNU tools.
1751 gnu_ld=yes gnu_as=yes ;;
1752 esac
1753 case "$host_os" in
1754 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
1755 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
1757 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
1758 # These systems (almost) always use the ELF format.
1759 elf=yes
1761 aix*)
1762 # These systems are always xcoff
1763 xcoff=yes
1764 elf=no
1766 esac
1768 machine=$config_machine
1769 vendor=$config_vendor
1770 os=$config_os
1772 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
1773 # Unify this here.
1774 if test "$machine" = rs6000; then
1775 machine="powerpc"
1778 # Braindead PowerPC box with absolutely no FPU.
1779 case "$machine-$host_os" in
1780 powerpc*-*soft)
1781 with_fp=no
1783 esac
1786 ### I put this here to prevent those annoying emails from people who cannot
1787 ### read and try to compile glibc on unsupported platforms. --drepper
1789 ### By using the undocumented --enable-hacker-mode option for configure
1790 ### one can skip this test to make the configuration not fail for unsupported
1791 ### platforms.
1793 if test -z "$enable_hacker_mode"; then
1794 case "$machine-$host_os" in
1795 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1798 echo "*** The GNU C library is currently not available for this platform."
1799 echo "*** So far nobody cared to port it and if there is no volunteer it"
1800 echo "*** might never happen. So, if you have interest to see glibc on"
1801 echo "*** this platform visit"
1802 echo "*** http://www.gnu.org/software/libc/porting.html"
1803 echo "*** and join the group of porters"
1804 exit 1
1806 esac
1809 # Expand the configuration machine name into a subdirectory by architecture
1810 # type and particular chip.
1811 case "$machine" in
1812 a29k | am29000) base_machine=a29k machine=a29k ;;
1813 alpha*) base_machine=alpha machine=alpha/$machine ;;
1814 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1815 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1816 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1817 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1818 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1819 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1820 ia64) base_machine=ia64 machine=ia64 ;;
1821 m680?0) base_machine=m68k machine=m68k/$machine ;;
1822 m68k) base_machine=m68k machine=m68k/m68020 ;;
1823 m88???) base_machine=m88k machine=m88k/$machine ;;
1824 m88k) base_machine=m88k machine=m88k/m88100 ;;
1825 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1826 mips*) base_machine=mips machine=mips/$machine ;;
1827 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1828 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1829 s390) base_machine=s390 machine=s390/s390-32 ;;
1830 s390x) base_machine=s390 machine=s390/s390-64 ;;
1831 sh3*) base_machine=sh machine=sh/sh3 ;;
1832 sh4*) base_machine=sh machine=sh/sh4 ;;
1833 sparc | sparcv[67])
1834 base_machine=sparc machine=sparc/sparc32 ;;
1835 sparcv8 | supersparc | hypersparc)
1836 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1837 sparcv8plus | sparcv8plusa | sparcv9)
1838 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1839 sparcv8plusb | sparcv9b)
1840 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1841 sparc64 | ultrasparc)
1842 base_machine=sparc machine=sparc/sparc64 ;;
1843 sparc64b | ultrasparc3)
1844 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1845 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1846 *) base_machine=$machine ;;
1847 esac
1850 if test "$base_machine" = "i386"; then
1851 cat >>confdefs.h <<\_ACEOF
1852 #define USE_REGPARMS 1
1853 _ACEOF
1857 # Compute the list of sysdep directories for this configuration.
1858 # This can take a while to compute.
1859 sysdep_dir=$srcdir/sysdeps
1860 echo "$as_me:$LINENO: checking sysdep dirs" >&5
1861 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
1862 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1863 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1865 case "$os" in
1866 gnu*)
1867 base_os=mach/hurd ;;
1868 netbsd* | 386bsd* | freebsd* | bsdi*)
1869 base_os=unix/bsd/bsd4.4 ;;
1870 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1871 base_os=unix/bsd ;;
1872 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1873 base_os=unix/sysv ;;
1874 irix6*)
1875 base_os=unix/sysv/irix6/$os ;;
1876 solaris[2-9]*)
1877 base_os=unix/sysv/sysv4 ;;
1878 hpux*)
1879 base_os=unix/sysv/hpux/$os ;;
1880 aix4.3*)
1881 base_os=unix/sysv/aix/aix4.3 ;;
1882 none)
1883 base_os=standalone ;;
1885 base_os='' ;;
1886 esac
1888 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1889 tail=$os
1890 ostry=$os
1891 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1892 ostry="$ostry /$o"
1893 tail=$o
1894 done
1895 o=`echo $tail | sed 's/[0-9]*$//'`
1896 if test $o != $tail; then
1897 ostry="$ostry /$o"
1899 # For linux-gnu, try linux-gnu, then linux.
1900 o=`echo $tail | sed 's/-.*$//'`
1901 if test $o != $tail; then
1902 ostry="$ostry /$o"
1905 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1906 base=
1907 tail=$base_os
1908 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1909 set $b
1910 base="$base /$1"
1911 tail="$2"
1912 done
1914 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1915 mach=
1916 tail=$machine
1917 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1918 set $m
1919 # Prepend the machine's FPU directory unless --without-fp.
1920 if test "$with_fp" = yes; then
1921 mach="$mach /$1/fpu"
1922 else
1923 mach="$mach /$1/nofpu"
1925 mach="$mach /$1"
1926 tail="$2"
1927 done
1930 # Find what sysdep directories exist.
1931 sysnames=
1932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1933 for d in $add_ons_pfx ''; do
1934 for b in $base ''; do
1935 for m0 in $mach ''; do
1936 for v in /$vendor ''; do
1937 test "$v" = / && continue
1938 for o in /$ostry ''; do
1939 test "$o" = / && continue
1940 for m in $mach ''; do
1941 if test "$m0$b$v$o$m"; then
1942 try="${d}sysdeps$m0$b$v$o$m"
1943 test -n "$enable_debug_configure" &&
1944 echo "$0 DEBUG: try $try" >&2
1945 if test -d $srcdir/$try; then
1946 sysnames="$sysnames $try"
1947 { test -n "$o" || test -n "$b"; } && os_used=t
1948 { test -n "$m" || test -n "$m0"; } && machine_used=t
1951 done
1952 done
1953 done
1954 done
1955 done
1956 done
1957 IFS="$ac_save_ifs"
1959 if test -z "$os_used" && test "$os" != none; then
1960 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
1961 echo "$as_me: error: Operating system $os is not supported." >&2;}
1962 { (exit 1); exit 1; }; }
1964 if test -z "$machine_used" && test "$machine" != none; then
1965 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
1966 echo "$as_me: error: The $machine is not supported." >&2;}
1967 { (exit 1); exit 1; }; }
1970 # We have now validated the configuration.
1973 # If using ELF, look for an `elf' subdirectory of each machine directory.
1974 # We prepend these rather than inserting them whereever the machine appears
1975 # because things specified by the machine's ELF ABI should override
1976 # OS-specific things, and should always be the same for any OS on the
1977 # machine (otherwise what's the point of an ABI?).
1978 if test "$elf" = yes; then
1979 elf_dirs=
1980 for d in $add_ons_pfx ''; do
1981 for m in $mach; do
1982 if test -d $srcdir/${d}sysdeps$m/elf; then
1983 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1985 done
1986 done
1987 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1991 # Expand the list of system names into a full list of directories
1992 # from each element's parent name and Implies file (if present).
1993 set $sysnames
1994 names=
1995 while test $# -gt 0; do
1996 name=$1
1997 shift
1999 case " $names " in *" $name "*)
2000 # Already in the list.
2001 continue
2002 esac
2004 # Report each name as we discover it, so there is no long pause in output.
2005 echo $ECHO_N "$name $ECHO_C" >&6
2007 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2009 case $name in
2010 /*) xsrcdir= ;;
2011 *) xsrcdir=$srcdir/ ;;
2012 esac
2013 test -n "$enable_debug_configure" &&
2014 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2016 if test -f $xsrcdir$name/Implies; then
2017 # Collect more names from the `Implies' file (removing comments).
2018 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2019 implied=
2020 for x in $implied_candidate; do
2021 found=no
2022 if test -d $xsrcdir$name_base/$x; then
2023 implied="$implied $name_base/$x";
2024 found=yes
2026 for d in $add_ons_pfx ''; do
2027 try="${d}sysdeps/$x"
2028 case $d in
2029 /*) try_srcdir= ;;
2030 *) try_srcdir=$srcdir/ ;;
2031 esac
2032 test -n "$enable_debug_configure" &&
2033 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2034 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2035 then
2036 implied="$implied $try"
2037 found=yes
2039 done
2040 if test $found = no; then
2041 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2042 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2044 done
2045 else
2046 implied=
2049 # Add NAME to the list of names.
2050 names="$names $name"
2052 # Find the parent of NAME, using the empty string if it has none.
2053 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2055 # Add the names implied by NAME, and NAME's parent (if it has one), to
2056 # the list of names to be processed (the argument list). We prepend the
2057 # implied names to the list and append the parent. We want implied
2058 # directories to come before further directories inferred from the
2059 # configuration components; this ensures that for sysv4, unix/common
2060 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2061 # after sysv4).
2062 sysnames="`echo $implied $* $parent`"
2063 test -n "$sysnames" && set $sysnames
2064 done
2066 # Add the default directories.
2067 default_sysnames=sysdeps/generic
2068 if test "$elf" = yes; then
2069 default_sysnames="sysdeps/generic/elf $default_sysnames"
2071 sysnames="$names $default_sysnames"
2073 # The other names were emitted during the scan.
2074 echo "$as_me:$LINENO: result: $default_sysnames" >&5
2075 echo "${ECHO_T}$default_sysnames" >&6
2078 ### Locate tools.
2080 # Find a good install program. We prefer a C program (faster),
2081 # so one script is as good as another. But avoid the broken or
2082 # incompatible versions:
2083 # SysV /etc/install, /usr/sbin/install
2084 # SunOS /usr/etc/install
2085 # IRIX /sbin/install
2086 # AIX /bin/install
2087 # AmigaOS /C/install, which installs bootblocks on floppy discs
2088 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2089 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2090 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2091 # ./install, which can be erroneously created by make from ./install.sh.
2092 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2093 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2094 if test -z "$INSTALL"; then
2095 if test "${ac_cv_path_install+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 # Account for people who put trailing slashes in PATH elements.
2104 case $as_dir/ in
2105 ./ | .// | /cC/* | \
2106 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2107 /usr/ucb/* ) ;;
2109 # OSF1 and SCO ODT 3.0 have their own names for install.
2110 # Don't use installbsd from OSF since it installs stuff as root
2111 # by default.
2112 for ac_prog in ginstall scoinst install; do
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2115 if test $ac_prog = install &&
2116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2117 # AIX install. It has an incompatible calling convention.
2119 elif test $ac_prog = install &&
2120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2121 # program-specific install script used by HP pwplus--don't use.
2123 else
2124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2125 break 3
2128 done
2129 done
2131 esac
2132 done
2136 if test "${ac_cv_path_install+set}" = set; then
2137 INSTALL=$ac_cv_path_install
2138 else
2139 # As a last resort, use the slow shell script. We don't cache a
2140 # path for INSTALL within a source directory, because that will
2141 # break other packages using the cache if that directory is
2142 # removed, or if the path is relative.
2143 INSTALL=$ac_install_sh
2146 echo "$as_me:$LINENO: result: $INSTALL" >&5
2147 echo "${ECHO_T}$INSTALL" >&6
2149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2150 # It thinks the first close brace ends the variable substitution.
2151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2157 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2158 # The makefiles need to use a different form to find it in $srcdir.
2159 INSTALL='\$(..)./scripts/install-sh -c'
2161 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2162 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2163 LN_S=$as_ln_s
2164 if test "$LN_S" = "ln -s"; then
2165 echo "$as_me:$LINENO: result: yes" >&5
2166 echo "${ECHO_T}yes" >&6
2167 else
2168 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2169 echo "${ECHO_T}no, using $LN_S" >&6
2173 ac_ext=c
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178 if test -n "$ac_tool_prefix"; then
2179 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2180 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC="$CC" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 break 2
2200 done
2201 done
2205 CC=$ac_cv_prog_CC
2206 if test -n "$CC"; then
2207 echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2209 else
2210 echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2215 if test -z "$ac_cv_prog_CC"; then
2216 ac_ct_CC=$CC
2217 # Extract the first word of "gcc", so it can be a program name with args.
2218 set dummy gcc; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224 if test -n "$ac_ct_CC"; then
2225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 ac_cv_prog_ac_ct_CC="gcc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2238 done
2239 done
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 echo "${ECHO_T}$ac_ct_CC" >&6
2247 else
2248 echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2252 CC=$ac_ct_CC
2253 else
2254 CC="$ac_cv_prog_CC"
2257 if test -z "$CC"; then
2258 if test -n "$ac_tool_prefix"; then
2259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2260 set dummy ${ac_tool_prefix}cc; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266 if test -n "$CC"; then
2267 ac_cv_prog_CC="$CC" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 ac_cv_prog_CC="${ac_tool_prefix}cc"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 break 2
2280 done
2281 done
2285 CC=$ac_cv_prog_CC
2286 if test -n "$CC"; then
2287 echo "$as_me:$LINENO: result: $CC" >&5
2288 echo "${ECHO_T}$CC" >&6
2289 else
2290 echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2295 if test -z "$ac_cv_prog_CC"; then
2296 ac_ct_CC=$CC
2297 # Extract the first word of "cc", so it can be a program name with args.
2298 set dummy cc; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304 if test -n "$ac_ct_CC"; then
2305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314 ac_cv_prog_ac_ct_CC="cc"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2318 done
2319 done
2323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2324 if test -n "$ac_ct_CC"; then
2325 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2326 echo "${ECHO_T}$ac_ct_CC" >&6
2327 else
2328 echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2332 CC=$ac_ct_CC
2333 else
2334 CC="$ac_cv_prog_CC"
2338 if test -z "$CC"; then
2339 # Extract the first word of "cc", so it can be a program name with args.
2340 set dummy cc; ac_word=$2
2341 echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2348 else
2349 ac_prog_rejected=no
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 for as_dir in $PATH
2353 IFS=$as_save_IFS
2354 test -z "$as_dir" && as_dir=.
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2358 ac_prog_rejected=yes
2359 continue
2361 ac_cv_prog_CC="cc"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2365 done
2366 done
2368 if test $ac_prog_rejected = yes; then
2369 # We found a bogon in the path, so make sure we never use it.
2370 set dummy $ac_cv_prog_CC
2371 shift
2372 if test $# != 0; then
2373 # We chose a different compiler from the bogus one.
2374 # However, it has the same basename, so the bogon will be chosen
2375 # first if we set CC to just the basename; use the full file name.
2376 shift
2377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2382 CC=$ac_cv_prog_CC
2383 if test -n "$CC"; then
2384 echo "$as_me:$LINENO: result: $CC" >&5
2385 echo "${ECHO_T}$CC" >&6
2386 else
2387 echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6
2392 if test -z "$CC"; then
2393 if test -n "$ac_tool_prefix"; then
2394 for ac_prog in cl
2396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403 if test -n "$CC"; then
2404 ac_cv_prog_CC="$CC" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 break 2
2417 done
2418 done
2422 CC=$ac_cv_prog_CC
2423 if test -n "$CC"; then
2424 echo "$as_me:$LINENO: result: $CC" >&5
2425 echo "${ECHO_T}$CC" >&6
2426 else
2427 echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2431 test -n "$CC" && break
2432 done
2434 if test -z "$CC"; then
2435 ac_ct_CC=$CC
2436 for ac_prog in cl
2438 # Extract the first word of "$ac_prog", so it can be a program name with args.
2439 set dummy $ac_prog; ac_word=$2
2440 echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_ac_ct_CC="$ac_prog"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2459 done
2460 done
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 echo "${ECHO_T}$ac_ct_CC" >&6
2468 else
2469 echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2473 test -n "$ac_ct_CC" && break
2474 done
2476 CC=$ac_ct_CC
2482 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2483 See \`config.log' for more details." >&5
2484 echo "$as_me: error: no acceptable C compiler found in \$PATH
2485 See \`config.log' for more details." >&2;}
2486 { (exit 1); exit 1; }; }
2488 # Provide some information about the compiler.
2489 echo "$as_me:$LINENO:" \
2490 "checking for C compiler version" >&5
2491 ac_compiler=`set X $ac_compile; echo $2`
2492 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2493 (eval $ac_compiler --version </dev/null >&5) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }
2497 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2498 (eval $ac_compiler -v </dev/null >&5) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }
2502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2503 (eval $ac_compiler -V </dev/null >&5) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }
2508 EXEEXT=
2509 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2510 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2511 if test "${ac_cv_objext+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 /* confdefs.h. */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2523 main ()
2527 return 0;
2529 _ACEOF
2530 rm -f conftest.o conftest.obj
2531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532 (eval $ac_compile) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; then
2536 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2537 case $ac_file in
2538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2539 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2540 break;;
2541 esac
2542 done
2543 else
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2547 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2548 See \`config.log' for more details." >&5
2549 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2550 See \`config.log' for more details." >&2;}
2551 { (exit 1); exit 1; }; }
2554 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2556 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2557 echo "${ECHO_T}$ac_cv_objext" >&6
2558 OBJEXT=$ac_cv_objext
2559 ac_objext=$OBJEXT
2560 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2561 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2562 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565 cat >conftest.$ac_ext <<_ACEOF
2566 #line $LINENO "configure"
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2574 main ()
2576 #ifndef __GNUC__
2577 choke me
2578 #endif
2581 return 0;
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } &&
2590 { ac_try='test -s conftest.$ac_objext'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 (eval $ac_try) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2596 ac_compiler_gnu=yes
2597 else
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2601 ac_compiler_gnu=no
2603 rm -f conftest.$ac_objext conftest.$ac_ext
2604 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2607 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2608 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2609 GCC=`test $ac_compiler_gnu = yes && echo yes`
2610 ac_test_CFLAGS=${CFLAGS+set}
2611 ac_save_CFLAGS=$CFLAGS
2612 CFLAGS="-g"
2613 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2614 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2615 if test "${ac_cv_prog_cc_g+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 cat >conftest.$ac_ext <<_ACEOF
2619 #line $LINENO "configure"
2620 /* confdefs.h. */
2621 _ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2627 main ()
2631 return 0;
2633 _ACEOF
2634 rm -f conftest.$ac_objext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636 (eval $ac_compile) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } &&
2640 { ac_try='test -s conftest.$ac_objext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 (eval $ac_try) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2646 ac_cv_prog_cc_g=yes
2647 else
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2651 ac_cv_prog_cc_g=no
2653 rm -f conftest.$ac_objext conftest.$ac_ext
2655 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2656 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2657 if test "$ac_test_CFLAGS" = set; then
2658 CFLAGS=$ac_save_CFLAGS
2659 elif test $ac_cv_prog_cc_g = yes; then
2660 if test "$GCC" = yes; then
2661 CFLAGS="-g -O2"
2662 else
2663 CFLAGS="-g"
2665 else
2666 if test "$GCC" = yes; then
2667 CFLAGS="-O2"
2668 else
2669 CFLAGS=
2672 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2673 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2674 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 ac_cv_prog_cc_stdc=no
2678 ac_save_CC=$CC
2679 cat >conftest.$ac_ext <<_ACEOF
2680 #line $LINENO "configure"
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2686 #include <stdarg.h>
2687 #include <stdio.h>
2688 #include <sys/types.h>
2689 #include <sys/stat.h>
2690 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2691 struct buf { int x; };
2692 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2693 static char *e (p, i)
2694 char **p;
2695 int i;
2697 return p[i];
2699 static char *f (char * (*g) (char **, int), char **p, ...)
2701 char *s;
2702 va_list v;
2703 va_start (v,p);
2704 s = g (p, va_arg (v,int));
2705 va_end (v);
2706 return s;
2708 int test (int i, double x);
2709 struct s1 {int (*f) (int a);};
2710 struct s2 {int (*f) (double a);};
2711 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2712 int argc;
2713 char **argv;
2715 main ()
2717 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2719 return 0;
2721 _ACEOF
2722 # Don't try gcc -ansi; that turns off useful extensions and
2723 # breaks some systems' header files.
2724 # AIX -qlanglvl=ansi
2725 # Ultrix and OSF/1 -std1
2726 # HP-UX 10.20 and later -Ae
2727 # HP-UX older versions -Aa -D_HPUX_SOURCE
2728 # SVR4 -Xc -D__EXTENSIONS__
2729 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2731 CC="$ac_save_CC $ac_arg"
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 ac_cv_prog_cc_stdc=$ac_arg
2745 break
2746 else
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2751 rm -f conftest.$ac_objext
2752 done
2753 rm -f conftest.$ac_ext conftest.$ac_objext
2754 CC=$ac_save_CC
2758 case "x$ac_cv_prog_cc_stdc" in
2759 x|xno)
2760 echo "$as_me:$LINENO: result: none needed" >&5
2761 echo "${ECHO_T}none needed" >&6 ;;
2763 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2765 CC="$CC $ac_cv_prog_cc_stdc" ;;
2766 esac
2768 # Some people use a C++ compiler to compile C. Since we use `exit',
2769 # in C++ we need to declare it. In case someone uses the same compiler
2770 # for both compiling C and C++ we need to have the C++ compiler decide
2771 # the declaration of exit, since it's the most demanding environment.
2772 cat >conftest.$ac_ext <<_ACEOF
2773 #ifndef __cplusplus
2774 choke me
2775 #endif
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -s conftest.$ac_objext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 for ac_declaration in \
2791 '#include <stdlib.h>' \
2792 'extern "C" void std::exit (int) throw (); using std::exit;' \
2793 'extern "C" void std::exit (int); using std::exit;' \
2794 'extern "C" void exit (int) throw ();' \
2795 'extern "C" void exit (int);' \
2796 'void exit (int);'
2798 cat >conftest.$ac_ext <<_ACEOF
2799 #line $LINENO "configure"
2800 /* confdefs.h. */
2801 _ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2805 #include <stdlib.h>
2806 $ac_declaration
2808 main ()
2810 exit (42);
2812 return 0;
2814 _ACEOF
2815 rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2828 else
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 continue
2834 rm -f conftest.$ac_objext conftest.$ac_ext
2835 cat >conftest.$ac_ext <<_ACEOF
2836 #line $LINENO "configure"
2837 /* confdefs.h. */
2838 _ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2842 $ac_declaration
2844 main ()
2846 exit (42);
2848 return 0;
2850 _ACEOF
2851 rm -f conftest.$ac_objext
2852 if { (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
2863 break
2864 else
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2869 rm -f conftest.$ac_objext conftest.$ac_ext
2870 done
2871 rm -f conftest*
2872 if test -n "$ac_declaration"; then
2873 echo '#ifdef __cplusplus' >>confdefs.h
2874 echo $ac_declaration >>confdefs.h
2875 echo '#endif' >>confdefs.h
2878 else
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2883 rm -f conftest.$ac_objext conftest.$ac_ext
2884 ac_ext=c
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 if test $host != $build; then
2891 for ac_prog in gcc cc
2893 # Extract the first word of "$ac_prog", so it can be a program name with args.
2894 set dummy $ac_prog; ac_word=$2
2895 echo "$as_me:$LINENO: checking for $ac_word" >&5
2896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2897 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900 if test -n "$BUILD_CC"; then
2901 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_BUILD_CC="$ac_prog"
2911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2914 done
2915 done
2919 BUILD_CC=$ac_cv_prog_BUILD_CC
2920 if test -n "$BUILD_CC"; then
2921 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2922 echo "${ECHO_T}$BUILD_CC" >&6
2923 else
2924 echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6
2928 test -n "$BUILD_CC" && break
2929 done
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2940 # On Suns, sometimes $CPP names a directory.
2941 if test -n "$CPP" && test -d "$CPP"; then
2942 CPP=
2944 if test -z "$CPP"; then
2945 if test "${ac_cv_prog_CPP+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 # Double quotes because CPP needs to be expanded
2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2951 ac_preproc_ok=false
2952 for ac_c_preproc_warn_flag in '' yes
2954 # Use a header file that comes with gcc, so configuring glibc
2955 # with a fresh cross-compiler works.
2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2957 # <limits.h> exists even on freestanding compilers.
2958 # On the NeXT, cc -E runs the code through the compiler's parser,
2959 # not just through cpp. "Syntax error" is here to catch this case.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #line $LINENO "configure"
2962 /* confdefs.h. */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2967 #ifdef __STDC__
2968 # include <limits.h>
2969 #else
2970 # include <assert.h>
2971 #endif
2972 Syntax error
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
2984 else
2985 ac_cpp_err=
2987 else
2988 ac_cpp_err=yes
2990 if test -z "$ac_cpp_err"; then
2992 else
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2996 # Broken: fails on valid input.
2997 continue
2999 rm -f conftest.err conftest.$ac_ext
3001 # OK, works on sane cases. Now check whether non-existent headers
3002 # can be detected and how.
3003 cat >conftest.$ac_ext <<_ACEOF
3004 #line $LINENO "configure"
3005 /* confdefs.h. */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3010 #include <ac_nonexistent.h>
3011 _ACEOF
3012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } >/dev/null; then
3020 if test -s conftest.err; then
3021 ac_cpp_err=$ac_c_preproc_warn_flag
3022 else
3023 ac_cpp_err=
3025 else
3026 ac_cpp_err=yes
3028 if test -z "$ac_cpp_err"; then
3029 # Broken: success on invalid input.
3030 continue
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 # Passes both tests.
3036 ac_preproc_ok=:
3037 break
3039 rm -f conftest.err conftest.$ac_ext
3041 done
3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3043 rm -f conftest.err conftest.$ac_ext
3044 if $ac_preproc_ok; then
3045 break
3048 done
3049 ac_cv_prog_CPP=$CPP
3052 CPP=$ac_cv_prog_CPP
3053 else
3054 ac_cv_prog_CPP=$CPP
3056 echo "$as_me:$LINENO: result: $CPP" >&5
3057 echo "${ECHO_T}$CPP" >&6
3058 ac_preproc_ok=false
3059 for ac_c_preproc_warn_flag in '' yes
3061 # Use a header file that comes with gcc, so configuring glibc
3062 # with a fresh cross-compiler works.
3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064 # <limits.h> exists even on freestanding compilers.
3065 # On the NeXT, cc -E runs the code through the compiler's parser,
3066 # not just through cpp. "Syntax error" is here to catch this case.
3067 cat >conftest.$ac_ext <<_ACEOF
3068 #line $LINENO "configure"
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074 #ifdef __STDC__
3075 # include <limits.h>
3076 #else
3077 # include <assert.h>
3078 #endif
3079 Syntax error
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3091 else
3092 ac_cpp_err=
3094 else
3095 ac_cpp_err=yes
3097 if test -z "$ac_cpp_err"; then
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Broken: fails on valid input.
3104 continue
3106 rm -f conftest.err conftest.$ac_ext
3108 # OK, works on sane cases. Now check whether non-existent headers
3109 # can be detected and how.
3110 cat >conftest.$ac_ext <<_ACEOF
3111 #line $LINENO "configure"
3112 /* confdefs.h. */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3117 #include <ac_nonexistent.h>
3118 _ACEOF
3119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } >/dev/null; then
3127 if test -s conftest.err; then
3128 ac_cpp_err=$ac_c_preproc_warn_flag
3129 else
3130 ac_cpp_err=
3132 else
3133 ac_cpp_err=yes
3135 if test -z "$ac_cpp_err"; then
3136 # Broken: success on invalid input.
3137 continue
3138 else
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 # Passes both tests.
3143 ac_preproc_ok=:
3144 break
3146 rm -f conftest.err conftest.$ac_ext
3148 done
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3153 else
3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167 # Was a --with-binutils option given?
3168 if test -n "$path_binutils"; then
3169 # Make absolute; ensure a single trailing slash.
3170 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3171 CC="$CC -B$path_binutils"
3173 AS=`$CC -print-prog-name=as`
3174 LD=`$CC -print-prog-name=ld`
3175 AR=`$CC -print-prog-name=ar`
3177 OBJDUMP=`$CC -print-prog-name=objdump`
3180 # ranlib has to be treated a bit differently since it might not exist at all.
3181 ac_ranlib=`$CC -print-prog-name=ranlib`
3182 if test "x$ac_ranlib" = xranlib; then
3183 # This extra check has to happen since gcc simply echos the parameter in
3184 # case it cannot find the value in its own directories.
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_RANLIB+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 if test -n "$RANLIB"; then
3194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3207 done
3208 done
3212 RANLIB=$ac_cv_prog_RANLIB
3213 if test -n "$RANLIB"; then
3214 echo "$as_me:$LINENO: result: $RANLIB" >&5
3215 echo "${ECHO_T}$RANLIB" >&6
3216 else
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3222 if test -z "$ac_cv_prog_RANLIB"; then
3223 ac_ct_RANLIB=$RANLIB
3224 # Extract the first word of "ranlib", so it can be a program name with args.
3225 set dummy ranlib; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 if test -n "$ac_ct_RANLIB"; then
3232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_ac_ct_RANLIB="ranlib"
3242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3245 done
3246 done
3248 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3252 if test -n "$ac_ct_RANLIB"; then
3253 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3254 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3255 else
3256 echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3260 RANLIB=$ac_ct_RANLIB
3261 else
3262 RANLIB="$ac_cv_prog_RANLIB"
3265 else
3266 RANLIB=$ac_ranlib
3270 # Determine whether we are using GNU binutils.
3271 echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3272 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3273 if test "${libc_cv_prog_as_gnu+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 # Most GNU programs take a -v and spit out some text including
3277 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3278 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3279 libc_cv_prog_as_gnu=yes
3280 else
3281 libc_cv_prog_as_gnu=no
3283 rm -fr contest*
3285 echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3286 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3287 rm -f a.out
3288 gnu_as=$libc_cv_prog_as_gnu
3290 echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3291 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3292 if test "${libc_cv_prog_ld_gnu+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295 # Most GNU programs take a -v and spit out some text including
3296 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3297 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3298 libc_cv_prog_ld_gnu=yes
3299 else
3300 libc_cv_prog_ld_gnu=no
3302 rm -fr contest*
3304 echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3305 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3306 gnu_ld=$libc_cv_prog_ld_gnu
3309 # Accept binutils 2.13 or newer.
3310 for ac_prog in $AS
3312 # Extract the first word of "$ac_prog", so it can be a program name with args.
3313 set dummy $ac_prog; ac_word=$2
3314 echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_AS+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 if test -n "$AS"; then
3320 ac_cv_prog_AS="$AS" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_AS="$ac_prog"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3333 done
3334 done
3338 AS=$ac_cv_prog_AS
3339 if test -n "$AS"; then
3340 echo "$as_me:$LINENO: result: $AS" >&5
3341 echo "${ECHO_T}$AS" >&6
3342 else
3343 echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6
3347 test -n "$AS" && break
3348 done
3350 if test -z "$AS"; then
3351 ac_verc_fail=yes
3352 else
3353 # Found it, now check the version.
3354 echo "$as_me:$LINENO: checking version of $AS" >&5
3355 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6
3356 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3357 case $ac_prog_version in
3358 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3359 2.1[3-9]*)
3360 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3361 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3363 esac
3364 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3365 echo "${ECHO_T}$ac_prog_version" >&6
3367 if test $ac_verc_fail = yes; then
3368 AS=: critic_missing=t
3371 for ac_prog in $LD
3373 # Extract the first word of "$ac_prog", so it can be a program name with args.
3374 set dummy $ac_prog; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_LD+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 if test -n "$LD"; then
3381 ac_cv_prog_LD="$LD" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_LD="$ac_prog"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3394 done
3395 done
3399 LD=$ac_cv_prog_LD
3400 if test -n "$LD"; then
3401 echo "$as_me:$LINENO: result: $LD" >&5
3402 echo "${ECHO_T}$LD" >&6
3403 else
3404 echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6
3408 test -n "$LD" && break
3409 done
3411 if test -z "$LD"; then
3412 ac_verc_fail=yes
3413 else
3414 # Found it, now check the version.
3415 echo "$as_me:$LINENO: checking version of $LD" >&5
3416 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6
3417 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
3418 case $ac_prog_version in
3419 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3420 2.1[3-9]*)
3421 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3422 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3424 esac
3425 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3426 echo "${ECHO_T}$ac_prog_version" >&6
3428 if test $ac_verc_fail = yes; then
3429 LD=: critic_missing=t
3433 # We need the physical current working directory. We cannot use the
3434 # "pwd -P" shell builtin since that's not portable. Instead we try to
3435 # find a pwd binary. Note that assigning to the PWD environment
3436 # variable might have some interesting side effects, so we don't do
3437 # that.
3438 # Extract the first word of "pwd", so it can be a program name with args.
3439 set dummy pwd; ac_word=$2
3440 echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3442 if test "${ac_cv_path_PWD_P+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 case $PWD_P in
3446 [\\/]* | ?:[\\/]*)
3447 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3457 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3461 done
3462 done
3464 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
3466 esac
3468 PWD_P=$ac_cv_path_PWD_P
3470 if test -n "$PWD_P"; then
3471 echo "$as_me:$LINENO: result: $PWD_P" >&5
3472 echo "${ECHO_T}$PWD_P" >&6
3473 else
3474 echo "$as_me:$LINENO: result: no" >&5
3475 echo "${ECHO_T}no" >&6
3478 if test "$PWD_P" = no; then
3479 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
3480 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
3481 { (exit 1); exit 1; }; }
3484 # These programs are version sensitive.
3486 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
3488 # Extract the first word of "$ac_prog", so it can be a program name with args.
3489 set dummy $ac_prog; ac_word=$2
3490 echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_prog_CC+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="$ac_prog"
3506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3509 done
3510 done
3514 CC=$ac_cv_prog_CC
3515 if test -n "$CC"; then
3516 echo "$as_me:$LINENO: result: $CC" >&5
3517 echo "${ECHO_T}$CC" >&6
3518 else
3519 echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3523 test -n "$CC" && break
3524 done
3526 if test -z "$CC"; then
3527 ac_verc_fail=yes
3528 else
3529 # Found it, now check the version.
3530 echo "$as_me:$LINENO: checking version of $CC" >&5
3531 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3532 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
3533 case $ac_prog_version in
3534 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3535 3.[2-9]*)
3536 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3537 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3539 esac
3540 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3541 echo "${ECHO_T}$ac_prog_version" >&6
3543 if test $ac_verc_fail = yes; then
3544 critic_missing="$critic_missing gcc"
3547 for ac_prog in gnumake gmake make
3549 # Extract the first word of "$ac_prog", so it can be a program name with args.
3550 set dummy $ac_prog; ac_word=$2
3551 echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553 if test "${ac_cv_prog_MAKE+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 if test -n "$MAKE"; then
3557 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566 ac_cv_prog_MAKE="$ac_prog"
3567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 break 2
3570 done
3571 done
3575 MAKE=$ac_cv_prog_MAKE
3576 if test -n "$MAKE"; then
3577 echo "$as_me:$LINENO: result: $MAKE" >&5
3578 echo "${ECHO_T}$MAKE" >&6
3579 else
3580 echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3584 test -n "$MAKE" && break
3585 done
3587 if test -z "$MAKE"; then
3588 ac_verc_fail=yes
3589 else
3590 # Found it, now check the version.
3591 echo "$as_me:$LINENO: checking version of $MAKE" >&5
3592 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
3593 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
3594 case $ac_prog_version in
3595 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3596 3.79* | 3.[89]*)
3597 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3598 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3600 esac
3601 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3602 echo "${ECHO_T}$ac_prog_version" >&6
3604 if test $ac_verc_fail = yes; then
3605 critic_missing="$critic_missing make"
3609 for ac_prog in gnumsgfmt gmsgfmt msgfmt
3611 # Extract the first word of "$ac_prog", so it can be a program name with args.
3612 set dummy $ac_prog; ac_word=$2
3613 echo "$as_me:$LINENO: checking for $ac_word" >&5
3614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3615 if test "${ac_cv_prog_MSGFMT+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618 if test -n "$MSGFMT"; then
3619 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_prog_MSGFMT="$ac_prog"
3629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3632 done
3633 done
3637 MSGFMT=$ac_cv_prog_MSGFMT
3638 if test -n "$MSGFMT"; then
3639 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3640 echo "${ECHO_T}$MSGFMT" >&6
3641 else
3642 echo "$as_me:$LINENO: result: no" >&5
3643 echo "${ECHO_T}no" >&6
3646 test -n "$MSGFMT" && break
3647 done
3649 if test -z "$MSGFMT"; then
3650 ac_verc_fail=yes
3651 else
3652 # Found it, now check the version.
3653 echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
3654 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
3655 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3656 case $ac_prog_version in
3657 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3658 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
3659 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3660 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3662 esac
3663 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3664 echo "${ECHO_T}$ac_prog_version" >&6
3666 if test $ac_verc_fail = yes; then
3667 MSGFMT=: aux_missing="$aux_missing msgfmt"
3670 for ac_prog in makeinfo
3672 # Extract the first word of "$ac_prog", so it can be a program name with args.
3673 set dummy $ac_prog; ac_word=$2
3674 echo "$as_me:$LINENO: checking for $ac_word" >&5
3675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3676 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 if test -n "$MAKEINFO"; then
3680 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3681 else
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689 ac_cv_prog_MAKEINFO="$ac_prog"
3690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 break 2
3693 done
3694 done
3698 MAKEINFO=$ac_cv_prog_MAKEINFO
3699 if test -n "$MAKEINFO"; then
3700 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3701 echo "${ECHO_T}$MAKEINFO" >&6
3702 else
3703 echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6
3707 test -n "$MAKEINFO" && break
3708 done
3710 if test -z "$MAKEINFO"; then
3711 ac_verc_fail=yes
3712 else
3713 # Found it, now check the version.
3714 echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
3715 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
3716 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3717 case $ac_prog_version in
3718 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3719 4.*)
3720 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3721 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3723 esac
3724 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3725 echo "${ECHO_T}$ac_prog_version" >&6
3727 if test $ac_verc_fail = yes; then
3728 MAKEINFO=: aux_missing="$aux_missing makeinfo"
3731 for ac_prog in sed
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_SED+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 if test -n "$SED"; then
3741 ac_cv_prog_SED="$SED" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_SED="$ac_prog"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3754 done
3755 done
3759 SED=$ac_cv_prog_SED
3760 if test -n "$SED"; then
3761 echo "$as_me:$LINENO: result: $SED" >&5
3762 echo "${ECHO_T}$SED" >&6
3763 else
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3768 test -n "$SED" && break
3769 done
3771 if test -z "$SED"; then
3772 ac_verc_fail=yes
3773 else
3774 # Found it, now check the version.
3775 echo "$as_me:$LINENO: checking version of $SED" >&5
3776 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
3777 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
3778 case $ac_prog_version in
3779 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3780 3.0[2-9]*|3.[1-9]*|[4-9]*)
3781 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3782 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3784 esac
3785 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3786 echo "${ECHO_T}$ac_prog_version" >&6
3788 if test $ac_verc_fail = yes; then
3789 SED=: aux_missing="$aux_missing sed"
3793 if test "x$with_cvs" != xyes; then
3794 for ac_prog in autoconf
3796 # Extract the first word of "$ac_prog", so it can be a program name with args.
3797 set dummy $ac_prog; ac_word=$2
3798 echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3800 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 if test -n "$AUTOCONF"; then
3804 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_AUTOCONF="$ac_prog"
3814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3817 done
3818 done
3822 AUTOCONF=$ac_cv_prog_AUTOCONF
3823 if test -n "$AUTOCONF"; then
3824 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3825 echo "${ECHO_T}$AUTOCONF" >&6
3826 else
3827 echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3831 test -n "$AUTOCONF" && break
3832 done
3833 test -n "$AUTOCONF" || AUTOCONF="no"
3835 case "x$AUTOCONF" in
3836 xno|x|x:) AUTOCONF=no ;;
3838 echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
3839 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
3840 if test "${libc_cv_autoconf_works+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
3844 libc_cv_autoconf_works=yes
3845 else
3846 libc_cv_autoconf_works=no
3849 echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
3850 echo "${ECHO_T}$libc_cv_autoconf_works" >&6
3851 test $libc_cv_autoconf_works = yes || AUTOCONF=no
3853 esac
3854 test "x$AUTOCONF" != xno || aux_missing="$aux_missing autoconf"
3857 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
3858 *** These critical programs are missing or too old:$critic_missing
3859 *** Check the INSTALL file for required versions." >&5
3860 echo "$as_me: error:
3861 *** These critical programs are missing or too old:$critic_missing
3862 *** Check the INSTALL file for required versions." >&2;}
3863 { (exit 1); exit 1; }; }
3865 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
3866 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3867 *** some features will be disabled.
3868 *** Check the INSTALL file for required versions." >&5
3869 echo "$as_me: WARNING:
3870 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3871 *** some features will be disabled.
3872 *** Check the INSTALL file for required versions." >&2;}
3874 # glibcbug.in wants to know the compiler version.
3875 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
3878 # if using special system headers, find out the compiler's sekrit
3879 # header directory and add that to the list. NOTE: Only does the right
3880 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
3881 if test -n "$sysheaders"; then
3882 ccheaders=`$CC -print-file-name=include`
3883 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
3887 # check if ranlib is necessary
3888 echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
3889 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
3890 if test "${libc_cv_ranlib_necessary+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893 cat > conftest.c <<EOF
3894 int a;
3895 char b;
3896 void c(void) {}
3898 $CC $CFLAGS -c conftest.c
3899 $AR cr conftest.a conftest.o
3900 cp conftest.a conftest2.a
3901 $RANLIB conftest.a
3902 if cmp -s conftest.a conftest2.a; then
3903 libc_cv_ranlib_necessary=no
3904 else
3905 libc_cv_ranlib_necessary=yes
3907 rm -rf conftest*
3909 echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
3910 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
3911 if test "$libc_cv_ranlib_necessary" = no; then
3912 RANLIB=:
3915 # Test if LD_LIBRARY_PATH contains the notation for the current directory
3916 # since this would lead to problems installing/building glibc.
3917 # LD_LIBRARY_PATH contains the current directory if one of the following
3918 # is true:
3919 # - one of the terminals (":" and ";") is the first or last sign
3920 # - two terminals occur directly after each other
3921 # - the path contains an element with a dot in it
3922 echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
3923 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
3924 case ${LD_LIBRARY_PATH} in
3925 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3926 ld_library_path_setting="contains current directory"
3929 ld_library_path_setting="ok"
3931 esac
3932 echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
3933 echo "${ECHO_T}$ld_library_path_setting" >&6
3934 if test "$ld_library_path_setting" != "ok"; then
3935 { { echo "$as_me:$LINENO: error:
3936 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3937 *** building glibc. Please change the environment variable
3938 *** and run configure again." >&5
3939 echo "$as_me: error:
3940 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3941 *** building glibc. Please change the environment variable
3942 *** and run configure again." >&2;}
3943 { (exit 1); exit 1; }; }
3946 echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
3947 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
3948 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
3952 libc_cv_gcc_static_libgcc=
3953 else
3954 libc_cv_gcc_static_libgcc=-static-libgcc
3957 echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
3958 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
3961 # Extract the first word of "bash", so it can be a program name with args.
3962 set dummy bash; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_BASH+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 case $BASH in
3969 [\\/]* | ?:[\\/]*)
3970 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3984 done
3985 done
3987 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
3989 esac
3991 BASH=$ac_cv_path_BASH
3993 if test -n "$BASH"; then
3994 echo "$as_me:$LINENO: result: $BASH" >&5
3995 echo "${ECHO_T}$BASH" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4001 if test "$BASH" != no &&
4002 $BASH -c 'test "$BASH_VERSINFO" \
4003 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
4004 libc_cv_have_bash2=yes
4005 else
4006 libc_cv_have_bash2=no
4010 if test "$BASH" = no; then
4011 # Extract the first word of "ksh", so it can be a program name with args.
4012 set dummy ksh; ac_word=$2
4013 echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4015 if test "${ac_cv_path_KSH+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 case $KSH in
4019 [\\/]* | ?:[\\/]*)
4020 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
4031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 break 2
4034 done
4035 done
4037 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
4039 esac
4041 KSH=$ac_cv_path_KSH
4043 if test -n "$KSH"; then
4044 echo "$as_me:$LINENO: result: $KSH" >&5
4045 echo "${ECHO_T}$KSH" >&6
4046 else
4047 echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4051 if test "$KSH" = no; then
4052 libc_cv_have_ksh=no
4053 else
4054 libc_cv_have_ksh=yes
4056 else
4057 KSH="$BASH"
4059 libc_cv_have_ksh=yes
4063 for ac_prog in gawk mawk nawk awk
4065 # Extract the first word of "$ac_prog", so it can be a program name with args.
4066 set dummy $ac_prog; ac_word=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_prog_AWK+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 if test -n "$AWK"; then
4073 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_prog_AWK="$ac_prog"
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4086 done
4087 done
4091 AWK=$ac_cv_prog_AWK
4092 if test -n "$AWK"; then
4093 echo "$as_me:$LINENO: result: $AWK" >&5
4094 echo "${ECHO_T}$AWK" >&6
4095 else
4096 echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4100 test -n "$AWK" && break
4101 done
4103 # Extract the first word of "perl", so it can be a program name with args.
4104 set dummy perl; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_PERL+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 case $PERL in
4111 [\\/]* | ?:[\\/]*)
4112 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4129 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4131 esac
4133 PERL=$ac_cv_path_PERL
4135 if test -n "$PERL"; then
4136 echo "$as_me:$LINENO: result: $PERL" >&5
4137 echo "${ECHO_T}$PERL" >&6
4138 else
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 if test "$PERL" != no &&
4144 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
4145 PERL=no
4147 # Extract the first word of "install-info", so it can be a program name with args.
4148 set dummy install-info; ac_word=$2
4149 echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4151 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 case $INSTALL_INFO in
4155 [\\/]* | ?:[\\/]*)
4156 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4161 for as_dir in $as_dummy
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4171 done
4172 done
4174 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
4176 esac
4178 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4180 if test -n "$INSTALL_INFO"; then
4181 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4182 echo "${ECHO_T}$INSTALL_INFO" >&6
4183 else
4184 echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4188 if test "$INSTALL_INFO" != "no"; then
4189 echo "$as_me:$LINENO: checking for old Debian install-info" >&5
4190 echo $ECHO_N "checking for old Debian install-info... $ECHO_C" >&6
4191 if test "${libc_cv_old_debian_install_info+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 mkdir conftest.d
4195 # There is a hard ^_ on the next line. I am open to better ideas.
4196 (echo '\x1f'
4197 echo 'File: dir Node: Top This is the top of the INFO tree'
4198 echo '* Menu:') >conftest.d/dir
4199 (echo 'INFO-DIR-SECTION i-d-s works'
4200 echo 'START-INFO-DIR-ENTRY'
4201 echo '* Prog: (prog). Program.'
4202 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
4203 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
4204 then
4205 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
4206 then libc_cv_old_debian_install_info=no
4207 else libc_cv_old_debian_install_info=yes
4209 else libc_cv_old_debian_install_info=no testfailed=t
4211 rm -fr conftest.d
4213 echo "$as_me:$LINENO: result: $libc_cv_old_debian_install_info" >&5
4214 echo "${ECHO_T}$libc_cv_old_debian_install_info" >&6
4215 if test -n "$testfailed"
4216 then { echo "$as_me:$LINENO: WARNING: install-info errored out, check config.log" >&5
4217 echo "$as_me: WARNING: install-info errored out, check config.log" >&2;}
4219 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
4223 # Extract the first word of "bison", so it can be a program name with args.
4224 set dummy bison; ac_word=$2
4225 echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4227 if test "${ac_cv_path_BISON+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 case $BISON in
4231 [\\/]* | ?:[\\/]*)
4232 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
4237 for as_dir in $as_dummy
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4247 done
4248 done
4250 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
4252 esac
4254 BISON=$ac_cv_path_BISON
4256 if test -n "$BISON"; then
4257 echo "$as_me:$LINENO: result: $BISON" >&5
4258 echo "${ECHO_T}$BISON" >&6
4259 else
4260 echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6
4265 echo "$as_me:$LINENO: checking for signed size_t type" >&5
4266 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
4267 if test "${libc_cv_signed_size_t+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 echo '#include <stddef.h>
4271 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
4272 if eval "$ac_cpp conftest.c 2>/dev/null" \
4273 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
4274 libc_cv_signed_size_t=no
4275 else
4276 libc_cv_signed_size_t=yes
4278 rm -f conftest*
4280 echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
4281 echo "${ECHO_T}$libc_cv_signed_size_t" >&6
4282 if test $libc_cv_signed_size_t = yes; then
4283 cat >> confdefs.h <<\EOF
4284 #undef __SIZE_TYPE__
4285 #define __SIZE_TYPE__ unsigned
4290 echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
4291 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
4292 if test "${libc_cv_friendly_stddef+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295 cat >conftest.$ac_ext <<_ACEOF
4296 #line $LINENO "configure"
4297 /* confdefs.h. */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 #define __need_size_t
4303 #define __need_wchar_t
4304 #include <stddef.h>
4305 #define __need_NULL
4306 #include <stddef.h>
4308 main ()
4310 size_t size; wchar_t wchar;
4311 #ifdef offsetof
4312 #error stddef.h ignored __need_*
4313 #endif
4314 if (&size == NULL || &wchar == NULL) abort ();
4316 return 0;
4318 _ACEOF
4319 rm -f conftest.$ac_objext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -s conftest.$ac_objext'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 (eval $ac_try) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4331 libc_cv_friendly_stddef=yes
4332 else
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4336 libc_cv_friendly_stddef=no
4338 rm -f conftest.$ac_objext conftest.$ac_ext
4340 echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
4341 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
4342 if test $libc_cv_friendly_stddef = yes; then
4343 config_vars="$config_vars
4344 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
4347 echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4348 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4349 if test "${libc_cv_need_minus_P+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352 cat > conftest.S <<EOF
4353 #include "confdefs.h"
4354 /* Nothing whatsoever. */
4356 if { ac_try='${CC-cc} $CFLAGS -c conftest.S 1>&5'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 libc_cv_need_minus_P=no
4363 else
4364 libc_cv_need_minus_P=yes
4366 rm -f conftest*
4368 echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4369 echo "${ECHO_T}$libc_cv_need_minus_P" >&6
4370 if test $libc_cv_need_minus_P = yes; then
4371 config_vars="$config_vars
4372 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4375 echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4376 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4377 if test "${libc_cv_dot_text+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 cat > conftest.s <<EOF
4381 .text
4383 libc_cv_dot_text=
4384 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 libc_cv_dot_text=.text
4392 rm -f conftest*
4395 if test -z "$libc_cv_dot_text"; then
4396 echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6
4398 else
4399 echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6
4403 echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4404 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4405 if test "${libc_cv_asm_global_directive+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 libc_cv_asm_global_directive=UNKNOWN
4409 for ac_globl in .globl .global .EXPORT; do
4410 cat > conftest.s <<EOF
4411 ${libc_cv_dot_text}
4412 ${ac_globl} foo
4413 foo:
4415 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 libc_cv_asm_global_directive=${ac_globl}
4423 rm -f conftest*
4424 test $libc_cv_asm_global_directive != UNKNOWN && break
4425 done
4427 echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4428 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
4429 if test $libc_cv_asm_global_directive = UNKNOWN; then
4430 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4431 echo "$as_me: error: cannot determine asm global directive" >&2;}
4432 { (exit 1); exit 1; }; }
4433 else
4434 cat >>confdefs.h <<_ACEOF
4435 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4436 _ACEOF
4440 echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4441 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4442 if test "${libc_cv_asm_set_directive+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 cat > conftest.s <<EOF
4446 ${libc_cv_dot_text}
4447 foo:
4448 .set glibc_conftest_frobozz,foo
4449 $libc_cv_asm_global_directive glibc_conftest_frobozz
4451 # The alpha-dec-osf1 assembler gives only a warning for `.set'
4452 # (but it doesn't work), so we must do a linking check to be sure.
4453 cat > conftest1.c <<\EOF
4454 extern int glibc_conftest_frobozz;
4455 main () { printf ("%d\n", glibc_conftest_frobozz); }
4457 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4458 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4459 libc_cv_asm_set_directive=yes
4460 else
4461 libc_cv_asm_set_directive=no
4463 rm -f conftest*
4465 echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4466 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
4467 if test $libc_cv_asm_set_directive = yes; then
4468 cat >>confdefs.h <<\_ACEOF
4469 #define HAVE_ASM_SET_DIRECTIVE 1
4470 _ACEOF
4474 echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4475 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4476 if test "${libc_cv_asm_type_prefix+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 libc_cv_asm_type_prefix=no
4480 for ac_try_prefix in '@' '%' '#'; do
4481 cat > conftest.s <<EOF
4482 ${libc_cv_dot_text}
4483 ${libc_cv_asm_global_directive} foo
4484 .type foo, ${ac_try_prefix}object
4485 .size foo, 1
4486 foo:
4487 .byte 1
4489 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 (eval $ac_try) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 libc_cv_asm_type_prefix=${ac_try_prefix}
4497 rm -f conftest*
4498 test "x$libc_cv_asm_type_prefix" != xno && break
4499 done
4501 echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
4502 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
4503 if test "x$libc_cv_asm_type_prefix" != xno; then
4504 cat >>confdefs.h <<_ACEOF
4505 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4506 _ACEOF
4510 # The Aix ld uses global .symbol_names instead of symbol_names.
4511 # Unfortunately also used in the PPC64 ELF ABI.
4512 case "${os}${machine}" in
4513 aix4.3* | linux*powerpc/powerpc64*)
4514 cat >>confdefs.h <<\_ACEOF
4515 #define HAVE_ASM_GLOBAL_DOT_NAME 1
4516 _ACEOF
4518 esac
4520 echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
4521 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
4522 if test "${libc_cv_asm_symver_directive+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 cat > conftest.s <<EOF
4526 ${libc_cv_dot_text}
4527 _sym:
4528 .symver _sym,sym@VERS
4530 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4531 libc_cv_asm_symver_directive=yes
4532 else
4533 libc_cv_asm_symver_directive=no
4535 rm -f conftest*
4537 echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
4538 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
4539 echo "$as_me:$LINENO: checking for ld --version-script" >&5
4540 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
4541 if test "${libc_cv_ld_version_script_option+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 if test $libc_cv_asm_symver_directive = yes; then
4545 cat > conftest.s <<EOF
4546 ${libc_cv_dot_text}
4547 _sym:
4548 .symver _sym,sym@VERS
4550 cat > conftest.map <<EOF
4551 VERS_1 {
4552 global: sym;
4555 VERS_2 {
4556 global: sym;
4557 } VERS_1;
4559 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4560 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
4561 -nostartfiles -nostdlib
4562 -Wl,--version-script,conftest.map
4563 1>&5'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; };
4569 then
4570 libc_cv_ld_version_script_option=yes
4571 else
4572 libc_cv_ld_version_script_option=no
4574 else
4575 libc_cv_ld_version_script_option=no
4577 else
4578 libc_cv_ld_version_script_option=no
4580 rm -f conftest*
4582 echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
4583 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
4584 if test $shared != no &&
4585 test $libc_cv_asm_symver_directive = yes &&
4586 test $libc_cv_ld_version_script_option = yes &&
4587 test $enable_versioning = yes; then
4588 VERSIONING=yes
4589 cat >>confdefs.h <<\_ACEOF
4590 #define DO_VERSIONING 1
4591 _ACEOF
4593 else
4594 VERSIONING=no
4598 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
4599 echo "\
4600 *** WARNING: You should not compile GNU libc without versioning. Not using
4601 *** versioning will introduce incompatibilities so that old binaries
4602 *** will not run anymore.
4603 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
4605 if test $elf = yes; then
4606 echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
4607 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
4608 if test "${libc_cv_asm_previous_directive+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 cat > conftest.s <<EOF
4612 .section foo_section
4613 .previous
4615 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 libc_cv_asm_previous_directive=yes
4622 else
4623 libc_cv_asm_previous_directive=no
4625 rm -f conftest*
4627 echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
4628 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
4629 if test $libc_cv_asm_previous_directive = yes; then
4630 cat >>confdefs.h <<\_ACEOF
4631 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
4632 _ACEOF
4634 else
4635 echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
4636 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
4637 if test "${libc_cv_asm_popsection_directive+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 cat > conftest.s <<EOF
4641 .pushsection foo_section
4642 .popsection
4644 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 libc_cv_asm_popsection_directive=yes
4651 else
4652 libc_cv_asm_popsection_directive=no
4654 rm -f conftest*
4656 echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
4657 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6
4658 if test $libc_cv_asm_popsection_directive = yes; then
4659 cat >>confdefs.h <<\_ACEOF
4660 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
4661 _ACEOF
4665 echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
4666 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6
4667 if test "${libc_cv_asm_protected_directive+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670 cat > conftest.s <<EOF
4671 .protected foo
4672 foo:
4673 .hidden bar
4674 bar:
4676 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 libc_cv_asm_protected_directive=yes
4683 else
4684 libc_cv_asm_protected_directive=no
4686 rm -f conftest*
4688 echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
4689 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6
4691 cat >>confdefs.h <<\_ACEOF
4692 #define HAVE_PROTECTED 1
4693 _ACEOF
4695 cat >>confdefs.h <<\_ACEOF
4696 #define HAVE_HIDDEN 1
4697 _ACEOF
4700 if test $libc_cv_asm_protected_directive = yes; then
4701 echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
4702 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6
4703 if test "${libc_cv_visibility_attribute+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706 cat > conftest.c <<EOF
4707 int foo __attribute__ ((visibility ("hidden"))) = 1;
4708 int bar __attribute__ ((visibility ("protected"))) = 1;
4710 libc_cv_visibility_attribute=no
4711 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 if grep '\.hidden.*foo' conftest.s >/dev/null; then
4718 if grep '\.protected.*bar' conftest.s >/dev/null; then
4719 libc_cv_visibility_attribute=yes
4723 rm -f conftest.cs
4726 echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
4727 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6
4728 if test $libc_cv_visibility_attribute = yes; then
4729 cat >>confdefs.h <<\_ACEOF
4730 #define HAVE_VISIBILITY_ATTRIBUTE 1
4731 _ACEOF
4736 if test $libc_cv_visibility_attribute = yes; then
4737 echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
4738 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6
4739 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742 cat > conftest.c <<EOF
4743 int foo (int x);
4744 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
4745 int bar (int x) { return x; }
4747 libc_cv_broken_visibility_attribute=yes
4748 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&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
4754 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
4755 libc_cv_broken_visibility_attribute=no
4758 rm -f conftest.c conftest.s
4761 echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
4762 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6
4763 if test $libc_cv_broken_visibility_attribute = yes; then
4764 cat >>confdefs.h <<\_ACEOF
4765 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
4766 _ACEOF
4771 echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
4772 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6
4773 if test "${libc_cv_broken_alias_attribute+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776 cat > conftest.c <<EOF
4777 extern int foo (int x) __asm ("xyzzy");
4778 int bar (int x) { return x; }
4779 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
4780 extern int dfoo;
4781 extern __typeof (dfoo) dfoo __asm ("abccb");
4782 int dfoo = 1;
4784 libc_cv_broken_alias_attribute=yes
4785 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&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
4791 if grep 'xyzzy' conftest.s >/dev/null &&
4792 grep 'abccb' conftest.s >/dev/null; then
4793 libc_cv_broken_alias_attribute=no
4796 rm -f conftest.c conftest.s
4799 echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
4800 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6
4801 if test $libc_cv_broken_alias_attribute = yes; then
4802 cat >>confdefs.h <<\_ACEOF
4803 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
4804 _ACEOF
4808 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
4809 echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
4810 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6
4811 if test "${libc_cv_have_sdata_section+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814 echo "int i;" > conftest.c
4815 libc_cv_have_sdata_section=no
4816 if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
4817 | grep '\.sdata' >/dev/null; then
4818 libc_cv_have_sdata_section=yes
4820 rm -f conftest.c conftest.so
4823 echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
4824 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6
4825 if test $libc_cv_have_sdata_section = yes; then
4826 cat >>confdefs.h <<\_ACEOF
4827 #define HAVE_SDATA_SECTION 1
4828 _ACEOF
4833 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
4834 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
4835 if test "${libc_cv_initfinit_array+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 cat > conftest.c <<EOF
4839 int _start (void) { return 0; }
4840 int __start (void) { return 0; }
4841 int foo (void) { return 1; }
4842 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
4844 if { ac_try='${CC-cc} -o conftest conftest.c
4845 -static -nostartfiles -nostdlib 1>&5'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }
4851 then
4852 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
4853 libc_cv_initfinit_array=yes
4854 else
4855 libc_cv_initfinit_array=no
4857 else
4858 libc_cv_initfinit_array=no
4860 rm -f conftest*
4862 echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
4863 echo "${ECHO_T}$libc_cv_initfinit_array" >&6
4865 if test $libc_cv_initfinit_array = yes; then
4866 cat >>confdefs.h <<\_ACEOF
4867 #define HAVE_INITFINI_ARRAY 1
4868 _ACEOF
4872 echo "$as_me:$LINENO: checking for -z nodelete option" >&5
4873 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6
4874 if test "${libc_cv_z_nodelete+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877 cat > conftest.c <<EOF
4878 int _start (void) { return 42; }
4880 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4881 -nostartfiles -nostdlib
4882 -Wl,--enable-new-dtags,-z,nodelete 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); }; }
4888 then
4889 libc_cv_z_nodelete=yes
4890 else
4891 libc_cv_z_nodelete=no
4893 rm -f conftest*
4895 echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
4896 echo "${ECHO_T}$libc_cv_z_nodelete" >&6
4899 echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
4900 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6
4901 if test "${libc_cv_z_nodlopen+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 cat > conftest.c <<EOF
4905 int _start (void) { return 42; }
4907 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4908 -nostartfiles -nostdlib
4909 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }
4915 then
4916 libc_cv_z_nodlopen=yes
4917 else
4918 libc_cv_z_nodlopen=no
4920 rm -f conftest*
4922 echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
4923 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6
4926 echo "$as_me:$LINENO: checking for -z initfirst option" >&5
4927 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6
4928 if test "${libc_cv_z_initfirst+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931 cat > conftest.c <<EOF
4932 int _start (void) { return 42; }
4934 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4935 -nostartfiles -nostdlib
4936 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }
4942 then
4943 libc_cv_z_initfirst=yes
4944 else
4945 libc_cv_z_initfirst=no
4947 rm -f conftest*
4949 echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
4950 echo "${ECHO_T}$libc_cv_z_initfirst" >&6
4953 echo "$as_me:$LINENO: checking for -Bgroup option" >&5
4954 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6
4955 if test "${libc_cv_Bgroup+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 cat > conftest.c <<EOF
4959 int _start (void) { return 42; }
4961 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }
4967 then
4968 libc_cv_Bgroup=yes
4969 else
4970 libc_cv_Bgroup=no
4972 rm -f conftest*
4974 echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
4975 echo "${ECHO_T}$libc_cv_Bgroup" >&6
4978 echo "$as_me:$LINENO: checking for -z combreloc" >&5
4979 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6
4980 if test "${libc_cv_z_combreloc+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 cat > conftest.c <<EOF
4984 extern int bar (int);
4985 extern int mumble;
4986 int foo (void) { return bar (mumble); }
4988 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4989 -nostdlib -nostartfiles
4990 -Wl,-z,combreloc 1>&5'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }
4996 then
4997 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
4998 libc_cv_z_combreloc=yes
4999 else
5000 libc_cv_z_combreloc=no
5002 else
5003 libc_cv_z_combreloc=no
5005 rm -f conftest*
5007 echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
5008 echo "${ECHO_T}$libc_cv_z_combreloc" >&6
5009 if test "$libc_cv_z_combreloc" = yes; then
5010 cat >>confdefs.h <<\_ACEOF
5011 #define HAVE_Z_COMBRELOC 1
5012 _ACEOF
5018 if test $elf != yes; then
5019 echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
5020 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6
5021 if test "${libc_cv_have_initfini+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 cat >conftest.$ac_ext <<_ACEOF
5025 #line $LINENO "configure"
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5033 main ()
5035 asm (".section .init");
5036 asm (".section .fini");
5037 asm ("${libc_cv_dot_text}");
5039 return 0;
5041 _ACEOF
5042 rm -f conftest.$ac_objext
5043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044 (eval $ac_compile) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 libc_cv_have_initfini=yes
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 libc_cv_have_initfini=no
5061 rm -f conftest.$ac_objext conftest.$ac_ext
5063 echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
5064 echo "${ECHO_T}$libc_cv_have_initfini" >&6
5065 if test $libc_cv_have_initfini = yes; then
5066 cat >>confdefs.h <<\_ACEOF
5067 #define HAVE_INITFINI 1
5068 _ACEOF
5073 if test $elf = yes -a $gnu_ld = yes; then
5074 echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
5075 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6
5076 if test "${libc_cv_have_section_quotes+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079 cat > conftest.c <<EOF
5080 static const int foo
5081 __attribute__ ((section ("bar"))) = 1;
5083 if ${CC-cc} -S conftest.c -o conftest.s; then
5084 if grep '\.section.*"bar"' conftest.s >/dev/null; then
5085 libc_cv_have_section_quotes=yes
5086 else
5087 libc_cv_have_section_quotes=no
5089 else
5090 libc_cv_have_section_quotes=unknown
5092 rm -f conftest.cs
5095 echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
5096 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6
5097 if test $libc_cv_have_section_quotes = yes; then
5098 cat >>confdefs.h <<\_ACEOF
5099 #define HAVE_SECTION_QUOTES 1
5100 _ACEOF
5107 if test $elf = yes; then
5108 libc_cv_asm_underscores=no
5109 else
5110 if test $ac_cv_prog_cc_works = yes; then
5111 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5112 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5113 if test "${libc_cv_asm_underscores+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 cat >conftest.$ac_ext <<_ACEOF
5117 #line $LINENO "configure"
5118 /* confdefs.h. */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 asm ("_glibc_foobar:");
5125 main ()
5127 glibc_foobar ();
5129 return 0;
5131 _ACEOF
5132 rm -f conftest.$ac_objext conftest$ac_exeext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5134 (eval $ac_link) 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -s conftest$ac_exeext'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; }; then
5144 libc_cv_asm_underscores=yes
5145 else
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149 libc_cv_asm_underscores=no
5151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5153 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5154 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5155 else
5156 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5157 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5158 if test "${libc_cv_asm_underscores+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161 cat > conftest.$ac_ext <<EOF
5162 #line 5162 "configure"
5163 #include "confdefs.h"
5164 void underscore_test(void) {
5165 return; }
5167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5168 (eval $ac_compile) 2>&5
5169 ac_status=$?
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; then
5172 if grep _underscore_test conftest* >/dev/null; then
5173 rm -f conftest*
5174 libc_cv_asm_underscores=yes
5175 else
5176 rm -f conftest*
5177 libc_cv_asm_underscores=no
5179 else
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5182 rm -f conftest*
5183 libc_cv_asm_underscores=no
5185 rm -f conftest*
5187 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5188 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5191 if test $libc_cv_asm_underscores = no; then
5192 cat >>confdefs.h <<\_ACEOF
5193 #define NO_UNDERSCORES 1
5194 _ACEOF
5198 if test $elf = yes; then
5199 libc_cv_weak_symbols=yes
5202 echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
5203 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6
5204 if test "${libc_cv_asm_weak_directive+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 cat > conftest.s <<EOF
5208 ${libc_cv_dot_text}
5209 ${libc_cv_asm_global_directive} foo
5210 foo:
5211 .weak foo
5212 .weak bar; bar = foo
5214 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 (eval $ac_try) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5220 libc_cv_asm_weak_directive=yes
5221 else
5222 libc_cv_asm_weak_directive=no
5224 rm -f conftest*
5226 echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
5227 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6
5229 if test $libc_cv_asm_weak_directive = no; then
5230 echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
5231 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6
5232 if test "${libc_cv_asm_weakext_directive+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 cat > conftest.s <<EOF
5236 ${libc_cv_dot_text}
5237 ${libc_cv_asm_global_directive} foo
5238 foo:
5239 .weakext bar foo
5240 .weakext baz
5241 ${libc_cv_asm_global_directive} baz
5242 baz:
5244 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 libc_cv_asm_weakext_directive=yes
5251 else
5252 libc_cv_asm_weakext_directive=no
5254 rm -f conftest*
5256 echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
5257 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6
5259 fi # no .weak
5261 if test $libc_cv_asm_weak_directive = yes; then
5262 cat >>confdefs.h <<\_ACEOF
5263 #define HAVE_ASM_WEAK_DIRECTIVE 1
5264 _ACEOF
5266 elif test $libc_cv_asm_weakext_directive = yes; then
5267 cat >>confdefs.h <<\_ACEOF
5268 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
5269 _ACEOF
5273 case "${host_cpu}-${host_os}" in
5274 cris*)
5275 libc_cv_asm_line_sep='@'
5276 cat >>confdefs.h <<_ACEOF
5277 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5278 _ACEOF
5281 hppa*linux*)
5282 echo "$as_me:$LINENO: checking for assembler line separator" >&5
5283 echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6
5284 if test "${libc_cv_asm_line_sep+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287 cat > conftest.s <<EOF
5288 nop ; is_old_puffin
5290 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 libc_cv_asm_line_sep='!'
5297 else
5298 if test -z "$enable_hacker_mode"; then
5299 echo "*** You need a newer assembler to compile glibc"
5300 rm -f conftest*
5301 exit 1
5303 libc_cv_asm_line_sep=';'
5305 rm -f conftest*
5307 echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5
5308 echo "${ECHO_T}$libc_cv_asm_line_sep" >&6
5309 cat >>confdefs.h <<_ACEOF
5310 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5311 _ACEOF
5314 esac
5316 echo "$as_me:$LINENO: checking if -g produces usable source locations for assembler-with-cpp" >&5
5317 echo $ECHO_N "checking if -g produces usable source locations for assembler-with-cpp... $ECHO_C" >&6
5318 if test "${libc_cv_cpp_asm_debuginfo+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 cat > conftest.S <<EOF
5322 #include "confdefs.h"
5324 /* comment on
5325 two lines */
5326 ${libc_cv_dot_text}
5327 ${libc_cv_asm_global_directive} foo
5328 foo:
5329 /* Unfortunately this test only works for a real instruction,
5330 not for any of the machine-independent pseudo-ops.
5331 So we just have to assume everybody has a "nop". */
5333 /* comment */
5335 /* comment */
5338 if { ac_try='${CC-cc} $CFLAGS -g -c conftest.S 1>&5'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 ac_pattern='conftest\.S'
5345 { ac_try='readelf --debug-dump=line conftest.o |
5346 grep $ac_pattern 1>&5'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 libc_cv_cpp_asm_debuginfo=yes
5353 else
5354 libc_cv_cpp_asm_debuginfo=no
5356 rm -f conftest*
5358 echo "$as_me:$LINENO: result: $libc_cv_cpp_asm_debuginfo" >&5
5359 echo "${ECHO_T}$libc_cv_cpp_asm_debuginfo" >&6
5360 if test $libc_cv_cpp_asm_debuginfo = yes; then
5361 cat >>confdefs.h <<\_ACEOF
5362 #define HAVE_CPP_ASM_DEBUGINFO 1
5363 _ACEOF
5367 echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
5368 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6
5369 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372 cat > conftest.c <<\EOF
5373 _start () {}
5374 int __eh_pc;
5375 __throw () {}
5377 if { ac_try='${CC-cc} $CFLAGS
5378 -nostdlib -nostartfiles -Wl,--no-whole-archive
5379 -o conftest conftest.c 1>&5'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 (eval $ac_try) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 libc_cv_ld_no_whole_archive=yes
5386 else
5387 libc_cv_ld_no_whole_archive=no
5389 rm -f conftest*
5391 echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
5392 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6
5393 if test $libc_cv_ld_no_whole_archive = yes; then
5394 no_whole_archive=-Wl,--no-whole-archive
5397 echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
5398 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6
5399 if test "${libc_cv_gcc_exceptions+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402 cat > conftest.c <<\EOF
5403 _start () {}
5404 int __eh_pc;
5405 __throw () {}
5407 if { ac_try='${CC-cc} $CFLAGS
5408 -nostdlib -nostartfiles -fexceptions
5409 -o conftest conftest.c 1>&5'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 (eval $ac_try) 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 libc_cv_gcc_exceptions=yes
5416 else
5417 libc_cv_gcc_exceptions=no
5419 rm -f conftest*
5421 echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
5422 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6
5423 if test $libc_cv_gcc_exceptions = yes; then
5424 exceptions=-fexceptions
5427 if test "$host_cpu" = powerpc ; then
5428 # Check for a bug present in at least versions 2.8.x of GCC
5429 # and versions 1.0.x of EGCS.
5430 echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
5431 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6
5432 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435 cat >conftest.$ac_ext <<_ACEOF
5436 #line $LINENO "configure"
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
5444 main ()
5448 return 0;
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } &&
5457 { ac_try='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 libc_cv_c_asmcr0_bug='no'
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 libc_cv_c_asmcr0_bug='yes'
5470 rm -f conftest.$ac_objext conftest.$ac_ext
5472 echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
5473 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6
5474 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
5475 cat >>confdefs.h <<\_ACEOF
5476 #define BROKEN_PPC_ASM_CR0 1
5477 _ACEOF
5482 echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5
5483 echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6
5484 if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 else
5487 cat > conftest.c <<EOF
5488 #line 5488 "configure"
5489 static char *__EH_FRAME_BEGIN__;
5490 _start ()
5492 #ifdef CHECK__register_frame
5493 __register_frame (__EH_FRAME_BEGIN__);
5494 __deregister_frame (__EH_FRAME_BEGIN__);
5495 #endif
5496 #ifdef CHECK__register_frame_info
5497 __register_frame_info (__EH_FRAME_BEGIN__);
5498 __deregister_frame_info (__EH_FRAME_BEGIN__);
5499 #endif
5501 int __eh_pc;
5502 __throw () {}
5503 /* FIXME: this is fragile. */
5504 malloc () {}
5505 strcmp () {}
5506 strlen () {}
5507 memcpy () {}
5508 memset () {}
5509 free () {}
5510 abort () {}
5511 __bzero () {}
5512 dl_iterate_phdr () {}
5514 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
5515 -nostdlib -nostartfiles
5516 -o conftest conftest.c -lgcc >&5'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 (eval $ac_try) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
5522 libc_cv_gcc_dwarf2_unwind_info=static
5523 else
5524 libc_cv_gcc_dwarf2_unwind_info=no
5526 # Some platforms' specs put -lgcc first. The second one doesn't hurt.
5527 libc_unwind_check="${CC-cc} $CFLAGS -DCHECK__register_frame_info \
5528 -nostdlib -nostartfiles -o conftest conftest.c \
5529 -lgcc -lgcc_eh -lgcc"
5530 if { ac_try='$libc_unwind_check >&5'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 if $libc_unwind_check -v 2>&1 >/dev/null \
5537 | grep -q -- --eh-frame-hdr; then
5538 libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
5539 else
5540 libc_cv_gcc_dwarf2_unwind_info=static
5542 else
5543 libc_cv_gcc_dwarf2_unwind_info=no
5545 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
5546 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
5547 -nostdlib -nostartfiles
5548 -o conftest conftest.c -lgcc >&5'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 (eval $ac_try) 2>&5
5551 ac_status=$?
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 libc_cv_gcc_dwarf2_unwind_info=yes
5555 else
5556 libc_cv_gcc_dwarf2_unwind_info=no
5559 rm -f conftest*
5561 echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5
5562 echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6
5563 case $libc_cv_gcc_dwarf2_unwind_info in
5564 yes)
5565 cat >>confdefs.h <<\_ACEOF
5566 #define HAVE_DWARF2_UNWIND_INFO 1
5567 _ACEOF
5570 static)
5571 cat >>confdefs.h <<\_ACEOF
5572 #define HAVE_DWARF2_UNWIND_INFO 1
5573 _ACEOF
5575 cat >>confdefs.h <<\_ACEOF
5576 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
5577 _ACEOF
5580 esac
5582 echo "$as_me:$LINENO: checking for __builtin_expect" >&5
5583 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
5584 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 cat > conftest.c <<EOF
5588 #line 5588 "configure"
5589 int foo (int a)
5591 a = __builtin_expect (a, 10);
5592 return a == 10 ? 0 : 1;
5595 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5596 -o conftest conftest.c -lgcc >&5'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 libc_cv_gcc_builtin_expect=yes
5603 else
5604 libc_cv_gcc_builtin_expect=no
5606 rm -f conftest*
5608 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
5609 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6
5610 if test "$libc_cv_gcc_builtin_expect" = yes; then
5611 cat >>confdefs.h <<\_ACEOF
5612 #define HAVE_BUILTIN_EXPECT 1
5613 _ACEOF
5617 echo "$as_me:$LINENO: checking for __builtin_memset" >&5
5618 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6
5619 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622 cat > conftest.c <<\EOF
5623 void zero (void *x)
5625 __builtin_memset (x, 0, 1000);
5628 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; };
5634 then
5635 libc_cv_gcc_builtin_memset=no
5636 else
5637 libc_cv_gcc_builtin_memset=yes
5639 rm -f conftest*
5641 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
5642 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6
5643 if test "$libc_cv_gcc_builtin_memset" = yes ; then
5644 cat >>confdefs.h <<\_ACEOF
5645 #define HAVE_BUILTIN_MEMSET 1
5646 _ACEOF
5650 echo "$as_me:$LINENO: checking for local label subtraction" >&5
5651 echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
5652 if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655 cat > conftest.c <<EOF
5656 #line 5656 "configure"
5657 int foo (int a)
5659 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
5660 void *p = &&l1 + ar[a];
5661 goto *p;
5663 return 1;
5665 return 2;
5668 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5669 -o conftest conftest.c -lgcc >&5'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 libc_cv_gcc_subtract_local_labels=yes
5676 else
5677 libc_cv_gcc_subtract_local_labels=no
5679 rm -f conftest*
5681 echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5
5682 echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6
5683 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
5684 cat >>confdefs.h <<\_ACEOF
5685 #define HAVE_SUBTRACT_LOCAL_LABELS 1
5686 _ACEOF
5690 if test "x$use__thread" != xno; then
5691 echo "$as_me:$LINENO: checking for __thread" >&5
5692 echo $ECHO_N "checking for __thread... $ECHO_C" >&6
5693 if test "${libc_cv_gcc___thread+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 cat > conftest.c <<\EOF
5697 __thread int a = 42;
5699 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 (eval $ac_try) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 libc_cv_gcc___thread=yes
5706 else
5707 libc_cv_gcc___thread=no
5709 rm -f conftest*
5711 echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
5712 echo "${ECHO_T}$libc_cv_gcc___thread" >&6
5713 if test "$libc_cv_gcc___thread" = yes; then
5714 cat >>confdefs.h <<\_ACEOF
5715 #define HAVE___THREAD 1
5716 _ACEOF
5719 else
5720 libc_cv_gcc___thread=no
5723 if test "$libc_cv_gcc___thread" = yes; then
5724 echo "$as_me:$LINENO: checking for tls_model attribute" >&5
5725 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6
5726 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729 cat > conftest.c <<\EOF
5730 extern __thread int a __attribute__((tls_model ("initial-exec")));
5732 if { ac_try='${CC-cc} $CFLAGS -S -Werror conftest.c >&5'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 (eval $ac_try) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5738 libc_cv_gcc_tls_model_attr=yes
5739 else
5740 libc_cv_gcc_tls_model_attr=no
5742 rm -f conftest*
5744 echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
5745 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6
5746 if test "$libc_cv_gcc_tls_model_attr" = yes; then
5747 cat >>confdefs.h <<\_ACEOF
5748 #define HAVE_TLS_MODEL_ATTRIBUTE 1
5749 _ACEOF
5754 echo "$as_me:$LINENO: checking for libgd" >&5
5755 echo $ECHO_N "checking for libgd... $ECHO_C" >&6
5756 if test "$with_gd" != "no"; then
5757 old_CFLAGS="$CFLAGS"
5758 CFLAGS="$CFLAGS $libgd_include"
5759 old_LDFLAGS="$LDFLAGS"
5760 LDFLAGS="$LDFLAGS $libgd_ldflags"
5761 old_LIBS="$LIBS"
5762 LIBS="$LIBS -lgd -lpng -lz -lm"
5763 cat >conftest.$ac_ext <<_ACEOF
5764 #line $LINENO "configure"
5765 /* confdefs.h. */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 #include <gd.h>
5772 main ()
5774 gdImagePng (0, 0)
5776 return 0;
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 (eval $ac_try) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 LIBGD=yes
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 LIBGD=no
5798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5799 CFLAGS="$old_CFLAGS"
5800 LDFLAGS="$old_LDFLAGS"
5801 LIBS="$old_LIBS"
5802 else
5803 LIBGD=no
5805 echo "$as_me:$LINENO: result: $LIBGD" >&5
5806 echo "${ECHO_T}$LIBGD" >&6
5810 echo "$as_me:$LINENO: checking for egrep" >&5
5811 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5812 if test "${ac_cv_prog_egrep+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5816 then ac_cv_prog_egrep='grep -E'
5817 else ac_cv_prog_egrep='egrep'
5820 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5821 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5822 EGREP=$ac_cv_prog_egrep
5825 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5826 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5827 if test "${ac_cv_header_stdc+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 cat >conftest.$ac_ext <<_ACEOF
5831 #line $LINENO "configure"
5832 /* confdefs.h. */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 #include <stdlib.h>
5838 #include <stdarg.h>
5839 #include <string.h>
5840 #include <float.h>
5843 main ()
5847 return 0;
5849 _ACEOF
5850 rm -f conftest.$ac_objext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852 (eval $ac_compile) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 ac_cv_header_stdc=yes
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 ac_cv_header_stdc=no
5869 rm -f conftest.$ac_objext conftest.$ac_ext
5871 if test $ac_cv_header_stdc = yes; then
5872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5873 cat >conftest.$ac_ext <<_ACEOF
5874 #line $LINENO "configure"
5875 /* confdefs.h. */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 #include <string.h>
5882 _ACEOF
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 $EGREP "memchr" >/dev/null 2>&1; then
5886 else
5887 ac_cv_header_stdc=no
5889 rm -f conftest*
5893 if test $ac_cv_header_stdc = yes; then
5894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5895 cat >conftest.$ac_ext <<_ACEOF
5896 #line $LINENO "configure"
5897 /* confdefs.h. */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 #include <stdlib.h>
5904 _ACEOF
5905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5906 $EGREP "free" >/dev/null 2>&1; then
5908 else
5909 ac_cv_header_stdc=no
5911 rm -f conftest*
5915 if test $ac_cv_header_stdc = yes; then
5916 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5917 if test "$cross_compiling" = yes; then
5919 else
5920 cat >conftest.$ac_ext <<_ACEOF
5921 #line $LINENO "configure"
5922 /* confdefs.h. */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 #include <ctype.h>
5928 #if ((' ' & 0x0FF) == 0x020)
5929 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5930 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5931 #else
5932 # define ISLOWER(c) \
5933 (('a' <= (c) && (c) <= 'i') \
5934 || ('j' <= (c) && (c) <= 'r') \
5935 || ('s' <= (c) && (c) <= 'z'))
5936 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5937 #endif
5939 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5941 main ()
5943 int i;
5944 for (i = 0; i < 256; i++)
5945 if (XOR (islower (i), ISLOWER (i))
5946 || toupper (i) != TOUPPER (i))
5947 exit(2);
5948 exit (0);
5950 _ACEOF
5951 rm -f conftest$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953 (eval $ac_link) 2>&5
5954 ac_status=$?
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5963 else
5964 echo "$as_me: program exited with status $ac_status" >&5
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 ( exit $ac_status )
5969 ac_cv_header_stdc=no
5971 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5975 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5976 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5977 if test $ac_cv_header_stdc = yes; then
5979 cat >>confdefs.h <<\_ACEOF
5980 #define STDC_HEADERS 1
5981 _ACEOF
5985 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5995 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5996 inttypes.h stdint.h unistd.h
5998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5999 echo "$as_me:$LINENO: checking for $ac_header" >&5
6000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004 cat >conftest.$ac_ext <<_ACEOF
6005 #line $LINENO "configure"
6006 /* confdefs.h. */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 $ac_includes_default
6013 #include <$ac_header>
6014 _ACEOF
6015 rm -f conftest.$ac_objext
6016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6017 (eval $ac_compile) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -s conftest.$ac_objext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 eval "$as_ac_Header=yes"
6028 else
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6032 eval "$as_ac_Header=no"
6034 rm -f conftest.$ac_objext conftest.$ac_ext
6036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6039 cat >>confdefs.h <<_ACEOF
6040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6041 _ACEOF
6045 done
6048 echo "$as_me:$LINENO: checking for long double" >&5
6049 echo $ECHO_N "checking for long double... $ECHO_C" >&6
6050 if test "${ac_cv_type_long_double+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 cat >conftest.$ac_ext <<_ACEOF
6054 #line $LINENO "configure"
6055 /* confdefs.h. */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 $ac_includes_default
6062 main ()
6064 if ((long double *) 0)
6065 return 0;
6066 if (sizeof (long double))
6067 return 0;
6069 return 0;
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074 (eval $ac_compile) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -s conftest.$ac_objext'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6084 ac_cv_type_long_double=yes
6085 else
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 ac_cv_type_long_double=no
6091 rm -f conftest.$ac_objext conftest.$ac_ext
6093 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
6094 echo "${ECHO_T}$ac_cv_type_long_double" >&6
6096 echo "$as_me:$LINENO: checking size of long double" >&5
6097 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6098 if test "${ac_cv_sizeof_long_double+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101 if test "$ac_cv_type_long_double" = yes; then
6102 # The cast to unsigned long works around a bug in the HP C Compiler
6103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6105 # This bug is HP SR number 8606223364.
6106 if test "$cross_compiling" = yes; then
6107 # Depending upon the size, compute the lo and hi bounds.
6108 cat >conftest.$ac_ext <<_ACEOF
6109 #line $LINENO "configure"
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 $ac_includes_default
6117 main ()
6119 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
6120 test_array [0] = 0
6123 return 0;
6125 _ACEOF
6126 rm -f conftest.$ac_objext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6128 (eval $ac_compile) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try='test -s conftest.$ac_objext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_lo=0 ac_mid=0
6139 while :; do
6140 cat >conftest.$ac_ext <<_ACEOF
6141 #line $LINENO "configure"
6142 /* confdefs.h. */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 $ac_includes_default
6149 main ()
6151 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6152 test_array [0] = 0
6155 return 0;
6157 _ACEOF
6158 rm -f conftest.$ac_objext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 (eval $ac_try) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_hi=$ac_mid; break
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 ac_lo=`expr $ac_mid + 1`
6176 if test $ac_lo -le $ac_mid; then
6177 ac_lo= ac_hi=
6178 break
6180 ac_mid=`expr 2 '*' $ac_mid + 1`
6182 rm -f conftest.$ac_objext conftest.$ac_ext
6183 done
6184 else
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6188 cat >conftest.$ac_ext <<_ACEOF
6189 #line $LINENO "configure"
6190 /* confdefs.h. */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 $ac_includes_default
6197 main ()
6199 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
6200 test_array [0] = 0
6203 return 0;
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -s conftest.$ac_objext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_hi=-1 ac_mid=-1
6219 while :; do
6220 cat >conftest.$ac_ext <<_ACEOF
6221 #line $LINENO "configure"
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 $ac_includes_default
6229 main ()
6231 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
6232 test_array [0] = 0
6235 return 0;
6237 _ACEOF
6238 rm -f conftest.$ac_objext
6239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6240 (eval $ac_compile) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try='test -s conftest.$ac_objext'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 (eval $ac_try) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 ac_lo=$ac_mid; break
6251 else
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 ac_hi=`expr '(' $ac_mid ')' - 1`
6256 if test $ac_mid -le $ac_hi; then
6257 ac_lo= ac_hi=
6258 break
6260 ac_mid=`expr 2 '*' $ac_mid`
6262 rm -f conftest.$ac_objext conftest.$ac_ext
6263 done
6264 else
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 ac_lo= ac_hi=
6270 rm -f conftest.$ac_objext conftest.$ac_ext
6272 rm -f conftest.$ac_objext conftest.$ac_ext
6273 # Binary search between lo and hi bounds.
6274 while test "x$ac_lo" != "x$ac_hi"; do
6275 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6276 cat >conftest.$ac_ext <<_ACEOF
6277 #line $LINENO "configure"
6278 /* confdefs.h. */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 $ac_includes_default
6285 main ()
6287 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6288 test_array [0] = 0
6291 return 0;
6293 _ACEOF
6294 rm -f conftest.$ac_objext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } &&
6300 { ac_try='test -s conftest.$ac_objext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_hi=$ac_mid
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 ac_lo=`expr '(' $ac_mid ')' + 1`
6313 rm -f conftest.$ac_objext conftest.$ac_ext
6314 done
6315 case $ac_lo in
6316 ?*) ac_cv_sizeof_long_double=$ac_lo;;
6317 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
6318 See \`config.log' for more details." >&5
6319 echo "$as_me: error: cannot compute sizeof (long double), 77
6320 See \`config.log' for more details." >&2;}
6321 { (exit 1); exit 1; }; } ;;
6322 esac
6323 else
6324 if test "$cross_compiling" = yes; then
6325 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6326 See \`config.log' for more details." >&5
6327 echo "$as_me: error: cannot run test program while cross compiling
6328 See \`config.log' for more details." >&2;}
6329 { (exit 1); exit 1; }; }
6330 else
6331 cat >conftest.$ac_ext <<_ACEOF
6332 #line $LINENO "configure"
6333 /* confdefs.h. */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338 $ac_includes_default
6339 long longval () { return (long) (sizeof (long double)); }
6340 unsigned long ulongval () { return (long) (sizeof (long double)); }
6341 #include <stdio.h>
6342 #include <stdlib.h>
6344 main ()
6347 FILE *f = fopen ("conftest.val", "w");
6348 if (! f)
6349 exit (1);
6350 if (((long) (sizeof (long double))) < 0)
6352 long i = longval ();
6353 if (i != ((long) (sizeof (long double))))
6354 exit (1);
6355 fprintf (f, "%ld\n", i);
6357 else
6359 unsigned long i = ulongval ();
6360 if (i != ((long) (sizeof (long double))))
6361 exit (1);
6362 fprintf (f, "%lu\n", i);
6364 exit (ferror (f) || fclose (f) != 0);
6367 return 0;
6369 _ACEOF
6370 rm -f conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372 (eval $ac_link) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_cv_sizeof_long_double=`cat conftest.val`
6382 else
6383 echo "$as_me: program exited with status $ac_status" >&5
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6387 ( exit $ac_status )
6388 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
6389 See \`config.log' for more details." >&5
6390 echo "$as_me: error: cannot compute sizeof (long double), 77
6391 See \`config.log' for more details." >&2;}
6392 { (exit 1); exit 1; }; }
6394 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6397 rm -f conftest.val
6398 else
6399 ac_cv_sizeof_long_double=0
6402 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
6403 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
6404 cat >>confdefs.h <<_ACEOF
6405 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
6406 _ACEOF
6409 sizeof_long_double=$ac_cv_sizeof_long_double
6412 ### End of automated tests.
6413 ### Now run sysdeps configure fragments.
6415 # They also can set these variables.
6416 use_ldconfig=no
6417 ldd_rewrite_script=no
6418 libc_cv_sysconfdir=$sysconfdir
6419 libc_cv_gcc_unwind_find_fde=no
6421 # Iterate over all the sysdep directories we will use, running their
6422 # configure fragments, and looking for a uname implementation.
6423 uname=
6424 for dir in $sysnames; do
6425 case $dir in
6426 /*) dest=$dir ;;
6427 *) dest=$srcdir/$dir ;;
6428 esac
6429 if test -r $dest/configure; then
6430 echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
6431 echo "${ECHO_T}running configure fragment for $dir" >&6
6432 . $dest/configure
6435 if test -z "$uname"; then
6436 if test -r $dest/uname.c ||
6437 test -r $dest/uname.S ||
6438 { test -r $dest/syscalls.list &&
6439 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
6440 uname=$dir
6443 done
6445 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6446 cat >>confdefs.h <<\_ACEOF
6447 #define EXPORT_UNWIND_FIND_FDE 1
6448 _ACEOF
6453 # If we will use the generic uname implementation, we must figure out what
6454 # it will say by examining the system, and write the results in config-name.h.
6455 if test "$uname" = "sysdeps/generic"; then
6457 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
6458 if test $uname_sysname != $config_os; then
6459 config_release=`echo $config_os | sed s/$uname_sysname//`
6462 echo "$as_me:$LINENO: checking OS release for uname" >&5
6463 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6
6464 if test "${libc_cv_uname_release+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 if test -r /vmunix; then
6468 kernel_id=`strings /vmunix | grep UNIX`
6469 elif test -r /dynix; then
6470 kernel_id=`strings /dynix | grep DYNIX`
6471 else
6472 kernel_id=
6475 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
6476 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
6477 != x$config_release; then
6478 # The configuration release is a substring of the kernel release.
6479 libc_cv_uname_release=$kernel_release
6480 elif test x$config_release != x; then
6481 libc_cv_uname_release=$config_release
6482 elif test x$kernel_release != x; then
6483 libc_cv_uname_release=$kernel_release
6484 else
6485 libc_cv_uname_release=unknown
6488 echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
6489 echo "${ECHO_T}$libc_cv_uname_release" >&6
6490 uname_release="$libc_cv_uname_release"
6492 echo "$as_me:$LINENO: checking OS version for uname" >&5
6493 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6
6494 if test "${libc_cv_uname_version+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 if test -r /vmunix; then
6498 kernel_id=`strings /vmunix | grep UNIX`
6499 elif test -r /dynix; then
6500 kernel_id=`strings /dynix | grep DYNIX`
6501 else
6502 kernel_id=
6505 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
6506 if test -n "$kernel_version"; then
6507 libc_cv_uname_version="$kernel_version"
6508 else
6509 libc_cv_uname_version=unknown
6512 echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
6513 echo "${ECHO_T}$libc_cv_uname_version" >&6
6514 uname_version="$libc_cv_uname_version"
6516 config_uname=config-name.h:config-name.in
6517 else
6518 # For non-generic uname, we don't need to create config-name.h at all.
6519 config_uname=
6522 cat >>confdefs.h <<\_ACEOF
6523 #define USE_IN_LIBIO 1
6524 _ACEOF
6527 # Test for old glibc 2.0.x headers so that they can be removed properly
6528 # Search only in includedir.
6529 echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
6530 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6
6531 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
6532 then
6533 old_glibc_headers=yes
6534 else
6535 old_glibc_headers=no
6537 echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
6538 echo "${ECHO_T}$old_glibc_headers" >&6
6539 if test ${old_glibc_headers} = yes; then
6540 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
6541 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
6542 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
6543 echo "$as_me: WARNING: *** be removed." >&2;}
6556 if test $gnu_ld = yes; then
6557 cat >>confdefs.h <<\_ACEOF
6558 #define HAVE_GNU_LD 1
6559 _ACEOF
6562 if test $gnu_as = yes; then
6563 cat >>confdefs.h <<\_ACEOF
6564 #define HAVE_GNU_AS 1
6565 _ACEOF
6568 if test $elf = yes; then
6569 cat >>confdefs.h <<\_ACEOF
6570 #define HAVE_ELF 1
6571 _ACEOF
6574 if test $xcoff = yes; then
6575 cat >>confdefs.h <<\_ACEOF
6576 #define HAVE_XCOFF 1
6577 _ACEOF
6583 if test $shared = default; then
6584 if test $gnu_ld = yes; then
6585 shared=$elf
6586 else
6587 # For now we do not assume shared libs are available. In future more
6588 # tests might become available.
6589 shared=no
6593 echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
6594 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6
6595 if test "${pic_default+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598 pic_default=yes
6599 cat > conftest.c <<EOF
6600 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6601 # error PIC is default.
6602 #endif
6604 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6605 pic_default=no
6607 rm -f conftest.*
6609 echo "$as_me:$LINENO: result: $pic_default" >&5
6610 echo "${ECHO_T}$pic_default" >&6
6621 case "$add_ons" in
6622 *door*) linux_doors=yes ;;
6623 *) linux_doors=no ;;
6624 esac
6629 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
6630 config_makefile=
6631 else
6632 config_makefile=Makefile
6635 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6636 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6640 ac_config_files="$ac_config_files config.make glibcbug ${config_makefile} ${config_uname}"
6642 ac_config_commands="$ac_config_commands default"
6644 cat >confcache <<\_ACEOF
6645 # This file is a shell script that caches the results of configure
6646 # tests run on this system so they can be shared between configure
6647 # scripts and configure runs, see configure's option --config-cache.
6648 # It is not useful on other systems. If it contains results you don't
6649 # want to keep, you may remove or edit it.
6651 # config.status only pays attention to the cache file if you give it
6652 # the --recheck option to rerun configure.
6654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6656 # following values.
6658 _ACEOF
6660 # The following way of writing the cache mishandles newlines in values,
6661 # but we know of no workaround that is simple, portable, and efficient.
6662 # So, don't put newlines in cache variables' values.
6663 # Ultrix sh set writes to stderr and can't be redirected directly,
6664 # and sets the high bit in the cache file unless we assign to the vars.
6666 (set) 2>&1 |
6667 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6668 *ac_space=\ *)
6669 # `set' does not quote correctly, so add quotes (double-quote
6670 # substitution turns \\\\ into \\, and sed turns \\ into \).
6671 sed -n \
6672 "s/'/'\\\\''/g;
6673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6676 # `set' quotes correctly as required by POSIX, so do not add quotes.
6677 sed -n \
6678 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6680 esac;
6682 sed '
6683 t clear
6684 : clear
6685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6686 t end
6687 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6688 : end' >>confcache
6689 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6690 if test -w $cache_file; then
6691 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6692 cat confcache >$cache_file
6693 else
6694 echo "not updating unwritable cache $cache_file"
6697 rm -f confcache
6699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6700 # Let make expand exec_prefix.
6701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6703 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6704 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6705 # trailing colons and then remove the whole line if VPATH becomes empty
6706 # (actually we leave an empty line to preserve line numbers).
6707 if test "x$srcdir" = x.; then
6708 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6709 s/:*\$(srcdir):*/:/;
6710 s/:*\${srcdir}:*/:/;
6711 s/:*@srcdir@:*/:/;
6712 s/^\([^=]*=[ ]*\):*/\1/;
6713 s/:*$//;
6714 s/^[^=]*=[ ]*$//;
6718 DEFS=-DHAVE_CONFIG_H
6720 ac_libobjs=
6721 ac_ltlibobjs=
6722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6723 # 1. Remove the extension, and $U if already installed.
6724 ac_i=`echo "$ac_i" |
6725 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6726 # 2. Add them.
6727 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6728 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6729 done
6730 LIBOBJS=$ac_libobjs
6732 LTLIBOBJS=$ac_ltlibobjs
6736 : ${CONFIG_STATUS=./config.status}
6737 ac_clean_files_save=$ac_clean_files
6738 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6739 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6740 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6741 cat >$CONFIG_STATUS <<_ACEOF
6742 #! $SHELL
6743 # Generated by $as_me.
6744 # Run this file to recreate the current configuration.
6745 # Compiler output produced by configure, useful for debugging
6746 # configure, is in config.log if it exists.
6748 debug=false
6749 ac_cs_recheck=false
6750 ac_cs_silent=false
6751 SHELL=\${CONFIG_SHELL-$SHELL}
6752 _ACEOF
6754 cat >>$CONFIG_STATUS <<\_ACEOF
6755 ## --------------------- ##
6756 ## M4sh Initialization. ##
6757 ## --------------------- ##
6759 # Be Bourne compatible
6760 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6761 emulate sh
6762 NULLCMD=:
6763 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6764 # is contrary to our usage. Disable this feature.
6765 alias -g '${1+"$@"}'='"$@"'
6766 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6767 set -o posix
6770 # Support unset when possible.
6771 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6772 as_unset=unset
6773 else
6774 as_unset=false
6778 # Work around bugs in pre-3.0 UWIN ksh.
6779 $as_unset ENV MAIL MAILPATH
6780 PS1='$ '
6781 PS2='> '
6782 PS4='+ '
6784 # NLS nuisances.
6785 for as_var in \
6786 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6787 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6788 LC_TELEPHONE LC_TIME
6790 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6791 eval $as_var=C; export $as_var
6792 else
6793 $as_unset $as_var
6795 done
6797 # Required to use basename.
6798 if expr a : '\(a\)' >/dev/null 2>&1; then
6799 as_expr=expr
6800 else
6801 as_expr=false
6804 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6805 as_basename=basename
6806 else
6807 as_basename=false
6811 # Name of the executable.
6812 as_me=`$as_basename "$0" ||
6813 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6814 X"$0" : 'X\(//\)$' \| \
6815 X"$0" : 'X\(/\)$' \| \
6816 . : '\(.\)' 2>/dev/null ||
6817 echo X/"$0" |
6818 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6819 /^X\/\(\/\/\)$/{ s//\1/; q; }
6820 /^X\/\(\/\).*/{ s//\1/; q; }
6821 s/.*/./; q'`
6824 # PATH needs CR, and LINENO needs CR and PATH.
6825 # Avoid depending upon Character Ranges.
6826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6829 as_cr_digits='0123456789'
6830 as_cr_alnum=$as_cr_Letters$as_cr_digits
6832 # The user is always right.
6833 if test "${PATH_SEPARATOR+set}" != set; then
6834 echo "#! /bin/sh" >conf$$.sh
6835 echo "exit 0" >>conf$$.sh
6836 chmod +x conf$$.sh
6837 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6838 PATH_SEPARATOR=';'
6839 else
6840 PATH_SEPARATOR=:
6842 rm -f conf$$.sh
6846 as_lineno_1=$LINENO
6847 as_lineno_2=$LINENO
6848 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6849 test "x$as_lineno_1" != "x$as_lineno_2" &&
6850 test "x$as_lineno_3" = "x$as_lineno_2" || {
6851 # Find who we are. Look in the path if we contain no path at all
6852 # relative or not.
6853 case $0 in
6854 *[\\/]* ) as_myself=$0 ;;
6855 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6861 done
6864 esac
6865 # We did not find ourselves, most probably we were run as `sh COMMAND'
6866 # in which case we are not to be found in the path.
6867 if test "x$as_myself" = x; then
6868 as_myself=$0
6870 if test ! -f "$as_myself"; then
6871 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6872 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6873 { (exit 1); exit 1; }; }
6875 case $CONFIG_SHELL in
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for as_base in sh bash ksh sh5; do
6883 case $as_dir in
6885 if ("$as_dir/$as_base" -c '
6886 as_lineno_1=$LINENO
6887 as_lineno_2=$LINENO
6888 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6889 test "x$as_lineno_1" != "x$as_lineno_2" &&
6890 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6891 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6892 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6893 CONFIG_SHELL=$as_dir/$as_base
6894 export CONFIG_SHELL
6895 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6896 fi;;
6897 esac
6898 done
6899 done
6901 esac
6903 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6904 # uniformly replaced by the line number. The first 'sed' inserts a
6905 # line-number line before each line; the second 'sed' does the real
6906 # work. The second script uses 'N' to pair each line-number line
6907 # with the numbered line, and appends trailing '-' during
6908 # substitution so that $LINENO is not a special case at line end.
6909 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6910 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6911 sed '=' <$as_myself |
6912 sed '
6914 s,$,-,
6915 : loop
6916 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6917 t loop
6918 s,-$,,
6919 s,^['$as_cr_digits']*\n,,
6920 ' >$as_me.lineno &&
6921 chmod +x $as_me.lineno ||
6922 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6923 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6924 { (exit 1); exit 1; }; }
6926 # Don't try to exec as it changes $[0], causing all sort of problems
6927 # (the dirname of $[0] is not the place where we might find the
6928 # original and so on. Autoconf is especially sensible to this).
6929 . ./$as_me.lineno
6930 # Exit status is that of the last command.
6931 exit
6935 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6936 *c*,-n*) ECHO_N= ECHO_C='
6937 ' ECHO_T=' ' ;;
6938 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6939 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6940 esac
6942 if expr a : '\(a\)' >/dev/null 2>&1; then
6943 as_expr=expr
6944 else
6945 as_expr=false
6948 rm -f conf$$ conf$$.exe conf$$.file
6949 echo >conf$$.file
6950 if ln -s conf$$.file conf$$ 2>/dev/null; then
6951 # We could just check for DJGPP; but this test a) works b) is more generic
6952 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6953 if test -f conf$$.exe; then
6954 # Don't use ln at all; we don't have any links
6955 as_ln_s='cp -p'
6956 else
6957 as_ln_s='ln -s'
6959 elif ln conf$$.file conf$$ 2>/dev/null; then
6960 as_ln_s=ln
6961 else
6962 as_ln_s='cp -p'
6964 rm -f conf$$ conf$$.exe conf$$.file
6966 if mkdir -p . 2>/dev/null; then
6967 as_mkdir_p=:
6968 else
6969 as_mkdir_p=false
6972 as_executable_p="test -f"
6974 # Sed expression to map a string onto a valid CPP name.
6975 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6977 # Sed expression to map a string onto a valid variable name.
6978 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6981 # IFS
6982 # We need space, tab and new line, in precisely that order.
6983 as_nl='
6985 IFS=" $as_nl"
6987 # CDPATH.
6988 $as_unset CDPATH
6990 exec 6>&1
6992 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6993 # report actual input values of CONFIG_FILES etc. instead of their
6994 # values after options handling. Logging --version etc. is OK.
6995 exec 5>>config.log
6997 echo
6998 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6999 ## Running $as_me. ##
7000 _ASBOX
7001 } >&5
7002 cat >&5 <<_CSEOF
7004 This file was extended by GNU C Library $as_me (see version.h), which was
7005 generated by GNU Autoconf 2.57. Invocation command line was
7007 CONFIG_FILES = $CONFIG_FILES
7008 CONFIG_HEADERS = $CONFIG_HEADERS
7009 CONFIG_LINKS = $CONFIG_LINKS
7010 CONFIG_COMMANDS = $CONFIG_COMMANDS
7011 $ $0 $@
7013 _CSEOF
7014 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7015 echo >&5
7016 _ACEOF
7018 # Files that config.status was made for.
7019 if test -n "$ac_config_files"; then
7020 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7023 if test -n "$ac_config_headers"; then
7024 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7027 if test -n "$ac_config_links"; then
7028 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7031 if test -n "$ac_config_commands"; then
7032 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7035 cat >>$CONFIG_STATUS <<\_ACEOF
7037 ac_cs_usage="\
7038 \`$as_me' instantiates files from templates according to the
7039 current configuration.
7041 Usage: $0 [OPTIONS] [FILE]...
7043 -h, --help print this help, then exit
7044 -V, --version print version number, then exit
7045 -q, --quiet do not print progress messages
7046 -d, --debug don't remove temporary files
7047 --recheck update $as_me by reconfiguring in the same conditions
7048 --file=FILE[:TEMPLATE]
7049 instantiate the configuration file FILE
7050 --header=FILE[:TEMPLATE]
7051 instantiate the configuration header FILE
7053 Configuration files:
7054 $config_files
7056 Configuration headers:
7057 $config_headers
7059 Configuration commands:
7060 $config_commands
7062 Report bugs to <bug-autoconf@gnu.org>."
7063 _ACEOF
7065 cat >>$CONFIG_STATUS <<_ACEOF
7066 ac_cs_version="\\
7067 GNU C Library config.status (see version.h)
7068 configured by $0, generated by GNU Autoconf 2.57,
7069 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7071 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7072 Free Software Foundation, Inc.
7073 This config.status script is free software; the Free Software Foundation
7074 gives unlimited permission to copy, distribute and modify it."
7075 srcdir=$srcdir
7076 INSTALL="$INSTALL"
7077 _ACEOF
7079 cat >>$CONFIG_STATUS <<\_ACEOF
7080 # If no file are specified by the user, then we need to provide default
7081 # value. By we need to know if files were specified by the user.
7082 ac_need_defaults=:
7083 while test $# != 0
7085 case $1 in
7086 --*=*)
7087 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7088 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7089 ac_shift=:
7092 ac_option=$1
7093 ac_optarg=$2
7094 ac_shift=shift
7096 *) # This is not an option, so the user has probably given explicit
7097 # arguments.
7098 ac_option=$1
7099 ac_need_defaults=false;;
7100 esac
7102 case $ac_option in
7103 # Handling of the options.
7104 _ACEOF
7105 cat >>$CONFIG_STATUS <<\_ACEOF
7106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7107 ac_cs_recheck=: ;;
7108 --version | --vers* | -V )
7109 echo "$ac_cs_version"; exit 0 ;;
7110 --he | --h)
7111 # Conflict between --help and --header
7112 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7113 Try \`$0 --help' for more information." >&5
7114 echo "$as_me: error: ambiguous option: $1
7115 Try \`$0 --help' for more information." >&2;}
7116 { (exit 1); exit 1; }; };;
7117 --help | --hel | -h )
7118 echo "$ac_cs_usage"; exit 0 ;;
7119 --debug | --d* | -d )
7120 debug=: ;;
7121 --file | --fil | --fi | --f )
7122 $ac_shift
7123 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7124 ac_need_defaults=false;;
7125 --header | --heade | --head | --hea )
7126 $ac_shift
7127 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7128 ac_need_defaults=false;;
7129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7130 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7131 ac_cs_silent=: ;;
7133 # This is an error.
7134 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7135 Try \`$0 --help' for more information." >&5
7136 echo "$as_me: error: unrecognized option: $1
7137 Try \`$0 --help' for more information." >&2;}
7138 { (exit 1); exit 1; }; } ;;
7140 *) ac_config_targets="$ac_config_targets $1" ;;
7142 esac
7143 shift
7144 done
7146 ac_configure_extra_args=
7148 if $ac_cs_silent; then
7149 exec 6>/dev/null
7150 ac_configure_extra_args="$ac_configure_extra_args --silent"
7153 _ACEOF
7154 cat >>$CONFIG_STATUS <<_ACEOF
7155 if \$ac_cs_recheck; then
7156 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7157 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7160 _ACEOF
7162 cat >>$CONFIG_STATUS <<_ACEOF
7164 # INIT-COMMANDS section.
7167 config_vars='$config_vars'
7169 _ACEOF
7173 cat >>$CONFIG_STATUS <<\_ACEOF
7174 for ac_config_target in $ac_config_targets
7176 case "$ac_config_target" in
7177 # Handling of arguments.
7178 "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
7179 "glibcbug" ) CONFIG_FILES="$CONFIG_FILES glibcbug" ;;
7180 "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
7181 "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
7182 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7183 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7184 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7185 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7186 { (exit 1); exit 1; }; };;
7187 esac
7188 done
7190 # If the user did not use the arguments to specify the items to instantiate,
7191 # then the envvar interface is used. Set only those that are not.
7192 # We use the long form for the default assignment because of an extremely
7193 # bizarre bug on SunOS 4.1.3.
7194 if $ac_need_defaults; then
7195 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7196 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7197 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7200 # Have a temporary directory for convenience. Make it in the build tree
7201 # simply because there is no reason to put it here, and in addition,
7202 # creating and moving files from /tmp can sometimes cause problems.
7203 # Create a temporary directory, and hook for its removal unless debugging.
7204 $debug ||
7206 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7207 trap '{ (exit 1); exit 1; }' 1 2 13 15
7210 # Create a (secure) tmp directory for tmp files.
7213 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7214 test -n "$tmp" && test -d "$tmp"
7215 } ||
7217 tmp=./confstat$$-$RANDOM
7218 (umask 077 && mkdir $tmp)
7219 } ||
7221 echo "$me: cannot create a temporary directory in ." >&2
7222 { (exit 1); exit 1; }
7225 _ACEOF
7227 cat >>$CONFIG_STATUS <<_ACEOF
7230 # CONFIG_FILES section.
7233 # No need to generate the scripts if there are no CONFIG_FILES.
7234 # This happens for instance when ./config.status config.h
7235 if test -n "\$CONFIG_FILES"; then
7236 # Protect against being on the right side of a sed subst in config.status.
7237 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7238 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7239 s,@SHELL@,$SHELL,;t t
7240 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7241 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7242 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7243 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7244 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7245 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7246 s,@exec_prefix@,$exec_prefix,;t t
7247 s,@prefix@,$prefix,;t t
7248 s,@program_transform_name@,$program_transform_name,;t t
7249 s,@bindir@,$bindir,;t t
7250 s,@sbindir@,$sbindir,;t t
7251 s,@libexecdir@,$libexecdir,;t t
7252 s,@datadir@,$datadir,;t t
7253 s,@sysconfdir@,$sysconfdir,;t t
7254 s,@sharedstatedir@,$sharedstatedir,;t t
7255 s,@localstatedir@,$localstatedir,;t t
7256 s,@libdir@,$libdir,;t t
7257 s,@includedir@,$includedir,;t t
7258 s,@oldincludedir@,$oldincludedir,;t t
7259 s,@infodir@,$infodir,;t t
7260 s,@mandir@,$mandir,;t t
7261 s,@build_alias@,$build_alias,;t t
7262 s,@host_alias@,$host_alias,;t t
7263 s,@target_alias@,$target_alias,;t t
7264 s,@DEFS@,$DEFS,;t t
7265 s,@ECHO_C@,$ECHO_C,;t t
7266 s,@ECHO_N@,$ECHO_N,;t t
7267 s,@ECHO_T@,$ECHO_T,;t t
7268 s,@LIBS@,$LIBS,;t t
7269 s,@with_fp@,$with_fp,;t t
7270 s,@with_cvs@,$with_cvs,;t t
7271 s,@oldest_abi@,$oldest_abi,;t t
7272 s,@subdirs@,$subdirs,;t t
7273 s,@force_install@,$force_install,;t t
7274 s,@all_warnings@,$all_warnings,;t t
7275 s,@build@,$build,;t t
7276 s,@build_cpu@,$build_cpu,;t t
7277 s,@build_vendor@,$build_vendor,;t t
7278 s,@build_os@,$build_os,;t t
7279 s,@host@,$host,;t t
7280 s,@host_cpu@,$host_cpu,;t t
7281 s,@host_vendor@,$host_vendor,;t t
7282 s,@host_os@,$host_os,;t t
7283 s,@base_machine@,$base_machine,;t t
7284 s,@sysnames@,$sysnames,;t t
7285 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7286 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7287 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7288 s,@LN_S@,$LN_S,;t t
7289 s,@CC@,$CC,;t t
7290 s,@CFLAGS@,$CFLAGS,;t t
7291 s,@LDFLAGS@,$LDFLAGS,;t t
7292 s,@CPPFLAGS@,$CPPFLAGS,;t t
7293 s,@ac_ct_CC@,$ac_ct_CC,;t t
7294 s,@OBJEXT@,$OBJEXT,;t t
7295 s,@BUILD_CC@,$BUILD_CC,;t t
7296 s,@cross_compiling@,$cross_compiling,;t t
7297 s,@CPP@,$CPP,;t t
7298 s,@AR@,$AR,;t t
7299 s,@OBJDUMP@,$OBJDUMP,;t t
7300 s,@RANLIB@,$RANLIB,;t t
7301 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7302 s,@MIG@,$MIG,;t t
7303 s,@AS@,$AS,;t t
7304 s,@LD@,$LD,;t t
7305 s,@PWD_P@,$PWD_P,;t t
7306 s,@MAKE@,$MAKE,;t t
7307 s,@MSGFMT@,$MSGFMT,;t t
7308 s,@MAKEINFO@,$MAKEINFO,;t t
7309 s,@SED@,$SED,;t t
7310 s,@AUTOCONF@,$AUTOCONF,;t t
7311 s,@CCVERSION@,$CCVERSION,;t t
7312 s,@SYSINCLUDES@,$SYSINCLUDES,;t t
7313 s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t
7314 s,@BASH@,$BASH,;t t
7315 s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t
7316 s,@KSH@,$KSH,;t t
7317 s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t
7318 s,@AWK@,$AWK,;t t
7319 s,@PERL@,$PERL,;t t
7320 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
7321 s,@OLD_DEBIAN_INSTALL_INFO@,$OLD_DEBIAN_INSTALL_INFO,;t t
7322 s,@BISON@,$BISON,;t t
7323 s,@VERSIONING@,$VERSIONING,;t t
7324 s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t
7325 s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
7326 s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t
7327 s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t
7328 s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t
7329 s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t
7330 s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t
7331 s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t
7332 s,@libc_cv_cpp_asm_debuginfo@,$libc_cv_cpp_asm_debuginfo,;t t
7333 s,@no_whole_archive@,$no_whole_archive,;t t
7334 s,@exceptions@,$exceptions,;t t
7335 s,@LIBGD@,$LIBGD,;t t
7336 s,@EGREP@,$EGREP,;t t
7337 s,@sizeof_long_double@,$sizeof_long_double,;t t
7338 s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t
7339 s,@uname_sysname@,$uname_sysname,;t t
7340 s,@uname_release@,$uname_release,;t t
7341 s,@uname_version@,$uname_version,;t t
7342 s,@old_glibc_headers@,$old_glibc_headers,;t t
7343 s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t
7344 s,@libc_cv_localedir@,$libc_cv_localedir,;t t
7345 s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t
7346 s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t
7347 s,@use_ldconfig@,$use_ldconfig,;t t
7348 s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t
7349 s,@gnu_ld@,$gnu_ld,;t t
7350 s,@gnu_as@,$gnu_as,;t t
7351 s,@elf@,$elf,;t t
7352 s,@xcoff@,$xcoff,;t t
7353 s,@static@,$static,;t t
7354 s,@shared@,$shared,;t t
7355 s,@pic_default@,$pic_default,;t t
7356 s,@profile@,$profile,;t t
7357 s,@omitfp@,$omitfp,;t t
7358 s,@bounded@,$bounded,;t t
7359 s,@static_nss@,$static_nss,;t t
7360 s,@nopic_initfini@,$nopic_initfini,;t t
7361 s,@DEFINES@,$DEFINES,;t t
7362 s,@linux_doors@,$linux_doors,;t t
7363 s,@mach_interface_list@,$mach_interface_list,;t t
7364 s,@VERSION@,$VERSION,;t t
7365 s,@RELEASE@,$RELEASE,;t t
7366 s,@LIBOBJS@,$LIBOBJS,;t t
7367 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7368 CEOF
7370 _ACEOF
7372 cat >>$CONFIG_STATUS <<\_ACEOF
7373 # Split the substitutions into bite-sized pieces for seds with
7374 # small command number limits, like on Digital OSF/1 and HP-UX.
7375 ac_max_sed_lines=48
7376 ac_sed_frag=1 # Number of current file.
7377 ac_beg=1 # First line for current file.
7378 ac_end=$ac_max_sed_lines # Line after last line for current file.
7379 ac_more_lines=:
7380 ac_sed_cmds=
7381 while $ac_more_lines; do
7382 if test $ac_beg -gt 1; then
7383 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7384 else
7385 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7387 if test ! -s $tmp/subs.frag; then
7388 ac_more_lines=false
7389 else
7390 # The purpose of the label and of the branching condition is to
7391 # speed up the sed processing (if there are no `@' at all, there
7392 # is no need to browse any of the substitutions).
7393 # These are the two extra sed commands mentioned above.
7394 (echo ':t
7395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7396 if test -z "$ac_sed_cmds"; then
7397 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7398 else
7399 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7401 ac_sed_frag=`expr $ac_sed_frag + 1`
7402 ac_beg=$ac_end
7403 ac_end=`expr $ac_end + $ac_max_sed_lines`
7405 done
7406 if test -z "$ac_sed_cmds"; then
7407 ac_sed_cmds=cat
7409 fi # test -n "$CONFIG_FILES"
7411 _ACEOF
7412 cat >>$CONFIG_STATUS <<\_ACEOF
7413 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7414 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7415 case $ac_file in
7416 - | *:- | *:-:* ) # input from stdin
7417 cat >$tmp/stdin
7418 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7419 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7420 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7421 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7422 * ) ac_file_in=$ac_file.in ;;
7423 esac
7425 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7426 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7428 X"$ac_file" : 'X\(//\)[^/]' \| \
7429 X"$ac_file" : 'X\(//\)$' \| \
7430 X"$ac_file" : 'X\(/\)' \| \
7431 . : '\(.\)' 2>/dev/null ||
7432 echo X"$ac_file" |
7433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7435 /^X\(\/\/\)$/{ s//\1/; q; }
7436 /^X\(\/\).*/{ s//\1/; q; }
7437 s/.*/./; q'`
7438 { if $as_mkdir_p; then
7439 mkdir -p "$ac_dir"
7440 else
7441 as_dir="$ac_dir"
7442 as_dirs=
7443 while test ! -d "$as_dir"; do
7444 as_dirs="$as_dir $as_dirs"
7445 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7447 X"$as_dir" : 'X\(//\)[^/]' \| \
7448 X"$as_dir" : 'X\(//\)$' \| \
7449 X"$as_dir" : 'X\(/\)' \| \
7450 . : '\(.\)' 2>/dev/null ||
7451 echo X"$as_dir" |
7452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7454 /^X\(\/\/\)$/{ s//\1/; q; }
7455 /^X\(\/\).*/{ s//\1/; q; }
7456 s/.*/./; q'`
7457 done
7458 test ! -n "$as_dirs" || mkdir $as_dirs
7459 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7460 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7461 { (exit 1); exit 1; }; }; }
7463 ac_builddir=.
7465 if test "$ac_dir" != .; then
7466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7467 # A "../" for each directory in $ac_dir_suffix.
7468 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7469 else
7470 ac_dir_suffix= ac_top_builddir=
7473 case $srcdir in
7474 .) # No --srcdir option. We are building in place.
7475 ac_srcdir=.
7476 if test -z "$ac_top_builddir"; then
7477 ac_top_srcdir=.
7478 else
7479 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7480 fi ;;
7481 [\\/]* | ?:[\\/]* ) # Absolute path.
7482 ac_srcdir=$srcdir$ac_dir_suffix;
7483 ac_top_srcdir=$srcdir ;;
7484 *) # Relative path.
7485 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7486 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7487 esac
7488 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7489 # absolute.
7490 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7491 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7492 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7493 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7496 case $INSTALL in
7497 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7498 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7499 esac
7501 if test x"$ac_file" != x-; then
7502 { echo "$as_me:$LINENO: creating $ac_file" >&5
7503 echo "$as_me: creating $ac_file" >&6;}
7504 rm -f "$ac_file"
7506 # Let's still pretend it is `configure' which instantiates (i.e., don't
7507 # use $as_me), people would be surprised to read:
7508 # /* config.h. Generated by config.status. */
7509 if test x"$ac_file" = x-; then
7510 configure_input=
7511 else
7512 configure_input="$ac_file. "
7514 configure_input=$configure_input"Generated from `echo $ac_file_in |
7515 sed 's,.*/,,'` by configure."
7517 # First look for the input files in the build tree, otherwise in the
7518 # src tree.
7519 ac_file_inputs=`IFS=:
7520 for f in $ac_file_in; do
7521 case $f in
7522 -) echo $tmp/stdin ;;
7523 [\\/$]*)
7524 # Absolute (can't be DOS-style, as IFS=:)
7525 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7526 echo "$as_me: error: cannot find input file: $f" >&2;}
7527 { (exit 1); exit 1; }; }
7528 echo $f;;
7529 *) # Relative
7530 if test -f "$f"; then
7531 # Build tree
7532 echo $f
7533 elif test -f "$srcdir/$f"; then
7534 # Source tree
7535 echo $srcdir/$f
7536 else
7537 # /dev/null tree
7538 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7539 echo "$as_me: error: cannot find input file: $f" >&2;}
7540 { (exit 1); exit 1; }; }
7541 fi;;
7542 esac
7543 done` || { (exit 1); exit 1; }
7544 _ACEOF
7545 cat >>$CONFIG_STATUS <<_ACEOF
7546 sed "$ac_vpsub
7547 $extrasub
7548 _ACEOF
7549 cat >>$CONFIG_STATUS <<\_ACEOF
7551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7552 s,@configure_input@,$configure_input,;t t
7553 s,@srcdir@,$ac_srcdir,;t t
7554 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7555 s,@top_srcdir@,$ac_top_srcdir,;t t
7556 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7557 s,@builddir@,$ac_builddir,;t t
7558 s,@abs_builddir@,$ac_abs_builddir,;t t
7559 s,@top_builddir@,$ac_top_builddir,;t t
7560 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7561 s,@INSTALL@,$ac_INSTALL,;t t
7562 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7563 rm -f $tmp/stdin
7564 if test x"$ac_file" != x-; then
7565 mv $tmp/out $ac_file
7566 else
7567 cat $tmp/out
7568 rm -f $tmp/out
7571 done
7572 _ACEOF
7573 cat >>$CONFIG_STATUS <<\_ACEOF
7576 # CONFIG_HEADER section.
7579 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7580 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7582 # ac_d sets the value in "#define NAME VALUE" lines.
7583 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7584 ac_dB='[ ].*$,\1#\2'
7585 ac_dC=' '
7586 ac_dD=',;t'
7587 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7588 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7589 ac_uB='$,\1#\2define\3'
7590 ac_uC=' '
7591 ac_uD=',;t'
7593 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7595 case $ac_file in
7596 - | *:- | *:-:* ) # input from stdin
7597 cat >$tmp/stdin
7598 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7599 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7600 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7602 * ) ac_file_in=$ac_file.in ;;
7603 esac
7605 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7606 echo "$as_me: creating $ac_file" >&6;}
7608 # First look for the input files in the build tree, otherwise in the
7609 # src tree.
7610 ac_file_inputs=`IFS=:
7611 for f in $ac_file_in; do
7612 case $f in
7613 -) echo $tmp/stdin ;;
7614 [\\/$]*)
7615 # Absolute (can't be DOS-style, as IFS=:)
7616 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7617 echo "$as_me: error: cannot find input file: $f" >&2;}
7618 { (exit 1); exit 1; }; }
7619 echo $f;;
7620 *) # Relative
7621 if test -f "$f"; then
7622 # Build tree
7623 echo $f
7624 elif test -f "$srcdir/$f"; then
7625 # Source tree
7626 echo $srcdir/$f
7627 else
7628 # /dev/null tree
7629 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7630 echo "$as_me: error: cannot find input file: $f" >&2;}
7631 { (exit 1); exit 1; }; }
7632 fi;;
7633 esac
7634 done` || { (exit 1); exit 1; }
7635 # Remove the trailing spaces.
7636 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7638 _ACEOF
7640 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7641 # `conftest.undefs', that substitutes the proper values into
7642 # config.h.in to produce config.h. The first handles `#define'
7643 # templates, and the second `#undef' templates.
7644 # And first: Protect against being on the right side of a sed subst in
7645 # config.status. Protect against being in an unquoted here document
7646 # in config.status.
7647 rm -f conftest.defines conftest.undefs
7648 # Using a here document instead of a string reduces the quoting nightmare.
7649 # Putting comments in sed scripts is not portable.
7651 # `end' is used to avoid that the second main sed command (meant for
7652 # 0-ary CPP macros) applies to n-ary macro definitions.
7653 # See the Autoconf documentation for `clear'.
7654 cat >confdef2sed.sed <<\_ACEOF
7655 s/[\\&,]/\\&/g
7656 s,[\\$`],\\&,g
7657 t clear
7658 : clear
7659 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7660 t end
7661 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7662 : end
7663 _ACEOF
7664 # If some macros were called several times there might be several times
7665 # the same #defines, which is useless. Nevertheless, we may not want to
7666 # sort them, since we want the *last* AC-DEFINE to be honored.
7667 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7668 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7669 rm -f confdef2sed.sed
7671 # This sed command replaces #undef with comments. This is necessary, for
7672 # example, in the case of _POSIX_SOURCE, which is predefined and required
7673 # on some systems where configure will not decide to define it.
7674 cat >>conftest.undefs <<\_ACEOF
7675 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7676 _ACEOF
7678 # Break up conftest.defines because some shells have a limit on the size
7679 # of here documents, and old seds have small limits too (100 cmds).
7680 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7681 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7682 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7683 echo ' :' >>$CONFIG_STATUS
7684 rm -f conftest.tail
7685 while grep . conftest.defines >/dev/null
7687 # Write a limited-size here document to $tmp/defines.sed.
7688 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7689 # Speed up: don't consider the non `#define' lines.
7690 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7691 # Work around the forget-to-reset-the-flag bug.
7692 echo 't clr' >>$CONFIG_STATUS
7693 echo ': clr' >>$CONFIG_STATUS
7694 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7695 echo 'CEOF
7696 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7697 rm -f $tmp/in
7698 mv $tmp/out $tmp/in
7699 ' >>$CONFIG_STATUS
7700 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7701 rm -f conftest.defines
7702 mv conftest.tail conftest.defines
7703 done
7704 rm -f conftest.defines
7705 echo ' fi # grep' >>$CONFIG_STATUS
7706 echo >>$CONFIG_STATUS
7708 # Break up conftest.undefs because some shells have a limit on the size
7709 # of here documents, and old seds have small limits too (100 cmds).
7710 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7711 rm -f conftest.tail
7712 while grep . conftest.undefs >/dev/null
7714 # Write a limited-size here document to $tmp/undefs.sed.
7715 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7716 # Speed up: don't consider the non `#undef'
7717 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7718 # Work around the forget-to-reset-the-flag bug.
7719 echo 't clr' >>$CONFIG_STATUS
7720 echo ': clr' >>$CONFIG_STATUS
7721 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7722 echo 'CEOF
7723 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7724 rm -f $tmp/in
7725 mv $tmp/out $tmp/in
7726 ' >>$CONFIG_STATUS
7727 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7728 rm -f conftest.undefs
7729 mv conftest.tail conftest.undefs
7730 done
7731 rm -f conftest.undefs
7733 cat >>$CONFIG_STATUS <<\_ACEOF
7734 # Let's still pretend it is `configure' which instantiates (i.e., don't
7735 # use $as_me), people would be surprised to read:
7736 # /* config.h. Generated by config.status. */
7737 if test x"$ac_file" = x-; then
7738 echo "/* Generated by configure. */" >$tmp/config.h
7739 else
7740 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7742 cat $tmp/in >>$tmp/config.h
7743 rm -f $tmp/in
7744 if test x"$ac_file" != x-; then
7745 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7746 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7747 echo "$as_me: $ac_file is unchanged" >&6;}
7748 else
7749 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7751 X"$ac_file" : 'X\(//\)[^/]' \| \
7752 X"$ac_file" : 'X\(//\)$' \| \
7753 X"$ac_file" : 'X\(/\)' \| \
7754 . : '\(.\)' 2>/dev/null ||
7755 echo X"$ac_file" |
7756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7758 /^X\(\/\/\)$/{ s//\1/; q; }
7759 /^X\(\/\).*/{ s//\1/; q; }
7760 s/.*/./; q'`
7761 { if $as_mkdir_p; then
7762 mkdir -p "$ac_dir"
7763 else
7764 as_dir="$ac_dir"
7765 as_dirs=
7766 while test ! -d "$as_dir"; do
7767 as_dirs="$as_dir $as_dirs"
7768 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7770 X"$as_dir" : 'X\(//\)[^/]' \| \
7771 X"$as_dir" : 'X\(//\)$' \| \
7772 X"$as_dir" : 'X\(/\)' \| \
7773 . : '\(.\)' 2>/dev/null ||
7774 echo X"$as_dir" |
7775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7777 /^X\(\/\/\)$/{ s//\1/; q; }
7778 /^X\(\/\).*/{ s//\1/; q; }
7779 s/.*/./; q'`
7780 done
7781 test ! -n "$as_dirs" || mkdir $as_dirs
7782 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7783 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7784 { (exit 1); exit 1; }; }; }
7786 rm -f $ac_file
7787 mv $tmp/config.h $ac_file
7789 else
7790 cat $tmp/config.h
7791 rm -f $tmp/config.h
7793 done
7794 _ACEOF
7795 cat >>$CONFIG_STATUS <<\_ACEOF
7798 # CONFIG_COMMANDS section.
7800 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7801 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7802 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7803 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7804 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7805 X"$ac_dest" : 'X\(//\)[^/]' \| \
7806 X"$ac_dest" : 'X\(//\)$' \| \
7807 X"$ac_dest" : 'X\(/\)' \| \
7808 . : '\(.\)' 2>/dev/null ||
7809 echo X"$ac_dest" |
7810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7811 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7812 /^X\(\/\/\)$/{ s//\1/; q; }
7813 /^X\(\/\).*/{ s//\1/; q; }
7814 s/.*/./; q'`
7815 ac_builddir=.
7817 if test "$ac_dir" != .; then
7818 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7819 # A "../" for each directory in $ac_dir_suffix.
7820 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7821 else
7822 ac_dir_suffix= ac_top_builddir=
7825 case $srcdir in
7826 .) # No --srcdir option. We are building in place.
7827 ac_srcdir=.
7828 if test -z "$ac_top_builddir"; then
7829 ac_top_srcdir=.
7830 else
7831 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7832 fi ;;
7833 [\\/]* | ?:[\\/]* ) # Absolute path.
7834 ac_srcdir=$srcdir$ac_dir_suffix;
7835 ac_top_srcdir=$srcdir ;;
7836 *) # Relative path.
7837 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7838 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7839 esac
7840 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7841 # absolute.
7842 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7843 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7844 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7845 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7848 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7849 echo "$as_me: executing $ac_dest commands" >&6;}
7850 case $ac_dest in
7851 default )
7852 case $CONFIG_FILES in *config.make*)
7853 echo "$config_vars" >> config.make;;
7854 esac
7855 test -d bits || mkdir bits ;;
7856 esac
7857 done
7858 _ACEOF
7860 cat >>$CONFIG_STATUS <<\_ACEOF
7862 { (exit 0); exit 0; }
7863 _ACEOF
7864 chmod +x $CONFIG_STATUS
7865 ac_clean_files=$ac_clean_files_save
7868 # configure is writing to config.log, and then calls config.status.
7869 # config.status does its own redirection, appending to config.log.
7870 # Unfortunately, on DOS this fails, as config.log is still kept open
7871 # by configure, so config.status won't be able to write to it; its
7872 # output is simply discarded. So we exec the FD to /dev/null,
7873 # effectively closing config.log, so it can be properly (re)opened and
7874 # appended to by config.status. When coming back to configure, we
7875 # need to make the FD available again.
7876 if test "$no_create" != yes; then
7877 ac_cs_success=:
7878 ac_config_status_args=
7879 test "$silent" = yes &&
7880 ac_config_status_args="$ac_config_status_args --quiet"
7881 exec 5>/dev/null
7882 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7883 exec 5>>config.log
7884 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7885 # would make configure fail if this is the last instruction.
7886 $ac_cs_success || { (exit 1); exit 1; }
7890 # CONFIG_SUBDIRS section.
7892 if test "$no_recursion" != yes; then
7894 # Remove --cache-file and --srcdir arguments so they do not pile up.
7895 ac_sub_configure_args=
7896 ac_prev=
7897 for ac_arg in $ac_configure_args; do
7898 if test -n "$ac_prev"; then
7899 ac_prev=
7900 continue
7902 case $ac_arg in
7903 -cache-file | --cache-file | --cache-fil | --cache-fi \
7904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7905 ac_prev=cache_file ;;
7906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7908 | --c=*)
7910 --config-cache | -C)
7912 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7913 ac_prev=srcdir ;;
7914 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7916 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7917 ac_prev=prefix ;;
7918 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7920 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7921 esac
7922 done
7924 # Always prepend --prefix to ensure using the same prefix
7925 # in subdir configurations.
7926 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7928 ac_popdir=`pwd`
7929 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7931 # Do not complain, so a configure script can configure whichever
7932 # parts of a large source tree are present.
7933 test -d $srcdir/$ac_dir || continue
7935 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7936 echo "$as_me: configuring in $ac_dir" >&6;}
7937 { if $as_mkdir_p; then
7938 mkdir -p "$ac_dir"
7939 else
7940 as_dir="$ac_dir"
7941 as_dirs=
7942 while test ! -d "$as_dir"; do
7943 as_dirs="$as_dir $as_dirs"
7944 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7946 X"$as_dir" : 'X\(//\)[^/]' \| \
7947 X"$as_dir" : 'X\(//\)$' \| \
7948 X"$as_dir" : 'X\(/\)' \| \
7949 . : '\(.\)' 2>/dev/null ||
7950 echo X"$as_dir" |
7951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7953 /^X\(\/\/\)$/{ s//\1/; q; }
7954 /^X\(\/\).*/{ s//\1/; q; }
7955 s/.*/./; q'`
7956 done
7957 test ! -n "$as_dirs" || mkdir $as_dirs
7958 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7959 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7960 { (exit 1); exit 1; }; }; }
7962 ac_builddir=.
7964 if test "$ac_dir" != .; then
7965 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7966 # A "../" for each directory in $ac_dir_suffix.
7967 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7968 else
7969 ac_dir_suffix= ac_top_builddir=
7972 case $srcdir in
7973 .) # No --srcdir option. We are building in place.
7974 ac_srcdir=.
7975 if test -z "$ac_top_builddir"; then
7976 ac_top_srcdir=.
7977 else
7978 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7979 fi ;;
7980 [\\/]* | ?:[\\/]* ) # Absolute path.
7981 ac_srcdir=$srcdir$ac_dir_suffix;
7982 ac_top_srcdir=$srcdir ;;
7983 *) # Relative path.
7984 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7985 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7986 esac
7987 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7988 # absolute.
7989 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7990 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7991 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7992 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7995 cd $ac_dir
7997 # Check for guested configure; otherwise get Cygnus style configure.
7998 if test -f $ac_srcdir/configure.gnu; then
7999 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8000 elif test -f $ac_srcdir/configure; then
8001 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8002 elif test -f $ac_srcdir/configure.in; then
8003 ac_sub_configure=$ac_configure
8004 else
8005 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8006 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8007 ac_sub_configure=
8010 # The recursion is here.
8011 if test -n "$ac_sub_configure"; then
8012 # Make the cache file name correct relative to the subdirectory.
8013 case $cache_file in
8014 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8015 *) # Relative path.
8016 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8017 esac
8019 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8020 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8021 # The eval makes quoting arguments work.
8022 eval $ac_sub_configure $ac_sub_configure_args \
8023 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8024 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8025 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8026 { (exit 1); exit 1; }; }
8029 cd $ac_popdir
8030 done