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