2007-05-22 H.J. Lu <hongjiu.lu@intel.com>
[official-gcc.git] / libiberty / configure
blob56d039ea0c20a4bd19c4f1cc54d2383fd1093017
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="xmalloc.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST datarootdir docdir htmldir LTLIBOBJS'
313 ac_subst_files='host_makefile_frag'
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
840 if test -n "$ac_init_help"; then
842 cat <<\_ACEOF
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-maintainer-mode
848 enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
850 --enable-install-libiberty Install headers for end users
852 Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
856 --with-build-subdir=SUBDIR Configuring in a subdirectory for build
857 --with-cross-host=HOST Configuring with a cross compiler
858 --with-newlib Configuring with newlib
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
872 _ACEOF
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
908 case `pwd` in
909 .) ac_abs_builddir="$ac_dir";;
911 case "$ac_dir" in
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
929 case $ac_srcdir in
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942 esac;;
943 esac
945 cd $ac_dir
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
948 echo
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
951 echo
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
955 echo
956 $ac_configure --help
957 else
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960 cd $ac_popdir
961 done
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
966 cat <<\_ACEOF
968 Copyright (C) 2003 Free Software Foundation, Inc.
969 This configure script is free software; the Free Software Foundation
970 gives unlimited permission to copy, distribute and modify it.
971 _ACEOF
972 exit 0
974 exec 5>config.log
975 cat >&5 <<_ACEOF
976 This file contains any messages produced by compilers while
977 running configure, to aid debugging if configure makes a mistake.
979 It was created by $as_me, which was
980 generated by GNU Autoconf 2.59. Invocation command line was
982 $ $0 $@
984 _ACEOF
986 cat <<_ASUNAME
987 ## --------- ##
988 ## Platform. ##
989 ## --------- ##
991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1003 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1008 _ASUNAME
1010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1011 for as_dir in $PATH
1013 IFS=$as_save_IFS
1014 test -z "$as_dir" && as_dir=.
1015 echo "PATH: $as_dir"
1016 done
1018 } >&5
1020 cat >&5 <<_ACEOF
1023 ## ----------- ##
1024 ## Core tests. ##
1025 ## ----------- ##
1027 _ACEOF
1030 # Keep a trace of the command line.
1031 # Strip out --no-create and --no-recursion so they do not pile up.
1032 # Strip out --silent because we don't want to record it for future runs.
1033 # Also quote any args containing shell meta-characters.
1034 # Make two passes to allow for proper duplicate-argument suppression.
1035 ac_configure_args=
1036 ac_configure_args0=
1037 ac_configure_args1=
1038 ac_sep=
1039 ac_must_keep_next=false
1040 for ac_pass in 1 2
1042 for ac_arg
1044 case $ac_arg in
1045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 continue ;;
1049 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051 esac
1052 case $ac_pass in
1053 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1056 if test $ac_must_keep_next = true; then
1057 ac_must_keep_next=false # Got value, back to normal.
1058 else
1059 case $ac_arg in
1060 *=* | --config-cache | -C | -disable-* | --disable-* \
1061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1063 | -with-* | --with-* | -without-* | --without-* | --x)
1064 case "$ac_configure_args0 " in
1065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066 esac
1068 -* ) ac_must_keep_next=true ;;
1069 esac
1071 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1072 # Get rid of the leading space.
1073 ac_sep=" "
1075 esac
1076 done
1077 done
1078 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1079 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081 # When interrupted or exit'd, cleanup temporary files, and complete
1082 # config.log. We remove comments because anyway the quotes in there
1083 # would cause problems or look ugly.
1084 # WARNING: Be sure not to use single quotes in there, as some shells,
1085 # such as our DU 5.0 friend, will then `close' the trap.
1086 trap 'exit_status=$?
1087 # Save into config.log some information that might help in debugging.
1089 echo
1091 cat <<\_ASBOX
1092 ## ---------------- ##
1093 ## Cache variables. ##
1094 ## ---------------- ##
1095 _ASBOX
1096 echo
1097 # The following way of writing the cache mishandles newlines in values,
1099 (set) 2>&1 |
1100 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101 *ac_space=\ *)
1102 sed -n \
1103 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107 sed -n \
1108 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1110 esac;
1112 echo
1114 cat <<\_ASBOX
1115 ## ----------------- ##
1116 ## Output variables. ##
1117 ## ----------------- ##
1118 _ASBOX
1119 echo
1120 for ac_var in $ac_subst_vars
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1124 done | sort
1125 echo
1127 if test -n "$ac_subst_files"; then
1128 cat <<\_ASBOX
1129 ## ------------- ##
1130 ## Output files. ##
1131 ## ------------- ##
1132 _ASBOX
1133 echo
1134 for ac_var in $ac_subst_files
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1142 if test -s confdefs.h; then
1143 cat <<\_ASBOX
1144 ## ----------- ##
1145 ## confdefs.h. ##
1146 ## ----------- ##
1147 _ASBOX
1148 echo
1149 sed "/^$/d" confdefs.h | sort
1150 echo
1152 test "$ac_signal" != 0 &&
1153 echo "$as_me: caught signal $ac_signal"
1154 echo "$as_me: exit $exit_status"
1155 } >&5
1156 rm -f core *.core &&
1157 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1158 exit $exit_status
1160 for ac_signal in 1 2 13 15; do
1161 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1162 done
1163 ac_signal=0
1165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1166 rm -rf conftest* confdefs.h
1167 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168 echo >confdefs.h
1170 # Predefined preprocessor variables.
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_NAME "$PACKAGE_NAME"
1174 _ACEOF
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1179 _ACEOF
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1184 _ACEOF
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_STRING "$PACKAGE_STRING"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1194 _ACEOF
1197 # Let the site file select an alternate cache file if it wants to.
1198 # Prefer explicitly selected file to automatically selected ones.
1199 if test -z "$CONFIG_SITE"; then
1200 if test "x$prefix" != xNONE; then
1201 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1202 else
1203 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206 for ac_site_file in $CONFIG_SITE; do
1207 if test -r "$ac_site_file"; then
1208 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1209 echo "$as_me: loading site script $ac_site_file" >&6;}
1210 sed 's/^/| /' "$ac_site_file" >&5
1211 . "$ac_site_file"
1213 done
1215 if test -r "$cache_file"; then
1216 # Some versions of bash will fail to source /dev/null (special
1217 # files actually), so we avoid doing that.
1218 if test -f "$cache_file"; then
1219 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1220 echo "$as_me: loading cache $cache_file" >&6;}
1221 case $cache_file in
1222 [\\/]* | ?:[\\/]* ) . $cache_file;;
1223 *) . ./$cache_file;;
1224 esac
1226 else
1227 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1228 echo "$as_me: creating cache $cache_file" >&6;}
1229 >$cache_file
1232 # Check that the precious variables saved in the cache have kept the same
1233 # value.
1234 ac_cache_corrupted=false
1235 for ac_var in `(set) 2>&1 |
1236 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1238 eval ac_new_set=\$ac_env_${ac_var}_set
1239 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1240 eval ac_new_val="\$ac_env_${ac_var}_value"
1241 case $ac_old_set,$ac_new_set in
1242 set,)
1243 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1245 ac_cache_corrupted=: ;;
1246 ,set)
1247 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1249 ac_cache_corrupted=: ;;
1250 ,);;
1252 if test "x$ac_old_val" != "x$ac_new_val"; then
1253 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1254 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1255 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1256 echo "$as_me: former value: $ac_old_val" >&2;}
1257 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1258 echo "$as_me: current value: $ac_new_val" >&2;}
1259 ac_cache_corrupted=:
1260 fi;;
1261 esac
1262 # Pass precious variables to config.status.
1263 if test "$ac_new_set" = set; then
1264 case $ac_new_val in
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 *) ac_arg=$ac_var=$ac_new_val ;;
1268 esac
1269 case " $ac_configure_args " in
1270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1271 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1272 esac
1274 done
1275 if $ac_cache_corrupted; then
1276 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1277 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1278 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1279 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1280 { (exit 1); exit 1; }; }
1283 ac_ext=c
1284 ac_cpp='$CPP $CPPFLAGS'
1285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 # This works around the fact that libtool configuration may change LD
1310 # for this particular configuration, but some shells, instead of
1311 # keeping the changes in LD private, export them just because LD is
1312 # exported. We don't use libtool yet, but some day we might, so...
1313 ORIGINAL_LD_FOR_MULTILIBS=$LD
1316 # Check whether --with-target-subdir or --without-target-subdir was given.
1317 if test "${with_target_subdir+set}" = set; then
1318 withval="$with_target_subdir"
1322 # Check whether --with-build-subdir or --without-build-subdir was given.
1323 if test "${with_build_subdir+set}" = set; then
1324 withval="$with_build_subdir"
1328 # Check whether --with-cross-host or --without-cross-host was given.
1329 if test "${with_cross_host+set}" = set; then
1330 withval="$with_cross_host"
1334 # Check whether --with-newlib or --without-newlib was given.
1335 if test "${with_newlib+set}" = set; then
1336 withval="$with_newlib"
1340 if test "${srcdir}" = "."; then
1341 if test -n "${with_build_subdir}"; then
1342 libiberty_topdir="${srcdir}/../.."
1343 with_target_subdir=
1344 elif test -z "${with_target_subdir}"; then
1345 libiberty_topdir="${srcdir}/.."
1346 else
1347 if test "${with_target_subdir}" != "."; then
1348 libiberty_topdir="${srcdir}/${with_multisrctop}../.."
1349 else
1350 libiberty_topdir="${srcdir}/${with_multisrctop}.."
1353 else
1354 libiberty_topdir="${srcdir}/.."
1357 ac_aux_dir=
1358 for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
1359 if test -f $ac_dir/install-sh; then
1360 ac_aux_dir=$ac_dir
1361 ac_install_sh="$ac_aux_dir/install-sh -c"
1362 break
1363 elif test -f $ac_dir/install.sh; then
1364 ac_aux_dir=$ac_dir
1365 ac_install_sh="$ac_aux_dir/install.sh -c"
1366 break
1367 elif test -f $ac_dir/shtool; then
1368 ac_aux_dir=$ac_dir
1369 ac_install_sh="$ac_aux_dir/shtool install -c"
1370 break
1372 done
1373 if test -z "$ac_aux_dir"; then
1374 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1375 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1376 { (exit 1); exit 1; }; }
1378 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1379 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1380 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1384 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1385 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1386 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1387 if test "${enable_maintainer_mode+set}" = set; then
1388 enableval="$enable_maintainer_mode"
1389 maintainer_mode=$enableval
1390 else
1391 maintainer_mode=no
1394 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1395 echo "${ECHO_T}$maintainer_mode" >&6
1397 if test "$maintainer_mode" = "yes"; then
1398 MAINT=''
1399 NOTMAINT='#'
1400 else
1401 MAINT='#'
1402 NOTMAINT=''
1405 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1406 # rely on it - libiberty is built before texinfo.
1407 # Extract the first word of "makeinfo", so it can be a program name with args.
1408 set dummy makeinfo; ac_word=$2
1409 echo "$as_me:$LINENO: checking for $ac_word" >&5
1410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 else
1414 if test -n "$MAKEINFO"; then
1415 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1416 else
1417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418 for as_dir in $PATH
1420 IFS=$as_save_IFS
1421 test -z "$as_dir" && as_dir=.
1422 for ac_exec_ext in '' $ac_executable_extensions; do
1423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1424 ac_cv_prog_MAKEINFO="makeinfo"
1425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1426 break 2
1428 done
1429 done
1433 MAKEINFO=$ac_cv_prog_MAKEINFO
1434 if test -n "$MAKEINFO"; then
1435 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1436 echo "${ECHO_T}$MAKEINFO" >&6
1437 else
1438 echo "$as_me:$LINENO: result: no" >&5
1439 echo "${ECHO_T}no" >&6
1442 if test "x$MAKEINFO" = "x"; then
1443 MAKEINFO="@echo makeinfo missing; true"
1444 BUILD_INFO=
1445 else
1446 BUILD_INFO=info
1447 case "$MAKEINFO" in
1448 */missing\ makeinfo*)
1449 BUILD_INFO=
1450 { echo "$as_me:$LINENO: WARNING:
1451 *** Makeinfo is missing. Info documentation will not be built." >&5
1452 echo "$as_me: WARNING:
1453 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1456 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1457 x*\ [1-3].* )
1458 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1459 BUILD_INFO=
1460 { echo "$as_me:$LINENO: WARNING:
1461 *** Makeinfo is too old. Info documentation will not be built." >&5
1462 echo "$as_me: WARNING:
1463 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1465 esac
1467 esac
1472 # Extract the first word of "perl", so it can be a program name with args.
1473 set dummy perl; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_PERL+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 if test -n "$PERL"; then
1480 ac_cv_prog_PERL="$PERL" # Let the user override the test.
1481 else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_PERL="perl"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 break 2
1493 done
1494 done
1498 PERL=$ac_cv_prog_PERL
1499 if test -n "$PERL"; then
1500 echo "$as_me:$LINENO: result: $PERL" >&5
1501 echo "${ECHO_T}$PERL" >&6
1502 else
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1507 if test x"$PERL" = x""; then
1508 HAVE_PERL='#'
1509 else
1510 HAVE_PERL=''
1514 # Make sure we can run config.sub.
1515 $ac_config_sub sun4 >/dev/null 2>&1 ||
1516 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1517 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1518 { (exit 1); exit 1; }; }
1520 echo "$as_me:$LINENO: checking build system type" >&5
1521 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1522 if test "${ac_cv_build+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 ac_cv_build_alias=$build_alias
1526 test -z "$ac_cv_build_alias" &&
1527 ac_cv_build_alias=`$ac_config_guess`
1528 test -z "$ac_cv_build_alias" &&
1529 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1530 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1531 { (exit 1); exit 1; }; }
1532 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1539 echo "${ECHO_T}$ac_cv_build" >&6
1540 build=$ac_cv_build
1541 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 echo "$as_me:$LINENO: checking host system type" >&5
1547 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1548 if test "${ac_cv_host+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 ac_cv_host_alias=$host_alias
1552 test -z "$ac_cv_host_alias" &&
1553 ac_cv_host_alias=$ac_cv_build_alias
1554 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1555 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1556 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1560 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1561 echo "${ECHO_T}$ac_cv_host" >&6
1562 host=$ac_cv_host
1563 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570 if test -n "$ac_tool_prefix"; then
1571 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1572 set dummy ${ac_tool_prefix}ar; ac_word=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_AR+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578 if test -n "$AR"; then
1579 ac_cv_prog_AR="$AR" # Let the user override the test.
1580 else
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
1586 for ac_exec_ext in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_AR="${ac_tool_prefix}ar"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 break 2
1592 done
1593 done
1597 AR=$ac_cv_prog_AR
1598 if test -n "$AR"; then
1599 echo "$as_me:$LINENO: result: $AR" >&5
1600 echo "${ECHO_T}$AR" >&6
1601 else
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1607 if test -z "$ac_cv_prog_AR"; then
1608 ac_ct_AR=$AR
1609 # Extract the first word of "ar", so it can be a program name with args.
1610 set dummy ar; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616 if test -n "$ac_ct_AR"; then
1617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_ac_ct_AR="ar"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628 break 2
1630 done
1631 done
1635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1636 if test -n "$ac_ct_AR"; then
1637 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1638 echo "${ECHO_T}$ac_ct_AR" >&6
1639 else
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1644 AR=$ac_ct_AR
1645 else
1646 AR="$ac_cv_prog_AR"
1649 if test -n "$ac_tool_prefix"; then
1650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_RANLIB+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657 if test -n "$RANLIB"; then
1658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1659 else
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1663 IFS=$as_save_IFS
1664 test -z "$as_dir" && as_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 break 2
1671 done
1672 done
1676 RANLIB=$ac_cv_prog_RANLIB
1677 if test -n "$RANLIB"; then
1678 echo "$as_me:$LINENO: result: $RANLIB" >&5
1679 echo "${ECHO_T}$RANLIB" >&6
1680 else
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$ac_cv_prog_RANLIB"; then
1687 ac_ct_RANLIB=$RANLIB
1688 # Extract the first word of "ranlib", so it can be a program name with args.
1689 set dummy ranlib; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695 if test -n "$ac_ct_RANLIB"; then
1696 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_RANLIB="ranlib"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1709 done
1710 done
1712 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1715 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1716 if test -n "$ac_ct_RANLIB"; then
1717 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1718 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1724 RANLIB=$ac_ct_RANLIB
1725 else
1726 RANLIB="$ac_cv_prog_RANLIB"
1731 ac_ext=c
1732 ac_cpp='$CPP $CPPFLAGS'
1733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1736 if test -n "$ac_tool_prefix"; then
1737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744 if test -n "$CC"; then
1745 ac_cv_prog_CC="$CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1750 IFS=$as_save_IFS
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 break 2
1758 done
1759 done
1763 CC=$ac_cv_prog_CC
1764 if test -n "$CC"; then
1765 echo "$as_me:$LINENO: result: $CC" >&5
1766 echo "${ECHO_T}$CC" >&6
1767 else
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1773 if test -z "$ac_cv_prog_CC"; then
1774 ac_ct_CC=$CC
1775 # Extract the first word of "gcc", so it can be a program name with args.
1776 set dummy gcc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="gcc"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 break 2
1796 done
1797 done
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1810 CC=$ac_ct_CC
1811 else
1812 CC="$ac_cv_prog_CC"
1815 if test -z "$CC"; then
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1818 set dummy ${ac_tool_prefix}cc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 else
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="${ac_tool_prefix}cc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1838 done
1839 done
1843 CC=$ac_cv_prog_CC
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1847 else
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$ac_cv_prog_CC"; then
1854 ac_ct_CC=$CC
1855 # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 else
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC="cc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 break 2
1876 done
1877 done
1881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1885 else
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1890 CC=$ac_ct_CC
1891 else
1892 CC="$ac_cv_prog_CC"
1896 if test -z "$CC"; then
1897 # Extract the first word of "cc", so it can be a program name with args.
1898 set dummy cc; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1906 else
1907 ac_prog_rejected=no
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1911 IFS=$as_save_IFS
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1916 ac_prog_rejected=yes
1917 continue
1919 ac_cv_prog_CC="cc"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1923 done
1924 done
1926 if test $ac_prog_rejected = yes; then
1927 # We found a bogon in the path, so make sure we never use it.
1928 set dummy $ac_cv_prog_CC
1929 shift
1930 if test $# != 0; then
1931 # We chose a different compiler from the bogus one.
1932 # However, it has the same basename, so the bogon will be chosen
1933 # first if we set CC to just the basename; use the full file name.
1934 shift
1935 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1944 else
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1950 if test -z "$CC"; then
1951 if test -n "$ac_tool_prefix"; then
1952 for ac_prog in cl
1954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1975 done
1976 done
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1984 else
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 test -n "$CC" && break
1990 done
1992 if test -z "$CC"; then
1993 ac_ct_CC=$CC
1994 for ac_prog in cl
1996 # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$ac_ct_CC"; then
2004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_ac_ct_CC="$ac_prog"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 break 2
2017 done
2018 done
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6
2026 else
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2031 test -n "$ac_ct_CC" && break
2032 done
2034 CC=$ac_ct_CC
2040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&5
2042 echo "$as_me: error: no acceptable C compiler found in \$PATH
2043 See \`config.log' for more details." >&2;}
2044 { (exit 1); exit 1; }; }
2046 # Provide some information about the compiler.
2047 echo "$as_me:$LINENO:" \
2048 "checking for C compiler version" >&5
2049 ac_compiler=`set X $ac_compile; echo $2`
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2051 (eval $ac_compiler --version </dev/null >&5) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2056 (eval $ac_compiler -v </dev/null >&5) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }
2060 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2061 (eval $ac_compiler -V </dev/null >&5) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }
2066 cat >conftest.$ac_ext <<_ACEOF
2067 /* confdefs.h. */
2068 _ACEOF
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2074 main ()
2078 return 0;
2080 _ACEOF
2081 # FIXME: Cleanup?
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2083 (eval $ac_link) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2087 gcc_no_link=no
2088 else
2089 gcc_no_link=yes
2092 if test x$gcc_no_link = xyes; then
2093 # Setting cross_compile will disable run tests; it will
2094 # also disable AC_CHECK_FILE but that's generally
2095 # correct if we can't link.
2096 cross_compiling=yes
2097 EXEEXT=
2098 else
2099 cat >conftest.$ac_ext <<_ACEOF
2100 /* confdefs.h. */
2101 _ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2107 main ()
2111 return 0;
2113 _ACEOF
2114 ac_clean_files_save=$ac_clean_files
2115 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2116 # Try to create an executable without -o first, disregard a.out.
2117 # It will help us diagnose broken compilers, and finding out an intuition
2118 # of exeext.
2119 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2120 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2121 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2122 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2123 (eval $ac_link_default) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; then
2127 # Find the output, starting from the most likely. This scheme is
2128 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2129 # resort.
2131 # Be careful to initialize this variable, since it used to be cached.
2132 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2133 ac_cv_exeext=
2134 # b.out is created by i960 compilers.
2135 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2137 test -f "$ac_file" || continue
2138 case $ac_file in
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2141 conftest.$ac_ext )
2142 # This is the source file.
2144 [ab].out )
2145 # We found the default executable, but exeext='' is most
2146 # certainly right.
2147 break;;
2148 *.* )
2149 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 # FIXME: I believe we export ac_cv_exeext for Libtool,
2151 # but it would be cool to find out if it's true. Does anybody
2152 # maintain Libtool? --akim.
2153 export ac_cv_exeext
2154 break;;
2156 break;;
2157 esac
2158 done
2159 else
2160 echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2163 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: C compiler cannot create executables
2166 See \`config.log' for more details." >&2;}
2167 { (exit 77); exit 77; }; }
2170 ac_exeext=$ac_cv_exeext
2171 echo "$as_me:$LINENO: result: $ac_file" >&5
2172 echo "${ECHO_T}$ac_file" >&6
2174 # Check the compiler produces executables we can run. If not, either
2175 # the compiler is broken, or we cross compile.
2176 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2177 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2178 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2179 # If not cross compiling, check that we can run a simple program.
2180 if test "$cross_compiling" != yes; then
2181 if { ac_try='./$ac_file'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 cross_compiling=no
2188 else
2189 if test "$cross_compiling" = maybe; then
2190 cross_compiling=yes
2191 else
2192 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2193 If you meant to cross compile, use \`--host'.
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: cannot run C compiled programs.
2196 If you meant to cross compile, use \`--host'.
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2202 echo "$as_me:$LINENO: result: yes" >&5
2203 echo "${ECHO_T}yes" >&6
2205 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2206 ac_clean_files=$ac_clean_files_save
2207 # Check the compiler produces executables we can run. If not, either
2208 # the compiler is broken, or we cross compile.
2209 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2210 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2211 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2212 echo "${ECHO_T}$cross_compiling" >&6
2214 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2215 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2217 (eval $ac_link) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2222 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2223 # work properly (i.e., refer to `conftest.exe'), while it won't with
2224 # `rm'.
2225 for ac_file in conftest.exe conftest conftest.*; do
2226 test -f "$ac_file" || continue
2227 case $ac_file in
2228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2229 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2230 export ac_cv_exeext
2231 break;;
2232 * ) break;;
2233 esac
2234 done
2235 else
2236 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2243 rm -f conftest$ac_cv_exeext
2244 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2245 echo "${ECHO_T}$ac_cv_exeext" >&6
2247 rm -f conftest.$ac_ext
2248 EXEEXT=$ac_cv_exeext
2249 ac_exeext=$EXEEXT
2251 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2252 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2253 if test "${ac_cv_objext+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2264 main ()
2268 return 0;
2270 _ACEOF
2271 rm -f conftest.o conftest.obj
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2278 case $ac_file in
2279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2280 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2281 break;;
2282 esac
2283 done
2284 else
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2297 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2298 echo "${ECHO_T}$ac_cv_objext" >&6
2299 OBJEXT=$ac_cv_objext
2300 ac_objext=$OBJEXT
2301 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2302 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2303 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306 cat >conftest.$ac_ext <<_ACEOF
2307 /* confdefs.h. */
2308 _ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2314 main ()
2316 #ifndef __GNUC__
2317 choke me
2318 #endif
2321 return 0;
2323 _ACEOF
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>conftest.er1
2327 ac_status=$?
2328 grep -v '^ *+' conftest.er1 >conftest.err
2329 rm -f conftest.er1
2330 cat conftest.err >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try='test -z "$ac_c_werror_flag"
2334 || test ! -s conftest.err'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 (eval $ac_try) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 ac_compiler_gnu=yes
2347 else
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2351 ac_compiler_gnu=no
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2357 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2358 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2359 GCC=`test $ac_compiler_gnu = yes && echo yes`
2360 ac_test_CFLAGS=${CFLAGS+set}
2361 ac_save_CFLAGS=$CFLAGS
2362 CFLAGS="-g"
2363 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2364 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2365 if test "${ac_cv_prog_cc_g+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h. */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2376 main ()
2380 return 0;
2382 _ACEOF
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag"
2393 || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 ac_cv_prog_cc_g=yes
2406 else
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2410 ac_cv_prog_cc_g=no
2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2415 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2416 if test "$ac_test_CFLAGS" = set; then
2417 CFLAGS=$ac_save_CFLAGS
2418 elif test $ac_cv_prog_cc_g = yes; then
2419 if test "$GCC" = yes; then
2420 CFLAGS="-g -O2"
2421 else
2422 CFLAGS="-g"
2424 else
2425 if test "$GCC" = yes; then
2426 CFLAGS="-O2"
2427 else
2428 CFLAGS=
2431 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2432 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2433 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 ac_cv_prog_cc_stdc=no
2437 ac_save_CC=$CC
2438 cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h. */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2444 #include <stdarg.h>
2445 #include <stdio.h>
2446 #include <sys/types.h>
2447 #include <sys/stat.h>
2448 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2449 struct buf { int x; };
2450 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2451 static char *e (p, i)
2452 char **p;
2453 int i;
2455 return p[i];
2457 static char *f (char * (*g) (char **, int), char **p, ...)
2459 char *s;
2460 va_list v;
2461 va_start (v,p);
2462 s = g (p, va_arg (v,int));
2463 va_end (v);
2464 return s;
2467 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2468 function prototypes and stuff, but not '\xHH' hex character constants.
2469 These don't provoke an error unfortunately, instead are silently treated
2470 as 'x'. The following induces an error, until -std1 is added to get
2471 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2472 array size at least. It's necessary to write '\x00'==0 to get something
2473 that's true only with -std1. */
2474 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2476 int test (int i, double x);
2477 struct s1 {int (*f) (int a);};
2478 struct s2 {int (*f) (double a);};
2479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2480 int argc;
2481 char **argv;
2483 main ()
2485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2487 return 0;
2489 _ACEOF
2490 # Don't try gcc -ansi; that turns off useful extensions and
2491 # breaks some systems' header files.
2492 # AIX -qlanglvl=ansi
2493 # Ultrix and OSF/1 -std1
2494 # HP-UX 10.20 and later -Ae
2495 # HP-UX older versions -Aa -D_HPUX_SOURCE
2496 # SVR4 -Xc -D__EXTENSIONS__
2497 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2499 CC="$ac_save_CC $ac_arg"
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 ac_cv_prog_cc_stdc=$ac_arg
2523 break
2524 else
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2529 rm -f conftest.err conftest.$ac_objext
2530 done
2531 rm -f conftest.$ac_ext conftest.$ac_objext
2532 CC=$ac_save_CC
2536 case "x$ac_cv_prog_cc_stdc" in
2537 x|xno)
2538 echo "$as_me:$LINENO: result: none needed" >&5
2539 echo "${ECHO_T}none needed" >&6 ;;
2541 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2542 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2543 CC="$CC $ac_cv_prog_cc_stdc" ;;
2544 esac
2546 # Some people use a C++ compiler to compile C. Since we use `exit',
2547 # in C++ we need to declare it. In case someone uses the same compiler
2548 # for both compiling C and C++ we need to have the C++ compiler decide
2549 # the declaration of exit, since it's the most demanding environment.
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #ifndef __cplusplus
2552 choke me
2553 #endif
2554 _ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2558 ac_status=$?
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 for ac_declaration in \
2578 '' \
2579 'extern "C" void std::exit (int) throw (); using std::exit;' \
2580 'extern "C" void std::exit (int); using std::exit;' \
2581 'extern "C" void exit (int) throw ();' \
2582 'extern "C" void exit (int);' \
2583 'void exit (int);'
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h. */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2591 $ac_declaration
2592 #include <stdlib.h>
2594 main ()
2596 exit (42);
2598 return 0;
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2624 else
2625 echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2628 continue
2630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2631 cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h. */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2637 $ac_declaration
2639 main ()
2641 exit (42);
2643 return 0;
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 break
2669 else
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 done
2676 rm -f conftest*
2677 if test -n "$ac_declaration"; then
2678 echo '#ifdef __cplusplus' >>confdefs.h
2679 echo $ac_declaration >>confdefs.h
2680 echo '#endif' >>confdefs.h
2683 else
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 ac_ext=c
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2701 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2702 # On Suns, sometimes $CPP names a directory.
2703 if test -n "$CPP" && test -d "$CPP"; then
2704 CPP=
2706 if test -z "$CPP"; then
2707 if test "${ac_cv_prog_CPP+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 # Double quotes because CPP needs to be expanded
2711 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2713 ac_preproc_ok=false
2714 for ac_c_preproc_warn_flag in '' yes
2716 # Use a header file that comes with gcc, so configuring glibc
2717 # with a fresh cross-compiler works.
2718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2719 # <limits.h> exists even on freestanding compilers.
2720 # On the NeXT, cc -E runs the code through the compiler's parser,
2721 # not just through cpp. "Syntax error" is here to catch this case.
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728 #ifdef __STDC__
2729 # include <limits.h>
2730 #else
2731 # include <assert.h>
2732 #endif
2733 Syntax error
2734 _ACEOF
2735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } >/dev/null; then
2743 if test -s conftest.err; then
2744 ac_cpp_err=$ac_c_preproc_warn_flag
2745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2746 else
2747 ac_cpp_err=
2749 else
2750 ac_cpp_err=yes
2752 if test -z "$ac_cpp_err"; then
2754 else
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2758 # Broken: fails on valid input.
2759 continue
2761 rm -f conftest.err conftest.$ac_ext
2763 # OK, works on sane cases. Now check whether non-existent headers
2764 # can be detected and how.
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2771 #include <ac_nonexistent.h>
2772 _ACEOF
2773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2775 ac_status=$?
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } >/dev/null; then
2781 if test -s conftest.err; then
2782 ac_cpp_err=$ac_c_preproc_warn_flag
2783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2784 else
2785 ac_cpp_err=
2787 else
2788 ac_cpp_err=yes
2790 if test -z "$ac_cpp_err"; then
2791 # Broken: success on invalid input.
2792 continue
2793 else
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 # Passes both tests.
2798 ac_preproc_ok=:
2799 break
2801 rm -f conftest.err conftest.$ac_ext
2803 done
2804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2805 rm -f conftest.err conftest.$ac_ext
2806 if $ac_preproc_ok; then
2807 break
2810 done
2811 ac_cv_prog_CPP=$CPP
2814 CPP=$ac_cv_prog_CPP
2815 else
2816 ac_cv_prog_CPP=$CPP
2818 echo "$as_me:$LINENO: result: $CPP" >&5
2819 echo "${ECHO_T}$CPP" >&6
2820 ac_preproc_ok=false
2821 for ac_c_preproc_warn_flag in '' yes
2823 # Use a header file that comes with gcc, so configuring glibc
2824 # with a fresh cross-compiler works.
2825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2826 # <limits.h> exists even on freestanding compilers.
2827 # On the NeXT, cc -E runs the code through the compiler's parser,
2828 # not just through cpp. "Syntax error" is here to catch this case.
2829 cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h. */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2835 #ifdef __STDC__
2836 # include <limits.h>
2837 #else
2838 # include <assert.h>
2839 #endif
2840 Syntax error
2841 _ACEOF
2842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } >/dev/null; then
2850 if test -s conftest.err; then
2851 ac_cpp_err=$ac_c_preproc_warn_flag
2852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2853 else
2854 ac_cpp_err=
2856 else
2857 ac_cpp_err=yes
2859 if test -z "$ac_cpp_err"; then
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 # Broken: fails on valid input.
2866 continue
2868 rm -f conftest.err conftest.$ac_ext
2870 # OK, works on sane cases. Now check whether non-existent headers
2871 # can be detected and how.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878 #include <ac_nonexistent.h>
2879 _ACEOF
2880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2882 ac_status=$?
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } >/dev/null; then
2888 if test -s conftest.err; then
2889 ac_cpp_err=$ac_c_preproc_warn_flag
2890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2891 else
2892 ac_cpp_err=
2894 else
2895 ac_cpp_err=yes
2897 if test -z "$ac_cpp_err"; then
2898 # Broken: success on invalid input.
2899 continue
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2904 # Passes both tests.
2905 ac_preproc_ok=:
2906 break
2908 rm -f conftest.err conftest.$ac_ext
2910 done
2911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2912 rm -f conftest.err conftest.$ac_ext
2913 if $ac_preproc_ok; then
2915 else
2916 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2919 See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 ac_c_preproc_warn_flag=yes
2932 # Warn C++ incompatibilities if supported.
2934 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
2935 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
2936 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939 save_CFLAGS="$CFLAGS"
2940 CFLAGS="-Wc++-compat"
2941 cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h. */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_c_werror_flag"
2959 || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 ac_cv_prog_cc_w_cxx_compat=yes
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 ac_cv_prog_cc_w_cxx_compat=no
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979 CFLAGS="$save_CFLAGS"
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
2983 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
2986 if test x$GCC = xyes; then
2987 ac_libiberty_warn_cflags='-W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes'
2989 if test $ac_cv_prog_cc_w_cxx_compat = yes ; then
2990 ac_libiberty_warn_cflags="${ac_libiberty_warn_cflags} -Wc++-compat"
2994 if test "x$CC" != xcc; then
2995 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2996 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2997 else
2998 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2999 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3001 set dummy $CC; ac_cc=`echo $2 |
3002 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3003 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006 cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h. */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3014 main ()
3018 return 0;
3020 _ACEOF
3021 # Make sure it works both with $CC and with simple cc.
3022 # We do the test twice because some compilers refuse to overwrite an
3023 # existing .o file with -o, though they will create one.
3024 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3025 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 (eval $ac_try) 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); };
3035 then
3036 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3037 if test "x$CC" != xcc; then
3038 # Test first that cc exists at all.
3039 if { ac_try='cc -c conftest.$ac_ext >&5'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3046 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 (eval $ac_try) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); };
3056 then
3057 # cc works too.
3059 else
3060 # cc exists but doesn't like -o.
3061 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3065 else
3066 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3068 rm -f conftest*
3071 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3072 echo "$as_me:$LINENO: result: yes" >&5
3073 echo "${ECHO_T}yes" >&6
3074 else
3075 echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6
3078 cat >>confdefs.h <<\_ACEOF
3079 #define NO_MINUS_C_MINUS_O 1
3080 _ACEOF
3084 # autoconf is lame and doesn't give us any substitution variable for this.
3085 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3086 NO_MINUS_C_MINUS_O=yes
3087 else
3088 OUTPUT_OPTION='-o $@'
3093 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3094 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3095 if test "${ac_cv_c_const+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098 cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3106 main ()
3108 /* FIXME: Include the comments suggested by Paul. */
3109 #ifndef __cplusplus
3110 /* Ultrix mips cc rejects this. */
3111 typedef int charset[2];
3112 const charset x;
3113 /* SunOS 4.1.1 cc rejects this. */
3114 char const *const *ccp;
3115 char **p;
3116 /* NEC SVR4.0.2 mips cc rejects this. */
3117 struct point {int x, y;};
3118 static struct point const zero = {0,0};
3119 /* AIX XL C 1.02.0.0 rejects this.
3120 It does not let you subtract one const X* pointer from another in
3121 an arm of an if-expression whose if-part is not a constant
3122 expression */
3123 const char *g = "string";
3124 ccp = &g + (g ? g-g : 0);
3125 /* HPUX 7.0 cc rejects these. */
3126 ++ccp;
3127 p = (char**) ccp;
3128 ccp = (char const *const *) p;
3129 { /* SCO 3.2v4 cc rejects this. */
3130 char *t;
3131 char const *s = 0 ? (char *) 0 : (char const *) 0;
3133 *t++ = 0;
3135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3136 int x[] = {25, 17};
3137 const int *foo = &x[0];
3138 ++foo;
3140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3141 typedef const int *iptr;
3142 iptr p = 0;
3143 ++p;
3145 { /* AIX XL C 1.02.0.0 rejects this saying
3146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3147 struct s { int j; const int *ap[3]; };
3148 struct s *b; b->j = 5;
3150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3151 const int foo = 10;
3153 #endif
3156 return 0;
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161 (eval $ac_compile) 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -z "$ac_c_werror_flag"
3169 || test ! -s conftest.err'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 (eval $ac_try) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 ac_cv_c_const=yes
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 ac_cv_c_const=no
3188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3190 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3191 echo "${ECHO_T}$ac_cv_c_const" >&6
3192 if test $ac_cv_c_const = no; then
3194 cat >>confdefs.h <<\_ACEOF
3195 #define const
3196 _ACEOF
3200 echo "$as_me:$LINENO: checking for inline" >&5
3201 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3202 if test "${ac_cv_c_inline+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 ac_cv_c_inline=no
3206 for ac_kw in inline __inline__ __inline; do
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3213 #ifndef __cplusplus
3214 typedef int foo_t;
3215 static $ac_kw foo_t static_foo () {return 0; }
3216 $ac_kw foo_t foo () {return 0; }
3217 #endif
3219 _ACEOF
3220 rm -f conftest.$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>conftest.er1
3223 ac_status=$?
3224 grep -v '^ *+' conftest.er1 >conftest.err
3225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -z "$ac_c_werror_flag"
3230 || test ! -s conftest.err'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 (eval $ac_try) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; } &&
3236 { ac_try='test -s conftest.$ac_objext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238 (eval $ac_try) 2>&5
3239 ac_status=$?
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_c_inline=$ac_kw; break
3243 else
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3249 done
3252 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3253 echo "${ECHO_T}$ac_cv_c_inline" >&6
3256 case $ac_cv_c_inline in
3257 inline | yes) ;;
3259 case $ac_cv_c_inline in
3260 no) ac_val=;;
3261 *) ac_val=$ac_cv_c_inline;;
3262 esac
3263 cat >>confdefs.h <<_ACEOF
3264 #ifndef __cplusplus
3265 #define inline $ac_val
3266 #endif
3267 _ACEOF
3269 esac
3271 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3272 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3273 if test "${ac_cv_c_bigendian+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 # See if sys/param.h defines the BYTE_ORDER macro.
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h. */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3283 #include <sys/types.h>
3284 #include <sys/param.h>
3287 main ()
3289 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3290 bogus endian macros
3291 #endif
3294 return 0;
3296 _ACEOF
3297 rm -f conftest.$ac_objext
3298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3299 (eval $ac_compile) 2>conftest.er1
3300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } &&
3306 { ac_try='test -z "$ac_c_werror_flag"
3307 || test ! -s conftest.err'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 (eval $ac_try) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; } &&
3313 { ac_try='test -s conftest.$ac_objext'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 # It does; now see whether it defined to BIG_ENDIAN or not.
3320 cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h. */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3326 #include <sys/types.h>
3327 #include <sys/param.h>
3330 main ()
3332 #if BYTE_ORDER != BIG_ENDIAN
3333 not big endian
3334 #endif
3337 return 0;
3339 _ACEOF
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_c_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_c_bigendian=yes
3363 else
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 ac_cv_c_bigendian=no
3369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 # It does not; compile a test program.
3375 if test "$cross_compiling" = yes; then
3376 # try to guess the endianness by grepping values into an object file
3377 ac_cv_c_bigendian=unknown
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3385 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3386 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3387 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3388 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3389 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3391 main ()
3393 _ascii (); _ebcdic ();
3395 return 0;
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_c_werror_flag"
3408 || test ! -s conftest.err'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 (eval $ac_try) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; } &&
3414 { ac_try='test -s conftest.$ac_objext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3420 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3421 ac_cv_c_bigendian=yes
3423 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3424 if test "$ac_cv_c_bigendian" = unknown; then
3425 ac_cv_c_bigendian=no
3426 else
3427 # finding both strings is unlikely to happen, but who knows?
3428 ac_cv_c_bigendian=unknown
3431 else
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3437 else
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3445 main ()
3447 /* Are we little or big endian? From Harbison&Steele. */
3448 union
3450 long l;
3451 char c[sizeof (long)];
3452 } u;
3453 u.l = 1;
3454 exit (u.c[sizeof (long) - 1] == 1);
3456 _ACEOF
3457 rm -f conftest$ac_exeext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3459 (eval $ac_link) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 ac_cv_c_bigendian=no
3469 else
3470 echo "$as_me: program exited with status $ac_status" >&5
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 ( exit $ac_status )
3475 ac_cv_c_bigendian=yes
3477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3482 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3483 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3484 case $ac_cv_c_bigendian in
3485 yes)
3487 cat >>confdefs.h <<\_ACEOF
3488 #define WORDS_BIGENDIAN 1
3489 _ACEOF
3494 { { echo "$as_me:$LINENO: error: unknown endianness
3495 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3496 echo "$as_me: error: unknown endianness
3497 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3498 { (exit 1); exit 1; }; } ;;
3499 esac
3504 ac_config_headers="$ac_config_headers config.h:config.in"
3508 # Find a good install program. We prefer a C program (faster),
3509 # so one script is as good as another. But avoid the broken or
3510 # incompatible versions:
3511 # SysV /etc/install, /usr/sbin/install
3512 # SunOS /usr/etc/install
3513 # IRIX /sbin/install
3514 # AIX /bin/install
3515 # AmigaOS /C/install, which installs bootblocks on floppy discs
3516 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3517 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3518 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3519 # OS/2's system install, which has a completely different semantic
3520 # ./install, which can be erroneously created by make from ./install.sh.
3521 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3522 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3523 if test -z "$INSTALL"; then
3524 if test "${ac_cv_path_install+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
3532 # Account for people who put trailing slashes in PATH elements.
3533 case $as_dir/ in
3534 ./ | .// | /cC/* | \
3535 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3536 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3537 /usr/ucb/* ) ;;
3539 # OSF1 and SCO ODT 3.0 have their own names for install.
3540 # Don't use installbsd from OSF since it installs stuff as root
3541 # by default.
3542 for ac_prog in ginstall scoinst install; do
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3545 if test $ac_prog = install &&
3546 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3547 # AIX install. It has an incompatible calling convention.
3549 elif test $ac_prog = install &&
3550 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3551 # program-specific install script used by HP pwplus--don't use.
3553 else
3554 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3555 break 3
3558 done
3559 done
3561 esac
3562 done
3566 if test "${ac_cv_path_install+set}" = set; then
3567 INSTALL=$ac_cv_path_install
3568 else
3569 # As a last resort, use the slow shell script. We don't cache a
3570 # path for INSTALL within a source directory, because that will
3571 # break other packages using the cache if that directory is
3572 # removed, or if the path is relative.
3573 INSTALL=$ac_install_sh
3576 echo "$as_me:$LINENO: result: $INSTALL" >&5
3577 echo "${ECHO_T}$INSTALL" >&6
3579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3580 # It thinks the first close brace ends the variable substitution.
3581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3588 # Don't build the shared library for build.
3589 if [ -n "${with_build_subdir}" ]; then
3590 enable_shared=no
3593 frag=
3594 case "${host}" in
3595 rs6000-ibm-aix3.1 | rs6000-ibm-aix)
3596 frag=mh-aix ;;
3597 *-*-cxux7*) frag=mh-cxux7 ;;
3598 *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
3599 *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
3600 i370-*-opened*) frag=mh-openedition ;;
3601 i[34567]86-*-windows*) frag=mh-windows ;;
3602 esac
3604 if [ -n "${frag}" ]; then
3605 frags=${libiberty_topdir}/libiberty/config/$frag
3606 else
3607 frags=
3610 # If they didn't specify --enable-shared, don't generate shared libs.
3611 case "${enable_shared}" in
3612 yes) shared=yes ;;
3613 no) shared=no ;;
3614 "") shared=no ;;
3615 *) shared=yes ;;
3616 esac
3617 if [ "${shared}" = "yes" ]; then
3618 frag=
3619 case "${host}" in
3620 *-*-cygwin*) ;;
3621 alpha*-*-linux*) frag=mh-elfalphapic ;;
3622 arm*-*-*) frag=mh-armpic ;;
3623 hppa*-*-*) frag=mh-papic ;;
3624 i[34567]86-*-* | x86_64-*-*)
3625 frag=mh-x86pic ;;
3626 powerpc*-*-aix*) ;;
3627 powerpc*-*-*) frag=mh-ppcpic ;;
3628 sparc*-*-*) frag=mh-sparcpic ;;
3629 s390*-*-*) frag=mh-s390pic ;;
3630 *) frag=mh-${host_cpu}pic ;;
3631 esac
3632 if [ -n "${frag}" ]; then
3633 frags="${frags} ${libiberty_topdir}/config/${frag}"
3637 echo "# Warning: this fragment is automatically generated" > temp-frag
3639 for frag in ${frags}; do
3640 if [ -f ${frag} ]; then
3641 echo "Appending ${frag} to xhost-mkfrag"
3642 echo "# Following fragment copied from ${frag}" >> temp-frag
3643 cat ${frag} >> temp-frag
3645 done
3647 # record if we want to build shared libs.
3648 if [ "${shared}" = "yes" ]; then
3649 echo enable_shared = yes >> temp-frag
3650 else
3651 echo enable_shared = no >> temp-frag
3654 frag=xhost-mkfrag
3655 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
3657 host_makefile_frag=${frag}
3660 # It's OK to check for header files. Although the compiler may not be
3661 # able to link anything, it had better be able to at least compile
3662 # something.
3688 for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h
3690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3691 echo "$as_me:$LINENO: checking for $ac_header" >&5
3692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 cat >conftest.$ac_ext <<_ACEOF
3697 /* confdefs.h. */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702 #include <$ac_header>
3703 _ACEOF
3704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev/null; then
3712 if test -s conftest.err; then
3713 ac_cpp_err=$ac_c_preproc_warn_flag
3714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3715 else
3716 ac_cpp_err=
3718 else
3719 ac_cpp_err=yes
3721 if test -z "$ac_cpp_err"; then
3722 eval "$as_ac_Header=yes"
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 eval "$as_ac_Header=no"
3729 rm -f conftest.err conftest.$ac_ext
3731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3734 cat >>confdefs.h <<_ACEOF
3735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3736 _ACEOF
3739 done
3741 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3742 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3743 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746 cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h. */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 #include <sys/types.h>
3753 #include <sys/wait.h>
3754 #ifndef WEXITSTATUS
3755 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3756 #endif
3757 #ifndef WIFEXITED
3758 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3759 #endif
3762 main ()
3764 int s;
3765 wait (&s);
3766 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3768 return 0;
3770 _ACEOF
3771 rm -f conftest.$ac_objext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773 (eval $ac_compile) 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } &&
3780 { ac_try='test -z "$ac_c_werror_flag"
3781 || test ! -s conftest.err'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; } &&
3787 { ac_try='test -s conftest.$ac_objext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 ac_cv_header_sys_wait_h=yes
3794 else
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 ac_cv_header_sys_wait_h=no
3800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3802 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3803 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3804 if test $ac_cv_header_sys_wait_h = yes; then
3806 cat >>confdefs.h <<\_ACEOF
3807 #define HAVE_SYS_WAIT_H 1
3808 _ACEOF
3812 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3813 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3814 if test "${ac_cv_header_time+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #include <sys/types.h>
3824 #include <sys/time.h>
3825 #include <time.h>
3828 main ()
3830 if ((struct tm *) 0)
3831 return 0;
3833 return 0;
3835 _ACEOF
3836 rm -f conftest.$ac_objext
3837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3838 (eval $ac_compile) 2>conftest.er1
3839 ac_status=$?
3840 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_c_werror_flag"
3846 || test ! -s conftest.err'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 (eval $ac_try) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; } &&
3852 { ac_try='test -s conftest.$ac_objext'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 (eval $ac_try) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; }; then
3858 ac_cv_header_time=yes
3859 else
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 ac_cv_header_time=no
3865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3867 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3868 echo "${ECHO_T}$ac_cv_header_time" >&6
3869 if test $ac_cv_header_time = yes; then
3871 cat >>confdefs.h <<\_ACEOF
3872 #define TIME_WITH_SYS_TIME 1
3873 _ACEOF
3878 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3879 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3880 if test "${libiberty_cv_declare_errno+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 #include <errno.h>
3891 main ()
3893 int x = errno;
3895 return 0;
3897 _ACEOF
3898 rm -f conftest.$ac_objext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900 (eval $ac_compile) 2>conftest.er1
3901 ac_status=$?
3902 grep -v '^ *+' conftest.er1 >conftest.err
3903 rm -f conftest.er1
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try='test -z "$ac_c_werror_flag"
3908 || test ! -s conftest.err'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; } &&
3914 { ac_try='test -s conftest.$ac_objext'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 libiberty_cv_declare_errno=no
3921 else
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 libiberty_cv_declare_errno=yes
3927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3929 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
3930 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
3931 if test $libiberty_cv_declare_errno = yes
3932 then
3933 cat >>confdefs.h <<\_ACEOF
3934 #define NEED_DECLARATION_ERRNO 1
3935 _ACEOF
3940 # Determine the size of an int for struct fibnode.
3941 echo "$as_me:$LINENO: checking for egrep" >&5
3942 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3943 if test "${ac_cv_prog_egrep+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3947 then ac_cv_prog_egrep='grep -E'
3948 else ac_cv_prog_egrep='egrep'
3951 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3952 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3953 EGREP=$ac_cv_prog_egrep
3956 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3957 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3958 if test "${ac_cv_header_stdc+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h. */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 #include <stdlib.h>
3968 #include <stdarg.h>
3969 #include <string.h>
3970 #include <float.h>
3973 main ()
3977 return 0;
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982 (eval $ac_compile) 2>conftest.er1
3983 ac_status=$?
3984 grep -v '^ *+' conftest.er1 >conftest.err
3985 rm -f conftest.er1
3986 cat conftest.err >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } &&
3989 { ac_try='test -z "$ac_c_werror_flag"
3990 || test ! -s conftest.err'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; } &&
3996 { ac_try='test -s conftest.$ac_objext'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4002 ac_cv_header_stdc=yes
4003 else
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4007 ac_cv_header_stdc=no
4009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4011 if test $ac_cv_header_stdc = yes; then
4012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4013 cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h. */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4019 #include <string.h>
4021 _ACEOF
4022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023 $EGREP "memchr" >/dev/null 2>&1; then
4025 else
4026 ac_cv_header_stdc=no
4028 rm -f conftest*
4032 if test $ac_cv_header_stdc = yes; then
4033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h. */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 #include <stdlib.h>
4042 _ACEOF
4043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4044 $EGREP "free" >/dev/null 2>&1; then
4046 else
4047 ac_cv_header_stdc=no
4049 rm -f conftest*
4053 if test $ac_cv_header_stdc = yes; then
4054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4055 if test "$cross_compiling" = yes; then
4057 else
4058 cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h. */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 #include <ctype.h>
4065 #if ((' ' & 0x0FF) == 0x020)
4066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4068 #else
4069 # define ISLOWER(c) \
4070 (('a' <= (c) && (c) <= 'i') \
4071 || ('j' <= (c) && (c) <= 'r') \
4072 || ('s' <= (c) && (c) <= 'z'))
4073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4074 #endif
4076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4078 main ()
4080 int i;
4081 for (i = 0; i < 256; i++)
4082 if (XOR (islower (i), ISLOWER (i))
4083 || toupper (i) != TOUPPER (i))
4084 exit(2);
4085 exit (0);
4087 _ACEOF
4088 rm -f conftest$ac_exeext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4090 (eval $ac_link) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4100 else
4101 echo "$as_me: program exited with status $ac_status" >&5
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 ( exit $ac_status )
4106 ac_cv_header_stdc=no
4108 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4112 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4113 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4114 if test $ac_cv_header_stdc = yes; then
4116 cat >>confdefs.h <<\_ACEOF
4117 #define STDC_HEADERS 1
4118 _ACEOF
4122 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4132 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4133 inttypes.h stdint.h unistd.h
4135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4136 echo "$as_me:$LINENO: checking for $ac_header" >&5
4137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <$ac_header>
4148 _ACEOF
4149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } >/dev/null; then
4157 if test -s conftest.err; then
4158 ac_cpp_err=$ac_c_preproc_warn_flag
4159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4160 else
4161 ac_cpp_err=
4163 else
4164 ac_cpp_err=yes
4166 if test -z "$ac_cpp_err"; then
4167 eval "$as_ac_Header=yes"
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 eval "$as_ac_Header=no"
4174 rm -f conftest.err conftest.$ac_ext
4176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4179 cat >>confdefs.h <<_ACEOF
4180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4181 _ACEOF
4184 done
4187 echo "$as_me:$LINENO: checking for int" >&5
4188 echo $ECHO_N "checking for int... $ECHO_C" >&6
4189 if test "${ac_cv_type_int+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 $ac_includes_default
4200 main ()
4202 if ((int *) 0)
4203 return 0;
4204 if (sizeof (int))
4205 return 0;
4207 return 0;
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4212 (eval $ac_compile) 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try='test -z "$ac_c_werror_flag"
4220 || test ! -s conftest.err'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 (eval $ac_try) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4232 ac_cv_type_int=yes
4233 else
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 ac_cv_type_int=no
4239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4241 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4242 echo "${ECHO_T}$ac_cv_type_int" >&6
4244 echo "$as_me:$LINENO: checking size of int" >&5
4245 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4246 if test "${ac_cv_sizeof_int+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if test "$ac_cv_type_int" = yes; then
4250 # The cast to unsigned long works around a bug in the HP C Compiler
4251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4253 # This bug is HP SR number 8606223364.
4254 if test "$cross_compiling" = yes; then
4255 # Depending upon the size, compute the lo and hi bounds.
4256 cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h. */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 $ac_includes_default
4264 main ()
4266 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4267 test_array [0] = 0
4270 return 0;
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275 (eval $ac_compile) 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } &&
4282 { ac_try='test -z "$ac_c_werror_flag"
4283 || test ! -s conftest.err'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; } &&
4289 { ac_try='test -s conftest.$ac_objext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_lo=0 ac_mid=0
4296 while :; do
4297 cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h. */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4305 main ()
4307 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4308 test_array [0] = 0
4311 return 0;
4313 _ACEOF
4314 rm -f conftest.$ac_objext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316 (eval $ac_compile) 2>conftest.er1
4317 ac_status=$?
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -z "$ac_c_werror_flag"
4324 || test ! -s conftest.err'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 (eval $ac_try) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; } &&
4330 { ac_try='test -s conftest.$ac_objext'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 (eval $ac_try) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_hi=$ac_mid; break
4337 else
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 ac_lo=`expr $ac_mid + 1`
4342 if test $ac_lo -le $ac_mid; then
4343 ac_lo= ac_hi=
4344 break
4346 ac_mid=`expr 2 '*' $ac_mid + 1`
4348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4349 done
4350 else
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4354 cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h. */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 $ac_includes_default
4362 main ()
4364 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4365 test_array [0] = 0
4368 return 0;
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>conftest.er1
4374 ac_status=$?
4375 grep -v '^ *+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try='test -z "$ac_c_werror_flag"
4381 || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 (eval $ac_try) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_hi=-1 ac_mid=-1
4394 while :; do
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h. */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 $ac_includes_default
4403 main ()
4405 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4406 test_array [0] = 0
4409 return 0;
4411 _ACEOF
4412 rm -f conftest.$ac_objext
4413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4414 (eval $ac_compile) 2>conftest.er1
4415 ac_status=$?
4416 grep -v '^ *+' conftest.er1 >conftest.err
4417 rm -f conftest.er1
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } &&
4421 { ac_try='test -z "$ac_c_werror_flag"
4422 || test ! -s conftest.err'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; } &&
4428 { ac_try='test -s conftest.$ac_objext'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 ac_lo=$ac_mid; break
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 ac_hi=`expr '(' $ac_mid ')' - 1`
4440 if test $ac_mid -le $ac_hi; then
4441 ac_lo= ac_hi=
4442 break
4444 ac_mid=`expr 2 '*' $ac_mid`
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4447 done
4448 else
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 ac_lo= ac_hi=
4454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4457 # Binary search between lo and hi bounds.
4458 while test "x$ac_lo" != "x$ac_hi"; do
4459 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 $ac_includes_default
4468 main ()
4470 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4471 test_array [0] = 0
4474 return 0;
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -z "$ac_c_werror_flag"
4487 || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 (eval $ac_try) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 ac_hi=$ac_mid
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 ac_lo=`expr '(' $ac_mid ')' + 1`
4506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4507 done
4508 case $ac_lo in
4509 ?*) ac_cv_sizeof_int=$ac_lo;;
4510 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4511 See \`config.log' for more details." >&5
4512 echo "$as_me: error: cannot compute sizeof (int), 77
4513 See \`config.log' for more details." >&2;}
4514 { (exit 1); exit 1; }; } ;;
4515 esac
4516 else
4517 if test "$cross_compiling" = yes; then
4518 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4519 See \`config.log' for more details." >&5
4520 echo "$as_me: error: cannot run test program while cross compiling
4521 See \`config.log' for more details." >&2;}
4522 { (exit 1); exit 1; }; }
4523 else
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4531 long longval () { return (long) (sizeof (int)); }
4532 unsigned long ulongval () { return (long) (sizeof (int)); }
4533 #include <stdio.h>
4534 #include <stdlib.h>
4536 main ()
4539 FILE *f = fopen ("conftest.val", "w");
4540 if (! f)
4541 exit (1);
4542 if (((long) (sizeof (int))) < 0)
4544 long i = longval ();
4545 if (i != ((long) (sizeof (int))))
4546 exit (1);
4547 fprintf (f, "%ld\n", i);
4549 else
4551 unsigned long i = ulongval ();
4552 if (i != ((long) (sizeof (int))))
4553 exit (1);
4554 fprintf (f, "%lu\n", i);
4556 exit (ferror (f) || fclose (f) != 0);
4559 return 0;
4561 _ACEOF
4562 rm -f conftest$ac_exeext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4564 (eval $ac_link) 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 ac_cv_sizeof_int=`cat conftest.val`
4574 else
4575 echo "$as_me: program exited with status $ac_status" >&5
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4579 ( exit $ac_status )
4580 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4581 See \`config.log' for more details." >&5
4582 echo "$as_me: error: cannot compute sizeof (int), 77
4583 See \`config.log' for more details." >&2;}
4584 { (exit 1); exit 1; }; }
4586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4589 rm -f conftest.val
4590 else
4591 ac_cv_sizeof_int=0
4594 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4595 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4596 cat >>confdefs.h <<_ACEOF
4597 #define SIZEOF_INT $ac_cv_sizeof_int
4598 _ACEOF
4602 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4603 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4604 if test "${ac_cv_type_uintptr_t+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607 cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4615 main ()
4617 if ((uintptr_t *) 0)
4618 return 0;
4619 if (sizeof (uintptr_t))
4620 return 0;
4622 return 0;
4624 _ACEOF
4625 rm -f conftest.$ac_objext
4626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627 (eval $ac_compile) 2>conftest.er1
4628 ac_status=$?
4629 grep -v '^ *+' conftest.er1 >conftest.err
4630 rm -f conftest.er1
4631 cat conftest.err >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try='test -z "$ac_c_werror_flag"
4635 || test ! -s conftest.err'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 (eval $ac_try) 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; } &&
4641 { ac_try='test -s conftest.$ac_objext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 ac_cv_type_uintptr_t=yes
4648 else
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4652 ac_cv_type_uintptr_t=no
4654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4656 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4657 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4658 if test $ac_cv_type_uintptr_t = yes; then
4660 else
4662 cat >>confdefs.h <<_ACEOF
4663 #define uintptr_t unsigned long
4664 _ACEOF
4669 # Look for a 64-bit type.
4670 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4671 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4672 if test "${liberty_cv_uint64+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675 cat >conftest.$ac_ext <<_ACEOF
4676 /* confdefs.h. */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 #ifdef HAVE_STDINT_H
4682 #include <stdint.h>
4683 #endif
4685 main ()
4687 extern uint64_t foo;
4689 return 0;
4691 _ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_c_werror_flag"
4702 || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 liberty_cv_uint64=uint64_t
4715 else
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 #ifdef HAVE_LIMITS_H
4726 #include <limits.h>
4727 #endif
4728 #ifndef CHAR_BIT
4729 #define CHAR_BIT 8
4730 #endif
4732 main ()
4734 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4736 return 0;
4738 _ACEOF
4739 rm -f conftest.$ac_objext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741 (eval $ac_compile) 2>conftest.er1
4742 ac_status=$?
4743 grep -v '^ *+' conftest.er1 >conftest.err
4744 rm -f conftest.er1
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -z "$ac_c_werror_flag"
4749 || test ! -s conftest.err'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; } &&
4755 { ac_try='test -s conftest.$ac_objext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 (eval $ac_try) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 liberty_cv_uint64="unsigned long"
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 #ifdef HAVE_LIMITS_H
4773 #include <limits.h>
4774 #endif
4775 #ifndef CHAR_BIT
4776 #define CHAR_BIT 8
4777 #endif
4779 main ()
4781 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4783 return 0;
4785 _ACEOF
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>conftest.er1
4789 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -z "$ac_c_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 liberty_cv_uint64="unsigned long long"
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 liberty_cv_uint64=none
4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4822 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4823 echo "${ECHO_T}$liberty_cv_uint64" >&6
4824 if test "$liberty_cv_uint64" != none; then
4826 cat >>confdefs.h <<_ACEOF
4827 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4828 _ACEOF
4832 # Given the above check, we always have uintptr_t or a fallback
4833 # definition. So define HAVE_UINTPTR_T in case any imported code
4834 # relies on it.
4836 cat >>confdefs.h <<\_ACEOF
4837 #define HAVE_UINTPTR_T 1
4838 _ACEOF
4841 echo "$as_me:$LINENO: checking for pid_t" >&5
4842 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4843 if test "${ac_cv_type_pid_t+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4854 main ()
4856 if ((pid_t *) 0)
4857 return 0;
4858 if (sizeof (pid_t))
4859 return 0;
4861 return 0;
4863 _ACEOF
4864 rm -f conftest.$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_type_pid_t=yes
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 ac_cv_type_pid_t=no
4893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4896 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4897 if test $ac_cv_type_pid_t = yes; then
4899 else
4901 cat >>confdefs.h <<_ACEOF
4902 #define pid_t int
4903 _ACEOF
4908 # This is the list of functions which libiberty will provide if they
4909 # are not available on the host.
4911 funcs="asprintf"
4912 funcs="$funcs atexit"
4913 funcs="$funcs basename"
4914 funcs="$funcs bcmp"
4915 funcs="$funcs bcopy"
4916 funcs="$funcs bsearch"
4917 funcs="$funcs bzero"
4918 funcs="$funcs calloc"
4919 funcs="$funcs clock"
4920 funcs="$funcs ffs"
4921 funcs="$funcs getcwd"
4922 funcs="$funcs getpagesize"
4923 funcs="$funcs gettimeofday"
4924 funcs="$funcs index"
4925 funcs="$funcs insque"
4926 funcs="$funcs memchr"
4927 funcs="$funcs memcmp"
4928 funcs="$funcs memcpy"
4929 funcs="$funcs memmove"
4930 funcs="$funcs mempcpy"
4931 funcs="$funcs memset"
4932 funcs="$funcs mkstemps"
4933 funcs="$funcs putenv"
4934 funcs="$funcs random"
4935 funcs="$funcs rename"
4936 funcs="$funcs rindex"
4937 funcs="$funcs setenv"
4938 funcs="$funcs snprintf"
4939 funcs="$funcs sigsetmask"
4940 funcs="$funcs stpcpy"
4941 funcs="$funcs stpncpy"
4942 funcs="$funcs strcasecmp"
4943 funcs="$funcs strchr"
4944 funcs="$funcs strdup"
4945 funcs="$funcs strncasecmp"
4946 funcs="$funcs strndup"
4947 funcs="$funcs strrchr"
4948 funcs="$funcs strstr"
4949 funcs="$funcs strtod"
4950 funcs="$funcs strtol"
4951 funcs="$funcs strtoul"
4952 funcs="$funcs strverscmp"
4953 funcs="$funcs tmpnam"
4954 funcs="$funcs vasprintf"
4955 funcs="$funcs vfprintf"
4956 funcs="$funcs vprintf"
4957 funcs="$funcs vsnprintf"
4958 funcs="$funcs vsprintf"
4959 funcs="$funcs waitpid"
4961 # Also in the old function.def file: alloca, vfork, getopt.
4963 vars="sys_errlist sys_nerr sys_siglist"
4965 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
4966 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
4967 checkfuncs="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
4969 # These are neither executed nor required, but they help keep
4970 # autoheader happy without adding a bunch of text to acconfig.h.
4971 if test "x" = "y"; then
5041 for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
5042 getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
5043 memmove mempcpy memset putenv random rename rindex sigsetmask \
5044 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
5045 strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
5046 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5047 sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
5048 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
5049 realpath canonicalize_file_name __fsetlocking
5051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5052 echo "$as_me:$LINENO: checking for $ac_func" >&5
5053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5054 if eval "test \"\${$as_ac_var+set}\" = set"; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057 if test x$gcc_no_link = xyes; then
5058 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5059 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5060 { (exit 1); exit 1; }; }
5062 cat >conftest.$ac_ext <<_ACEOF
5063 /* confdefs.h. */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5068 /* System header to define __stub macros and hopefully few prototypes,
5069 which can conflict with char $ac_func (); below.
5070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 <limits.h> exists even on freestanding compilers. Under hpux,
5072 including <limits.h> includes <sys/time.h> and causes problems
5073 checking for functions defined therein. */
5074 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5075 # include <limits.h>
5076 #else
5077 # include <assert.h>
5078 #endif
5079 /* Override any gcc2 internal prototype to avoid an error. */
5080 #ifdef __cplusplus
5081 extern "C"
5083 #endif
5084 /* We use char because int might match the return type of a gcc2
5085 builtin and then its argument prototype would still apply. */
5086 char $ac_func ();
5087 /* The GNU C library defines this for functions which it implements
5088 to always fail with ENOSYS. Some functions are actually named
5089 something starting with __ and the normal name is an alias. */
5090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5091 choke me
5092 #else
5093 char (*f) () = $ac_func;
5094 #endif
5095 #ifdef __cplusplus
5097 #endif
5100 main ()
5102 return f != $ac_func;
5104 return 0;
5106 _ACEOF
5107 rm -f conftest.$ac_objext conftest$ac_exeext
5108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5109 (eval $ac_link) 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } &&
5116 { ac_try='test -z "$ac_c_werror_flag"
5117 || test ! -s conftest.err'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 (eval $ac_try) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; } &&
5123 { ac_try='test -s conftest$ac_exeext'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 (eval $ac_try) 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 eval "$as_ac_var=yes"
5130 else
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 eval "$as_ac_var=no"
5136 rm -f conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5141 if test `eval echo '${'$as_ac_var'}'` = yes; then
5142 cat >>confdefs.h <<_ACEOF
5143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5144 _ACEOF
5147 done
5149 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5150 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5151 if test "${ac_cv_have_decl_basename+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154 cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h. */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5160 $ac_includes_default
5162 main ()
5164 #ifndef basename
5165 char *p = (char *) basename;
5166 #endif
5169 return 0;
5171 _ACEOF
5172 rm -f conftest.$ac_objext
5173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5174 (eval $ac_compile) 2>conftest.er1
5175 ac_status=$?
5176 grep -v '^ *+' conftest.er1 >conftest.err
5177 rm -f conftest.er1
5178 cat conftest.err >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } &&
5181 { ac_try='test -z "$ac_c_werror_flag"
5182 || test ! -s conftest.err'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 (eval $ac_try) 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; } &&
5188 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_have_decl_basename=yes
5195 else
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 ac_cv_have_decl_basename=no
5201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5203 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5204 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5205 if test $ac_cv_have_decl_basename = yes; then
5207 cat >>confdefs.h <<_ACEOF
5208 #define HAVE_DECL_BASENAME 1
5209 _ACEOF
5212 else
5213 cat >>confdefs.h <<_ACEOF
5214 #define HAVE_DECL_BASENAME 0
5215 _ACEOF
5219 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5220 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5221 if test "${ac_cv_have_decl_ffs+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h. */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 $ac_includes_default
5232 main ()
5234 #ifndef ffs
5235 char *p = (char *) ffs;
5236 #endif
5239 return 0;
5241 _ACEOF
5242 rm -f conftest.$ac_objext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5244 (eval $ac_compile) 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -z "$ac_c_werror_flag"
5252 || test ! -s conftest.err'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 (eval $ac_try) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; } &&
5258 { ac_try='test -s conftest.$ac_objext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 (eval $ac_try) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 ac_cv_have_decl_ffs=yes
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_cv_have_decl_ffs=no
5271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5273 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5274 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5275 if test $ac_cv_have_decl_ffs = yes; then
5277 cat >>confdefs.h <<_ACEOF
5278 #define HAVE_DECL_FFS 1
5279 _ACEOF
5282 else
5283 cat >>confdefs.h <<_ACEOF
5284 #define HAVE_DECL_FFS 0
5285 _ACEOF
5289 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5290 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5291 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 $ac_includes_default
5302 main ()
5304 #ifndef asprintf
5305 char *p = (char *) asprintf;
5306 #endif
5309 return 0;
5311 _ACEOF
5312 rm -f conftest.$ac_objext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5314 (eval $ac_compile) 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
5321 { ac_try='test -z "$ac_c_werror_flag"
5322 || test ! -s conftest.err'
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 { ac_try='test -s conftest.$ac_objext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 (eval $ac_try) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 ac_cv_have_decl_asprintf=yes
5335 else
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 ac_cv_have_decl_asprintf=no
5341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5343 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5344 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5345 if test $ac_cv_have_decl_asprintf = yes; then
5347 cat >>confdefs.h <<_ACEOF
5348 #define HAVE_DECL_ASPRINTF 1
5349 _ACEOF
5352 else
5353 cat >>confdefs.h <<_ACEOF
5354 #define HAVE_DECL_ASPRINTF 0
5355 _ACEOF
5359 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5360 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5361 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 $ac_includes_default
5372 main ()
5374 #ifndef vasprintf
5375 char *p = (char *) vasprintf;
5376 #endif
5379 return 0;
5381 _ACEOF
5382 rm -f conftest.$ac_objext
5383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5384 (eval $ac_compile) 2>conftest.er1
5385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try='test -z "$ac_c_werror_flag"
5392 || test ! -s conftest.err'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 (eval $ac_try) 2>&5
5395 ac_status=$?
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; } &&
5398 { ac_try='test -s conftest.$ac_objext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 ac_cv_have_decl_vasprintf=yes
5405 else
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5409 ac_cv_have_decl_vasprintf=no
5411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5413 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5414 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5415 if test $ac_cv_have_decl_vasprintf = yes; then
5417 cat >>confdefs.h <<_ACEOF
5418 #define HAVE_DECL_VASPRINTF 1
5419 _ACEOF
5422 else
5423 cat >>confdefs.h <<_ACEOF
5424 #define HAVE_DECL_VASPRINTF 0
5425 _ACEOF
5429 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
5430 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
5431 if test "${ac_cv_have_decl_snprintf+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434 cat >conftest.$ac_ext <<_ACEOF
5435 /* confdefs.h. */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 $ac_includes_default
5442 main ()
5444 #ifndef snprintf
5445 char *p = (char *) snprintf;
5446 #endif
5449 return 0;
5451 _ACEOF
5452 rm -f conftest.$ac_objext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try='test -z "$ac_c_werror_flag"
5462 || test ! -s conftest.err'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 (eval $ac_try) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try='test -s conftest.$ac_objext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 ac_cv_have_decl_snprintf=yes
5475 else
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 ac_cv_have_decl_snprintf=no
5481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
5484 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
5485 if test $ac_cv_have_decl_snprintf = yes; then
5487 cat >>confdefs.h <<_ACEOF
5488 #define HAVE_DECL_SNPRINTF 1
5489 _ACEOF
5492 else
5493 cat >>confdefs.h <<_ACEOF
5494 #define HAVE_DECL_SNPRINTF 0
5495 _ACEOF
5499 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
5500 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
5501 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h. */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 $ac_includes_default
5512 main ()
5514 #ifndef vsnprintf
5515 char *p = (char *) vsnprintf;
5516 #endif
5519 return 0;
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -z "$ac_c_werror_flag"
5532 || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 (eval $ac_try) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_have_decl_vsnprintf=yes
5545 else
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_cv_have_decl_vsnprintf=no
5551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5553 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
5554 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
5555 if test $ac_cv_have_decl_vsnprintf = yes; then
5557 cat >>confdefs.h <<_ACEOF
5558 #define HAVE_DECL_VSNPRINTF 1
5559 _ACEOF
5562 else
5563 cat >>confdefs.h <<_ACEOF
5564 #define HAVE_DECL_VSNPRINTF 0
5565 _ACEOF
5572 cat >>confdefs.h <<\_ACEOF
5573 #define HAVE_SYS_ERRLIST 1
5574 _ACEOF
5577 cat >>confdefs.h <<\_ACEOF
5578 #define HAVE_SYS_NERR 1
5579 _ACEOF
5582 cat >>confdefs.h <<\_ACEOF
5583 #define HAVE_SYS_SIGLIST 1
5584 _ACEOF
5588 # For each of these functions, if the host does not provide the
5589 # function we want to put FN.o in LIBOBJS, and if the host does
5590 # provide the function, we want to define HAVE_FN in config.h.
5592 setobjs=
5593 CHECK=
5594 target_header_dir=
5595 if test -n "${with_target_subdir}"; then
5597 # We are being configured as a target library. AC_REPLACE_FUNCS
5598 # may not work correctly, because the compiler may not be able to
5599 # link executables. Note that we may still be being configured
5600 # native.
5602 # If we are being configured for newlib, we know which functions
5603 # newlib provide and which ones we will be expected to provide.
5605 if test "x${with_newlib}" = "xyes"; then
5606 case $LIBOBJS in
5607 "asprintf.$ac_objext" | \
5608 *" asprintf.$ac_objext" | \
5609 "asprintf.$ac_objext "* | \
5610 *" asprintf.$ac_objext "* ) ;;
5611 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5612 esac
5614 case $LIBOBJS in
5615 "basename.$ac_objext" | \
5616 *" basename.$ac_objext" | \
5617 "basename.$ac_objext "* | \
5618 *" basename.$ac_objext "* ) ;;
5619 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5620 esac
5622 case $LIBOBJS in
5623 "insque.$ac_objext" | \
5624 *" insque.$ac_objext" | \
5625 "insque.$ac_objext "* | \
5626 *" insque.$ac_objext "* ) ;;
5627 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5628 esac
5630 case $LIBOBJS in
5631 "random.$ac_objext" | \
5632 *" random.$ac_objext" | \
5633 "random.$ac_objext "* | \
5634 *" random.$ac_objext "* ) ;;
5635 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5636 esac
5638 case $LIBOBJS in
5639 "strdup.$ac_objext" | \
5640 *" strdup.$ac_objext" | \
5641 "strdup.$ac_objext "* | \
5642 *" strdup.$ac_objext "* ) ;;
5643 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
5644 esac
5646 case $LIBOBJS in
5647 "vasprintf.$ac_objext" | \
5648 *" vasprintf.$ac_objext" | \
5649 "vasprintf.$ac_objext "* | \
5650 *" vasprintf.$ac_objext "* ) ;;
5651 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5652 esac
5655 for f in $funcs; do
5656 case "$f" in
5657 asprintf | basename | insque | random | strdup | vasprintf)
5660 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5661 cat >>confdefs.h <<_ACEOF
5662 #define $n 1
5663 _ACEOF
5666 esac
5667 done
5669 # newlib doesnt provide any of the variables in $vars, so we
5670 # dont have to check them here.
5672 # Of the functions in $checkfuncs, newlib only has strerror.
5673 cat >>confdefs.h <<\_ACEOF
5674 #define HAVE_STRERROR 1
5675 _ACEOF
5678 setobjs=yes
5682 # If we are being configured for Mingw, we know which functions
5683 # Mingw provides and which ones we will be expected to provide.
5685 case "${host}" in
5686 *-*-mingw*)
5687 case $LIBOBJS in
5688 "asprintf.$ac_objext" | \
5689 *" asprintf.$ac_objext" | \
5690 "asprintf.$ac_objext "* | \
5691 *" asprintf.$ac_objext "* ) ;;
5692 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5693 esac
5695 case $LIBOBJS in
5696 "basename.$ac_objext" | \
5697 *" basename.$ac_objext" | \
5698 "basename.$ac_objext "* | \
5699 *" basename.$ac_objext "* ) ;;
5700 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5701 esac
5703 case $LIBOBJS in
5704 "bcmp.$ac_objext" | \
5705 *" bcmp.$ac_objext" | \
5706 "bcmp.$ac_objext "* | \
5707 *" bcmp.$ac_objext "* ) ;;
5708 *) LIBOBJS="$LIBOBJS bcmp.$ac_objext" ;;
5709 esac
5711 case $LIBOBJS in
5712 "bcopy.$ac_objext" | \
5713 *" bcopy.$ac_objext" | \
5714 "bcopy.$ac_objext "* | \
5715 *" bcopy.$ac_objext "* ) ;;
5716 *) LIBOBJS="$LIBOBJS bcopy.$ac_objext" ;;
5717 esac
5719 case $LIBOBJS in
5720 "bzero.$ac_objext" | \
5721 *" bzero.$ac_objext" | \
5722 "bzero.$ac_objext "* | \
5723 *" bzero.$ac_objext "* ) ;;
5724 *) LIBOBJS="$LIBOBJS bzero.$ac_objext" ;;
5725 esac
5727 case $LIBOBJS in
5728 "clock.$ac_objext" | \
5729 *" clock.$ac_objext" | \
5730 "clock.$ac_objext "* | \
5731 *" clock.$ac_objext "* ) ;;
5732 *) LIBOBJS="$LIBOBJS clock.$ac_objext" ;;
5733 esac
5735 case $LIBOBJS in
5736 "ffs.$ac_objext" | \
5737 *" ffs.$ac_objext" | \
5738 "ffs.$ac_objext "* | \
5739 *" ffs.$ac_objext "* ) ;;
5740 *) LIBOBJS="$LIBOBJS ffs.$ac_objext" ;;
5741 esac
5743 case $LIBOBJS in
5744 "getpagesize.$ac_objext" | \
5745 *" getpagesize.$ac_objext" | \
5746 "getpagesize.$ac_objext "* | \
5747 *" getpagesize.$ac_objext "* ) ;;
5748 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
5749 esac
5751 case $LIBOBJS in
5752 "index.$ac_objext" | \
5753 *" index.$ac_objext" | \
5754 "index.$ac_objext "* | \
5755 *" index.$ac_objext "* ) ;;
5756 *) LIBOBJS="$LIBOBJS index.$ac_objext" ;;
5757 esac
5759 case $LIBOBJS in
5760 "insque.$ac_objext" | \
5761 *" insque.$ac_objext" | \
5762 "insque.$ac_objext "* | \
5763 *" insque.$ac_objext "* ) ;;
5764 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5765 esac
5767 case $LIBOBJS in
5768 "mempcpy.$ac_objext" | \
5769 *" mempcpy.$ac_objext" | \
5770 "mempcpy.$ac_objext "* | \
5771 *" mempcpy.$ac_objext "* ) ;;
5772 *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext" ;;
5773 esac
5775 case $LIBOBJS in
5776 "mkstemps.$ac_objext" | \
5777 *" mkstemps.$ac_objext" | \
5778 "mkstemps.$ac_objext "* | \
5779 *" mkstemps.$ac_objext "* ) ;;
5780 *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext" ;;
5781 esac
5783 case $LIBOBJS in
5784 "random.$ac_objext" | \
5785 *" random.$ac_objext" | \
5786 "random.$ac_objext "* | \
5787 *" random.$ac_objext "* ) ;;
5788 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5789 esac
5791 case $LIBOBJS in
5792 "rindex.$ac_objext" | \
5793 *" rindex.$ac_objext" | \
5794 "rindex.$ac_objext "* | \
5795 *" rindex.$ac_objext "* ) ;;
5796 *) LIBOBJS="$LIBOBJS rindex.$ac_objext" ;;
5797 esac
5799 case $LIBOBJS in
5800 "sigsetmask.$ac_objext" | \
5801 *" sigsetmask.$ac_objext" | \
5802 "sigsetmask.$ac_objext "* | \
5803 *" sigsetmask.$ac_objext "* ) ;;
5804 *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext" ;;
5805 esac
5807 case $LIBOBJS in
5808 "stpcpy.$ac_objext" | \
5809 *" stpcpy.$ac_objext" | \
5810 "stpcpy.$ac_objext "* | \
5811 *" stpcpy.$ac_objext "* ) ;;
5812 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext" ;;
5813 esac
5815 case $LIBOBJS in
5816 "stpncpy.$ac_objext" | \
5817 *" stpncpy.$ac_objext" | \
5818 "stpncpy.$ac_objext "* | \
5819 *" stpncpy.$ac_objext "* ) ;;
5820 *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext" ;;
5821 esac
5823 case $LIBOBJS in
5824 "strndup.$ac_objext" | \
5825 *" strndup.$ac_objext" | \
5826 "strndup.$ac_objext "* | \
5827 *" strndup.$ac_objext "* ) ;;
5828 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
5829 esac
5831 case $LIBOBJS in
5832 "strverscmp.$ac_objext" | \
5833 *" strverscmp.$ac_objext" | \
5834 "strverscmp.$ac_objext "* | \
5835 *" strverscmp.$ac_objext "* ) ;;
5836 *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext" ;;
5837 esac
5839 case $LIBOBJS in
5840 "vasprintf.$ac_objext" | \
5841 *" vasprintf.$ac_objext" | \
5842 "vasprintf.$ac_objext "* | \
5843 *" vasprintf.$ac_objext "* ) ;;
5844 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5845 esac
5847 case $LIBOBJS in
5848 "waitpid.$ac_objext" | \
5849 *" waitpid.$ac_objext" | \
5850 "waitpid.$ac_objext "* | \
5851 *" waitpid.$ac_objext "* ) ;;
5852 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
5853 esac
5856 for f in $funcs; do
5857 case "$f" in
5858 asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid)
5861 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5862 cat >>confdefs.h <<_ACEOF
5863 #define $n 1
5864 _ACEOF
5867 esac
5868 done
5870 # Mingw doesnt provide any of the variables in $vars, so we
5871 # dont have to check them here.
5873 # Of the functions in $checkfuncs, Mingw only has strerror.
5874 cat >>confdefs.h <<\_ACEOF
5875 #define HAVE_STRERROR 1
5876 _ACEOF
5879 setobjs=yes
5882 esac
5884 # We may wish to install the target headers somewhere.
5885 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
5886 if test "${enable_install_libiberty+set}" = set; then
5887 enableval="$enable_install_libiberty"
5888 enable_install_libiberty=$enableval
5889 else
5890 enable_install_libiberty=no
5892 # Option parsed, now set things appropriately.
5893 case x"$enable_install_libiberty" in
5894 xyes|x)
5895 target_header_dir=libiberty
5897 xno)
5898 target_header_dir=
5901 # This could be sanity-checked in various ways...
5902 target_header_dir="${enable_install_libiberty}"
5904 esac
5907 else
5909 # Not a target library, so we set things up to run the test suite.
5910 CHECK=really-check
5917 case "${host}" in
5918 *-*-cygwin* | *-*-mingw*)
5919 cat >>confdefs.h <<\_ACEOF
5920 #define HAVE_SYS_ERRLIST 1
5921 _ACEOF
5923 cat >>confdefs.h <<\_ACEOF
5924 #define HAVE_SYS_NERR 1
5925 _ACEOF
5928 esac
5930 if test -z "${setobjs}"; then
5931 case "${host}" in
5933 *-*-vxworks*)
5934 # Handle VxWorks configuration specially, since on VxWorks the
5935 # libraries are actually on the target board, not in the file
5936 # system.
5937 case $LIBOBJS in
5938 "basename.$ac_objext" | \
5939 *" basename.$ac_objext" | \
5940 "basename.$ac_objext "* | \
5941 *" basename.$ac_objext "* ) ;;
5942 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5943 esac
5945 case $LIBOBJS in
5946 "getpagesize.$ac_objext" | \
5947 *" getpagesize.$ac_objext" | \
5948 "getpagesize.$ac_objext "* | \
5949 *" getpagesize.$ac_objext "* ) ;;
5950 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
5951 esac
5953 case $LIBOBJS in
5954 "insque.$ac_objext" | \
5955 *" insque.$ac_objext" | \
5956 "insque.$ac_objext "* | \
5957 *" insque.$ac_objext "* ) ;;
5958 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5959 esac
5961 case $LIBOBJS in
5962 "random.$ac_objext" | \
5963 *" random.$ac_objext" | \
5964 "random.$ac_objext "* | \
5965 *" random.$ac_objext "* ) ;;
5966 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5967 esac
5969 case $LIBOBJS in
5970 "strcasecmp.$ac_objext" | \
5971 *" strcasecmp.$ac_objext" | \
5972 "strcasecmp.$ac_objext "* | \
5973 *" strcasecmp.$ac_objext "* ) ;;
5974 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
5975 esac
5977 case $LIBOBJS in
5978 "strncasecmp.$ac_objext" | \
5979 *" strncasecmp.$ac_objext" | \
5980 "strncasecmp.$ac_objext "* | \
5981 *" strncasecmp.$ac_objext "* ) ;;
5982 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
5983 esac
5985 case $LIBOBJS in
5986 "strdup.$ac_objext" | \
5987 *" strdup.$ac_objext" | \
5988 "strdup.$ac_objext "* | \
5989 *" strdup.$ac_objext "* ) ;;
5990 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
5991 esac
5993 case $LIBOBJS in
5994 "vfork.$ac_objext" | \
5995 *" vfork.$ac_objext" | \
5996 "vfork.$ac_objext "* | \
5997 *" vfork.$ac_objext "* ) ;;
5998 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
5999 esac
6001 case $LIBOBJS in
6002 "waitpid.$ac_objext" | \
6003 *" waitpid.$ac_objext" | \
6004 "waitpid.$ac_objext "* | \
6005 *" waitpid.$ac_objext "* ) ;;
6006 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
6007 esac
6009 case $LIBOBJS in
6010 "vasprintf.$ac_objext" | \
6011 *" vasprintf.$ac_objext" | \
6012 "vasprintf.$ac_objext "* | \
6013 *" vasprintf.$ac_objext "* ) ;;
6014 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
6015 esac
6017 for f in $funcs; do
6018 case "$f" in
6019 basename | getpagesize | insque | random | strcasecmp)
6021 strncasecmp | strdup | vfork | waitpid | vasprintf)
6024 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6025 cat >>confdefs.h <<_ACEOF
6026 #define $n 1
6027 _ACEOF
6030 esac
6031 done
6033 # VxWorks doesn't provide any of the variables in $vars, so we
6034 # don't have to check them here.
6036 # Of the functions in $checkfuncs, VxWorks only has strerror.
6037 cat >>confdefs.h <<\_ACEOF
6038 #define HAVE_STRERROR 1
6039 _ACEOF
6042 setobjs=yes
6045 *-*-msdosdjgpp)
6046 for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
6047 getcwd getpagesize getrusage gettimeofday gettimeofday \
6048 index insque memchr memcmp memcpy memmove memset psignal \
6049 putenv random rename rindex sbrk setenv stpcpy strcasecmp \
6050 strchr strdup strerror strncasecmp strrchr strstr strtod \
6051 strtol strtoul sysconf times tmpnam vfprintf vprintf \
6052 vsprintf waitpid
6054 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6055 cat >>confdefs.h <<_ACEOF
6056 #define $n 1
6057 _ACEOF
6059 done
6062 setobjs=yes
6065 esac
6068 if test -z "${setobjs}"; then
6070 case "${host}" in
6072 *-*-cygwin*)
6073 # The Cygwin library actually uses a couple of files from
6074 # libiberty when it is built. If we are building a native
6075 # Cygwin, and we run the tests, we will appear to have these
6076 # files. However, when we go on to build winsup, we will wind up
6077 # with a library which does not have the files, since they should
6078 # have come from libiberty.
6080 # We handle this by removing the functions the winsup library
6081 # provides from our shell variables, so that they appear to be
6082 # missing.
6084 # DJ - only if we're *building* cygwin, not just building *with* cygwin
6086 if test -n "${with_target_subdir}"
6087 then
6088 funcs="`echo $funcs | sed -e 's/random//'`"
6089 case $LIBOBJS in
6090 "random.$ac_objext" | \
6091 *" random.$ac_objext" | \
6092 "random.$ac_objext "* | \
6093 *" random.$ac_objext "* ) ;;
6094 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
6095 esac
6097 vars="`echo $vars | sed -e 's/sys_siglist//'`"
6098 checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
6102 *-*-mingw32*)
6103 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6104 # macros, so the test below won't find them.
6105 libiberty_cv_var_sys_nerr=yes
6106 libiberty_cv_var_sys_errlist=yes
6109 *-*-msdosdjgpp*)
6110 # vfork and fork are stubs.
6111 ac_cv_func_vfork_works=no
6114 *-*-uwin*)
6115 # Under some versions of uwin, vfork is notoriously buggy and the test
6116 # can hang configure; on other versions, vfork exists just as a stub.
6117 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6118 ac_cv_func_vfork_works=no
6119 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6120 # macros (actually, these are imported from a DLL, but the end effect
6121 # is the same), so the test below won't find them.
6122 libiberty_cv_var_sys_nerr=yes
6123 libiberty_cv_var_sys_errlist=yes
6126 *-*-*vms*)
6127 # Under VMS, vfork works very different than on Unix. The standard test
6128 # won't work, and it isn't easily adaptable. It makes more sense to
6129 # just force it.
6130 ac_cv_func_vfork_works=yes
6133 esac
6135 # We haven't set the list of objects yet. Use the standard autoconf
6136 # tests. This will only work if the compiler works.
6137 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6138 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6139 if test "${ac_cv_search_strerror+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 ac_func_search_save_LIBS=$LIBS
6143 ac_cv_search_strerror=no
6144 if test x$gcc_no_link = xyes; then
6145 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6146 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6147 { (exit 1); exit 1; }; }
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6156 /* Override any gcc2 internal prototype to avoid an error. */
6157 #ifdef __cplusplus
6158 extern "C"
6159 #endif
6160 /* We use char because int might match the return type of a gcc2
6161 builtin and then its argument prototype would still apply. */
6162 char strerror ();
6164 main ()
6166 strerror ();
6168 return 0;
6170 _ACEOF
6171 rm -f conftest.$ac_objext conftest$ac_exeext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6173 (eval $ac_link) 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -z "$ac_c_werror_flag"
6181 || test ! -s conftest.err'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; } &&
6187 { ac_try='test -s conftest$ac_exeext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_cv_search_strerror="none required"
6194 else
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6199 rm -f conftest.err conftest.$ac_objext \
6200 conftest$ac_exeext conftest.$ac_ext
6201 if test "$ac_cv_search_strerror" = no; then
6202 for ac_lib in cposix; do
6203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6204 if test x$gcc_no_link = xyes; then
6205 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6206 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6207 { (exit 1); exit 1; }; }
6209 cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h. */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6216 /* Override any gcc2 internal prototype to avoid an error. */
6217 #ifdef __cplusplus
6218 extern "C"
6219 #endif
6220 /* We use char because int might match the return type of a gcc2
6221 builtin and then its argument prototype would still apply. */
6222 char strerror ();
6224 main ()
6226 strerror ();
6228 return 0;
6230 _ACEOF
6231 rm -f conftest.$ac_objext conftest$ac_exeext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6233 (eval $ac_link) 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try='test -z "$ac_c_werror_flag"
6241 || test ! -s conftest.err'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 (eval $ac_try) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try='test -s conftest$ac_exeext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_search_strerror="-l$ac_lib"
6254 break
6255 else
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6260 rm -f conftest.err conftest.$ac_objext \
6261 conftest$ac_exeext conftest.$ac_ext
6262 done
6264 LIBS=$ac_func_search_save_LIBS
6266 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6267 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6268 if test "$ac_cv_search_strerror" != no; then
6269 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6274 for ac_func in $funcs
6276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6277 echo "$as_me:$LINENO: checking for $ac_func" >&5
6278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6279 if eval "test \"\${$as_ac_var+set}\" = set"; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282 if test x$gcc_no_link = xyes; then
6283 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6284 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6285 { (exit 1); exit 1; }; }
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h. */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 /* System header to define __stub macros and hopefully few prototypes,
6294 which can conflict with char $ac_func (); below.
6295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6296 <limits.h> exists even on freestanding compilers. Under hpux,
6297 including <limits.h> includes <sys/time.h> and causes problems
6298 checking for functions defined therein. */
6299 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6300 # include <limits.h>
6301 #else
6302 # include <assert.h>
6303 #endif
6304 /* Override any gcc2 internal prototype to avoid an error. */
6305 #ifdef __cplusplus
6306 extern "C"
6308 #endif
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6311 char $ac_func ();
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6316 choke me
6317 #else
6318 char (*f) () = $ac_func;
6319 #endif
6320 #ifdef __cplusplus
6322 #endif
6325 main ()
6327 return f != $ac_func;
6329 return 0;
6331 _ACEOF
6332 rm -f conftest.$ac_objext conftest$ac_exeext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334 (eval $ac_link) 2>conftest.er1
6335 ac_status=$?
6336 grep -v '^ *+' conftest.er1 >conftest.err
6337 rm -f conftest.er1
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try='test -z "$ac_c_werror_flag"
6342 || test ! -s conftest.err'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 (eval $ac_try) 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest$ac_exeext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 eval "$as_ac_var=yes"
6355 else
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 eval "$as_ac_var=no"
6361 rm -f conftest.err conftest.$ac_objext \
6362 conftest$ac_exeext conftest.$ac_ext
6364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6366 if test `eval echo '${'$as_ac_var'}'` = yes; then
6367 cat >>confdefs.h <<_ACEOF
6368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6369 _ACEOF
6371 else
6372 case $LIBOBJS in
6373 "$ac_func.$ac_objext" | \
6374 *" $ac_func.$ac_objext" | \
6375 "$ac_func.$ac_objext "* | \
6376 *" $ac_func.$ac_objext "* ) ;;
6377 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6378 esac
6381 done
6384 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6385 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6386 if test "${ac_cv_os_cray+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h. */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 #if defined(CRAY) && ! defined(CRAY2)
6396 webecray
6397 #else
6398 wenotbecray
6399 #endif
6401 _ACEOF
6402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6403 $EGREP "webecray" >/dev/null 2>&1; then
6404 ac_cv_os_cray=yes
6405 else
6406 ac_cv_os_cray=no
6408 rm -f conftest*
6411 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6412 echo "${ECHO_T}$ac_cv_os_cray" >&6
6413 if test $ac_cv_os_cray = yes; then
6414 for ac_func in _getb67 GETB67 getb67; do
6415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6416 echo "$as_me:$LINENO: checking for $ac_func" >&5
6417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6418 if eval "test \"\${$as_ac_var+set}\" = set"; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421 if test x$gcc_no_link = xyes; then
6422 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6423 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6424 { (exit 1); exit 1; }; }
6426 cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 /* System header to define __stub macros and hopefully few prototypes,
6433 which can conflict with char $ac_func (); below.
6434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6435 <limits.h> exists even on freestanding compilers. Under hpux,
6436 including <limits.h> includes <sys/time.h> and causes problems
6437 checking for functions defined therein. */
6438 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6439 # include <limits.h>
6440 #else
6441 # include <assert.h>
6442 #endif
6443 /* Override any gcc2 internal prototype to avoid an error. */
6444 #ifdef __cplusplus
6445 extern "C"
6447 #endif
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6450 char $ac_func ();
6451 /* The GNU C library defines this for functions which it implements
6452 to always fail with ENOSYS. Some functions are actually named
6453 something starting with __ and the normal name is an alias. */
6454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6455 choke me
6456 #else
6457 char (*f) () = $ac_func;
6458 #endif
6459 #ifdef __cplusplus
6461 #endif
6464 main ()
6466 return f != $ac_func;
6468 return 0;
6470 _ACEOF
6471 rm -f conftest.$ac_objext conftest$ac_exeext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6473 (eval $ac_link) 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try='test -z "$ac_c_werror_flag"
6481 || test ! -s conftest.err'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; } &&
6487 { ac_try='test -s conftest$ac_exeext'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
6493 eval "$as_ac_var=yes"
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 eval "$as_ac_var=no"
6500 rm -f conftest.err conftest.$ac_objext \
6501 conftest$ac_exeext conftest.$ac_ext
6503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6505 if test `eval echo '${'$as_ac_var'}'` = yes; then
6507 cat >>confdefs.h <<_ACEOF
6508 #define CRAY_STACKSEG_END $ac_func
6509 _ACEOF
6510 break
6513 done
6516 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6517 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6518 if test "${ac_cv_c_stack_direction+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 if test "$cross_compiling" = yes; then
6522 ac_cv_c_stack_direction=0
6523 else
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 find_stack_direction ()
6532 static char *addr = 0;
6533 auto char dummy;
6534 if (addr == 0)
6536 addr = &dummy;
6537 return find_stack_direction ();
6539 else
6540 return (&dummy > addr) ? 1 : -1;
6542 main ()
6544 exit (find_stack_direction() < 0);
6546 _ACEOF
6547 rm -f conftest$ac_exeext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 ac_cv_c_stack_direction=1
6559 else
6560 echo "$as_me: program exited with status $ac_status" >&5
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 ( exit $ac_status )
6565 ac_cv_c_stack_direction=-1
6567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6570 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6571 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6573 cat >>confdefs.h <<_ACEOF
6574 #define STACK_DIRECTION $ac_cv_c_stack_direction
6575 _ACEOF
6580 for ac_header in unistd.h vfork.h
6582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6583 echo "$as_me:$LINENO: checking for $ac_header" >&5
6584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588 cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h. */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 #include <$ac_header>
6595 _ACEOF
6596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } >/dev/null; then
6604 if test -s conftest.err; then
6605 ac_cpp_err=$ac_c_preproc_warn_flag
6606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6607 else
6608 ac_cpp_err=
6610 else
6611 ac_cpp_err=yes
6613 if test -z "$ac_cpp_err"; then
6614 eval "$as_ac_Header=yes"
6615 else
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6619 eval "$as_ac_Header=no"
6621 rm -f conftest.err conftest.$ac_ext
6623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6626 cat >>confdefs.h <<_ACEOF
6627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6628 _ACEOF
6631 done
6635 for ac_func in fork vfork
6637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6638 echo "$as_me:$LINENO: checking for $ac_func" >&5
6639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6640 if eval "test \"\${$as_ac_var+set}\" = set"; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 if test x$gcc_no_link = xyes; then
6644 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6645 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6646 { (exit 1); exit 1; }; }
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 /* System header to define __stub macros and hopefully few prototypes,
6655 which can conflict with char $ac_func (); below.
6656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6657 <limits.h> exists even on freestanding compilers. Under hpux,
6658 including <limits.h> includes <sys/time.h> and causes problems
6659 checking for functions defined therein. */
6660 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6661 # include <limits.h>
6662 #else
6663 # include <assert.h>
6664 #endif
6665 /* Override any gcc2 internal prototype to avoid an error. */
6666 #ifdef __cplusplus
6667 extern "C"
6669 #endif
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6672 char $ac_func ();
6673 /* The GNU C library defines this for functions which it implements
6674 to always fail with ENOSYS. Some functions are actually named
6675 something starting with __ and the normal name is an alias. */
6676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6677 choke me
6678 #else
6679 char (*f) () = $ac_func;
6680 #endif
6681 #ifdef __cplusplus
6683 #endif
6686 main ()
6688 return f != $ac_func;
6690 return 0;
6692 _ACEOF
6693 rm -f conftest.$ac_objext conftest$ac_exeext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6695 (eval $ac_link) 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try='test -z "$ac_c_werror_flag"
6703 || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest$ac_exeext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 eval "$as_ac_var=yes"
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 eval "$as_ac_var=no"
6722 rm -f conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
6725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6727 if test `eval echo '${'$as_ac_var'}'` = yes; then
6728 cat >>confdefs.h <<_ACEOF
6729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6730 _ACEOF
6733 done
6735 if test "x$ac_cv_func_fork" = xyes; then
6736 echo "$as_me:$LINENO: checking for working fork" >&5
6737 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6738 if test "${ac_cv_func_fork_works+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741 if test "$cross_compiling" = yes; then
6742 ac_cv_func_fork_works=cross
6743 else
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* By Ruediger Kuhlmann. */
6746 #include <sys/types.h>
6747 #if HAVE_UNISTD_H
6748 # include <unistd.h>
6749 #endif
6750 /* Some systems only have a dummy stub for fork() */
6751 int main ()
6753 if (fork() < 0)
6754 exit (1);
6755 exit (0);
6757 _ACEOF
6758 rm -f conftest$ac_exeext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6760 (eval $ac_link) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 ac_cv_func_fork_works=yes
6770 else
6771 echo "$as_me: program exited with status $ac_status" >&5
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 ( exit $ac_status )
6776 ac_cv_func_fork_works=no
6778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6781 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6782 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6784 else
6785 ac_cv_func_fork_works=$ac_cv_func_fork
6787 if test "x$ac_cv_func_fork_works" = xcross; then
6788 case $host in
6789 *-*-amigaos* | *-*-msdosdjgpp*)
6790 # Override, as these systems have only a dummy fork() stub
6791 ac_cv_func_fork_works=no
6794 ac_cv_func_fork_works=yes
6796 esac
6797 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6798 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6800 ac_cv_func_vfork_works=$ac_cv_func_vfork
6801 if test "x$ac_cv_func_vfork" = xyes; then
6802 echo "$as_me:$LINENO: checking for working vfork" >&5
6803 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6804 if test "${ac_cv_func_vfork_works+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 if test "$cross_compiling" = yes; then
6808 ac_cv_func_vfork_works=cross
6809 else
6810 cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h. */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6816 /* Thanks to Paul Eggert for this test. */
6817 #include <stdio.h>
6818 #include <stdlib.h>
6819 #include <sys/types.h>
6820 #include <sys/stat.h>
6821 #include <sys/wait.h>
6822 #if HAVE_UNISTD_H
6823 # include <unistd.h>
6824 #endif
6825 #if HAVE_VFORK_H
6826 # include <vfork.h>
6827 #endif
6828 /* On some sparc systems, changes by the child to local and incoming
6829 argument registers are propagated back to the parent. The compiler
6830 is told about this with #include <vfork.h>, but some compilers
6831 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6832 static variable whose address is put into a register that is
6833 clobbered by the vfork. */
6834 static void
6835 #ifdef __cplusplus
6836 sparc_address_test (int arg)
6837 # else
6838 sparc_address_test (arg) int arg;
6839 #endif
6841 static pid_t child;
6842 if (!child) {
6843 child = vfork ();
6844 if (child < 0) {
6845 perror ("vfork");
6846 _exit(2);
6848 if (!child) {
6849 arg = getpid();
6850 write(-1, "", 0);
6851 _exit (arg);
6857 main ()
6859 pid_t parent = getpid ();
6860 pid_t child;
6862 sparc_address_test (0);
6864 child = vfork ();
6866 if (child == 0) {
6867 /* Here is another test for sparc vfork register problems. This
6868 test uses lots of local variables, at least as many local
6869 variables as main has allocated so far including compiler
6870 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6871 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6872 reuse the register of parent for one of the local variables,
6873 since it will think that parent can't possibly be used any more
6874 in this routine. Assigning to the local variable will thus
6875 munge parent in the parent process. */
6876 pid_t
6877 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6878 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6879 /* Convince the compiler that p..p7 are live; otherwise, it might
6880 use the same hardware register for all 8 local variables. */
6881 if (p != p1 || p != p2 || p != p3 || p != p4
6882 || p != p5 || p != p6 || p != p7)
6883 _exit(1);
6885 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6886 from child file descriptors. If the child closes a descriptor
6887 before it execs or exits, this munges the parent's descriptor
6888 as well. Test for this by closing stdout in the child. */
6889 _exit(close(fileno(stdout)) != 0);
6890 } else {
6891 int status;
6892 struct stat st;
6894 while (wait(&status) != child)
6896 exit(
6897 /* Was there some problem with vforking? */
6898 child < 0
6900 /* Did the child fail? (This shouldn't happen.) */
6901 || status
6903 /* Did the vfork/compiler bug occur? */
6904 || parent != getpid()
6906 /* Did the file descriptor bug occur? */
6907 || fstat(fileno(stdout), &st) != 0
6911 _ACEOF
6912 rm -f conftest$ac_exeext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6914 (eval $ac_link) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
6923 ac_cv_func_vfork_works=yes
6924 else
6925 echo "$as_me: program exited with status $ac_status" >&5
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6929 ( exit $ac_status )
6930 ac_cv_func_vfork_works=no
6932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6935 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6936 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
6939 if test "x$ac_cv_func_fork_works" = xcross; then
6940 ac_cv_func_vfork_works=$ac_cv_func_vfork
6941 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6942 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6945 if test "x$ac_cv_func_vfork_works" = xyes; then
6947 cat >>confdefs.h <<\_ACEOF
6948 #define HAVE_WORKING_VFORK 1
6949 _ACEOF
6951 else
6953 cat >>confdefs.h <<\_ACEOF
6954 #define vfork fork
6955 _ACEOF
6958 if test "x$ac_cv_func_fork_works" = xyes; then
6960 cat >>confdefs.h <<\_ACEOF
6961 #define HAVE_WORKING_FORK 1
6962 _ACEOF
6966 if test $ac_cv_func_vfork_works = no; then
6967 case $LIBOBJS in
6968 "vfork.$ac_objext" | \
6969 *" vfork.$ac_objext" | \
6970 "vfork.$ac_objext "* | \
6971 *" vfork.$ac_objext "* ) ;;
6972 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
6973 esac
6976 # We only need _doprnt if we might use it to implement v*printf.
6977 if test $ac_cv_func_vprintf != yes \
6978 || test $ac_cv_func_vfprintf != yes \
6979 || test $ac_cv_func_vsprintf != yes; then
6981 for ac_func in _doprnt
6983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6984 echo "$as_me:$LINENO: checking for $ac_func" >&5
6985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6986 if eval "test \"\${$as_ac_var+set}\" = set"; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 if test x$gcc_no_link = xyes; then
6990 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6991 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6992 { (exit 1); exit 1; }; }
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 /* System header to define __stub macros and hopefully few prototypes,
7001 which can conflict with char $ac_func (); below.
7002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7003 <limits.h> exists even on freestanding compilers. Under hpux,
7004 including <limits.h> includes <sys/time.h> and causes problems
7005 checking for functions defined therein. */
7006 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7007 # include <limits.h>
7008 #else
7009 # include <assert.h>
7010 #endif
7011 /* Override any gcc2 internal prototype to avoid an error. */
7012 #ifdef __cplusplus
7013 extern "C"
7015 #endif
7016 /* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */
7018 char $ac_func ();
7019 /* The GNU C library defines this for functions which it implements
7020 to always fail with ENOSYS. Some functions are actually named
7021 something starting with __ and the normal name is an alias. */
7022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7023 choke me
7024 #else
7025 char (*f) () = $ac_func;
7026 #endif
7027 #ifdef __cplusplus
7029 #endif
7032 main ()
7034 return f != $ac_func;
7036 return 0;
7038 _ACEOF
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>conftest.er1
7042 ac_status=$?
7043 grep -v '^ *+' conftest.er1 >conftest.err
7044 rm -f conftest.er1
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -z "$ac_c_werror_flag"
7049 || test ! -s conftest.err'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try='test -s conftest$ac_exeext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 eval "$as_ac_var=yes"
7062 else
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 eval "$as_ac_var=no"
7068 rm -f conftest.err conftest.$ac_objext \
7069 conftest$ac_exeext conftest.$ac_ext
7071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7073 if test `eval echo '${'$as_ac_var'}'` = yes; then
7074 cat >>confdefs.h <<_ACEOF
7075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7076 _ACEOF
7078 else
7079 case $LIBOBJS in
7080 "$ac_func.$ac_objext" | \
7081 *" $ac_func.$ac_objext" | \
7082 "$ac_func.$ac_objext "* | \
7083 *" $ac_func.$ac_objext "* ) ;;
7084 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7085 esac
7088 done
7091 else
7093 for ac_func in _doprnt
7095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7096 echo "$as_me:$LINENO: checking for $ac_func" >&5
7097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7098 if eval "test \"\${$as_ac_var+set}\" = set"; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101 if test x$gcc_no_link = xyes; then
7102 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7103 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7104 { (exit 1); exit 1; }; }
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 /* System header to define __stub macros and hopefully few prototypes,
7113 which can conflict with char $ac_func (); below.
7114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7115 <limits.h> exists even on freestanding compilers. Under hpux,
7116 including <limits.h> includes <sys/time.h> and causes problems
7117 checking for functions defined therein. */
7118 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7119 # include <limits.h>
7120 #else
7121 # include <assert.h>
7122 #endif
7123 /* Override any gcc2 internal prototype to avoid an error. */
7124 #ifdef __cplusplus
7125 extern "C"
7127 #endif
7128 /* We use char because int might match the return type of a gcc2
7129 builtin and then its argument prototype would still apply. */
7130 char $ac_func ();
7131 /* The GNU C library defines this for functions which it implements
7132 to always fail with ENOSYS. Some functions are actually named
7133 something starting with __ and the normal name is an alias. */
7134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7135 choke me
7136 #else
7137 char (*f) () = $ac_func;
7138 #endif
7139 #ifdef __cplusplus
7141 #endif
7144 main ()
7146 return f != $ac_func;
7148 return 0;
7150 _ACEOF
7151 rm -f conftest.$ac_objext conftest$ac_exeext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7153 (eval $ac_link) 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -z "$ac_c_werror_flag"
7161 || test ! -s conftest.err'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; } &&
7167 { ac_try='test -s conftest$ac_exeext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 eval "$as_ac_var=yes"
7174 else
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7178 eval "$as_ac_var=no"
7180 rm -f conftest.err conftest.$ac_objext \
7181 conftest$ac_exeext conftest.$ac_ext
7183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7185 if test `eval echo '${'$as_ac_var'}'` = yes; then
7186 cat >>confdefs.h <<_ACEOF
7187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7188 _ACEOF
7191 done
7195 for v in $vars; do
7196 echo "$as_me:$LINENO: checking for $v" >&5
7197 echo $ECHO_N "checking for $v... $ECHO_C" >&6
7198 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201 if test x$gcc_no_link = xyes; then
7202 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7203 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7204 { (exit 1); exit 1; }; }
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h. */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 int *p;
7214 main ()
7216 extern int $v []; p = $v;
7218 return 0;
7220 _ACEOF
7221 rm -f conftest.$ac_objext conftest$ac_exeext
7222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7223 (eval $ac_link) 2>conftest.er1
7224 ac_status=$?
7225 grep -v '^ *+' conftest.er1 >conftest.err
7226 rm -f conftest.er1
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } &&
7230 { ac_try='test -z "$ac_c_werror_flag"
7231 || test ! -s conftest.err'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; } &&
7237 { ac_try='test -s conftest$ac_exeext'
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 (eval $ac_try) 2>&5
7240 ac_status=$?
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; }; then
7243 eval "libiberty_cv_var_$v=yes"
7244 else
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7248 eval "libiberty_cv_var_$v=no"
7250 rm -f conftest.err conftest.$ac_objext \
7251 conftest$ac_exeext conftest.$ac_ext
7254 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7255 echo "$as_me:$LINENO: result: yes" >&5
7256 echo "${ECHO_T}yes" >&6
7257 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7258 cat >>confdefs.h <<_ACEOF
7259 #define $n 1
7260 _ACEOF
7262 else
7263 echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6
7266 done
7268 # special check for _system_configuration because AIX <4.3.2 do not
7269 # contain the `physmem' member.
7270 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
7271 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h. */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 #include <sys/systemcfg.h>
7280 main ()
7282 double x = _system_configuration.physmem;
7284 return 0;
7286 _ACEOF
7287 rm -f conftest.$ac_objext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7289 (eval $ac_compile) 2>conftest.er1
7290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try='test -z "$ac_c_werror_flag"
7297 || test ! -s conftest.err'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 (eval $ac_try) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; } &&
7303 { ac_try='test -s conftest.$ac_objext'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 (eval $ac_try) 2>&5
7306 ac_status=$?
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7309 echo "$as_me:$LINENO: result: yes" >&5
7310 echo "${ECHO_T}yes" >&6
7312 cat >>confdefs.h <<\_ACEOF
7313 #define HAVE__SYSTEM_CONFIGURATION 1
7314 _ACEOF
7316 else
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7320 echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6
7323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7326 for ac_func in $checkfuncs
7328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7329 echo "$as_me:$LINENO: checking for $ac_func" >&5
7330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7331 if eval "test \"\${$as_ac_var+set}\" = set"; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334 if test x$gcc_no_link = xyes; then
7335 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7337 { (exit 1); exit 1; }; }
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h. */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 /* System header to define __stub macros and hopefully few prototypes,
7346 which can conflict with char $ac_func (); below.
7347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7348 <limits.h> exists even on freestanding compilers. Under hpux,
7349 including <limits.h> includes <sys/time.h> and causes problems
7350 checking for functions defined therein. */
7351 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7352 # include <limits.h>
7353 #else
7354 # include <assert.h>
7355 #endif
7356 /* Override any gcc2 internal prototype to avoid an error. */
7357 #ifdef __cplusplus
7358 extern "C"
7360 #endif
7361 /* We use char because int might match the return type of a gcc2
7362 builtin and then its argument prototype would still apply. */
7363 char $ac_func ();
7364 /* The GNU C library defines this for functions which it implements
7365 to always fail with ENOSYS. Some functions are actually named
7366 something starting with __ and the normal name is an alias. */
7367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7368 choke me
7369 #else
7370 char (*f) () = $ac_func;
7371 #endif
7372 #ifdef __cplusplus
7374 #endif
7377 main ()
7379 return f != $ac_func;
7381 return 0;
7383 _ACEOF
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386 (eval $ac_link) 2>conftest.er1
7387 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } &&
7393 { ac_try='test -z "$ac_c_werror_flag"
7394 || test ! -s conftest.err'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 (eval $ac_try) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; } &&
7400 { ac_try='test -s conftest$ac_exeext'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 (eval $ac_try) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; }; then
7406 eval "$as_ac_var=yes"
7407 else
7408 echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7411 eval "$as_ac_var=no"
7413 rm -f conftest.err conftest.$ac_objext \
7414 conftest$ac_exeext conftest.$ac_ext
7416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7418 if test `eval echo '${'$as_ac_var'}'` = yes; then
7419 cat >>confdefs.h <<_ACEOF
7420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7421 _ACEOF
7424 done
7426 echo "$as_me:$LINENO: checking whether basename is declared" >&5
7427 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
7428 if test "${ac_cv_have_decl_basename+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431 cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h. */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 $ac_includes_default
7439 main ()
7441 #ifndef basename
7442 char *p = (char *) basename;
7443 #endif
7446 return 0;
7448 _ACEOF
7449 rm -f conftest.$ac_objext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7451 (eval $ac_compile) 2>conftest.er1
7452 ac_status=$?
7453 grep -v '^ *+' conftest.er1 >conftest.err
7454 rm -f conftest.er1
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } &&
7458 { ac_try='test -z "$ac_c_werror_flag"
7459 || test ! -s conftest.err'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 (eval $ac_try) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; } &&
7465 { ac_try='test -s conftest.$ac_objext'
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 (eval $ac_try) 2>&5
7468 ac_status=$?
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; }; then
7471 ac_cv_have_decl_basename=yes
7472 else
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7476 ac_cv_have_decl_basename=no
7478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7480 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
7481 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
7482 if test $ac_cv_have_decl_basename = yes; then
7484 cat >>confdefs.h <<_ACEOF
7485 #define HAVE_DECL_BASENAME 1
7486 _ACEOF
7489 else
7490 cat >>confdefs.h <<_ACEOF
7491 #define HAVE_DECL_BASENAME 0
7492 _ACEOF
7496 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
7497 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
7498 if test "${ac_cv_have_decl_ffs+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h. */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 $ac_includes_default
7509 main ()
7511 #ifndef ffs
7512 char *p = (char *) ffs;
7513 #endif
7516 return 0;
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7521 (eval $ac_compile) 2>conftest.er1
7522 ac_status=$?
7523 grep -v '^ *+' conftest.er1 >conftest.err
7524 rm -f conftest.er1
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -z "$ac_c_werror_flag"
7529 || test ! -s conftest.err'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; } &&
7535 { ac_try='test -s conftest.$ac_objext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 ac_cv_have_decl_ffs=yes
7542 else
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7546 ac_cv_have_decl_ffs=no
7548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
7551 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
7552 if test $ac_cv_have_decl_ffs = yes; then
7554 cat >>confdefs.h <<_ACEOF
7555 #define HAVE_DECL_FFS 1
7556 _ACEOF
7559 else
7560 cat >>confdefs.h <<_ACEOF
7561 #define HAVE_DECL_FFS 0
7562 _ACEOF
7566 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
7567 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
7568 if test "${ac_cv_have_decl_asprintf+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571 cat >conftest.$ac_ext <<_ACEOF
7572 /* confdefs.h. */
7573 _ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7577 $ac_includes_default
7579 main ()
7581 #ifndef asprintf
7582 char *p = (char *) asprintf;
7583 #endif
7586 return 0;
7588 _ACEOF
7589 rm -f conftest.$ac_objext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591 (eval $ac_compile) 2>conftest.er1
7592 ac_status=$?
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -z "$ac_c_werror_flag"
7599 || test ! -s conftest.err'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; } &&
7605 { ac_try='test -s conftest.$ac_objext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 (eval $ac_try) 2>&5
7608 ac_status=$?
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 ac_cv_have_decl_asprintf=yes
7612 else
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 ac_cv_have_decl_asprintf=no
7618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7620 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
7621 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
7622 if test $ac_cv_have_decl_asprintf = yes; then
7624 cat >>confdefs.h <<_ACEOF
7625 #define HAVE_DECL_ASPRINTF 1
7626 _ACEOF
7629 else
7630 cat >>confdefs.h <<_ACEOF
7631 #define HAVE_DECL_ASPRINTF 0
7632 _ACEOF
7636 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
7637 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
7638 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641 cat >conftest.$ac_ext <<_ACEOF
7642 /* confdefs.h. */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7647 $ac_includes_default
7649 main ()
7651 #ifndef vasprintf
7652 char *p = (char *) vasprintf;
7653 #endif
7656 return 0;
7658 _ACEOF
7659 rm -f conftest.$ac_objext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7661 (eval $ac_compile) 2>conftest.er1
7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
7668 { ac_try='test -z "$ac_c_werror_flag"
7669 || test ! -s conftest.err'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; } &&
7675 { ac_try='test -s conftest.$ac_objext'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 (eval $ac_try) 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; }; then
7681 ac_cv_have_decl_vasprintf=yes
7682 else
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7686 ac_cv_have_decl_vasprintf=no
7688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7690 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
7691 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
7692 if test $ac_cv_have_decl_vasprintf = yes; then
7694 cat >>confdefs.h <<_ACEOF
7695 #define HAVE_DECL_VASPRINTF 1
7696 _ACEOF
7699 else
7700 cat >>confdefs.h <<_ACEOF
7701 #define HAVE_DECL_VASPRINTF 0
7702 _ACEOF
7706 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
7707 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
7708 if test "${ac_cv_have_decl_snprintf+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711 cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h. */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7717 $ac_includes_default
7719 main ()
7721 #ifndef snprintf
7722 char *p = (char *) snprintf;
7723 #endif
7726 return 0;
7728 _ACEOF
7729 rm -f conftest.$ac_objext
7730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7731 (eval $ac_compile) 2>conftest.er1
7732 ac_status=$?
7733 grep -v '^ *+' conftest.er1 >conftest.err
7734 rm -f conftest.er1
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -z "$ac_c_werror_flag"
7739 || test ! -s conftest.err'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; } &&
7745 { ac_try='test -s conftest.$ac_objext'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 (eval $ac_try) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; }; then
7751 ac_cv_have_decl_snprintf=yes
7752 else
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7756 ac_cv_have_decl_snprintf=no
7758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7760 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
7761 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
7762 if test $ac_cv_have_decl_snprintf = yes; then
7764 cat >>confdefs.h <<_ACEOF
7765 #define HAVE_DECL_SNPRINTF 1
7766 _ACEOF
7769 else
7770 cat >>confdefs.h <<_ACEOF
7771 #define HAVE_DECL_SNPRINTF 0
7772 _ACEOF
7776 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
7777 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
7778 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781 cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h. */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7787 $ac_includes_default
7789 main ()
7791 #ifndef vsnprintf
7792 char *p = (char *) vsnprintf;
7793 #endif
7796 return 0;
7798 _ACEOF
7799 rm -f conftest.$ac_objext
7800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7801 (eval $ac_compile) 2>conftest.er1
7802 ac_status=$?
7803 grep -v '^ *+' conftest.er1 >conftest.err
7804 rm -f conftest.er1
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } &&
7808 { ac_try='test -z "$ac_c_werror_flag"
7809 || test ! -s conftest.err'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; } &&
7815 { ac_try='test -s conftest.$ac_objext'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7821 ac_cv_have_decl_vsnprintf=yes
7822 else
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7826 ac_cv_have_decl_vsnprintf=no
7828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7830 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
7831 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
7832 if test $ac_cv_have_decl_vsnprintf = yes; then
7834 cat >>confdefs.h <<_ACEOF
7835 #define HAVE_DECL_VSNPRINTF 1
7836 _ACEOF
7839 else
7840 cat >>confdefs.h <<_ACEOF
7841 #define HAVE_DECL_VSNPRINTF 0
7842 _ACEOF
7848 echo "$as_me:$LINENO: checking whether calloc is declared" >&5
7849 echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
7850 if test "${ac_cv_have_decl_calloc+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 $ac_includes_default
7861 main ()
7863 #ifndef calloc
7864 char *p = (char *) calloc;
7865 #endif
7868 return 0;
7870 _ACEOF
7871 rm -f conftest.$ac_objext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873 (eval $ac_compile) 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_c_werror_flag"
7881 || test ! -s conftest.err'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest.$ac_objext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 ac_cv_have_decl_calloc=yes
7894 else
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 ac_cv_have_decl_calloc=no
7900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7902 echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
7903 echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
7904 if test $ac_cv_have_decl_calloc = yes; then
7906 cat >>confdefs.h <<_ACEOF
7907 #define HAVE_DECL_CALLOC 1
7908 _ACEOF
7911 else
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_DECL_CALLOC 0
7914 _ACEOF
7918 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7919 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7920 if test "${ac_cv_have_decl_getenv+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923 cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h. */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 $ac_includes_default
7931 main ()
7933 #ifndef getenv
7934 char *p = (char *) getenv;
7935 #endif
7938 return 0;
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943 (eval $ac_compile) 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag"
7951 || test ! -s conftest.err'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; } &&
7957 { ac_try='test -s conftest.$ac_objext'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 (eval $ac_try) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; }; then
7963 ac_cv_have_decl_getenv=yes
7964 else
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 ac_cv_have_decl_getenv=no
7970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7972 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7973 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7974 if test $ac_cv_have_decl_getenv = yes; then
7976 cat >>confdefs.h <<_ACEOF
7977 #define HAVE_DECL_GETENV 1
7978 _ACEOF
7981 else
7982 cat >>confdefs.h <<_ACEOF
7983 #define HAVE_DECL_GETENV 0
7984 _ACEOF
7988 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
7989 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
7990 if test "${ac_cv_have_decl_getopt+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h. */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 $ac_includes_default
8001 main ()
8003 #ifndef getopt
8004 char *p = (char *) getopt;
8005 #endif
8008 return 0;
8010 _ACEOF
8011 rm -f conftest.$ac_objext
8012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013 (eval $ac_compile) 2>conftest.er1
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -z "$ac_c_werror_flag"
8021 || test ! -s conftest.err'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; } &&
8027 { ac_try='test -s conftest.$ac_objext'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 (eval $ac_try) 2>&5
8030 ac_status=$?
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
8033 ac_cv_have_decl_getopt=yes
8034 else
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8038 ac_cv_have_decl_getopt=no
8040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8042 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
8043 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
8044 if test $ac_cv_have_decl_getopt = yes; then
8046 cat >>confdefs.h <<_ACEOF
8047 #define HAVE_DECL_GETOPT 1
8048 _ACEOF
8051 else
8052 cat >>confdefs.h <<_ACEOF
8053 #define HAVE_DECL_GETOPT 0
8054 _ACEOF
8058 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8059 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8060 if test "${ac_cv_have_decl_malloc+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063 cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h. */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 $ac_includes_default
8071 main ()
8073 #ifndef malloc
8074 char *p = (char *) malloc;
8075 #endif
8078 return 0;
8080 _ACEOF
8081 rm -f conftest.$ac_objext
8082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8083 (eval $ac_compile) 2>conftest.er1
8084 ac_status=$?
8085 grep -v '^ *+' conftest.er1 >conftest.err
8086 rm -f conftest.er1
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } &&
8090 { ac_try='test -z "$ac_c_werror_flag"
8091 || test ! -s conftest.err'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 (eval $ac_try) 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; } &&
8097 { ac_try='test -s conftest.$ac_objext'
8098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 (eval $ac_try) 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
8103 ac_cv_have_decl_malloc=yes
8104 else
8105 echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8108 ac_cv_have_decl_malloc=no
8110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8112 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8113 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8114 if test $ac_cv_have_decl_malloc = yes; then
8116 cat >>confdefs.h <<_ACEOF
8117 #define HAVE_DECL_MALLOC 1
8118 _ACEOF
8121 else
8122 cat >>confdefs.h <<_ACEOF
8123 #define HAVE_DECL_MALLOC 0
8124 _ACEOF
8128 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8129 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8130 if test "${ac_cv_have_decl_realloc+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133 cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h. */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8139 $ac_includes_default
8141 main ()
8143 #ifndef realloc
8144 char *p = (char *) realloc;
8145 #endif
8148 return 0;
8150 _ACEOF
8151 rm -f conftest.$ac_objext
8152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153 (eval $ac_compile) 2>conftest.er1
8154 ac_status=$?
8155 grep -v '^ *+' conftest.er1 >conftest.err
8156 rm -f conftest.er1
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } &&
8160 { ac_try='test -z "$ac_c_werror_flag"
8161 || test ! -s conftest.err'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 (eval $ac_try) 2>&5
8164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; } &&
8167 { ac_try='test -s conftest.$ac_objext'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 (eval $ac_try) 2>&5
8170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 ac_cv_have_decl_realloc=yes
8174 else
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 ac_cv_have_decl_realloc=no
8180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8182 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8183 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8184 if test $ac_cv_have_decl_realloc = yes; then
8186 cat >>confdefs.h <<_ACEOF
8187 #define HAVE_DECL_REALLOC 1
8188 _ACEOF
8191 else
8192 cat >>confdefs.h <<_ACEOF
8193 #define HAVE_DECL_REALLOC 0
8194 _ACEOF
8198 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8199 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8200 if test "${ac_cv_have_decl_sbrk+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8211 main ()
8213 #ifndef sbrk
8214 char *p = (char *) sbrk;
8215 #endif
8218 return 0;
8220 _ACEOF
8221 rm -f conftest.$ac_objext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8223 (eval $ac_compile) 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag"
8231 || test ! -s conftest.err'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; } &&
8237 { ac_try='test -s conftest.$ac_objext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 ac_cv_have_decl_sbrk=yes
8244 else
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 ac_cv_have_decl_sbrk=no
8250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8252 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8253 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8254 if test $ac_cv_have_decl_sbrk = yes; then
8256 cat >>confdefs.h <<_ACEOF
8257 #define HAVE_DECL_SBRK 1
8258 _ACEOF
8261 else
8262 cat >>confdefs.h <<_ACEOF
8263 #define HAVE_DECL_SBRK 0
8264 _ACEOF
8270 echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
8271 echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
8272 if test "${ac_cv_have_decl_strverscmp+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275 cat >conftest.$ac_ext <<_ACEOF
8276 /* confdefs.h. */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8281 $ac_includes_default
8283 main ()
8285 #ifndef strverscmp
8286 char *p = (char *) strverscmp;
8287 #endif
8290 return 0;
8292 _ACEOF
8293 rm -f conftest.$ac_objext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8295 (eval $ac_compile) 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag"
8303 || test ! -s conftest.err'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 (eval $ac_try) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_have_decl_strverscmp=yes
8316 else
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8320 ac_cv_have_decl_strverscmp=no
8322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8324 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
8325 echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
8326 if test $ac_cv_have_decl_strverscmp = yes; then
8328 cat >>confdefs.h <<_ACEOF
8329 #define HAVE_DECL_STRVERSCMP 1
8330 _ACEOF
8333 else
8334 cat >>confdefs.h <<_ACEOF
8335 #define HAVE_DECL_STRVERSCMP 0
8336 _ACEOF
8342 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
8343 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
8344 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347 cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h. */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8354 #include "confdefs.h"
8355 #include <stdio.h>
8356 #ifdef HAVE_STRING_H
8357 #include <string.h>
8358 #else
8359 #ifdef HAVE_STRINGS_H
8360 #include <strings.h>
8361 #endif
8362 #endif
8363 #ifdef HAVE_STDLIB_H
8364 #include <stdlib.h>
8365 #endif
8366 #ifdef HAVE_UNISTD_H
8367 #include <unistd.h>
8368 #endif
8370 main ()
8372 char *(*pfn) = (char *(*)) canonicalize_file_name
8374 return 0;
8376 _ACEOF
8377 rm -f conftest.$ac_objext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8379 (eval $ac_compile) 2>conftest.er1
8380 ac_status=$?
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -z "$ac_c_werror_flag"
8387 || test ! -s conftest.err'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; } &&
8393 { ac_try='test -s conftest.$ac_objext'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 libiberty_cv_decl_needed_canonicalize_file_name=no
8400 else
8401 echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8404 libiberty_cv_decl_needed_canonicalize_file_name=yes
8406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8409 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
8410 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
8411 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
8413 cat >>confdefs.h <<\_ACEOF
8414 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
8415 _ACEOF
8421 # Figure out which version of pexecute to use.
8422 case "${host}" in
8423 *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;;
8424 *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;;
8425 *-*-msdos*) pexecute=./pex-msdos.o ;;
8426 *) pexecute=./pex-unix.o ;;
8427 esac
8430 if test x$gcc_no_link = xyes; then
8431 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
8432 ac_cv_func_mmap_fixed_mapped=no
8435 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
8438 for ac_header in stdlib.h unistd.h
8440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8441 echo "$as_me:$LINENO: checking for $ac_header" >&5
8442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h. */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 #include <$ac_header>
8453 _ACEOF
8454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } >/dev/null; then
8462 if test -s conftest.err; then
8463 ac_cpp_err=$ac_c_preproc_warn_flag
8464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8465 else
8466 ac_cpp_err=
8468 else
8469 ac_cpp_err=yes
8471 if test -z "$ac_cpp_err"; then
8472 eval "$as_ac_Header=yes"
8473 else
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8477 eval "$as_ac_Header=no"
8479 rm -f conftest.err conftest.$ac_ext
8481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8484 cat >>confdefs.h <<_ACEOF
8485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8486 _ACEOF
8489 done
8492 for ac_func in getpagesize
8494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8495 echo "$as_me:$LINENO: checking for $ac_func" >&5
8496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8497 if eval "test \"\${$as_ac_var+set}\" = set"; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500 if test x$gcc_no_link = xyes; then
8501 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8502 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8503 { (exit 1); exit 1; }; }
8505 cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h. */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 /* System header to define __stub macros and hopefully few prototypes,
8512 which can conflict with char $ac_func (); below.
8513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8514 <limits.h> exists even on freestanding compilers. Under hpux,
8515 including <limits.h> includes <sys/time.h> and causes problems
8516 checking for functions defined therein. */
8517 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
8518 # include <limits.h>
8519 #else
8520 # include <assert.h>
8521 #endif
8522 /* Override any gcc2 internal prototype to avoid an error. */
8523 #ifdef __cplusplus
8524 extern "C"
8526 #endif
8527 /* We use char because int might match the return type of a gcc2
8528 builtin and then its argument prototype would still apply. */
8529 char $ac_func ();
8530 /* The GNU C library defines this for functions which it implements
8531 to always fail with ENOSYS. Some functions are actually named
8532 something starting with __ and the normal name is an alias. */
8533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8534 choke me
8535 #else
8536 char (*f) () = $ac_func;
8537 #endif
8538 #ifdef __cplusplus
8540 #endif
8543 main ()
8545 return f != $ac_func;
8547 return 0;
8549 _ACEOF
8550 rm -f conftest.$ac_objext conftest$ac_exeext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552 (eval $ac_link) 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } &&
8559 { ac_try='test -z "$ac_c_werror_flag"
8560 || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest$ac_exeext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 eval "$as_ac_var=yes"
8573 else
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 eval "$as_ac_var=no"
8579 rm -f conftest.err conftest.$ac_objext \
8580 conftest$ac_exeext conftest.$ac_ext
8582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8584 if test `eval echo '${'$as_ac_var'}'` = yes; then
8585 cat >>confdefs.h <<_ACEOF
8586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8587 _ACEOF
8590 done
8592 echo "$as_me:$LINENO: checking for working mmap" >&5
8593 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8594 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597 if test "$cross_compiling" = yes; then
8598 ac_cv_func_mmap_fixed_mapped=no
8599 else
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h. */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8606 $ac_includes_default
8607 /* malloc might have been renamed as rpl_malloc. */
8608 #undef malloc
8610 /* Thanks to Mike Haertel and Jim Avera for this test.
8611 Here is a matrix of mmap possibilities:
8612 mmap private not fixed
8613 mmap private fixed at somewhere currently unmapped
8614 mmap private fixed at somewhere already mapped
8615 mmap shared not fixed
8616 mmap shared fixed at somewhere currently unmapped
8617 mmap shared fixed at somewhere already mapped
8618 For private mappings, we should verify that changes cannot be read()
8619 back from the file, nor mmap's back from the file at a different
8620 address. (There have been systems where private was not correctly
8621 implemented like the infamous i386 svr4.0, and systems where the
8622 VM page cache was not coherent with the file system buffer cache
8623 like early versions of FreeBSD and possibly contemporary NetBSD.)
8624 For shared mappings, we should conversely verify that changes get
8625 propagated back to all the places they're supposed to be.
8627 Grep wants private fixed already mapped.
8628 The main things grep needs to know about mmap are:
8629 * does it exist and is it safe to write into the mmap'd area
8630 * how to use it (BSD variants) */
8632 #include <fcntl.h>
8633 #include <sys/mman.h>
8635 #if !STDC_HEADERS && !HAVE_STDLIB_H
8636 char *malloc ();
8637 #endif
8639 /* This mess was copied from the GNU getpagesize.h. */
8640 #if !HAVE_GETPAGESIZE
8641 /* Assume that all systems that can run configure have sys/param.h. */
8642 # if !HAVE_SYS_PARAM_H
8643 # define HAVE_SYS_PARAM_H 1
8644 # endif
8646 # ifdef _SC_PAGESIZE
8647 # define getpagesize() sysconf(_SC_PAGESIZE)
8648 # else /* no _SC_PAGESIZE */
8649 # if HAVE_SYS_PARAM_H
8650 # include <sys/param.h>
8651 # ifdef EXEC_PAGESIZE
8652 # define getpagesize() EXEC_PAGESIZE
8653 # else /* no EXEC_PAGESIZE */
8654 # ifdef NBPG
8655 # define getpagesize() NBPG * CLSIZE
8656 # ifndef CLSIZE
8657 # define CLSIZE 1
8658 # endif /* no CLSIZE */
8659 # else /* no NBPG */
8660 # ifdef NBPC
8661 # define getpagesize() NBPC
8662 # else /* no NBPC */
8663 # ifdef PAGESIZE
8664 # define getpagesize() PAGESIZE
8665 # endif /* PAGESIZE */
8666 # endif /* no NBPC */
8667 # endif /* no NBPG */
8668 # endif /* no EXEC_PAGESIZE */
8669 # else /* no HAVE_SYS_PARAM_H */
8670 # define getpagesize() 8192 /* punt totally */
8671 # endif /* no HAVE_SYS_PARAM_H */
8672 # endif /* no _SC_PAGESIZE */
8674 #endif /* no HAVE_GETPAGESIZE */
8677 main ()
8679 char *data, *data2, *data3;
8680 int i, pagesize;
8681 int fd;
8683 pagesize = getpagesize ();
8685 /* First, make a file with some known garbage in it. */
8686 data = (char *) malloc (pagesize);
8687 if (!data)
8688 exit (1);
8689 for (i = 0; i < pagesize; ++i)
8690 *(data + i) = rand ();
8691 umask (0);
8692 fd = creat ("conftest.mmap", 0600);
8693 if (fd < 0)
8694 exit (1);
8695 if (write (fd, data, pagesize) != pagesize)
8696 exit (1);
8697 close (fd);
8699 /* Next, try to mmap the file at a fixed address which already has
8700 something else allocated at it. If we can, also make sure that
8701 we see the same garbage. */
8702 fd = open ("conftest.mmap", O_RDWR);
8703 if (fd < 0)
8704 exit (1);
8705 data2 = (char *) malloc (2 * pagesize);
8706 if (!data2)
8707 exit (1);
8708 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8709 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8710 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8711 exit (1);
8712 for (i = 0; i < pagesize; ++i)
8713 if (*(data + i) != *(data2 + i))
8714 exit (1);
8716 /* Finally, make sure that changes to the mapped area do not
8717 percolate back to the file as seen by read(). (This is a bug on
8718 some variants of i386 svr4.0.) */
8719 for (i = 0; i < pagesize; ++i)
8720 *(data2 + i) = *(data2 + i) + 1;
8721 data3 = (char *) malloc (pagesize);
8722 if (!data3)
8723 exit (1);
8724 if (read (fd, data3, pagesize) != pagesize)
8725 exit (1);
8726 for (i = 0; i < pagesize; ++i)
8727 if (*(data + i) != *(data3 + i))
8728 exit (1);
8729 close (fd);
8730 exit (0);
8732 _ACEOF
8733 rm -f conftest$ac_exeext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8735 (eval $ac_link) 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 (eval $ac_try) 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_cv_func_mmap_fixed_mapped=yes
8745 else
8746 echo "$as_me: program exited with status $ac_status" >&5
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8750 ( exit $ac_status )
8751 ac_cv_func_mmap_fixed_mapped=no
8753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8756 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8757 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8758 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8760 cat >>confdefs.h <<\_ACEOF
8761 #define HAVE_MMAP 1
8762 _ACEOF
8765 rm -f conftest.mmap
8769 echo "$as_me:$LINENO: checking for working strncmp" >&5
8770 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
8771 if test "${ac_cv_func_strncmp_works+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774 if test "$cross_compiling" = yes; then
8775 ac_cv_func_strncmp_works=no
8776 else
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8784 /* Test by Jim Wilson and Kaveh Ghazi.
8785 Check whether strncmp reads past the end of its string parameters. */
8786 #include <sys/types.h>
8788 #ifdef HAVE_FCNTL_H
8789 #include <fcntl.h>
8790 #endif
8792 #ifdef HAVE_SYS_MMAN_H
8793 #include <sys/mman.h>
8794 #endif
8796 #ifndef MAP_ANON
8797 #ifdef MAP_ANONYMOUS
8798 #define MAP_ANON MAP_ANONYMOUS
8799 #else
8800 #define MAP_ANON MAP_FILE
8801 #endif
8802 #endif
8804 #ifndef MAP_FILE
8805 #define MAP_FILE 0
8806 #endif
8807 #ifndef O_RDONLY
8808 #define O_RDONLY 0
8809 #endif
8811 #define MAP_LEN 0x10000
8813 main ()
8815 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
8816 char *p;
8817 int dev_zero;
8819 dev_zero = open ("/dev/zero", O_RDONLY);
8820 if (dev_zero < 0)
8821 exit (1);
8823 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8824 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8825 if (p == (char *)-1)
8826 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8827 MAP_ANON|MAP_PRIVATE, -1, 0);
8828 if (p == (char *)-1)
8829 exit (2);
8830 else
8832 char *string = "__si_type_info";
8833 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8834 char *r = (char *) p + 0xe;
8836 strcpy (q, string);
8837 strcpy (r, string);
8838 strncmp (r, q, 14);
8840 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8841 exit (0);
8844 _ACEOF
8845 rm -f conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 (eval $ac_try) 2>&5
8853 ac_status=$?
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 ac_cv_func_strncmp_works=yes
8857 else
8858 echo "$as_me: program exited with status $ac_status" >&5
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8862 ( exit $ac_status )
8863 ac_cv_func_strncmp_works=no
8865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8867 rm -f core core.* *.core
8869 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8870 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
8871 if test $ac_cv_func_strncmp_works = no ; then
8872 case $LIBOBJS in
8873 "strncmp.$ac_objext" | \
8874 *" strncmp.$ac_objext" | \
8875 "strncmp.$ac_objext "* | \
8876 *" strncmp.$ac_objext "* ) ;;
8877 *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;;
8878 esac
8883 # Install a library built with a cross compiler in $(tooldir) rather
8884 # than $(libdir).
8885 if test -z "${with_cross_host}"; then
8886 INSTALL_DEST=libdir
8887 else
8888 INSTALL_DEST=tooldir
8893 L=""
8894 for l in x $LIBOBJS; do
8895 case $l in
8896 x) ;;
8897 *) L="$L ./$l" ;;
8898 esac
8899 done
8900 LIBOBJS="$L"
8906 # We need multilib support, but only if configuring for the target.
8907 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
8909 ac_config_commands="$ac_config_commands default"
8911 cat >confcache <<\_ACEOF
8912 # This file is a shell script that caches the results of configure
8913 # tests run on this system so they can be shared between configure
8914 # scripts and configure runs, see configure's option --config-cache.
8915 # It is not useful on other systems. If it contains results you don't
8916 # want to keep, you may remove or edit it.
8918 # config.status only pays attention to the cache file if you give it
8919 # the --recheck option to rerun configure.
8921 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8922 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8923 # following values.
8925 _ACEOF
8927 # The following way of writing the cache mishandles newlines in values,
8928 # but we know of no workaround that is simple, portable, and efficient.
8929 # So, don't put newlines in cache variables' values.
8930 # Ultrix sh set writes to stderr and can't be redirected directly,
8931 # and sets the high bit in the cache file unless we assign to the vars.
8933 (set) 2>&1 |
8934 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8935 *ac_space=\ *)
8936 # `set' does not quote correctly, so add quotes (double-quote
8937 # substitution turns \\\\ into \\, and sed turns \\ into \).
8938 sed -n \
8939 "s/'/'\\\\''/g;
8940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8943 # `set' quotes correctly as required by POSIX, so do not add quotes.
8944 sed -n \
8945 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8947 esac;
8949 sed '
8950 t clear
8951 : clear
8952 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8953 t end
8954 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8955 : end' >>confcache
8956 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8957 if test -w $cache_file; then
8958 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8959 cat confcache >$cache_file
8960 else
8961 echo "not updating unwritable cache $cache_file"
8964 rm -f confcache
8966 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8967 # Let make expand exec_prefix.
8968 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8970 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8971 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8972 # trailing colons and then remove the whole line if VPATH becomes empty
8973 # (actually we leave an empty line to preserve line numbers).
8974 if test "x$srcdir" = x.; then
8975 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8976 s/:*\$(srcdir):*/:/;
8977 s/:*\${srcdir}:*/:/;
8978 s/:*@srcdir@:*/:/;
8979 s/^\([^=]*=[ ]*\):*/\1/;
8980 s/:*$//;
8981 s/^[^=]*=[ ]*$//;
8985 DEFS=-DHAVE_CONFIG_H
8987 ac_libobjs=
8988 ac_ltlibobjs=
8989 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8990 # 1. Remove the extension, and $U if already installed.
8991 ac_i=`echo "$ac_i" |
8992 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8993 # 2. Add them.
8994 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8995 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8996 done
8997 LIBOBJS=$ac_libobjs
8999 LTLIBOBJS=$ac_ltlibobjs
9003 : ${CONFIG_STATUS=./config.status}
9004 ac_clean_files_save=$ac_clean_files
9005 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9006 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9007 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9008 cat >$CONFIG_STATUS <<_ACEOF
9009 #! $SHELL
9010 # Generated by $as_me.
9011 # Run this file to recreate the current configuration.
9012 # Compiler output produced by configure, useful for debugging
9013 # configure, is in config.log if it exists.
9015 debug=false
9016 ac_cs_recheck=false
9017 ac_cs_silent=false
9018 SHELL=\${CONFIG_SHELL-$SHELL}
9019 _ACEOF
9021 cat >>$CONFIG_STATUS <<\_ACEOF
9022 ## --------------------- ##
9023 ## M4sh Initialization. ##
9024 ## --------------------- ##
9026 # Be Bourne compatible
9027 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9028 emulate sh
9029 NULLCMD=:
9030 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9031 # is contrary to our usage. Disable this feature.
9032 alias -g '${1+"$@"}'='"$@"'
9033 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9034 set -o posix
9036 DUALCASE=1; export DUALCASE # for MKS sh
9038 # Support unset when possible.
9039 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9040 as_unset=unset
9041 else
9042 as_unset=false
9046 # Work around bugs in pre-3.0 UWIN ksh.
9047 $as_unset ENV MAIL MAILPATH
9048 PS1='$ '
9049 PS2='> '
9050 PS4='+ '
9052 # NLS nuisances.
9053 for as_var in \
9054 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9055 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9056 LC_TELEPHONE LC_TIME
9058 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9059 eval $as_var=C; export $as_var
9060 else
9061 $as_unset $as_var
9063 done
9065 # Required to use basename.
9066 if expr a : '\(a\)' >/dev/null 2>&1; then
9067 as_expr=expr
9068 else
9069 as_expr=false
9072 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9073 as_basename=basename
9074 else
9075 as_basename=false
9079 # Name of the executable.
9080 as_me=`$as_basename "$0" ||
9081 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9082 X"$0" : 'X\(//\)$' \| \
9083 X"$0" : 'X\(/\)$' \| \
9084 . : '\(.\)' 2>/dev/null ||
9085 echo X/"$0" |
9086 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9087 /^X\/\(\/\/\)$/{ s//\1/; q; }
9088 /^X\/\(\/\).*/{ s//\1/; q; }
9089 s/.*/./; q'`
9092 # PATH needs CR, and LINENO needs CR and PATH.
9093 # Avoid depending upon Character Ranges.
9094 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9095 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9096 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9097 as_cr_digits='0123456789'
9098 as_cr_alnum=$as_cr_Letters$as_cr_digits
9100 # The user is always right.
9101 if test "${PATH_SEPARATOR+set}" != set; then
9102 echo "#! /bin/sh" >conf$$.sh
9103 echo "exit 0" >>conf$$.sh
9104 chmod +x conf$$.sh
9105 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9106 PATH_SEPARATOR=';'
9107 else
9108 PATH_SEPARATOR=:
9110 rm -f conf$$.sh
9114 as_lineno_1=$LINENO
9115 as_lineno_2=$LINENO
9116 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9117 test "x$as_lineno_1" != "x$as_lineno_2" &&
9118 test "x$as_lineno_3" = "x$as_lineno_2" || {
9119 # Find who we are. Look in the path if we contain no path at all
9120 # relative or not.
9121 case $0 in
9122 *[\\/]* ) as_myself=$0 ;;
9123 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 for as_dir in $PATH
9126 IFS=$as_save_IFS
9127 test -z "$as_dir" && as_dir=.
9128 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9129 done
9132 esac
9133 # We did not find ourselves, most probably we were run as `sh COMMAND'
9134 # in which case we are not to be found in the path.
9135 if test "x$as_myself" = x; then
9136 as_myself=$0
9138 if test ! -f "$as_myself"; then
9139 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9140 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9141 { (exit 1); exit 1; }; }
9143 case $CONFIG_SHELL in
9145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9148 IFS=$as_save_IFS
9149 test -z "$as_dir" && as_dir=.
9150 for as_base in sh bash ksh sh5; do
9151 case $as_dir in
9153 if ("$as_dir/$as_base" -c '
9154 as_lineno_1=$LINENO
9155 as_lineno_2=$LINENO
9156 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9157 test "x$as_lineno_1" != "x$as_lineno_2" &&
9158 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9159 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9160 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9161 CONFIG_SHELL=$as_dir/$as_base
9162 export CONFIG_SHELL
9163 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9164 fi;;
9165 esac
9166 done
9167 done
9169 esac
9171 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9172 # uniformly replaced by the line number. The first 'sed' inserts a
9173 # line-number line before each line; the second 'sed' does the real
9174 # work. The second script uses 'N' to pair each line-number line
9175 # with the numbered line, and appends trailing '-' during
9176 # substitution so that $LINENO is not a special case at line end.
9177 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9178 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9179 sed '=' <$as_myself |
9180 sed '
9182 s,$,-,
9183 : loop
9184 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9185 t loop
9186 s,-$,,
9187 s,^['$as_cr_digits']*\n,,
9188 ' >$as_me.lineno &&
9189 chmod +x $as_me.lineno ||
9190 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9191 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9192 { (exit 1); exit 1; }; }
9194 # Don't try to exec as it changes $[0], causing all sort of problems
9195 # (the dirname of $[0] is not the place where we might find the
9196 # original and so on. Autoconf is especially sensible to this).
9197 . ./$as_me.lineno
9198 # Exit status is that of the last command.
9199 exit
9203 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9204 *c*,-n*) ECHO_N= ECHO_C='
9205 ' ECHO_T=' ' ;;
9206 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9207 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9208 esac
9210 if expr a : '\(a\)' >/dev/null 2>&1; then
9211 as_expr=expr
9212 else
9213 as_expr=false
9216 rm -f conf$$ conf$$.exe conf$$.file
9217 echo >conf$$.file
9218 if ln -s conf$$.file conf$$ 2>/dev/null; then
9219 # We could just check for DJGPP; but this test a) works b) is more generic
9220 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9221 if test -f conf$$.exe; then
9222 # Don't use ln at all; we don't have any links
9223 as_ln_s='cp -p'
9224 else
9225 as_ln_s='ln -s'
9227 elif ln conf$$.file conf$$ 2>/dev/null; then
9228 as_ln_s=ln
9229 else
9230 as_ln_s='cp -p'
9232 rm -f conf$$ conf$$.exe conf$$.file
9234 if mkdir -p . 2>/dev/null; then
9235 as_mkdir_p=:
9236 else
9237 test -d ./-p && rmdir ./-p
9238 as_mkdir_p=false
9241 as_executable_p="test -f"
9243 # Sed expression to map a string onto a valid CPP name.
9244 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9246 # Sed expression to map a string onto a valid variable name.
9247 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9250 # IFS
9251 # We need space, tab and new line, in precisely that order.
9252 as_nl='
9254 IFS=" $as_nl"
9256 # CDPATH.
9257 $as_unset CDPATH
9259 exec 6>&1
9261 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9262 # report actual input values of CONFIG_FILES etc. instead of their
9263 # values after options handling. Logging --version etc. is OK.
9264 exec 5>>config.log
9266 echo
9267 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9268 ## Running $as_me. ##
9269 _ASBOX
9270 } >&5
9271 cat >&5 <<_CSEOF
9273 This file was extended by $as_me, which was
9274 generated by GNU Autoconf 2.59. Invocation command line was
9276 CONFIG_FILES = $CONFIG_FILES
9277 CONFIG_HEADERS = $CONFIG_HEADERS
9278 CONFIG_LINKS = $CONFIG_LINKS
9279 CONFIG_COMMANDS = $CONFIG_COMMANDS
9280 $ $0 $@
9282 _CSEOF
9283 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9284 echo >&5
9285 _ACEOF
9287 # Files that config.status was made for.
9288 if test -n "$ac_config_files"; then
9289 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9292 if test -n "$ac_config_headers"; then
9293 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9296 if test -n "$ac_config_links"; then
9297 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9300 if test -n "$ac_config_commands"; then
9301 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9304 cat >>$CONFIG_STATUS <<\_ACEOF
9306 ac_cs_usage="\
9307 \`$as_me' instantiates files from templates according to the
9308 current configuration.
9310 Usage: $0 [OPTIONS] [FILE]...
9312 -h, --help print this help, then exit
9313 -V, --version print version number, then exit
9314 -q, --quiet do not print progress messages
9315 -d, --debug don't remove temporary files
9316 --recheck update $as_me by reconfiguring in the same conditions
9317 --file=FILE[:TEMPLATE]
9318 instantiate the configuration file FILE
9319 --header=FILE[:TEMPLATE]
9320 instantiate the configuration header FILE
9322 Configuration files:
9323 $config_files
9325 Configuration headers:
9326 $config_headers
9328 Configuration commands:
9329 $config_commands
9331 Report bugs to <bug-autoconf@gnu.org>."
9332 _ACEOF
9334 cat >>$CONFIG_STATUS <<_ACEOF
9335 ac_cs_version="\\
9336 config.status
9337 configured by $0, generated by GNU Autoconf 2.59,
9338 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9340 Copyright (C) 2003 Free Software Foundation, Inc.
9341 This config.status script is free software; the Free Software Foundation
9342 gives unlimited permission to copy, distribute and modify it."
9343 srcdir=$srcdir
9344 INSTALL="$INSTALL"
9345 _ACEOF
9347 cat >>$CONFIG_STATUS <<\_ACEOF
9348 # If no file are specified by the user, then we need to provide default
9349 # value. By we need to know if files were specified by the user.
9350 ac_need_defaults=:
9351 while test $# != 0
9353 case $1 in
9354 --*=*)
9355 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9356 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9357 ac_shift=:
9360 ac_option=$1
9361 ac_optarg=$2
9362 ac_shift=shift
9364 *) # This is not an option, so the user has probably given explicit
9365 # arguments.
9366 ac_option=$1
9367 ac_need_defaults=false;;
9368 esac
9370 case $ac_option in
9371 # Handling of the options.
9372 _ACEOF
9373 cat >>$CONFIG_STATUS <<\_ACEOF
9374 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9375 ac_cs_recheck=: ;;
9376 --version | --vers* | -V )
9377 echo "$ac_cs_version"; exit 0 ;;
9378 --he | --h)
9379 # Conflict between --help and --header
9380 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9381 Try \`$0 --help' for more information." >&5
9382 echo "$as_me: error: ambiguous option: $1
9383 Try \`$0 --help' for more information." >&2;}
9384 { (exit 1); exit 1; }; };;
9385 --help | --hel | -h )
9386 echo "$ac_cs_usage"; exit 0 ;;
9387 --debug | --d* | -d )
9388 debug=: ;;
9389 --file | --fil | --fi | --f )
9390 $ac_shift
9391 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9392 ac_need_defaults=false;;
9393 --header | --heade | --head | --hea )
9394 $ac_shift
9395 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9396 ac_need_defaults=false;;
9397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9398 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9399 ac_cs_silent=: ;;
9401 # This is an error.
9402 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9403 Try \`$0 --help' for more information." >&5
9404 echo "$as_me: error: unrecognized option: $1
9405 Try \`$0 --help' for more information." >&2;}
9406 { (exit 1); exit 1; }; } ;;
9408 *) ac_config_targets="$ac_config_targets $1" ;;
9410 esac
9411 shift
9412 done
9414 ac_configure_extra_args=
9416 if $ac_cs_silent; then
9417 exec 6>/dev/null
9418 ac_configure_extra_args="$ac_configure_extra_args --silent"
9421 _ACEOF
9422 cat >>$CONFIG_STATUS <<_ACEOF
9423 if \$ac_cs_recheck; then
9424 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9425 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9428 _ACEOF
9430 cat >>$CONFIG_STATUS <<_ACEOF
9432 # INIT-COMMANDS section.
9435 srcdir=${srcdir}
9436 host=${host}
9437 target=${target}
9438 with_target_subdir=${with_target_subdir}
9439 with_multisubdir=${with_multisubdir}
9440 ac_configure_args="--enable-multilib ${ac_configure_args}"
9441 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9442 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9443 libiberty_topdir=${libiberty_topdir}
9446 _ACEOF
9450 cat >>$CONFIG_STATUS <<\_ACEOF
9451 for ac_config_target in $ac_config_targets
9453 case "$ac_config_target" in
9454 # Handling of arguments.
9455 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9456 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
9457 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9458 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9459 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9460 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9461 { (exit 1); exit 1; }; };;
9462 esac
9463 done
9465 # If the user did not use the arguments to specify the items to instantiate,
9466 # then the envvar interface is used. Set only those that are not.
9467 # We use the long form for the default assignment because of an extremely
9468 # bizarre bug on SunOS 4.1.3.
9469 if $ac_need_defaults; then
9470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9471 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9472 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9475 # Have a temporary directory for convenience. Make it in the build tree
9476 # simply because there is no reason to put it here, and in addition,
9477 # creating and moving files from /tmp can sometimes cause problems.
9478 # Create a temporary directory, and hook for its removal unless debugging.
9479 $debug ||
9481 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9482 trap '{ (exit 1); exit 1; }' 1 2 13 15
9485 # Create a (secure) tmp directory for tmp files.
9488 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9489 test -n "$tmp" && test -d "$tmp"
9490 } ||
9492 tmp=./confstat$$-$RANDOM
9493 (umask 077 && mkdir $tmp)
9494 } ||
9496 echo "$me: cannot create a temporary directory in ." >&2
9497 { (exit 1); exit 1; }
9500 _ACEOF
9502 cat >>$CONFIG_STATUS <<_ACEOF
9505 # CONFIG_FILES section.
9508 # No need to generate the scripts if there are no CONFIG_FILES.
9509 # This happens for instance when ./config.status config.h
9510 if test -n "\$CONFIG_FILES"; then
9511 # Protect against being on the right side of a sed subst in config.status.
9512 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9513 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9514 s,@SHELL@,$SHELL,;t t
9515 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9516 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9517 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9518 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9519 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9520 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9521 s,@exec_prefix@,$exec_prefix,;t t
9522 s,@prefix@,$prefix,;t t
9523 s,@program_transform_name@,$program_transform_name,;t t
9524 s,@bindir@,$bindir,;t t
9525 s,@sbindir@,$sbindir,;t t
9526 s,@libexecdir@,$libexecdir,;t t
9527 s,@datadir@,$datadir,;t t
9528 s,@sysconfdir@,$sysconfdir,;t t
9529 s,@sharedstatedir@,$sharedstatedir,;t t
9530 s,@localstatedir@,$localstatedir,;t t
9531 s,@libdir@,$libdir,;t t
9532 s,@includedir@,$includedir,;t t
9533 s,@oldincludedir@,$oldincludedir,;t t
9534 s,@infodir@,$infodir,;t t
9535 s,@mandir@,$mandir,;t t
9536 s,@build_alias@,$build_alias,;t t
9537 s,@host_alias@,$host_alias,;t t
9538 s,@target_alias@,$target_alias,;t t
9539 s,@DEFS@,$DEFS,;t t
9540 s,@ECHO_C@,$ECHO_C,;t t
9541 s,@ECHO_N@,$ECHO_N,;t t
9542 s,@ECHO_T@,$ECHO_T,;t t
9543 s,@LIBS@,$LIBS,;t t
9544 s,@libiberty_topdir@,$libiberty_topdir,;t t
9545 s,@MAINT@,$MAINT,;t t
9546 s,@NOTMAINT@,$NOTMAINT,;t t
9547 s,@MAKEINFO@,$MAKEINFO,;t t
9548 s,@BUILD_INFO@,$BUILD_INFO,;t t
9549 s,@PERL@,$PERL,;t t
9550 s,@HAVE_PERL@,$HAVE_PERL,;t t
9551 s,@build@,$build,;t t
9552 s,@build_cpu@,$build_cpu,;t t
9553 s,@build_vendor@,$build_vendor,;t t
9554 s,@build_os@,$build_os,;t t
9555 s,@host@,$host,;t t
9556 s,@host_cpu@,$host_cpu,;t t
9557 s,@host_vendor@,$host_vendor,;t t
9558 s,@host_os@,$host_os,;t t
9559 s,@AR@,$AR,;t t
9560 s,@ac_ct_AR@,$ac_ct_AR,;t t
9561 s,@RANLIB@,$RANLIB,;t t
9562 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9563 s,@CC@,$CC,;t t
9564 s,@CFLAGS@,$CFLAGS,;t t
9565 s,@LDFLAGS@,$LDFLAGS,;t t
9566 s,@CPPFLAGS@,$CPPFLAGS,;t t
9567 s,@ac_ct_CC@,$ac_ct_CC,;t t
9568 s,@EXEEXT@,$EXEEXT,;t t
9569 s,@OBJEXT@,$OBJEXT,;t t
9570 s,@CPP@,$CPP,;t t
9571 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
9572 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
9573 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
9574 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9575 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9576 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9577 s,@EGREP@,$EGREP,;t t
9578 s,@LIBOBJS@,$LIBOBJS,;t t
9579 s,@CHECK@,$CHECK,;t t
9580 s,@target_header_dir@,$target_header_dir,;t t
9581 s,@pexecute@,$pexecute,;t t
9582 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
9583 s,@datarootdir@,$datarootdir,;t t
9584 s,@docdir@,$docdir,;t t
9585 s,@htmldir@,$htmldir,;t t
9586 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9587 /@host_makefile_frag@/r $host_makefile_frag
9588 s,@host_makefile_frag@,,;t t
9589 CEOF
9591 _ACEOF
9593 cat >>$CONFIG_STATUS <<\_ACEOF
9594 # Split the substitutions into bite-sized pieces for seds with
9595 # small command number limits, like on Digital OSF/1 and HP-UX.
9596 ac_max_sed_lines=48
9597 ac_sed_frag=1 # Number of current file.
9598 ac_beg=1 # First line for current file.
9599 ac_end=$ac_max_sed_lines # Line after last line for current file.
9600 ac_more_lines=:
9601 ac_sed_cmds=
9602 while $ac_more_lines; do
9603 if test $ac_beg -gt 1; then
9604 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9605 else
9606 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9608 if test ! -s $tmp/subs.frag; then
9609 ac_more_lines=false
9610 else
9611 # The purpose of the label and of the branching condition is to
9612 # speed up the sed processing (if there are no `@' at all, there
9613 # is no need to browse any of the substitutions).
9614 # These are the two extra sed commands mentioned above.
9615 (echo ':t
9616 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9617 if test -z "$ac_sed_cmds"; then
9618 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9619 else
9620 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9622 ac_sed_frag=`expr $ac_sed_frag + 1`
9623 ac_beg=$ac_end
9624 ac_end=`expr $ac_end + $ac_max_sed_lines`
9626 done
9627 if test -z "$ac_sed_cmds"; then
9628 ac_sed_cmds=cat
9630 fi # test -n "$CONFIG_FILES"
9632 _ACEOF
9633 cat >>$CONFIG_STATUS <<\_ACEOF
9634 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9635 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9636 case $ac_file in
9637 - | *:- | *:-:* ) # input from stdin
9638 cat >$tmp/stdin
9639 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9640 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9641 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9642 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9643 * ) ac_file_in=$ac_file.in ;;
9644 esac
9646 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9647 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9649 X"$ac_file" : 'X\(//\)[^/]' \| \
9650 X"$ac_file" : 'X\(//\)$' \| \
9651 X"$ac_file" : 'X\(/\)' \| \
9652 . : '\(.\)' 2>/dev/null ||
9653 echo X"$ac_file" |
9654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9656 /^X\(\/\/\)$/{ s//\1/; q; }
9657 /^X\(\/\).*/{ s//\1/; q; }
9658 s/.*/./; q'`
9659 { if $as_mkdir_p; then
9660 mkdir -p "$ac_dir"
9661 else
9662 as_dir="$ac_dir"
9663 as_dirs=
9664 while test ! -d "$as_dir"; do
9665 as_dirs="$as_dir $as_dirs"
9666 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9668 X"$as_dir" : 'X\(//\)[^/]' \| \
9669 X"$as_dir" : 'X\(//\)$' \| \
9670 X"$as_dir" : 'X\(/\)' \| \
9671 . : '\(.\)' 2>/dev/null ||
9672 echo X"$as_dir" |
9673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9675 /^X\(\/\/\)$/{ s//\1/; q; }
9676 /^X\(\/\).*/{ s//\1/; q; }
9677 s/.*/./; q'`
9678 done
9679 test ! -n "$as_dirs" || mkdir $as_dirs
9680 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9681 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9682 { (exit 1); exit 1; }; }; }
9684 ac_builddir=.
9686 if test "$ac_dir" != .; then
9687 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9688 # A "../" for each directory in $ac_dir_suffix.
9689 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9690 else
9691 ac_dir_suffix= ac_top_builddir=
9694 case $srcdir in
9695 .) # No --srcdir option. We are building in place.
9696 ac_srcdir=.
9697 if test -z "$ac_top_builddir"; then
9698 ac_top_srcdir=.
9699 else
9700 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9701 fi ;;
9702 [\\/]* | ?:[\\/]* ) # Absolute path.
9703 ac_srcdir=$srcdir$ac_dir_suffix;
9704 ac_top_srcdir=$srcdir ;;
9705 *) # Relative path.
9706 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9707 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9708 esac
9710 # Do not use `cd foo && pwd` to compute absolute paths, because
9711 # the directories may not exist.
9712 case `pwd` in
9713 .) ac_abs_builddir="$ac_dir";;
9715 case "$ac_dir" in
9716 .) ac_abs_builddir=`pwd`;;
9717 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9718 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9719 esac;;
9720 esac
9721 case $ac_abs_builddir in
9722 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9724 case ${ac_top_builddir}. in
9725 .) ac_abs_top_builddir=$ac_abs_builddir;;
9726 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9727 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9728 esac;;
9729 esac
9730 case $ac_abs_builddir in
9731 .) ac_abs_srcdir=$ac_srcdir;;
9733 case $ac_srcdir in
9734 .) ac_abs_srcdir=$ac_abs_builddir;;
9735 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9736 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9737 esac;;
9738 esac
9739 case $ac_abs_builddir in
9740 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9742 case $ac_top_srcdir in
9743 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9744 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9745 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9746 esac;;
9747 esac
9750 case $INSTALL in
9751 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9752 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9753 esac
9755 if test x"$ac_file" != x-; then
9756 { echo "$as_me:$LINENO: creating $ac_file" >&5
9757 echo "$as_me: creating $ac_file" >&6;}
9758 rm -f "$ac_file"
9760 # Let's still pretend it is `configure' which instantiates (i.e., don't
9761 # use $as_me), people would be surprised to read:
9762 # /* config.h. Generated by config.status. */
9763 if test x"$ac_file" = x-; then
9764 configure_input=
9765 else
9766 configure_input="$ac_file. "
9768 configure_input=$configure_input"Generated from `echo $ac_file_in |
9769 sed 's,.*/,,'` by configure."
9771 # First look for the input files in the build tree, otherwise in the
9772 # src tree.
9773 ac_file_inputs=`IFS=:
9774 for f in $ac_file_in; do
9775 case $f in
9776 -) echo $tmp/stdin ;;
9777 [\\/$]*)
9778 # Absolute (can't be DOS-style, as IFS=:)
9779 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9780 echo "$as_me: error: cannot find input file: $f" >&2;}
9781 { (exit 1); exit 1; }; }
9782 echo "$f";;
9783 *) # Relative
9784 if test -f "$f"; then
9785 # Build tree
9786 echo "$f"
9787 elif test -f "$srcdir/$f"; then
9788 # Source tree
9789 echo "$srcdir/$f"
9790 else
9791 # /dev/null tree
9792 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9793 echo "$as_me: error: cannot find input file: $f" >&2;}
9794 { (exit 1); exit 1; }; }
9795 fi;;
9796 esac
9797 done` || { (exit 1); exit 1; }
9798 _ACEOF
9799 cat >>$CONFIG_STATUS <<_ACEOF
9800 sed "$ac_vpsub
9801 $extrasub
9802 _ACEOF
9803 cat >>$CONFIG_STATUS <<\_ACEOF
9805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9806 s,@configure_input@,$configure_input,;t t
9807 s,@srcdir@,$ac_srcdir,;t t
9808 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9809 s,@top_srcdir@,$ac_top_srcdir,;t t
9810 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9811 s,@builddir@,$ac_builddir,;t t
9812 s,@abs_builddir@,$ac_abs_builddir,;t t
9813 s,@top_builddir@,$ac_top_builddir,;t t
9814 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9815 s,@INSTALL@,$ac_INSTALL,;t t
9816 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9817 rm -f $tmp/stdin
9818 if test x"$ac_file" != x-; then
9819 mv $tmp/out $ac_file
9820 else
9821 cat $tmp/out
9822 rm -f $tmp/out
9825 done
9826 _ACEOF
9827 cat >>$CONFIG_STATUS <<\_ACEOF
9830 # CONFIG_HEADER section.
9833 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9834 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9836 # ac_d sets the value in "#define NAME VALUE" lines.
9837 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9838 ac_dB='[ ].*$,\1#\2'
9839 ac_dC=' '
9840 ac_dD=',;t'
9841 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9842 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9843 ac_uB='$,\1#\2define\3'
9844 ac_uC=' '
9845 ac_uD=',;t'
9847 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9848 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9849 case $ac_file in
9850 - | *:- | *:-:* ) # input from stdin
9851 cat >$tmp/stdin
9852 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9853 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9854 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9855 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9856 * ) ac_file_in=$ac_file.in ;;
9857 esac
9859 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9860 echo "$as_me: creating $ac_file" >&6;}
9862 # First look for the input files in the build tree, otherwise in the
9863 # src tree.
9864 ac_file_inputs=`IFS=:
9865 for f in $ac_file_in; do
9866 case $f in
9867 -) echo $tmp/stdin ;;
9868 [\\/$]*)
9869 # Absolute (can't be DOS-style, as IFS=:)
9870 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9871 echo "$as_me: error: cannot find input file: $f" >&2;}
9872 { (exit 1); exit 1; }; }
9873 # Do quote $f, to prevent DOS paths from being IFS'd.
9874 echo "$f";;
9875 *) # Relative
9876 if test -f "$f"; then
9877 # Build tree
9878 echo "$f"
9879 elif test -f "$srcdir/$f"; then
9880 # Source tree
9881 echo "$srcdir/$f"
9882 else
9883 # /dev/null tree
9884 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9885 echo "$as_me: error: cannot find input file: $f" >&2;}
9886 { (exit 1); exit 1; }; }
9887 fi;;
9888 esac
9889 done` || { (exit 1); exit 1; }
9890 # Remove the trailing spaces.
9891 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9893 _ACEOF
9895 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9896 # `conftest.undefs', that substitutes the proper values into
9897 # config.h.in to produce config.h. The first handles `#define'
9898 # templates, and the second `#undef' templates.
9899 # And first: Protect against being on the right side of a sed subst in
9900 # config.status. Protect against being in an unquoted here document
9901 # in config.status.
9902 rm -f conftest.defines conftest.undefs
9903 # Using a here document instead of a string reduces the quoting nightmare.
9904 # Putting comments in sed scripts is not portable.
9906 # `end' is used to avoid that the second main sed command (meant for
9907 # 0-ary CPP macros) applies to n-ary macro definitions.
9908 # See the Autoconf documentation for `clear'.
9909 cat >confdef2sed.sed <<\_ACEOF
9910 s/[\\&,]/\\&/g
9911 s,[\\$`],\\&,g
9912 t clear
9913 : clear
9914 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9915 t end
9916 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9917 : end
9918 _ACEOF
9919 # If some macros were called several times there might be several times
9920 # the same #defines, which is useless. Nevertheless, we may not want to
9921 # sort them, since we want the *last* AC-DEFINE to be honored.
9922 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9923 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9924 rm -f confdef2sed.sed
9926 # This sed command replaces #undef with comments. This is necessary, for
9927 # example, in the case of _POSIX_SOURCE, which is predefined and required
9928 # on some systems where configure will not decide to define it.
9929 cat >>conftest.undefs <<\_ACEOF
9930 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9931 _ACEOF
9933 # Break up conftest.defines because some shells have a limit on the size
9934 # of here documents, and old seds have small limits too (100 cmds).
9935 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9936 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9937 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9938 echo ' :' >>$CONFIG_STATUS
9939 rm -f conftest.tail
9940 while grep . conftest.defines >/dev/null
9942 # Write a limited-size here document to $tmp/defines.sed.
9943 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9944 # Speed up: don't consider the non `#define' lines.
9945 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9946 # Work around the forget-to-reset-the-flag bug.
9947 echo 't clr' >>$CONFIG_STATUS
9948 echo ': clr' >>$CONFIG_STATUS
9949 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9950 echo 'CEOF
9951 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9952 rm -f $tmp/in
9953 mv $tmp/out $tmp/in
9954 ' >>$CONFIG_STATUS
9955 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9956 rm -f conftest.defines
9957 mv conftest.tail conftest.defines
9958 done
9959 rm -f conftest.defines
9960 echo ' fi # grep' >>$CONFIG_STATUS
9961 echo >>$CONFIG_STATUS
9963 # Break up conftest.undefs because some shells have a limit on the size
9964 # of here documents, and old seds have small limits too (100 cmds).
9965 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9966 rm -f conftest.tail
9967 while grep . conftest.undefs >/dev/null
9969 # Write a limited-size here document to $tmp/undefs.sed.
9970 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9971 # Speed up: don't consider the non `#undef'
9972 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9973 # Work around the forget-to-reset-the-flag bug.
9974 echo 't clr' >>$CONFIG_STATUS
9975 echo ': clr' >>$CONFIG_STATUS
9976 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9977 echo 'CEOF
9978 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9979 rm -f $tmp/in
9980 mv $tmp/out $tmp/in
9981 ' >>$CONFIG_STATUS
9982 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9983 rm -f conftest.undefs
9984 mv conftest.tail conftest.undefs
9985 done
9986 rm -f conftest.undefs
9988 cat >>$CONFIG_STATUS <<\_ACEOF
9989 # Let's still pretend it is `configure' which instantiates (i.e., don't
9990 # use $as_me), people would be surprised to read:
9991 # /* config.h. Generated by config.status. */
9992 if test x"$ac_file" = x-; then
9993 echo "/* Generated by configure. */" >$tmp/config.h
9994 else
9995 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9997 cat $tmp/in >>$tmp/config.h
9998 rm -f $tmp/in
9999 if test x"$ac_file" != x-; then
10000 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10001 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10002 echo "$as_me: $ac_file is unchanged" >&6;}
10003 else
10004 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10005 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10006 X"$ac_file" : 'X\(//\)[^/]' \| \
10007 X"$ac_file" : 'X\(//\)$' \| \
10008 X"$ac_file" : 'X\(/\)' \| \
10009 . : '\(.\)' 2>/dev/null ||
10010 echo X"$ac_file" |
10011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10013 /^X\(\/\/\)$/{ s//\1/; q; }
10014 /^X\(\/\).*/{ s//\1/; q; }
10015 s/.*/./; q'`
10016 { if $as_mkdir_p; then
10017 mkdir -p "$ac_dir"
10018 else
10019 as_dir="$ac_dir"
10020 as_dirs=
10021 while test ! -d "$as_dir"; do
10022 as_dirs="$as_dir $as_dirs"
10023 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10025 X"$as_dir" : 'X\(//\)[^/]' \| \
10026 X"$as_dir" : 'X\(//\)$' \| \
10027 X"$as_dir" : 'X\(/\)' \| \
10028 . : '\(.\)' 2>/dev/null ||
10029 echo X"$as_dir" |
10030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10032 /^X\(\/\/\)$/{ s//\1/; q; }
10033 /^X\(\/\).*/{ s//\1/; q; }
10034 s/.*/./; q'`
10035 done
10036 test ! -n "$as_dirs" || mkdir $as_dirs
10037 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10038 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10039 { (exit 1); exit 1; }; }; }
10041 rm -f $ac_file
10042 mv $tmp/config.h $ac_file
10044 else
10045 cat $tmp/config.h
10046 rm -f $tmp/config.h
10048 done
10049 _ACEOF
10050 cat >>$CONFIG_STATUS <<\_ACEOF
10053 # CONFIG_COMMANDS section.
10055 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10056 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10057 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10058 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10059 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10060 X"$ac_dest" : 'X\(//\)[^/]' \| \
10061 X"$ac_dest" : 'X\(//\)$' \| \
10062 X"$ac_dest" : 'X\(/\)' \| \
10063 . : '\(.\)' 2>/dev/null ||
10064 echo X"$ac_dest" |
10065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10066 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10067 /^X\(\/\/\)$/{ s//\1/; q; }
10068 /^X\(\/\).*/{ s//\1/; q; }
10069 s/.*/./; q'`
10070 { if $as_mkdir_p; then
10071 mkdir -p "$ac_dir"
10072 else
10073 as_dir="$ac_dir"
10074 as_dirs=
10075 while test ! -d "$as_dir"; do
10076 as_dirs="$as_dir $as_dirs"
10077 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10079 X"$as_dir" : 'X\(//\)[^/]' \| \
10080 X"$as_dir" : 'X\(//\)$' \| \
10081 X"$as_dir" : 'X\(/\)' \| \
10082 . : '\(.\)' 2>/dev/null ||
10083 echo X"$as_dir" |
10084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10086 /^X\(\/\/\)$/{ s//\1/; q; }
10087 /^X\(\/\).*/{ s//\1/; q; }
10088 s/.*/./; q'`
10089 done
10090 test ! -n "$as_dirs" || mkdir $as_dirs
10091 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10092 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10093 { (exit 1); exit 1; }; }; }
10095 ac_builddir=.
10097 if test "$ac_dir" != .; then
10098 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10099 # A "../" for each directory in $ac_dir_suffix.
10100 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10101 else
10102 ac_dir_suffix= ac_top_builddir=
10105 case $srcdir in
10106 .) # No --srcdir option. We are building in place.
10107 ac_srcdir=.
10108 if test -z "$ac_top_builddir"; then
10109 ac_top_srcdir=.
10110 else
10111 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10112 fi ;;
10113 [\\/]* | ?:[\\/]* ) # Absolute path.
10114 ac_srcdir=$srcdir$ac_dir_suffix;
10115 ac_top_srcdir=$srcdir ;;
10116 *) # Relative path.
10117 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10118 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10119 esac
10121 # Do not use `cd foo && pwd` to compute absolute paths, because
10122 # the directories may not exist.
10123 case `pwd` in
10124 .) ac_abs_builddir="$ac_dir";;
10126 case "$ac_dir" in
10127 .) ac_abs_builddir=`pwd`;;
10128 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10129 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10130 esac;;
10131 esac
10132 case $ac_abs_builddir in
10133 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10135 case ${ac_top_builddir}. in
10136 .) ac_abs_top_builddir=$ac_abs_builddir;;
10137 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10138 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10139 esac;;
10140 esac
10141 case $ac_abs_builddir in
10142 .) ac_abs_srcdir=$ac_srcdir;;
10144 case $ac_srcdir in
10145 .) ac_abs_srcdir=$ac_abs_builddir;;
10146 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10147 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10148 esac;;
10149 esac
10150 case $ac_abs_builddir in
10151 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10153 case $ac_top_srcdir in
10154 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10155 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10156 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10157 esac;;
10158 esac
10161 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10162 echo "$as_me: executing $ac_dest commands" >&6;}
10163 case $ac_dest in
10164 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
10165 if test -n "$CONFIG_FILES"; then
10166 if test -n "${with_target_subdir}"; then
10167 # FIXME: We shouldn't need to set ac_file
10168 ac_file=Makefile
10169 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
10170 . ${libiberty_topdir}/config-ml.in
10172 fi ;;
10173 esac
10174 done
10175 _ACEOF
10177 cat >>$CONFIG_STATUS <<\_ACEOF
10179 { (exit 0); exit 0; }
10180 _ACEOF
10181 chmod +x $CONFIG_STATUS
10182 ac_clean_files=$ac_clean_files_save
10185 # configure is writing to config.log, and then calls config.status.
10186 # config.status does its own redirection, appending to config.log.
10187 # Unfortunately, on DOS this fails, as config.log is still kept open
10188 # by configure, so config.status won't be able to write to it; its
10189 # output is simply discarded. So we exec the FD to /dev/null,
10190 # effectively closing config.log, so it can be properly (re)opened and
10191 # appended to by config.status. When coming back to configure, we
10192 # need to make the FD available again.
10193 if test "$no_create" != yes; then
10194 ac_cs_success=:
10195 ac_config_status_args=
10196 test "$silent" = yes &&
10197 ac_config_status_args="$ac_config_status_args --quiet"
10198 exec 5>/dev/null
10199 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10200 exec 5>>config.log
10201 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10202 # would make configure fail if this is the last instruction.
10203 $ac_cs_success || { (exit 1); exit 1; }