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