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