OSDN Git Service

71b6ccd95b5fb38344b981a3e708afa167d13f2d
[pf3gnuchains/gcc-fork.git] / libiberty / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48   fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117        ;;
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
123   fi
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; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137          /*)
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
153 ;;
154   esac
155
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 '
166       N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
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'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
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}
261
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}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
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"
311
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 PICFLAG EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST datarootdir docdir htmldir LTLIBOBJS'
313 ac_subst_files='host_makefile_frag'
314 ac_pwd=`pwd`
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 System types:
836   --build=BUILD     configure for building on BUILD [guessed]
837   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional Features:
846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848   --enable-maintainer-mode
849                           enable make rules and dependencies not useful
850                           (and sometimes confusing) to the casual installer
851   --enable-multilib       build many library versions (default)
852   --disable-largefile     omit support for large files
853   --enable-install-libiberty       Install headers for end users
854
855 Optional Packages:
856   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
857   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
858   --with-target-subdir=SUBDIR      Configuring in a subdirectory for target
859   --with-build-subdir=SUBDIR       Configuring in a subdirectory for build
860   --with-cross-host=HOST           Configuring with a cross compiler
861   --with-newlib                    Configuring with newlib
862
863 Some influential environment variables:
864   CC          C compiler command
865   CFLAGS      C compiler flags
866   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
867               nonstandard directory <lib dir>
868   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
869               headers in a nonstandard directory <include dir>
870   CPP         C preprocessor
871
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
874
875 _ACEOF
876 fi
877
878 if test "$ac_init_help" = "recursive"; then
879   # If there are subdirs, report their specific --help.
880   ac_popdir=`pwd`
881   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882     test -d $ac_dir || continue
883     ac_builddir=.
884
885 if test "$ac_dir" != .; then
886   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887   # A "../" for each directory in $ac_dir_suffix.
888   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 else
890   ac_dir_suffix= ac_top_builddir=
891 fi
892
893 case $srcdir in
894   .)  # No --srcdir option.  We are building in place.
895     ac_srcdir=.
896     if test -z "$ac_top_builddir"; then
897        ac_top_srcdir=.
898     else
899        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900     fi ;;
901   [\\/]* | ?:[\\/]* )  # Absolute path.
902     ac_srcdir=$srcdir$ac_dir_suffix;
903     ac_top_srcdir=$srcdir ;;
904   *) # Relative path.
905     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906     ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 esac
908
909 # Do not use `cd foo && pwd` to compute absolute paths, because
910 # the directories may not exist.
911 case `pwd` in
912 .) ac_abs_builddir="$ac_dir";;
913 *)
914   case "$ac_dir" in
915   .) ac_abs_builddir=`pwd`;;
916   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917   *) ac_abs_builddir=`pwd`/"$ac_dir";;
918   esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
922 *)
923   case ${ac_top_builddir}. in
924   .) ac_abs_top_builddir=$ac_abs_builddir;;
925   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927   esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_srcdir=$ac_srcdir;;
931 *)
932   case $ac_srcdir in
933   .) ac_abs_srcdir=$ac_abs_builddir;;
934   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936   esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
940 *)
941   case $ac_top_srcdir in
942   .) ac_abs_top_srcdir=$ac_abs_builddir;;
943   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945   esac;;
946 esac
947
948     cd $ac_dir
949     # Check for guested configure; otherwise get Cygnus style configure.
950     if test -f $ac_srcdir/configure.gnu; then
951       echo
952       $SHELL $ac_srcdir/configure.gnu  --help=recursive
953     elif test -f $ac_srcdir/configure; then
954       echo
955       $SHELL $ac_srcdir/configure  --help=recursive
956     elif test -f $ac_srcdir/configure.ac ||
957            test -f $ac_srcdir/configure.in; then
958       echo
959       $ac_configure --help
960     else
961       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962     fi
963     cd $ac_popdir
964   done
965 fi
966
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
969   cat <<\_ACEOF
970
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975   exit 0
976 fi
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
981
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.59.  Invocation command line was
984
985   $ $0 $@
986
987 _ACEOF
988 {
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
993
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1002
1003 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1004 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1007 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1008 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1009 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1010
1011 _ASUNAME
1012
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1015 do
1016   IFS=$as_save_IFS
1017   test -z "$as_dir" && as_dir=.
1018   echo "PATH: $as_dir"
1019 done
1020
1021 } >&5
1022
1023 cat >&5 <<_ACEOF
1024
1025
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1029
1030 _ACEOF
1031
1032
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1044 do
1045   for ac_arg
1046   do
1047     case $ac_arg in
1048     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050     | -silent | --silent | --silen | --sile | --sil)
1051       continue ;;
1052     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054     esac
1055     case $ac_pass in
1056     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057     2)
1058       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059       if test $ac_must_keep_next = true; then
1060         ac_must_keep_next=false # Got value, back to normal.
1061       else
1062         case $ac_arg in
1063           *=* | --config-cache | -C | -disable-* | --disable-* \
1064           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066           | -with-* | --with-* | -without-* | --without-* | --x)
1067             case "$ac_configure_args0 " in
1068               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069             esac
1070             ;;
1071           -* ) ac_must_keep_next=true ;;
1072         esac
1073       fi
1074       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075       # Get rid of the leading space.
1076       ac_sep=" "
1077       ;;
1078     esac
1079   done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log.  We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090   # Save into config.log some information that might help in debugging.
1091   {
1092     echo
1093
1094     cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099     echo
1100     # The following way of writing the cache mishandles newlines in values,
1101 {
1102   (set) 2>&1 |
1103     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104     *ac_space=\ *)
1105       sed -n \
1106         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108       ;;
1109     *)
1110       sed -n \
1111         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112       ;;
1113     esac;
1114 }
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122     echo
1123     for ac_var in $ac_subst_vars
1124     do
1125       eval ac_val=$`echo $ac_var`
1126       echo "$ac_var='"'"'$ac_val'"'"'"
1127     done | sort
1128     echo
1129
1130     if test -n "$ac_subst_files"; then
1131       cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136       echo
1137       for ac_var in $ac_subst_files
1138       do
1139         eval ac_val=$`echo $ac_var`
1140         echo "$ac_var='"'"'$ac_val'"'"'"
1141       done | sort
1142       echo
1143     fi
1144
1145     if test -s confdefs.h; then
1146       cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151       echo
1152       sed "/^$/d" confdefs.h | sort
1153       echo
1154     fi
1155     test "$ac_signal" != 0 &&
1156       echo "$as_me: caught signal $ac_signal"
1157     echo "$as_me: exit $exit_status"
1158   } >&5
1159   rm -f core *.core &&
1160   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161     exit $exit_status
1162      ' 0
1163 for ac_signal in 1 2 13 15; do
1164   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1167
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1172
1173 # Predefined preprocessor variables.
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1198
1199
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203   if test "x$prefix" != xNONE; then
1204     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205   else
1206     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207   fi
1208 fi
1209 for ac_site_file in $CONFIG_SITE; do
1210   if test -r "$ac_site_file"; then
1211     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213     sed 's/^/| /' "$ac_site_file" >&5
1214     . "$ac_site_file"
1215   fi
1216 done
1217
1218 if test -r "$cache_file"; then
1219   # Some versions of bash will fail to source /dev/null (special
1220   # files actually), so we avoid doing that.
1221   if test -f "$cache_file"; then
1222     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224     case $cache_file in
1225       [\\/]* | ?:[\\/]* ) . $cache_file;;
1226       *)                      . ./$cache_file;;
1227     esac
1228   fi
1229 else
1230   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232   >$cache_file
1233 fi
1234
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241   eval ac_new_set=\$ac_env_${ac_var}_set
1242   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243   eval ac_new_val="\$ac_env_${ac_var}_value"
1244   case $ac_old_set,$ac_new_set in
1245     set,)
1246       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248       ac_cache_corrupted=: ;;
1249     ,set)
1250       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252       ac_cache_corrupted=: ;;
1253     ,);;
1254     *)
1255       if test "x$ac_old_val" != "x$ac_new_val"; then
1256         # differences in whitespace do not lead to failure.
1257         ac_old_val_w=`echo x $ac_old_val`
1258         ac_new_val_w=`echo x $ac_new_val`
1259         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1260           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262           ac_cache_corrupted=:
1263         else
1264           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1265 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1266           eval $ac_var=\$ac_old_val
1267         fi
1268         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1269 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1270         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1271 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1272       fi;;
1273   esac
1274   # Pass precious variables to config.status.
1275   if test "$ac_new_set" = set; then
1276     case $ac_new_val in
1277     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279     *) ac_arg=$ac_var=$ac_new_val ;;
1280     esac
1281     case " $ac_configure_args " in
1282       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1283       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284     esac
1285   fi
1286 done
1287 if $ac_cache_corrupted; then
1288   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1290   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294    { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326 # This works around the fact that libtool configuration may change LD
1327 # for this particular configuration, but some shells, instead of
1328 # keeping the changes in LD private, export them just because LD is
1329 # exported.  We don't use libtool yet, but some day we might, so...
1330 ORIGINAL_LD_FOR_MULTILIBS=$LD
1331
1332
1333 # Check whether --with-target-subdir or --without-target-subdir was given.
1334 if test "${with_target_subdir+set}" = set; then
1335   withval="$with_target_subdir"
1336
1337 fi;
1338
1339 # Check whether --with-build-subdir or --without-build-subdir was given.
1340 if test "${with_build_subdir+set}" = set; then
1341   withval="$with_build_subdir"
1342
1343 fi;
1344
1345 # Check whether --with-cross-host or --without-cross-host was given.
1346 if test "${with_cross_host+set}" = set; then
1347   withval="$with_cross_host"
1348
1349 fi;
1350
1351 # Check whether --with-newlib or --without-newlib was given.
1352 if test "${with_newlib+set}" = set; then
1353   withval="$with_newlib"
1354
1355 fi;
1356
1357 if test "${srcdir}" = "."; then
1358   if test -n "${with_build_subdir}"; then
1359     libiberty_topdir="${srcdir}/../.."
1360     with_target_subdir=
1361   elif test -z "${with_target_subdir}"; then
1362     libiberty_topdir="${srcdir}/.."
1363   else
1364     if test "${with_target_subdir}" != "."; then
1365       libiberty_topdir="${srcdir}/${with_multisrctop}../.."
1366     else
1367       libiberty_topdir="${srcdir}/${with_multisrctop}.."
1368     fi
1369   fi
1370 else
1371   libiberty_topdir="${srcdir}/.."
1372 fi
1373
1374 ac_aux_dir=
1375 for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
1376   if test -f $ac_dir/install-sh; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/install-sh -c"
1379     break
1380   elif test -f $ac_dir/install.sh; then
1381     ac_aux_dir=$ac_dir
1382     ac_install_sh="$ac_aux_dir/install.sh -c"
1383     break
1384   elif test -f $ac_dir/shtool; then
1385     ac_aux_dir=$ac_dir
1386     ac_install_sh="$ac_aux_dir/shtool install -c"
1387     break
1388   fi
1389 done
1390 if test -z "$ac_aux_dir"; then
1391   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1392 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1393    { (exit 1); exit 1; }; }
1394 fi
1395 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1396 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1397 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1398
1399
1400
1401 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1402 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1403     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1404 if test "${enable_maintainer_mode+set}" = set; then
1405   enableval="$enable_maintainer_mode"
1406   maintainer_mode=$enableval
1407 else
1408   maintainer_mode=no
1409 fi;
1410
1411 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1412 echo "${ECHO_T}$maintainer_mode" >&6
1413
1414 if test "$maintainer_mode" = "yes"; then
1415   MAINT=''
1416   NOTMAINT='#'
1417 else
1418   MAINT='#'
1419   NOTMAINT=''
1420 fi
1421
1422 # Do we have a single-tree copy of texinfo?  Even if we do, we can't
1423 # rely on it - libiberty is built before texinfo.
1424 # Extract the first word of "makeinfo", so it can be a program name with args.
1425 set dummy makeinfo; ac_word=$2
1426 echo "$as_me:$LINENO: checking for $ac_word" >&5
1427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1429   echo $ECHO_N "(cached) $ECHO_C" >&6
1430 else
1431   if test -n "$MAKEINFO"; then
1432   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1433 else
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 for as_dir in $PATH
1436 do
1437   IFS=$as_save_IFS
1438   test -z "$as_dir" && as_dir=.
1439   for ac_exec_ext in '' $ac_executable_extensions; do
1440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441     ac_cv_prog_MAKEINFO="makeinfo"
1442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443     break 2
1444   fi
1445 done
1446 done
1447
1448 fi
1449 fi
1450 MAKEINFO=$ac_cv_prog_MAKEINFO
1451 if test -n "$MAKEINFO"; then
1452   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1453 echo "${ECHO_T}$MAKEINFO" >&6
1454 else
1455   echo "$as_me:$LINENO: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1457 fi
1458
1459 if test "x$MAKEINFO" = "x"; then
1460     MAKEINFO="@echo makeinfo missing; true"
1461     BUILD_INFO=
1462 else
1463     BUILD_INFO=info
1464     case "$MAKEINFO" in
1465       */missing\ makeinfo*)
1466         BUILD_INFO=
1467         { echo "$as_me:$LINENO: WARNING:
1468 *** Makeinfo is missing. Info documentation will not be built." >&5
1469 echo "$as_me: WARNING:
1470 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1471         ;;
1472       *)
1473         case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1474           x*\ [1-3].* )
1475             MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1476             BUILD_INFO=
1477             { echo "$as_me:$LINENO: WARNING:
1478 *** Makeinfo is too old. Info documentation will not be built." >&5
1479 echo "$as_me: WARNING:
1480 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1481           ;;
1482         esac
1483         ;;
1484     esac
1485 fi
1486
1487
1488
1489 # Extract the first word of "perl", so it can be a program name with args.
1490 set dummy perl; ac_word=$2
1491 echo "$as_me:$LINENO: checking for $ac_word" >&5
1492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1493 if test "${ac_cv_prog_PERL+set}" = set; then
1494   echo $ECHO_N "(cached) $ECHO_C" >&6
1495 else
1496   if test -n "$PERL"; then
1497   ac_cv_prog_PERL="$PERL" # Let the user override the test.
1498 else
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 for as_dir in $PATH
1501 do
1502   IFS=$as_save_IFS
1503   test -z "$as_dir" && as_dir=.
1504   for ac_exec_ext in '' $ac_executable_extensions; do
1505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1506     ac_cv_prog_PERL="perl"
1507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1508     break 2
1509   fi
1510 done
1511 done
1512
1513 fi
1514 fi
1515 PERL=$ac_cv_prog_PERL
1516 if test -n "$PERL"; then
1517   echo "$as_me:$LINENO: result: $PERL" >&5
1518 echo "${ECHO_T}$PERL" >&6
1519 else
1520   echo "$as_me:$LINENO: result: no" >&5
1521 echo "${ECHO_T}no" >&6
1522 fi
1523
1524 if test x"$PERL" = x""; then
1525   HAVE_PERL='#'
1526 else
1527   HAVE_PERL=''
1528 fi
1529
1530
1531 # Make sure we can run config.sub.
1532 $ac_config_sub sun4 >/dev/null 2>&1 ||
1533   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535    { (exit 1); exit 1; }; }
1536
1537 echo "$as_me:$LINENO: checking build system type" >&5
1538 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539 if test "${ac_cv_build+set}" = set; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   ac_cv_build_alias=$build_alias
1543 test -z "$ac_cv_build_alias" &&
1544   ac_cv_build_alias=`$ac_config_guess`
1545 test -z "$ac_cv_build_alias" &&
1546   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548    { (exit 1); exit 1; }; }
1549 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552    { (exit 1); exit 1; }; }
1553
1554 fi
1555 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556 echo "${ECHO_T}$ac_cv_build" >&6
1557 build=$ac_cv_build
1558 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561
1562
1563 echo "$as_me:$LINENO: checking host system type" >&5
1564 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565 if test "${ac_cv_host+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   ac_cv_host_alias=$host_alias
1569 test -z "$ac_cv_host_alias" &&
1570   ac_cv_host_alias=$ac_cv_build_alias
1571 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574    { (exit 1); exit 1; }; }
1575
1576 fi
1577 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578 echo "${ECHO_T}$ac_cv_host" >&6
1579 host=$ac_cv_host
1580 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585
1586
1587 if test -n "$ac_tool_prefix"; then
1588   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1589 set dummy ${ac_tool_prefix}ar; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_AR+set}" = set; then
1593   echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595   if test -n "$AR"; then
1596   ac_cv_prog_AR="$AR" # Let the user override the test.
1597 else
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1600 do
1601   IFS=$as_save_IFS
1602   test -z "$as_dir" && as_dir=.
1603   for ac_exec_ext in '' $ac_executable_extensions; do
1604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605     ac_cv_prog_AR="${ac_tool_prefix}ar"
1606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607     break 2
1608   fi
1609 done
1610 done
1611
1612 fi
1613 fi
1614 AR=$ac_cv_prog_AR
1615 if test -n "$AR"; then
1616   echo "$as_me:$LINENO: result: $AR" >&5
1617 echo "${ECHO_T}$AR" >&6
1618 else
1619   echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1621 fi
1622
1623 fi
1624 if test -z "$ac_cv_prog_AR"; then
1625   ac_ct_AR=$AR
1626   # Extract the first word of "ar", so it can be a program name with args.
1627 set dummy ar; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1631   echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633   if test -n "$ac_ct_AR"; then
1634   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1635 else
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1638 do
1639   IFS=$as_save_IFS
1640   test -z "$as_dir" && as_dir=.
1641   for ac_exec_ext in '' $ac_executable_extensions; do
1642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643     ac_cv_prog_ac_ct_AR="ar"
1644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645     break 2
1646   fi
1647 done
1648 done
1649
1650 fi
1651 fi
1652 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1653 if test -n "$ac_ct_AR"; then
1654   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1655 echo "${ECHO_T}$ac_ct_AR" >&6
1656 else
1657   echo "$as_me:$LINENO: result: no" >&5
1658 echo "${ECHO_T}no" >&6
1659 fi
1660
1661   AR=$ac_ct_AR
1662 else
1663   AR="$ac_cv_prog_AR"
1664 fi
1665
1666 if test -n "$ac_tool_prefix"; then
1667   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1668 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_RANLIB+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   if test -n "$RANLIB"; then
1675   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1676 else
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 for as_dir in $PATH
1679 do
1680   IFS=$as_save_IFS
1681   test -z "$as_dir" && as_dir=.
1682   for ac_exec_ext in '' $ac_executable_extensions; do
1683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686     break 2
1687   fi
1688 done
1689 done
1690
1691 fi
1692 fi
1693 RANLIB=$ac_cv_prog_RANLIB
1694 if test -n "$RANLIB"; then
1695   echo "$as_me:$LINENO: result: $RANLIB" >&5
1696 echo "${ECHO_T}$RANLIB" >&6
1697 else
1698   echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1700 fi
1701
1702 fi
1703 if test -z "$ac_cv_prog_RANLIB"; then
1704   ac_ct_RANLIB=$RANLIB
1705   # Extract the first word of "ranlib", so it can be a program name with args.
1706 set dummy ranlib; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   if test -n "$ac_ct_RANLIB"; then
1713   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1714 else
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718   IFS=$as_save_IFS
1719   test -z "$as_dir" && as_dir=.
1720   for ac_exec_ext in '' $ac_executable_extensions; do
1721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722     ac_cv_prog_ac_ct_RANLIB="ranlib"
1723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724     break 2
1725   fi
1726 done
1727 done
1728
1729   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1730 fi
1731 fi
1732 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1733 if test -n "$ac_ct_RANLIB"; then
1734   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1735 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1736 else
1737   echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1739 fi
1740
1741   RANLIB=$ac_ct_RANLIB
1742 else
1743   RANLIB="$ac_cv_prog_RANLIB"
1744 fi
1745
1746
1747 # Add --enable-multilib to configure.
1748 # Default to --enable-multilib
1749 # Check whether --enable-multilib or --disable-multilib was given.
1750 if test "${enable_multilib+set}" = set; then
1751   enableval="$enable_multilib"
1752   case "$enableval" in
1753   yes) multilib=yes ;;
1754   no)  multilib=no ;;
1755   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1756 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1757    { (exit 1); exit 1; }; } ;;
1758  esac
1759 else
1760   multilib=yes
1761 fi;
1762
1763 # Even if the default multilib is not a cross compilation,
1764 # it may be that some of the other multilibs are.
1765 if test $cross_compiling = no && test $multilib = yes \
1766    && test "x${with_multisubdir}" != x ; then
1767    cross_compiling=maybe
1768 fi
1769
1770
1771 ac_ext=c
1772 ac_cpp='$CPP $CPPFLAGS'
1773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776 if test -n "$ac_tool_prefix"; then
1777   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1778 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782   echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784   if test -n "$CC"; then
1785   ac_cv_prog_CC="$CC" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1789 do
1790   IFS=$as_save_IFS
1791   test -z "$as_dir" && as_dir=.
1792   for ac_exec_ext in '' $ac_executable_extensions; do
1793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796     break 2
1797   fi
1798 done
1799 done
1800
1801 fi
1802 fi
1803 CC=$ac_cv_prog_CC
1804 if test -n "$CC"; then
1805   echo "$as_me:$LINENO: result: $CC" >&5
1806 echo "${ECHO_T}$CC" >&6
1807 else
1808   echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1810 fi
1811
1812 fi
1813 if test -z "$ac_cv_prog_CC"; then
1814   ac_ct_CC=$CC
1815   # Extract the first word of "gcc", so it can be a program name with args.
1816 set dummy gcc; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820   echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822   if test -n "$ac_ct_CC"; then
1823   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1827 do
1828   IFS=$as_save_IFS
1829   test -z "$as_dir" && as_dir=.
1830   for ac_exec_ext in '' $ac_executable_extensions; do
1831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832     ac_cv_prog_ac_ct_CC="gcc"
1833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834     break 2
1835   fi
1836 done
1837 done
1838
1839 fi
1840 fi
1841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1845 else
1846   echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1848 fi
1849
1850   CC=$ac_ct_CC
1851 else
1852   CC="$ac_cv_prog_CC"
1853 fi
1854
1855 if test -z "$CC"; then
1856   if test -n "$ac_tool_prefix"; then
1857   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1858 set dummy ${ac_tool_prefix}cc; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862   echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864   if test -n "$CC"; then
1865   ac_cv_prog_CC="$CC" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870   IFS=$as_save_IFS
1871   test -z "$as_dir" && as_dir=.
1872   for ac_exec_ext in '' $ac_executable_extensions; do
1873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874     ac_cv_prog_CC="${ac_tool_prefix}cc"
1875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876     break 2
1877   fi
1878 done
1879 done
1880
1881 fi
1882 fi
1883 CC=$ac_cv_prog_CC
1884 if test -n "$CC"; then
1885   echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1887 else
1888   echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1890 fi
1891
1892 fi
1893 if test -z "$ac_cv_prog_CC"; then
1894   ac_ct_CC=$CC
1895   # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   if test -n "$ac_ct_CC"; then
1903   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908   IFS=$as_save_IFS
1909   test -z "$as_dir" && as_dir=.
1910   for ac_exec_ext in '' $ac_executable_extensions; do
1911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912     ac_cv_prog_ac_ct_CC="cc"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 fi
1920 fi
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1925 else
1926   echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1928 fi
1929
1930   CC=$ac_ct_CC
1931 else
1932   CC="$ac_cv_prog_CC"
1933 fi
1934
1935 fi
1936 if test -z "$CC"; then
1937   # Extract the first word of "cc", so it can be a program name with args.
1938 set dummy cc; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942   echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944   if test -n "$CC"; then
1945   ac_cv_prog_CC="$CC" # Let the user override the test.
1946 else
1947   ac_prog_rejected=no
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1950 do
1951   IFS=$as_save_IFS
1952   test -z "$as_dir" && as_dir=.
1953   for ac_exec_ext in '' $ac_executable_extensions; do
1954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1956        ac_prog_rejected=yes
1957        continue
1958      fi
1959     ac_cv_prog_CC="cc"
1960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961     break 2
1962   fi
1963 done
1964 done
1965
1966 if test $ac_prog_rejected = yes; then
1967   # We found a bogon in the path, so make sure we never use it.
1968   set dummy $ac_cv_prog_CC
1969   shift
1970   if test $# != 0; then
1971     # We chose a different compiler from the bogus one.
1972     # However, it has the same basename, so the bogon will be chosen
1973     # first if we set CC to just the basename; use the full file name.
1974     shift
1975     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1976   fi
1977 fi
1978 fi
1979 fi
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
1987 fi
1988
1989 fi
1990 if test -z "$CC"; then
1991   if test -n "$ac_tool_prefix"; then
1992   for ac_prog in cl
1993   do
1994     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$CC"; then
2002   ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017
2018 fi
2019 fi
2020 CC=$ac_cv_prog_CC
2021 if test -n "$CC"; then
2022   echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2024 else
2025   echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2027 fi
2028
2029     test -n "$CC" && break
2030   done
2031 fi
2032 if test -z "$CC"; then
2033   ac_ct_CC=$CC
2034   for ac_prog in cl
2035 do
2036   # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041   echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043   if test -n "$ac_ct_CC"; then
2044   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049   IFS=$as_save_IFS
2050   test -z "$as_dir" && as_dir=.
2051   for ac_exec_ext in '' $ac_executable_extensions; do
2052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053     ac_cv_prog_ac_ct_CC="$ac_prog"
2054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055     break 2
2056   fi
2057 done
2058 done
2059
2060 fi
2061 fi
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2066 else
2067   echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2069 fi
2070
2071   test -n "$ac_ct_CC" && break
2072 done
2073
2074   CC=$ac_ct_CC
2075 fi
2076
2077 fi
2078
2079
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2081 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&5
2084 echo "$as_me: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&2;}
2086    { (exit 1); exit 1; }; }; }
2087
2088 # Provide some information about the compiler.
2089 echo "$as_me:$LINENO:" \
2090      "checking for C compiler version" >&5
2091 ac_compiler=`set X $ac_compile; echo $2`
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2093   (eval $ac_compiler --version </dev/null >&5) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }
2097 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2098   (eval $ac_compiler -v </dev/null >&5) 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }
2102 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2103   (eval $ac_compiler -V </dev/null >&5) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }
2107
2108 cat >conftest.$ac_ext <<_ACEOF
2109 /* confdefs.h.  */
2110 _ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h.  */
2114
2115 int
2116 main ()
2117 {
2118
2119   ;
2120   return 0;
2121 }
2122 _ACEOF
2123 # FIXME: Cleanup?
2124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2125   (eval $ac_link) 2>&5
2126   ac_status=$?
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); }; then
2129   gcc_no_link=no
2130 else
2131   gcc_no_link=yes
2132 fi
2133
2134 if test x$gcc_no_link = xyes; then
2135   # Setting cross_compile will disable run tests; it will
2136   # also disable AC_CHECK_FILE but that's generally
2137   # correct if we can't link.
2138   cross_compiling=yes
2139   EXEEXT=
2140 else
2141   cat >conftest.$ac_ext <<_ACEOF
2142 /* confdefs.h.  */
2143 _ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h.  */
2147
2148 int
2149 main ()
2150 {
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 ac_clean_files_save=$ac_clean_files
2157 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2158 # Try to create an executable without -o first, disregard a.out.
2159 # It will help us diagnose broken compilers, and finding out an intuition
2160 # of exeext.
2161 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2162 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2163 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2165   (eval $ac_link_default) 2>&5
2166   ac_status=$?
2167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168   (exit $ac_status); }; then
2169   # Find the output, starting from the most likely.  This scheme is
2170 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2171 # resort.
2172
2173 # Be careful to initialize this variable, since it used to be cached.
2174 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2175 ac_cv_exeext=
2176 # b.out is created by i960 compilers.
2177 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2178 do
2179   test -f "$ac_file" || continue
2180   case $ac_file in
2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2182         ;;
2183     conftest.$ac_ext )
2184         # This is the source file.
2185         ;;
2186     [ab].out )
2187         # We found the default executable, but exeext='' is most
2188         # certainly right.
2189         break;;
2190     *.* )
2191         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192         # FIXME: I believe we export ac_cv_exeext for Libtool,
2193         # but it would be cool to find out if it's true.  Does anybody
2194         # maintain Libtool? --akim.
2195         export ac_cv_exeext
2196         break;;
2197     * )
2198         break;;
2199   esac
2200 done
2201 else
2202   echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2204
2205 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2206 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211    { (exit 77); exit 77; }; }; }
2212 fi
2213
2214 ac_exeext=$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6
2217
2218 # Check the compiler produces executables we can run.  If not, either
2219 # the compiler is broken, or we cross compile.
2220 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225   if { ac_try='./$ac_file'
2226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227   (eval $ac_try) 2>&5
2228   ac_status=$?
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); }; }; then
2231     cross_compiling=no
2232   else
2233     if test "$cross_compiling" = maybe; then
2234         cross_compiling=yes
2235     else
2236         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2237 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&2;}
2244    { (exit 1); exit 1; }; }; }
2245     fi
2246   fi
2247 fi
2248 echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6
2250
2251 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252 ac_clean_files=$ac_clean_files_save
2253 # Check the compiler produces executables we can run.  If not, either
2254 # the compiler is broken, or we cross compile.
2255 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258 echo "${ECHO_T}$cross_compiling" >&6
2259
2260 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263   (eval $ac_link) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; then
2267   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 # `rm'.
2271 for ac_file in conftest.exe conftest conftest.*; do
2272   test -f "$ac_file" || continue
2273   case $ac_file in
2274     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2275     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276           export ac_cv_exeext
2277           break;;
2278     * ) break;;
2279   esac
2280 done
2281 else
2282   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2283 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&2;}
2288    { (exit 1); exit 1; }; }; }
2289 fi
2290
2291 rm -f conftest$ac_cv_exeext
2292 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293 echo "${ECHO_T}$ac_cv_exeext" >&6
2294
2295 rm -f conftest.$ac_ext
2296 EXEEXT=$ac_cv_exeext
2297 ac_exeext=$EXEEXT
2298 fi
2299 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2300 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2301 if test "${ac_cv_objext+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h.  */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h.  */
2310
2311 int
2312 main ()
2313 {
2314
2315   ;
2316   return 0;
2317 }
2318 _ACEOF
2319 rm -f conftest.o conftest.obj
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321   (eval $ac_compile) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; then
2325   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2326   case $ac_file in
2327     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2328     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2329        break;;
2330   esac
2331 done
2332 else
2333   echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2335
2336 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2337 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&2;}
2342    { (exit 1); exit 1; }; }; }
2343 fi
2344
2345 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 fi
2347 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2348 echo "${ECHO_T}$ac_cv_objext" >&6
2349 OBJEXT=$ac_cv_objext
2350 ac_objext=$OBJEXT
2351 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2352 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2353 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356   cat >conftest.$ac_ext <<_ACEOF
2357 /* confdefs.h.  */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h.  */
2362
2363 int
2364 main ()
2365 {
2366 #ifndef __GNUC__
2367        choke me
2368 #endif
2369
2370   ;
2371   return 0;
2372 }
2373 _ACEOF
2374 rm -f conftest.$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376   (eval $ac_compile) 2>conftest.er1
2377   ac_status=$?
2378   grep -v '^ *+' conftest.er1 >conftest.err
2379   rm -f conftest.er1
2380   cat conftest.err >&5
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); } &&
2383          { ac_try='test -z "$ac_c_werror_flag"
2384                          || test ! -s conftest.err'
2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; } &&
2390          { ac_try='test -s conftest.$ac_objext'
2391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392   (eval $ac_try) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; }; then
2396   ac_compiler_gnu=yes
2397 else
2398   echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2400
2401 ac_compiler_gnu=no
2402 fi
2403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2404 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2405
2406 fi
2407 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2408 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2409 GCC=`test $ac_compiler_gnu = yes && echo yes`
2410 ac_test_CFLAGS=${CFLAGS+set}
2411 ac_save_CFLAGS=$CFLAGS
2412 CFLAGS="-g"
2413 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2414 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2415 if test "${ac_cv_prog_cc_g+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h.  */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h.  */
2424
2425 int
2426 main ()
2427 {
2428
2429   ;
2430   return 0;
2431 }
2432 _ACEOF
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435   (eval $ac_compile) 2>conftest.er1
2436   ac_status=$?
2437   grep -v '^ *+' conftest.er1 >conftest.err
2438   rm -f conftest.er1
2439   cat conftest.err >&5
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); } &&
2442          { ac_try='test -z "$ac_c_werror_flag"
2443                          || test ! -s conftest.err'
2444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445   (eval $ac_try) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; } &&
2449          { ac_try='test -s conftest.$ac_objext'
2450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451   (eval $ac_try) 2>&5
2452   ac_status=$?
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); }; }; then
2455   ac_cv_prog_cc_g=yes
2456 else
2457   echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460 ac_cv_prog_cc_g=no
2461 fi
2462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 fi
2464 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2465 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2466 if test "$ac_test_CFLAGS" = set; then
2467   CFLAGS=$ac_save_CFLAGS
2468 elif test $ac_cv_prog_cc_g = yes; then
2469   if test "$GCC" = yes; then
2470     CFLAGS="-g -O2"
2471   else
2472     CFLAGS="-g"
2473   fi
2474 else
2475   if test "$GCC" = yes; then
2476     CFLAGS="-O2"
2477   else
2478     CFLAGS=
2479   fi
2480 fi
2481 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2482 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2483 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   ac_cv_prog_cc_stdc=no
2487 ac_save_CC=$CC
2488 cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h.  */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h.  */
2494 #include <stdarg.h>
2495 #include <stdio.h>
2496 #include <sys/types.h>
2497 #include <sys/stat.h>
2498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2499 struct buf { int x; };
2500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2501 static char *e (p, i)
2502      char **p;
2503      int i;
2504 {
2505   return p[i];
2506 }
2507 static char *f (char * (*g) (char **, int), char **p, ...)
2508 {
2509   char *s;
2510   va_list v;
2511   va_start (v,p);
2512   s = g (p, va_arg (v,int));
2513   va_end (v);
2514   return s;
2515 }
2516
2517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2518    function prototypes and stuff, but not '\xHH' hex character constants.
2519    These don't provoke an error unfortunately, instead are silently treated
2520    as 'x'.  The following induces an error, until -std1 is added to get
2521    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2522    array size at least.  It's necessary to write '\x00'==0 to get something
2523    that's true only with -std1.  */
2524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2525
2526 int test (int i, double x);
2527 struct s1 {int (*f) (int a);};
2528 struct s2 {int (*f) (double a);};
2529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2530 int argc;
2531 char **argv;
2532 int
2533 main ()
2534 {
2535 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 # Don't try gcc -ansi; that turns off useful extensions and
2541 # breaks some systems' header files.
2542 # AIX                   -qlanglvl=ansi
2543 # Ultrix and OSF/1      -std1
2544 # HP-UX 10.20 and later -Ae
2545 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2546 # SVR4                  -Xc -D__EXTENSIONS__
2547 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2548 do
2549   CC="$ac_save_CC $ac_arg"
2550   rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552   (eval $ac_compile) 2>conftest.er1
2553   ac_status=$?
2554   grep -v '^ *+' conftest.er1 >conftest.err
2555   rm -f conftest.er1
2556   cat conftest.err >&5
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); } &&
2559          { ac_try='test -z "$ac_c_werror_flag"
2560                          || test ! -s conftest.err'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; } &&
2566          { ac_try='test -s conftest.$ac_objext'
2567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568   (eval $ac_try) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; }; then
2572   ac_cv_prog_cc_stdc=$ac_arg
2573 break
2574 else
2575   echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578 fi
2579 rm -f conftest.err conftest.$ac_objext
2580 done
2581 rm -f conftest.$ac_ext conftest.$ac_objext
2582 CC=$ac_save_CC
2583
2584 fi
2585
2586 case "x$ac_cv_prog_cc_stdc" in
2587   x|xno)
2588     echo "$as_me:$LINENO: result: none needed" >&5
2589 echo "${ECHO_T}none needed" >&6 ;;
2590   *)
2591     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2592 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2593     CC="$CC $ac_cv_prog_cc_stdc" ;;
2594 esac
2595
2596 # Some people use a C++ compiler to compile C.  Since we use `exit',
2597 # in C++ we need to declare it.  In case someone uses the same compiler
2598 # for both compiling C and C++ we need to have the C++ compiler decide
2599 # the declaration of exit, since it's the most demanding environment.
2600 cat >conftest.$ac_ext <<_ACEOF
2601 #ifndef __cplusplus
2602   choke me
2603 #endif
2604 _ACEOF
2605 rm -f conftest.$ac_objext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2607   (eval $ac_compile) 2>conftest.er1
2608   ac_status=$?
2609   grep -v '^ *+' conftest.er1 >conftest.err
2610   rm -f conftest.er1
2611   cat conftest.err >&5
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); } &&
2614          { ac_try='test -z "$ac_c_werror_flag"
2615                          || test ! -s conftest.err'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; } &&
2621          { ac_try='test -s conftest.$ac_objext'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; }; then
2627   for ac_declaration in \
2628    '' \
2629    'extern "C" void std::exit (int) throw (); using std::exit;' \
2630    'extern "C" void std::exit (int); using std::exit;' \
2631    'extern "C" void exit (int) throw ();' \
2632    'extern "C" void exit (int);' \
2633    'void exit (int);'
2634 do
2635   cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641 $ac_declaration
2642 #include <stdlib.h>
2643 int
2644 main ()
2645 {
2646 exit (42);
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653   (eval $ac_compile) 2>conftest.er1
2654   ac_status=$?
2655   grep -v '^ *+' conftest.er1 >conftest.err
2656   rm -f conftest.er1
2657   cat conftest.err >&5
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); } &&
2660          { ac_try='test -z "$ac_c_werror_flag"
2661                          || test ! -s conftest.err'
2662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663   (eval $ac_try) 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }; } &&
2667          { ac_try='test -s conftest.$ac_objext'
2668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669   (eval $ac_try) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }; }; then
2673   :
2674 else
2675   echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678 continue
2679 fi
2680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2681   cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687 $ac_declaration
2688 int
2689 main ()
2690 {
2691 exit (42);
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698   (eval $ac_compile) 2>conftest.er1
2699   ac_status=$?
2700   grep -v '^ *+' conftest.er1 >conftest.err
2701   rm -f conftest.er1
2702   cat conftest.err >&5
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); } &&
2705          { ac_try='test -z "$ac_c_werror_flag"
2706                          || test ! -s conftest.err'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; }; then
2718   break
2719 else
2720   echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 fi
2724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725 done
2726 rm -f conftest*
2727 if test -n "$ac_declaration"; then
2728   echo '#ifdef __cplusplus' >>confdefs.h
2729   echo $ac_declaration      >>confdefs.h
2730   echo '#endif'             >>confdefs.h
2731 fi
2732
2733 else
2734   echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737 fi
2738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_ext=c
2740 ac_cpp='$CPP $CPPFLAGS'
2741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744
2745
2746 # Check whether --enable-largefile or --disable-largefile was given.
2747 if test "${enable_largefile+set}" = set; then
2748   enableval="$enable_largefile"
2749
2750 fi;
2751 if test "$enable_largefile" != no; then
2752
2753   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2754 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2755 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   ac_cv_sys_largefile_CC=no
2759      if test "$GCC" != yes; then
2760        ac_save_CC=$CC
2761        while :; do
2762          # IRIX 6.2 and later do not support large files by default,
2763          # so use the C compiler's -n32 option if that helps.
2764          cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770 #include <sys/types.h>
2771  /* Check that off_t can represent 2**63 - 1 correctly.
2772     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2773     since some C++ compilers masquerading as C compilers
2774     incorrectly reject 9223372036854775807.  */
2775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2776   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2777                        && LARGE_OFF_T % 2147483647 == 1)
2778                       ? 1 : -1];
2779 int
2780 main ()
2781 {
2782
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787          rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796          { ac_try='test -z "$ac_c_werror_flag"
2797                          || test ! -s conftest.err'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; } &&
2803          { ac_try='test -s conftest.$ac_objext'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; }; then
2809   break
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814 fi
2815 rm -f conftest.err conftest.$ac_objext
2816          CC="$CC -n32"
2817          rm -f conftest.$ac_objext
2818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819   (eval $ac_compile) 2>conftest.er1
2820   ac_status=$?
2821   grep -v '^ *+' conftest.er1 >conftest.err
2822   rm -f conftest.er1
2823   cat conftest.err >&5
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); } &&
2826          { ac_try='test -z "$ac_c_werror_flag"
2827                          || test ! -s conftest.err'
2828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829   (eval $ac_try) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); }; } &&
2833          { ac_try='test -s conftest.$ac_objext'
2834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835   (eval $ac_try) 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; }; then
2839   ac_cv_sys_largefile_CC=' -n32'; break
2840 else
2841   echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 fi
2845 rm -f conftest.err conftest.$ac_objext
2846          break
2847        done
2848        CC=$ac_save_CC
2849        rm -f conftest.$ac_ext
2850     fi
2851 fi
2852 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2853 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2854   if test "$ac_cv_sys_largefile_CC" != no; then
2855     CC=$CC$ac_cv_sys_largefile_CC
2856   fi
2857
2858   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2859 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2860 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2861   echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863   while :; do
2864   ac_cv_sys_file_offset_bits=no
2865   cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h.  */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h.  */
2871 #include <sys/types.h>
2872  /* Check that off_t can represent 2**63 - 1 correctly.
2873     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2874     since some C++ compilers masquerading as C compilers
2875     incorrectly reject 9223372036854775807.  */
2876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2877   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2878                        && LARGE_OFF_T % 2147483647 == 1)
2879                       ? 1 : -1];
2880 int
2881 main ()
2882 {
2883
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890   (eval $ac_compile) 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } &&
2897          { ac_try='test -z "$ac_c_werror_flag"
2898                          || test ! -s conftest.err'
2899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900   (eval $ac_try) 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }; } &&
2904          { ac_try='test -s conftest.$ac_objext'
2905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906   (eval $ac_try) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; }; then
2910   break
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915 fi
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923 #define _FILE_OFFSET_BITS 64
2924 #include <sys/types.h>
2925  /* Check that off_t can represent 2**63 - 1 correctly.
2926     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2927     since some C++ compilers masquerading as C compilers
2928     incorrectly reject 9223372036854775807.  */
2929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2930   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2931                        && LARGE_OFF_T % 2147483647 == 1)
2932                       ? 1 : -1];
2933 int
2934 main ()
2935 {
2936
2937   ;
2938   return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943   (eval $ac_compile) 2>conftest.er1
2944   ac_status=$?
2945   grep -v '^ *+' conftest.er1 >conftest.err
2946   rm -f conftest.er1
2947   cat conftest.err >&5
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); } &&
2950          { ac_try='test -z "$ac_c_werror_flag"
2951                          || test ! -s conftest.err'
2952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953   (eval $ac_try) 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }; } &&
2957          { ac_try='test -s conftest.$ac_objext'
2958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959   (eval $ac_try) 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; }; then
2963   ac_cv_sys_file_offset_bits=64; break
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968 fi
2969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2970   break
2971 done
2972 fi
2973 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2974 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2975 if test "$ac_cv_sys_file_offset_bits" != no; then
2976
2977 cat >>confdefs.h <<_ACEOF
2978 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2979 _ACEOF
2980
2981 fi
2982 rm -f conftest*
2983   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2984 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2985 if test "${ac_cv_sys_large_files+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   while :; do
2989   ac_cv_sys_large_files=no
2990   cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996 #include <sys/types.h>
2997  /* Check that off_t can represent 2**63 - 1 correctly.
2998     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2999     since some C++ compilers masquerading as C compilers
3000     incorrectly reject 9223372036854775807.  */
3001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3002   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3003                        && LARGE_OFF_T % 2147483647 == 1)
3004                       ? 1 : -1];
3005 int
3006 main ()
3007 {
3008
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 rm -f conftest.$ac_objext
3014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3015   (eval $ac_compile) 2>conftest.er1
3016   ac_status=$?
3017   grep -v '^ *+' conftest.er1 >conftest.err
3018   rm -f conftest.er1
3019   cat conftest.err >&5
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } &&
3022          { ac_try='test -z "$ac_c_werror_flag"
3023                          || test ! -s conftest.err'
3024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025   (eval $ac_try) 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; } &&
3029          { ac_try='test -s conftest.$ac_objext'
3030   { (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); }; }; then
3035   break
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 fi
3041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3042   cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h.  */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h.  */
3048 #define _LARGE_FILES 1
3049 #include <sys/types.h>
3050  /* Check that off_t can represent 2**63 - 1 correctly.
3051     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3052     since some C++ compilers masquerading as C compilers
3053     incorrectly reject 9223372036854775807.  */
3054 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3055   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3056                        && LARGE_OFF_T % 2147483647 == 1)
3057                       ? 1 : -1];
3058 int
3059 main ()
3060 {
3061
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068   (eval $ac_compile) 2>conftest.er1
3069   ac_status=$?
3070   grep -v '^ *+' conftest.er1 >conftest.err
3071   rm -f conftest.er1
3072   cat conftest.err >&5
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } &&
3075          { ac_try='test -z "$ac_c_werror_flag"
3076                          || test ! -s conftest.err'
3077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078   (eval $ac_try) 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }; } &&
3082          { ac_try='test -s conftest.$ac_objext'
3083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084   (eval $ac_try) 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; }; then
3088   ac_cv_sys_large_files=1; break
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 fi
3094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3095   break
3096 done
3097 fi
3098 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3099 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3100 if test "$ac_cv_sys_large_files" != no; then
3101
3102 cat >>confdefs.h <<_ACEOF
3103 #define _LARGE_FILES $ac_cv_sys_large_files
3104 _ACEOF
3105
3106 fi
3107 rm -f conftest*
3108 fi
3109
3110 ac_ext=c
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3116 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3117 # On Suns, sometimes $CPP names a directory.
3118 if test -n "$CPP" && test -d "$CPP"; then
3119   CPP=
3120 fi
3121 if test -z "$CPP"; then
3122   if test "${ac_cv_prog_CPP+set}" = set; then
3123   echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125       # Double quotes because CPP needs to be expanded
3126     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3127     do
3128       ac_preproc_ok=false
3129 for ac_c_preproc_warn_flag in '' yes
3130 do
3131   # Use a header file that comes with gcc, so configuring glibc
3132   # with a fresh cross-compiler works.
3133   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3134   # <limits.h> exists even on freestanding compilers.
3135   # On the NeXT, cc -E runs the code through the compiler's parser,
3136   # not just through cpp. "Syntax error" is here to catch this case.
3137   cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143 #ifdef __STDC__
3144 # include <limits.h>
3145 #else
3146 # include <assert.h>
3147 #endif
3148                      Syntax error
3149 _ACEOF
3150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3151   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3152   ac_status=$?
3153   grep -v '^ *+' conftest.er1 >conftest.err
3154   rm -f conftest.er1
3155   cat conftest.err >&5
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); } >/dev/null; then
3158   if test -s conftest.err; then
3159     ac_cpp_err=$ac_c_preproc_warn_flag
3160     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3161   else
3162     ac_cpp_err=
3163   fi
3164 else
3165   ac_cpp_err=yes
3166 fi
3167 if test -z "$ac_cpp_err"; then
3168   :
3169 else
3170   echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173   # Broken: fails on valid input.
3174 continue
3175 fi
3176 rm -f conftest.err conftest.$ac_ext
3177
3178   # OK, works on sane cases.  Now check whether non-existent headers
3179   # can be detected and how.
3180   cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186 #include <ac_nonexistent.h>
3187 _ACEOF
3188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3190   ac_status=$?
3191   grep -v '^ *+' conftest.er1 >conftest.err
3192   rm -f conftest.er1
3193   cat conftest.err >&5
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } >/dev/null; then
3196   if test -s conftest.err; then
3197     ac_cpp_err=$ac_c_preproc_warn_flag
3198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3199   else
3200     ac_cpp_err=
3201   fi
3202 else
3203   ac_cpp_err=yes
3204 fi
3205 if test -z "$ac_cpp_err"; then
3206   # Broken: success on invalid input.
3207 continue
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212   # Passes both tests.
3213 ac_preproc_ok=:
3214 break
3215 fi
3216 rm -f conftest.err conftest.$ac_ext
3217
3218 done
3219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3220 rm -f conftest.err conftest.$ac_ext
3221 if $ac_preproc_ok; then
3222   break
3223 fi
3224
3225     done
3226     ac_cv_prog_CPP=$CPP
3227
3228 fi
3229   CPP=$ac_cv_prog_CPP
3230 else
3231   ac_cv_prog_CPP=$CPP
3232 fi
3233 echo "$as_me:$LINENO: result: $CPP" >&5
3234 echo "${ECHO_T}$CPP" >&6
3235 ac_preproc_ok=false
3236 for ac_c_preproc_warn_flag in '' yes
3237 do
3238   # Use a header file that comes with gcc, so configuring glibc
3239   # with a fresh cross-compiler works.
3240   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241   # <limits.h> exists even on freestanding compilers.
3242   # On the NeXT, cc -E runs the code through the compiler's parser,
3243   # not just through cpp. "Syntax error" is here to catch this case.
3244   cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h.  */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h.  */
3250 #ifdef __STDC__
3251 # include <limits.h>
3252 #else
3253 # include <assert.h>
3254 #endif
3255                      Syntax error
3256 _ACEOF
3257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3259   ac_status=$?
3260   grep -v '^ *+' conftest.er1 >conftest.err
3261   rm -f conftest.er1
3262   cat conftest.err >&5
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); } >/dev/null; then
3265   if test -s conftest.err; then
3266     ac_cpp_err=$ac_c_preproc_warn_flag
3267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268   else
3269     ac_cpp_err=
3270   fi
3271 else
3272   ac_cpp_err=yes
3273 fi
3274 if test -z "$ac_cpp_err"; then
3275   :
3276 else
3277   echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280   # Broken: fails on valid input.
3281 continue
3282 fi
3283 rm -f conftest.err conftest.$ac_ext
3284
3285   # OK, works on sane cases.  Now check whether non-existent headers
3286   # can be detected and how.
3287   cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h.  */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h.  */
3293 #include <ac_nonexistent.h>
3294 _ACEOF
3295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3296   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } >/dev/null; then
3303   if test -s conftest.err; then
3304     ac_cpp_err=$ac_c_preproc_warn_flag
3305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306   else
3307     ac_cpp_err=
3308   fi
3309 else
3310   ac_cpp_err=yes
3311 fi
3312 if test -z "$ac_cpp_err"; then
3313   # Broken: success on invalid input.
3314 continue
3315 else
3316   echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319   # Passes both tests.
3320 ac_preproc_ok=:
3321 break
3322 fi
3323 rm -f conftest.err conftest.$ac_ext
3324
3325 done
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.err conftest.$ac_ext
3328 if $ac_preproc_ok; then
3329   :
3330 else
3331   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3332 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3334 See \`config.log' for more details." >&5
3335 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3336 See \`config.log' for more details." >&2;}
3337    { (exit 1); exit 1; }; }; }
3338 fi
3339
3340 ac_ext=c
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345
3346
3347 ac_c_preproc_warn_flag=yes
3348
3349 ac_libiberty_warn_cflags=
3350 save_CFLAGS="$CFLAGS"
3351 for option in -W -Wall -Wwrite-strings -Wc++-compat \
3352                           -Wstrict-prototypes; do
3353   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
3354
3355   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
3356 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
3357 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
3358   echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360   CFLAGS="$option"
3361     cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h.  */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h.  */
3367
3368 int
3369 main ()
3370 {
3371
3372   ;
3373   return 0;
3374 }
3375 _ACEOF
3376 rm -f conftest.$ac_objext
3377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378   (eval $ac_compile) 2>conftest.er1
3379   ac_status=$?
3380   grep -v '^ *+' conftest.er1 >conftest.err
3381   rm -f conftest.er1
3382   cat conftest.err >&5
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } &&
3385          { ac_try='test -z "$ac_c_werror_flag"
3386                          || test ! -s conftest.err'
3387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388   (eval $ac_try) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; } &&
3392          { ac_try='test -s conftest.$ac_objext'
3393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394   (eval $ac_try) 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }; }; then
3398   eval "$as_acx_Woption=yes"
3399 else
3400   echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 eval "$as_acx_Woption=no"
3404 fi
3405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406
3407 fi
3408 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
3409 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3410   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
3411   ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$option"
3412 fi
3413
3414   done
3415 CFLAGS="$save_CFLAGS"
3416
3417 if test "$GCC" = yes; then
3418   echo "$as_me:$LINENO: checking whether $CC supports -pedantic " >&5
3419 echo $ECHO_N "checking whether $CC supports -pedantic ... $ECHO_C" >&6
3420 if test "${acx_cv_prog_cc_pedantic_+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   save_CFLAGS="$CFLAGS"
3424 CFLAGS="-pedantic "
3425 cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h.  */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h.  */
3431
3432 int
3433 main ()
3434 {
3435
3436   ;
3437   return 0;
3438 }
3439 _ACEOF
3440 rm -f conftest.$ac_objext
3441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3442   (eval $ac_compile) 2>conftest.er1
3443   ac_status=$?
3444   grep -v '^ *+' conftest.er1 >conftest.err
3445   rm -f conftest.er1
3446   cat conftest.err >&5
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); } &&
3449          { ac_try='test -z "$ac_c_werror_flag"
3450                          || test ! -s conftest.err'
3451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452   (eval $ac_try) 2>&5
3453   ac_status=$?
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); }; } &&
3456          { ac_try='test -s conftest.$ac_objext'
3457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458   (eval $ac_try) 2>&5
3459   ac_status=$?
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); }; }; then
3462   acx_cv_prog_cc_pedantic_=yes
3463 else
3464   echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 acx_cv_prog_cc_pedantic_=no
3468 fi
3469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3470 CFLAGS="$save_CFLAGS"
3471 fi
3472 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic_" >&5
3473 echo "${ECHO_T}$acx_cv_prog_cc_pedantic_" >&6
3474 if test $acx_cv_prog_cc_pedantic_ = yes; then
3475   ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
3476 fi
3477
3478
3479 fi
3480
3481
3482
3483 if test "x$CC" != xcc; then
3484   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3485 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3486 else
3487   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3488 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3489 fi
3490 set dummy $CC; ac_cc=`echo $2 |
3491                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3492 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3493   echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495   cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h.  */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h.  */
3501
3502 int
3503 main ()
3504 {
3505
3506   ;
3507   return 0;
3508 }
3509 _ACEOF
3510 # Make sure it works both with $CC and with simple cc.
3511 # We do the test twice because some compilers refuse to overwrite an
3512 # existing .o file with -o, though they will create one.
3513 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3514 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515   (eval $ac_try) 2>&5
3516   ac_status=$?
3517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); } &&
3519    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); };
3524 then
3525   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3526   if test "x$CC" != xcc; then
3527     # Test first that cc exists at all.
3528     if { ac_try='cc -c conftest.$ac_ext >&5'
3529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530   (eval $ac_try) 2>&5
3531   ac_status=$?
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); }; }; then
3534       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3535       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536   (eval $ac_try) 2>&5
3537   ac_status=$?
3538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539   (exit $ac_status); } &&
3540          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541   (eval $ac_try) 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); };
3545       then
3546         # cc works too.
3547         :
3548       else
3549         # cc exists but doesn't like -o.
3550         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3551       fi
3552     fi
3553   fi
3554 else
3555   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3556 fi
3557 rm -f conftest*
3558
3559 fi
3560 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3561   echo "$as_me:$LINENO: result: yes" >&5
3562 echo "${ECHO_T}yes" >&6
3563 else
3564   echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3566
3567 cat >>confdefs.h <<\_ACEOF
3568 #define NO_MINUS_C_MINUS_O 1
3569 _ACEOF
3570
3571 fi
3572
3573 # autoconf is lame and doesn't give us any substitution variable for this.
3574 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3575   NO_MINUS_C_MINUS_O=yes
3576 else
3577   OUTPUT_OPTION='-o $@'
3578 fi
3579
3580
3581
3582 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3583 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3584 if test "${ac_cv_c_const+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593
3594 int
3595 main ()
3596 {
3597 /* FIXME: Include the comments suggested by Paul. */
3598 #ifndef __cplusplus
3599   /* Ultrix mips cc rejects this.  */
3600   typedef int charset[2];
3601   const charset x;
3602   /* SunOS 4.1.1 cc rejects this.  */
3603   char const *const *ccp;
3604   char **p;
3605   /* NEC SVR4.0.2 mips cc rejects this.  */
3606   struct point {int x, y;};
3607   static struct point const zero = {0,0};
3608   /* AIX XL C 1.02.0.0 rejects this.
3609      It does not let you subtract one const X* pointer from another in
3610      an arm of an if-expression whose if-part is not a constant
3611      expression */
3612   const char *g = "string";
3613   ccp = &g + (g ? g-g : 0);
3614   /* HPUX 7.0 cc rejects these. */
3615   ++ccp;
3616   p = (char**) ccp;
3617   ccp = (char const *const *) p;
3618   { /* SCO 3.2v4 cc rejects this.  */
3619     char *t;
3620     char const *s = 0 ? (char *) 0 : (char const *) 0;
3621
3622     *t++ = 0;
3623   }
3624   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3625     int x[] = {25, 17};
3626     const int *foo = &x[0];
3627     ++foo;
3628   }
3629   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3630     typedef const int *iptr;
3631     iptr p = 0;
3632     ++p;
3633   }
3634   { /* AIX XL C 1.02.0.0 rejects this saying
3635        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3636     struct s { int j; const int *ap[3]; };
3637     struct s *b; b->j = 5;
3638   }
3639   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3640     const int foo = 10;
3641   }
3642 #endif
3643
3644   ;
3645   return 0;
3646 }
3647 _ACEOF
3648 rm -f conftest.$ac_objext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650   (eval $ac_compile) 2>conftest.er1
3651   ac_status=$?
3652   grep -v '^ *+' conftest.er1 >conftest.err
3653   rm -f conftest.er1
3654   cat conftest.err >&5
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); } &&
3657          { ac_try='test -z "$ac_c_werror_flag"
3658                          || test ! -s conftest.err'
3659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660   (eval $ac_try) 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); }; } &&
3664          { ac_try='test -s conftest.$ac_objext'
3665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666   (eval $ac_try) 2>&5
3667   ac_status=$?
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); }; }; then
3670   ac_cv_c_const=yes
3671 else
3672   echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675 ac_cv_c_const=no
3676 fi
3677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3678 fi
3679 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3680 echo "${ECHO_T}$ac_cv_c_const" >&6
3681 if test $ac_cv_c_const = no; then
3682
3683 cat >>confdefs.h <<\_ACEOF
3684 #define const
3685 _ACEOF
3686
3687 fi
3688
3689 echo "$as_me:$LINENO: checking for inline" >&5
3690 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3691 if test "${ac_cv_c_inline+set}" = set; then
3692   echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694   ac_cv_c_inline=no
3695 for ac_kw in inline __inline__ __inline; do
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 #ifndef __cplusplus
3703 typedef int foo_t;
3704 static $ac_kw foo_t static_foo () {return 0; }
3705 $ac_kw foo_t foo () {return 0; }
3706 #endif
3707
3708 _ACEOF
3709 rm -f conftest.$ac_objext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711   (eval $ac_compile) 2>conftest.er1
3712   ac_status=$?
3713   grep -v '^ *+' conftest.er1 >conftest.err
3714   rm -f conftest.er1
3715   cat conftest.err >&5
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } &&
3718          { ac_try='test -z "$ac_c_werror_flag"
3719                          || test ! -s conftest.err'
3720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721   (eval $ac_try) 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }; } &&
3725          { ac_try='test -s conftest.$ac_objext'
3726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727   (eval $ac_try) 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); }; }; then
3731   ac_cv_c_inline=$ac_kw; break
3732 else
3733   echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 fi
3737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738 done
3739
3740 fi
3741 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3742 echo "${ECHO_T}$ac_cv_c_inline" >&6
3743
3744
3745 case $ac_cv_c_inline in
3746   inline | yes) ;;
3747   *)
3748     case $ac_cv_c_inline in
3749       no) ac_val=;;
3750       *) ac_val=$ac_cv_c_inline;;
3751     esac
3752     cat >>confdefs.h <<_ACEOF
3753 #ifndef __cplusplus
3754 #define inline $ac_val
3755 #endif
3756 _ACEOF
3757     ;;
3758 esac
3759
3760 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3761 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3762 if test "${ac_cv_c_bigendian+set}" = set; then
3763   echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765   # See if sys/param.h defines the BYTE_ORDER macro.
3766 cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h.  */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h.  */
3772 #include <sys/types.h>
3773 #include <sys/param.h>
3774
3775 int
3776 main ()
3777 {
3778 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3779  bogus endian macros
3780 #endif
3781
3782   ;
3783   return 0;
3784 }
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788   (eval $ac_compile) 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } &&
3795          { ac_try='test -z "$ac_c_werror_flag"
3796                          || test ! -s conftest.err'
3797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798   (eval $ac_try) 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }; } &&
3802          { ac_try='test -s conftest.$ac_objext'
3803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804   (eval $ac_try) 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }; }; then
3808   # It does; now see whether it defined to BIG_ENDIAN or not.
3809 cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h.  */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h.  */
3815 #include <sys/types.h>
3816 #include <sys/param.h>
3817
3818 int
3819 main ()
3820 {
3821 #if BYTE_ORDER != BIG_ENDIAN
3822  not big endian
3823 #endif
3824
3825   ;
3826   return 0;
3827 }
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831   (eval $ac_compile) 2>conftest.er1
3832   ac_status=$?
3833   grep -v '^ *+' conftest.er1 >conftest.err
3834   rm -f conftest.er1
3835   cat conftest.err >&5
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); } &&
3838          { ac_try='test -z "$ac_c_werror_flag"
3839                          || test ! -s conftest.err'
3840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841   (eval $ac_try) 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); }; } &&
3845          { ac_try='test -s conftest.$ac_objext'
3846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847   (eval $ac_try) 2>&5
3848   ac_status=$?
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); }; }; then
3851   ac_cv_c_bigendian=yes
3852 else
3853   echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 ac_cv_c_bigendian=no
3857 fi
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 else
3860   echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 # It does not; compile a test program.
3864 if test "$cross_compiling" = yes; then
3865   # try to guess the endianness by grepping values into an object file
3866   ac_cv_c_bigendian=unknown
3867   cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h.  */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h.  */
3873 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3874 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3875 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3876 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3877 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3878 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3879 int
3880 main ()
3881 {
3882  _ascii (); _ebcdic ();
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 rm -f conftest.$ac_objext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889   (eval $ac_compile) 2>conftest.er1
3890   ac_status=$?
3891   grep -v '^ *+' conftest.er1 >conftest.err
3892   rm -f conftest.er1
3893   cat conftest.err >&5
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); } &&
3896          { ac_try='test -z "$ac_c_werror_flag"
3897                          || test ! -s conftest.err'
3898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899   (eval $ac_try) 2>&5
3900   ac_status=$?
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); }; } &&
3903          { ac_try='test -s conftest.$ac_objext'
3904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905   (eval $ac_try) 2>&5
3906   ac_status=$?
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); }; }; then
3909   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3910   ac_cv_c_bigendian=yes
3911 fi
3912 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3913   if test "$ac_cv_c_bigendian" = unknown; then
3914     ac_cv_c_bigendian=no
3915   else
3916     # finding both strings is unlikely to happen, but who knows?
3917     ac_cv_c_bigendian=unknown
3918   fi
3919 fi
3920 else
3921   echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924 fi
3925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3926 else
3927   cat >conftest.$ac_ext <<_ACEOF
3928 /* confdefs.h.  */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h.  */
3933 int
3934 main ()
3935 {
3936   /* Are we little or big endian?  From Harbison&Steele.  */
3937   union
3938   {
3939     long l;
3940     char c[sizeof (long)];
3941   } u;
3942   u.l = 1;
3943   exit (u.c[sizeof (long) - 1] == 1);
3944 }
3945 _ACEOF
3946 rm -f conftest$ac_exeext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3948   (eval $ac_link) 2>&5
3949   ac_status=$?
3950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953   (eval $ac_try) 2>&5
3954   ac_status=$?
3955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956   (exit $ac_status); }; }; then
3957   ac_cv_c_bigendian=no
3958 else
3959   echo "$as_me: program exited with status $ac_status" >&5
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3962
3963 ( exit $ac_status )
3964 ac_cv_c_bigendian=yes
3965 fi
3966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3967 fi
3968 fi
3969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3970 fi
3971 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3972 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3973 case $ac_cv_c_bigendian in
3974   yes)
3975
3976 cat >>confdefs.h <<\_ACEOF
3977 #define WORDS_BIGENDIAN 1
3978 _ACEOF
3979  ;;
3980   no)
3981      ;;
3982   *)
3983     { { echo "$as_me:$LINENO: error: unknown endianness
3984 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3985 echo "$as_me: error: unknown endianness
3986 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3987    { (exit 1); exit 1; }; } ;;
3988 esac
3989
3990
3991
3992
3993           ac_config_headers="$ac_config_headers config.h:config.in"
3994
3995
3996
3997 # Find a good install program.  We prefer a C program (faster),
3998 # so one script is as good as another.  But avoid the broken or
3999 # incompatible versions:
4000 # SysV /etc/install, /usr/sbin/install
4001 # SunOS /usr/etc/install
4002 # IRIX /sbin/install
4003 # AIX /bin/install
4004 # AmigaOS /C/install, which installs bootblocks on floppy discs
4005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4008 # OS/2's system install, which has a completely different semantic
4009 # ./install, which can be erroneously created by make from ./install.sh.
4010 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4011 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4012 if test -z "$INSTALL"; then
4013 if test "${ac_cv_path_install+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019   IFS=$as_save_IFS
4020   test -z "$as_dir" && as_dir=.
4021   # Account for people who put trailing slashes in PATH elements.
4022 case $as_dir/ in
4023   ./ | .// | /cC/* | \
4024   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4025   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4026   /usr/ucb/* ) ;;
4027   *)
4028     # OSF1 and SCO ODT 3.0 have their own names for install.
4029     # Don't use installbsd from OSF since it installs stuff as root
4030     # by default.
4031     for ac_prog in ginstall scoinst install; do
4032       for ac_exec_ext in '' $ac_executable_extensions; do
4033         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4034           if test $ac_prog = install &&
4035             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4036             # AIX install.  It has an incompatible calling convention.
4037             :
4038           elif test $ac_prog = install &&
4039             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4040             # program-specific install script used by HP pwplus--don't use.
4041             :
4042           else
4043             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4044             break 3
4045           fi
4046         fi
4047       done
4048     done
4049     ;;
4050 esac
4051 done
4052
4053
4054 fi
4055   if test "${ac_cv_path_install+set}" = set; then
4056     INSTALL=$ac_cv_path_install
4057   else
4058     # As a last resort, use the slow shell script.  We don't cache a
4059     # path for INSTALL within a source directory, because that will
4060     # break other packages using the cache if that directory is
4061     # removed, or if the path is relative.
4062     INSTALL=$ac_install_sh
4063   fi
4064 fi
4065 echo "$as_me:$LINENO: result: $INSTALL" >&5
4066 echo "${ECHO_T}$INSTALL" >&6
4067
4068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4069 # It thinks the first close brace ends the variable substitution.
4070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4071
4072 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4073
4074 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4075
4076
4077 # Don't build the shared library for build.
4078 if [ -n "${with_build_subdir}" ]; then
4079   enable_shared=no
4080 fi
4081
4082 frag=
4083 case "${host}" in
4084   rs6000-ibm-aix3.1 | rs6000-ibm-aix)
4085                         frag=mh-aix ;;
4086   *-*-cxux7*)           frag=mh-cxux7 ;;
4087   *-*-freebsd2.1.*)     frag=mh-fbsd21 ;;
4088   *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
4089   i370-*-opened*)       frag=mh-openedition ;;
4090   i[34567]86-*-windows*)        frag=mh-windows ;;
4091 esac
4092
4093 if [ -n "${frag}" ]; then
4094   frag=${libiberty_topdir}/libiberty/config/$frag
4095 fi
4096
4097 # If they didn't specify --enable-shared, don't generate shared libs.
4098 case "${enable_shared}" in
4099   yes) shared=yes ;;
4100   no) shared=no ;;
4101   "") shared=no ;;
4102   *) shared=yes ;;
4103 esac
4104 if [ "${shared}" = "yes" ]; then
4105   case "${host}" in
4106     *-*-cygwin*)        ;;
4107     alpha*-*-linux*)    PICFLAG=-fPIC ;;
4108     arm*-*-*)           PICFLAG=-fPIC ;;
4109     hppa*-*-*)          PICFLAG=-fPIC ;;
4110     i370-*-*)           PICFLAG=-fPIC ;;
4111     ia64-*-*)           PICFLAG=-fpic ;;
4112     i[34567]86-*-* | x86_64-*-*)
4113                         PICFLAG=-fpic ;;
4114     m68k-*-*)           PICFLAG=-fpic ;;
4115     mips*-*-linux)      PICFLAG=-fPIC ;;
4116     powerpc*-*-aix*)    ;;
4117     powerpc*-*-*)       PICFLAG=-fPIC ;;
4118     sparc*-*-*)         case "${CFLAGS}" in
4119                           *-fpic* ) PICFLAG=-fpic ;;
4120                           * ) PICFLAG=-fPIC ;;
4121                         esac ;;
4122     s390*-*-*)          PICFLAG=-fpic ;;
4123   esac
4124 fi
4125
4126
4127 echo "# Warning: this fragment is automatically generated" > temp-frag
4128
4129 if [ -n "${frag}" ] && [ -f "${frag}" ]; then
4130   echo "Appending ${frag} to xhost-mkfrag"
4131   echo "# Following fragment copied from ${frag}" >> temp-frag
4132   cat ${frag} >> temp-frag
4133 fi
4134
4135 # record if we want to build shared libs.
4136 if [ "${shared}" = "yes" ]; then
4137   echo enable_shared = yes >> temp-frag
4138 else
4139   echo enable_shared = no >> temp-frag
4140 fi
4141
4142 frag=xhost-mkfrag
4143 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
4144
4145 host_makefile_frag=${frag}
4146
4147
4148 # It's OK to check for header files.  Although the compiler may not be
4149 # able to link anything, it had better be able to at least compile
4150 # something.
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176 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
4177 do
4178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4179 echo "$as_me:$LINENO: checking for $ac_header" >&5
4180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4182   echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184   cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h.  */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h.  */
4190 #include <$ac_header>
4191 _ACEOF
4192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4194   ac_status=$?
4195   grep -v '^ *+' conftest.er1 >conftest.err
4196   rm -f conftest.er1
4197   cat conftest.err >&5
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); } >/dev/null; then
4200   if test -s conftest.err; then
4201     ac_cpp_err=$ac_c_preproc_warn_flag
4202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4203   else
4204     ac_cpp_err=
4205   fi
4206 else
4207   ac_cpp_err=yes
4208 fi
4209 if test -z "$ac_cpp_err"; then
4210   eval "$as_ac_Header=yes"
4211 else
4212   echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4214
4215   eval "$as_ac_Header=no"
4216 fi
4217 rm -f conftest.err conftest.$ac_ext
4218 fi
4219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4222   cat >>confdefs.h <<_ACEOF
4223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4224 _ACEOF
4225
4226 fi
4227 done
4228
4229 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4230 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4231 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4232   echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234   cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h.  */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h.  */
4240 #include <sys/types.h>
4241 #include <sys/wait.h>
4242 #ifndef WEXITSTATUS
4243 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4244 #endif
4245 #ifndef WIFEXITED
4246 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4247 #endif
4248
4249 int
4250 main ()
4251 {
4252   int s;
4253   wait (&s);
4254   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4255   ;
4256   return 0;
4257 }
4258 _ACEOF
4259 rm -f conftest.$ac_objext
4260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261   (eval $ac_compile) 2>conftest.er1
4262   ac_status=$?
4263   grep -v '^ *+' conftest.er1 >conftest.err
4264   rm -f conftest.er1
4265   cat conftest.err >&5
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); } &&
4268          { ac_try='test -z "$ac_c_werror_flag"
4269                          || test ! -s conftest.err'
4270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271   (eval $ac_try) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; } &&
4275          { ac_try='test -s conftest.$ac_objext'
4276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277   (eval $ac_try) 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; }; then
4281   ac_cv_header_sys_wait_h=yes
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 ac_cv_header_sys_wait_h=no
4287 fi
4288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4289 fi
4290 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4291 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4292 if test $ac_cv_header_sys_wait_h = yes; then
4293
4294 cat >>confdefs.h <<\_ACEOF
4295 #define HAVE_SYS_WAIT_H 1
4296 _ACEOF
4297
4298 fi
4299
4300 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4301 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4302 if test "${ac_cv_header_time+set}" = set; then
4303   echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305   cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h.  */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h.  */
4311 #include <sys/types.h>
4312 #include <sys/time.h>
4313 #include <time.h>
4314
4315 int
4316 main ()
4317 {
4318 if ((struct tm *) 0)
4319 return 0;
4320   ;
4321   return 0;
4322 }
4323 _ACEOF
4324 rm -f conftest.$ac_objext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326   (eval $ac_compile) 2>conftest.er1
4327   ac_status=$?
4328   grep -v '^ *+' conftest.er1 >conftest.err
4329   rm -f conftest.er1
4330   cat conftest.err >&5
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } &&
4333          { ac_try='test -z "$ac_c_werror_flag"
4334                          || test ! -s conftest.err'
4335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336   (eval $ac_try) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; } &&
4340          { ac_try='test -s conftest.$ac_objext'
4341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342   (eval $ac_try) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; }; then
4346   ac_cv_header_time=yes
4347 else
4348   echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 ac_cv_header_time=no
4352 fi
4353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4354 fi
4355 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4356 echo "${ECHO_T}$ac_cv_header_time" >&6
4357 if test $ac_cv_header_time = yes; then
4358
4359 cat >>confdefs.h <<\_ACEOF
4360 #define TIME_WITH_SYS_TIME 1
4361 _ACEOF
4362
4363 fi
4364
4365
4366 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
4367 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
4368 if test "${libiberty_cv_declare_errno+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377 #include <errno.h>
4378 int
4379 main ()
4380 {
4381 int x = errno;
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388   (eval $ac_compile) 2>conftest.er1
4389   ac_status=$?
4390   grep -v '^ *+' conftest.er1 >conftest.err
4391   rm -f conftest.er1
4392   cat conftest.err >&5
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } &&
4395          { ac_try='test -z "$ac_c_werror_flag"
4396                          || test ! -s conftest.err'
4397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398   (eval $ac_try) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; } &&
4402          { ac_try='test -s conftest.$ac_objext'
4403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404   (eval $ac_try) 2>&5
4405   ac_status=$?
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); }; }; then
4408   libiberty_cv_declare_errno=no
4409 else
4410   echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 libiberty_cv_declare_errno=yes
4414 fi
4415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4416 fi
4417 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
4418 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
4419 if test $libiberty_cv_declare_errno = yes
4420 then
4421 cat >>confdefs.h <<\_ACEOF
4422 #define NEED_DECLARATION_ERRNO 1
4423 _ACEOF
4424
4425 fi
4426
4427
4428 # Determine the size of an int for struct fibnode.
4429 echo "$as_me:$LINENO: checking for egrep" >&5
4430 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4431 if test "${ac_cv_prog_egrep+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4435     then ac_cv_prog_egrep='grep -E'
4436     else ac_cv_prog_egrep='egrep'
4437     fi
4438 fi
4439 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4440 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4441  EGREP=$ac_cv_prog_egrep
4442
4443
4444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4446 if test "${ac_cv_header_stdc+set}" = set; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 #include <stdlib.h>
4456 #include <stdarg.h>
4457 #include <string.h>
4458 #include <float.h>
4459
4460 int
4461 main ()
4462 {
4463
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470   (eval $ac_compile) 2>conftest.er1
4471   ac_status=$?
4472   grep -v '^ *+' conftest.er1 >conftest.err
4473   rm -f conftest.er1
4474   cat conftest.err >&5
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); } &&
4477          { ac_try='test -z "$ac_c_werror_flag"
4478                          || test ! -s conftest.err'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; } &&
4484          { ac_try='test -s conftest.$ac_objext'
4485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486   (eval $ac_try) 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }; }; then
4490   ac_cv_header_stdc=yes
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 ac_cv_header_stdc=no
4496 fi
4497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4498
4499 if test $ac_cv_header_stdc = yes; then
4500   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4501   cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507 #include <string.h>
4508
4509 _ACEOF
4510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511   $EGREP "memchr" >/dev/null 2>&1; then
4512   :
4513 else
4514   ac_cv_header_stdc=no
4515 fi
4516 rm -f conftest*
4517
4518 fi
4519
4520 if test $ac_cv_header_stdc = yes; then
4521   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4522   cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 #include <stdlib.h>
4529
4530 _ACEOF
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532   $EGREP "free" >/dev/null 2>&1; then
4533   :
4534 else
4535   ac_cv_header_stdc=no
4536 fi
4537 rm -f conftest*
4538
4539 fi
4540
4541 if test $ac_cv_header_stdc = yes; then
4542   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4543   if test "$cross_compiling" = yes; then
4544   :
4545 else
4546   cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h.  */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h.  */
4552 #include <ctype.h>
4553 #if ((' ' & 0x0FF) == 0x020)
4554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4556 #else
4557 # define ISLOWER(c) \
4558                    (('a' <= (c) && (c) <= 'i') \
4559                      || ('j' <= (c) && (c) <= 'r') \
4560                      || ('s' <= (c) && (c) <= 'z'))
4561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4562 #endif
4563
4564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4565 int
4566 main ()
4567 {
4568   int i;
4569   for (i = 0; i < 256; i++)
4570     if (XOR (islower (i), ISLOWER (i))
4571         || toupper (i) != TOUPPER (i))
4572       exit(2);
4573   exit (0);
4574 }
4575 _ACEOF
4576 rm -f conftest$ac_exeext
4577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4578   (eval $ac_link) 2>&5
4579   ac_status=$?
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583   (eval $ac_try) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }; }; then
4587   :
4588 else
4589   echo "$as_me: program exited with status $ac_status" >&5
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4592
4593 ( exit $ac_status )
4594 ac_cv_header_stdc=no
4595 fi
4596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4597 fi
4598 fi
4599 fi
4600 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4601 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4602 if test $ac_cv_header_stdc = yes; then
4603
4604 cat >>confdefs.h <<\_ACEOF
4605 #define STDC_HEADERS 1
4606 _ACEOF
4607
4608 fi
4609
4610 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4621                   inttypes.h stdint.h unistd.h
4622 do
4623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4624 echo "$as_me:$LINENO: checking for $ac_header" >&5
4625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h.  */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h.  */
4635 #include <$ac_header>
4636 _ACEOF
4637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4639   ac_status=$?
4640   grep -v '^ *+' conftest.er1 >conftest.err
4641   rm -f conftest.er1
4642   cat conftest.err >&5
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } >/dev/null; then
4645   if test -s conftest.err; then
4646     ac_cpp_err=$ac_c_preproc_warn_flag
4647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4648   else
4649     ac_cpp_err=
4650   fi
4651 else
4652   ac_cpp_err=yes
4653 fi
4654 if test -z "$ac_cpp_err"; then
4655   eval "$as_ac_Header=yes"
4656 else
4657   echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4659
4660   eval "$as_ac_Header=no"
4661 fi
4662 rm -f conftest.err conftest.$ac_ext
4663 fi
4664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4667   cat >>confdefs.h <<_ACEOF
4668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4669 _ACEOF
4670
4671 fi
4672 done
4673
4674
4675 echo "$as_me:$LINENO: checking for int" >&5
4676 echo $ECHO_N "checking for int... $ECHO_C" >&6
4677 if test "${ac_cv_type_int+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h.  */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h.  */
4686 $ac_includes_default
4687 int
4688 main ()
4689 {
4690 if ((int *) 0)
4691   return 0;
4692 if (sizeof (int))
4693   return 0;
4694   ;
4695   return 0;
4696 }
4697 _ACEOF
4698 rm -f conftest.$ac_objext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4700   (eval $ac_compile) 2>conftest.er1
4701   ac_status=$?
4702   grep -v '^ *+' conftest.er1 >conftest.err
4703   rm -f conftest.er1
4704   cat conftest.err >&5
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); } &&
4707          { ac_try='test -z "$ac_c_werror_flag"
4708                          || test ! -s conftest.err'
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); }; } &&
4714          { ac_try='test -s conftest.$ac_objext'
4715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716   (eval $ac_try) 2>&5
4717   ac_status=$?
4718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719   (exit $ac_status); }; }; then
4720   ac_cv_type_int=yes
4721 else
4722   echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4724
4725 ac_cv_type_int=no
4726 fi
4727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4728 fi
4729 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4730 echo "${ECHO_T}$ac_cv_type_int" >&6
4731
4732 echo "$as_me:$LINENO: checking size of int" >&5
4733 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4734 if test "${ac_cv_sizeof_int+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   if test "$ac_cv_type_int" = yes; then
4738   # The cast to unsigned long works around a bug in the HP C Compiler
4739   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4740   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4741   # This bug is HP SR number 8606223364.
4742   if test "$cross_compiling" = yes; then
4743   # Depending upon the size, compute the lo and hi bounds.
4744 cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h.  */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h.  */
4750 $ac_includes_default
4751 int
4752 main ()
4753 {
4754 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4755 test_array [0] = 0
4756
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 rm -f conftest.$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763   (eval $ac_compile) 2>conftest.er1
4764   ac_status=$?
4765   grep -v '^ *+' conftest.er1 >conftest.err
4766   rm -f conftest.er1
4767   cat conftest.err >&5
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); } &&
4770          { ac_try='test -z "$ac_c_werror_flag"
4771                          || test ! -s conftest.err'
4772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773   (eval $ac_try) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); }; } &&
4777          { ac_try='test -s conftest.$ac_objext'
4778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779   (eval $ac_try) 2>&5
4780   ac_status=$?
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); }; }; then
4783   ac_lo=0 ac_mid=0
4784   while :; do
4785     cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h.  */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h.  */
4791 $ac_includes_default
4792 int
4793 main ()
4794 {
4795 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4796 test_array [0] = 0
4797
4798   ;
4799   return 0;
4800 }
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804   (eval $ac_compile) 2>conftest.er1
4805   ac_status=$?
4806   grep -v '^ *+' conftest.er1 >conftest.err
4807   rm -f conftest.er1
4808   cat conftest.err >&5
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); } &&
4811          { ac_try='test -z "$ac_c_werror_flag"
4812                          || test ! -s conftest.err'
4813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814   (eval $ac_try) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; } &&
4818          { ac_try='test -s conftest.$ac_objext'
4819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820   (eval $ac_try) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; }; then
4824   ac_hi=$ac_mid; break
4825 else
4826   echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 ac_lo=`expr $ac_mid + 1`
4830                     if test $ac_lo -le $ac_mid; then
4831                       ac_lo= ac_hi=
4832                       break
4833                     fi
4834                     ac_mid=`expr 2 '*' $ac_mid + 1`
4835 fi
4836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4837   done
4838 else
4839   echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848 $ac_includes_default
4849 int
4850 main ()
4851 {
4852 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4853 test_array [0] = 0
4854
4855   ;
4856   return 0;
4857 }
4858 _ACEOF
4859 rm -f conftest.$ac_objext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861   (eval $ac_compile) 2>conftest.er1
4862   ac_status=$?
4863   grep -v '^ *+' conftest.er1 >conftest.err
4864   rm -f conftest.er1
4865   cat conftest.err >&5
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } &&
4868          { ac_try='test -z "$ac_c_werror_flag"
4869                          || test ! -s conftest.err'
4870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871   (eval $ac_try) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); }; } &&
4875          { ac_try='test -s conftest.$ac_objext'
4876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877   (eval $ac_try) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; }; then
4881   ac_hi=-1 ac_mid=-1
4882   while :; do
4883     cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h.  */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h.  */
4889 $ac_includes_default
4890 int
4891 main ()
4892 {
4893 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4894 test_array [0] = 0
4895
4896   ;
4897   return 0;
4898 }
4899 _ACEOF
4900 rm -f conftest.$ac_objext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902   (eval $ac_compile) 2>conftest.er1
4903   ac_status=$?
4904   grep -v '^ *+' conftest.er1 >conftest.err
4905   rm -f conftest.er1
4906   cat conftest.err >&5
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); } &&
4909          { ac_try='test -z "$ac_c_werror_flag"
4910                          || test ! -s conftest.err'
4911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912   (eval $ac_try) 2>&5
4913   ac_status=$?
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); }; } &&
4916          { ac_try='test -s conftest.$ac_objext'
4917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918   (eval $ac_try) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }; }; then
4922   ac_lo=$ac_mid; break
4923 else
4924   echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 ac_hi=`expr '(' $ac_mid ')' - 1`
4928                        if test $ac_mid -le $ac_hi; then
4929                          ac_lo= ac_hi=
4930                          break
4931                        fi
4932                        ac_mid=`expr 2 '*' $ac_mid`
4933 fi
4934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4935   done
4936 else
4937   echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940 ac_lo= ac_hi=
4941 fi
4942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4943 fi
4944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4945 # Binary search between lo and hi bounds.
4946 while test "x$ac_lo" != "x$ac_hi"; do
4947   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4948   cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h.  */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h.  */
4954 $ac_includes_default
4955 int
4956 main ()
4957 {
4958 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4959 test_array [0] = 0
4960
4961   ;
4962   return 0;
4963 }
4964 _ACEOF
4965 rm -f conftest.$ac_objext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967   (eval $ac_compile) 2>conftest.er1
4968   ac_status=$?
4969   grep -v '^ *+' conftest.er1 >conftest.err
4970   rm -f conftest.er1
4971   cat conftest.err >&5
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); } &&
4974          { ac_try='test -z "$ac_c_werror_flag"
4975                          || test ! -s conftest.err'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; } &&
4981          { ac_try='test -s conftest.$ac_objext'
4982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983   (eval $ac_try) 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); }; }; then
4987   ac_hi=$ac_mid
4988 else
4989   echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 ac_lo=`expr '(' $ac_mid ')' + 1`
4993 fi
4994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4995 done
4996 case $ac_lo in
4997 ?*) ac_cv_sizeof_int=$ac_lo;;
4998 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4999 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5001 See \`config.log' for more details." >&5
5002 echo "$as_me: error: cannot compute sizeof (int), 77
5003 See \`config.log' for more details." >&2;}
5004    { (exit 1); exit 1; }; }; } ;;
5005 esac
5006 else
5007   if test "$cross_compiling" = yes; then
5008   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5009 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5010 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5011 See \`config.log' for more details." >&5
5012 echo "$as_me: error: cannot run test program while cross compiling
5013 See \`config.log' for more details." >&2;}
5014    { (exit 1); exit 1; }; }; }
5015 else
5016   cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h.  */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h.  */
5022 $ac_includes_default
5023 long longval () { return (long) (sizeof (int)); }
5024 unsigned long ulongval () { return (long) (sizeof (int)); }
5025 #include <stdio.h>
5026 #include <stdlib.h>
5027 int
5028 main ()
5029 {
5030
5031   FILE *f = fopen ("conftest.val", "w");
5032   if (! f)
5033     exit (1);
5034   if (((long) (sizeof (int))) < 0)
5035     {
5036       long i = longval ();
5037       if (i != ((long) (sizeof (int))))
5038         exit (1);
5039       fprintf (f, "%ld\n", i);
5040     }
5041   else
5042     {
5043       unsigned long i = ulongval ();
5044       if (i != ((long) (sizeof (int))))
5045         exit (1);
5046       fprintf (f, "%lu\n", i);
5047     }
5048   exit (ferror (f) || fclose (f) != 0);
5049
5050   ;
5051   return 0;
5052 }
5053 _ACEOF
5054 rm -f conftest$ac_exeext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5056   (eval $ac_link) 2>&5
5057   ac_status=$?
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061   (eval $ac_try) 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); }; }; then
5065   ac_cv_sizeof_int=`cat conftest.val`
5066 else
5067   echo "$as_me: program exited with status $ac_status" >&5
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5070
5071 ( exit $ac_status )
5072 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5073 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5075 See \`config.log' for more details." >&5
5076 echo "$as_me: error: cannot compute sizeof (int), 77
5077 See \`config.log' for more details." >&2;}
5078    { (exit 1); exit 1; }; }; }
5079 fi
5080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5081 fi
5082 fi
5083 rm -f conftest.val
5084 else
5085   ac_cv_sizeof_int=0
5086 fi
5087 fi
5088 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5089 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5090 cat >>confdefs.h <<_ACEOF
5091 #define SIZEOF_INT $ac_cv_sizeof_int
5092 _ACEOF
5093
5094
5095
5096 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5097 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5098 if test "${ac_cv_type_uintptr_t+set}" = set; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101   cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107 $ac_includes_default
5108 int
5109 main ()
5110 {
5111 if ((uintptr_t *) 0)
5112   return 0;
5113 if (sizeof (uintptr_t))
5114   return 0;
5115   ;
5116   return 0;
5117 }
5118 _ACEOF
5119 rm -f conftest.$ac_objext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121   (eval $ac_compile) 2>conftest.er1
5122   ac_status=$?
5123   grep -v '^ *+' conftest.er1 >conftest.err
5124   rm -f conftest.er1
5125   cat conftest.err >&5
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); } &&
5128          { ac_try='test -z "$ac_c_werror_flag"
5129                          || test ! -s conftest.err'
5130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131   (eval $ac_try) 2>&5
5132   ac_status=$?
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); }; } &&
5135          { ac_try='test -s conftest.$ac_objext'
5136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137   (eval $ac_try) 2>&5
5138   ac_status=$?
5139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140   (exit $ac_status); }; }; then
5141   ac_cv_type_uintptr_t=yes
5142 else
5143   echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 ac_cv_type_uintptr_t=no
5147 fi
5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149 fi
5150 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5151 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5152 if test $ac_cv_type_uintptr_t = yes; then
5153   :
5154 else
5155
5156 cat >>confdefs.h <<_ACEOF
5157 #define uintptr_t unsigned long
5158 _ACEOF
5159
5160 fi
5161
5162
5163 # Look for a 64-bit type.
5164 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
5165 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
5166 if test "${liberty_cv_uint64+set}" = set; then
5167   echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169   cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h.  */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h.  */
5175 #ifdef HAVE_STDINT_H
5176 #include <stdint.h>
5177 #endif
5178 int
5179 main ()
5180 {
5181 extern uint64_t foo;
5182   ;
5183   return 0;
5184 }
5185 _ACEOF
5186 rm -f conftest.$ac_objext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188   (eval $ac_compile) 2>conftest.er1
5189   ac_status=$?
5190   grep -v '^ *+' conftest.er1 >conftest.err
5191   rm -f conftest.er1
5192   cat conftest.err >&5
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); } &&
5195          { ac_try='test -z "$ac_c_werror_flag"
5196                          || test ! -s conftest.err'
5197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198   (eval $ac_try) 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); }; } &&
5202          { ac_try='test -s conftest.$ac_objext'
5203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204   (eval $ac_try) 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }; }; then
5208   liberty_cv_uint64=uint64_t
5209 else
5210   echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213 cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h.  */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h.  */
5219 #ifdef HAVE_LIMITS_H
5220 #include <limits.h>
5221 #endif
5222 #ifndef CHAR_BIT
5223 #define CHAR_BIT 8
5224 #endif
5225 int
5226 main ()
5227 {
5228 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
5229   ;
5230   return 0;
5231 }
5232 _ACEOF
5233 rm -f conftest.$ac_objext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235   (eval $ac_compile) 2>conftest.er1
5236   ac_status=$?
5237   grep -v '^ *+' conftest.er1 >conftest.err
5238   rm -f conftest.er1
5239   cat conftest.err >&5
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } &&
5242          { ac_try='test -z "$ac_c_werror_flag"
5243                          || test ! -s conftest.err'
5244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245   (eval $ac_try) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); }; } &&
5249          { ac_try='test -s conftest.$ac_objext'
5250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251   (eval $ac_try) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }; }; then
5255   liberty_cv_uint64="unsigned long"
5256 else
5257   echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h.  */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h.  */
5266 #ifdef HAVE_LIMITS_H
5267 #include <limits.h>
5268 #endif
5269 #ifndef CHAR_BIT
5270 #define CHAR_BIT 8
5271 #endif
5272 int
5273 main ()
5274 {
5275 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
5276   ;
5277   return 0;
5278 }
5279 _ACEOF
5280 rm -f conftest.$ac_objext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282   (eval $ac_compile) 2>conftest.er1
5283   ac_status=$?
5284   grep -v '^ *+' conftest.er1 >conftest.err
5285   rm -f conftest.er1
5286   cat conftest.err >&5
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); } &&
5289          { ac_try='test -z "$ac_c_werror_flag"
5290                          || test ! -s conftest.err'
5291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292   (eval $ac_try) 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }; } &&
5296          { ac_try='test -s conftest.$ac_objext'
5297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298   (eval $ac_try) 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }; }; then
5302   liberty_cv_uint64="unsigned long long"
5303 else
5304   echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5306
5307 liberty_cv_uint64=none
5308 fi
5309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5310 fi
5311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5312 fi
5313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5314 fi
5315
5316 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
5317 echo "${ECHO_T}$liberty_cv_uint64" >&6
5318 if test "$liberty_cv_uint64" != none; then
5319
5320 cat >>confdefs.h <<_ACEOF
5321 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
5322 _ACEOF
5323
5324 fi
5325
5326 # Given the above check, we always have uintptr_t or a fallback
5327 # definition.  So define HAVE_UINTPTR_T in case any imported code
5328 # relies on it.
5329
5330 cat >>confdefs.h <<\_ACEOF
5331 #define HAVE_UINTPTR_T 1
5332 _ACEOF
5333
5334
5335 echo "$as_me:$LINENO: checking for pid_t" >&5
5336 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5337 if test "${ac_cv_type_pid_t+set}" = set; then
5338   echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340   cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h.  */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h.  */
5346 $ac_includes_default
5347 int
5348 main ()
5349 {
5350 if ((pid_t *) 0)
5351   return 0;
5352 if (sizeof (pid_t))
5353   return 0;
5354   ;
5355   return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360   (eval $ac_compile) 2>conftest.er1
5361   ac_status=$?
5362   grep -v '^ *+' conftest.er1 >conftest.err
5363   rm -f conftest.er1
5364   cat conftest.err >&5
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); } &&
5367          { ac_try='test -z "$ac_c_werror_flag"
5368                          || test ! -s conftest.err'
5369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370   (eval $ac_try) 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); }; } &&
5374          { ac_try='test -s conftest.$ac_objext'
5375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376   (eval $ac_try) 2>&5
5377   ac_status=$?
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); }; }; then
5380   ac_cv_type_pid_t=yes
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 ac_cv_type_pid_t=no
5386 fi
5387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5388 fi
5389 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5390 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5391 if test $ac_cv_type_pid_t = yes; then
5392   :
5393 else
5394
5395 cat >>confdefs.h <<_ACEOF
5396 #define pid_t int
5397 _ACEOF
5398
5399 fi
5400
5401
5402 # This is the list of functions which libiberty will provide if they
5403 # are not available on the host.
5404
5405 funcs="asprintf"
5406 funcs="$funcs atexit"
5407 funcs="$funcs basename"
5408 funcs="$funcs bcmp"
5409 funcs="$funcs bcopy"
5410 funcs="$funcs bsearch"
5411 funcs="$funcs bzero"
5412 funcs="$funcs calloc"
5413 funcs="$funcs clock"
5414 funcs="$funcs ffs"
5415 funcs="$funcs getcwd"
5416 funcs="$funcs getpagesize"
5417 funcs="$funcs gettimeofday"
5418 funcs="$funcs index"
5419 funcs="$funcs insque"
5420 funcs="$funcs memchr"
5421 funcs="$funcs memcmp"
5422 funcs="$funcs memcpy"
5423 funcs="$funcs memmove"
5424 funcs="$funcs mempcpy"
5425 funcs="$funcs memset"
5426 funcs="$funcs mkstemps"
5427 funcs="$funcs putenv"
5428 funcs="$funcs random"
5429 funcs="$funcs rename"
5430 funcs="$funcs rindex"
5431 funcs="$funcs setenv"
5432 funcs="$funcs snprintf"
5433 funcs="$funcs sigsetmask"
5434 funcs="$funcs stpcpy"
5435 funcs="$funcs stpncpy"
5436 funcs="$funcs strcasecmp"
5437 funcs="$funcs strchr"
5438 funcs="$funcs strdup"
5439 funcs="$funcs strncasecmp"
5440 funcs="$funcs strndup"
5441 funcs="$funcs strrchr"
5442 funcs="$funcs strstr"
5443 funcs="$funcs strtod"
5444 funcs="$funcs strtol"
5445 funcs="$funcs strtoul"
5446 funcs="$funcs strverscmp"
5447 funcs="$funcs tmpnam"
5448 funcs="$funcs vasprintf"
5449 funcs="$funcs vfprintf"
5450 funcs="$funcs vprintf"
5451 funcs="$funcs vsnprintf"
5452 funcs="$funcs vsprintf"
5453 funcs="$funcs waitpid"
5454
5455 # Also in the old function.def file: alloca, vfork, getopt.
5456
5457 vars="sys_errlist sys_nerr sys_siglist"
5458
5459 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
5460 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
5461 checkfuncs="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
5462
5463 # These are neither executed nor required, but they help keep
5464 # autoheader happy without adding a bunch of text to acconfig.h.
5465 if test "x" = "y"; then
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535 for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
5536   getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
5537   memmove mempcpy memset putenv random rename rindex sigsetmask \
5538   strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
5539   strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
5540   vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5541   sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
5542   pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
5543   realpath canonicalize_file_name __fsetlocking
5544 do
5545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5546 echo "$as_me:$LINENO: checking for $ac_func" >&5
5547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5548 if eval "test \"\${$as_ac_var+set}\" = set"; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   if test x$gcc_no_link = xyes; then
5552   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5554    { (exit 1); exit 1; }; }
5555 fi
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h.  */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h.  */
5562 /* System header to define __stub macros and hopefully few prototypes,
5563     which can conflict with char $ac_func (); below.
5564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565     <limits.h> exists even on freestanding compilers.  Under hpux,
5566     including <limits.h> includes <sys/time.h> and causes problems
5567     checking for functions defined therein.  */
5568 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5569 # include <limits.h>
5570 #else
5571 # include <assert.h>
5572 #endif
5573 /* Override any gcc2 internal prototype to avoid an error.  */
5574 #ifdef __cplusplus
5575 extern "C"
5576 {
5577 #endif
5578 /* We use char because int might match the return type of a gcc2
5579    builtin and then its argument prototype would still apply.  */
5580 char $ac_func ();
5581 /* The GNU C library defines this for functions which it implements
5582     to always fail with ENOSYS.  Some functions are actually named
5583     something starting with __ and the normal name is an alias.  */
5584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5585 choke me
5586 #else
5587 char (*f) () = $ac_func;
5588 #endif
5589 #ifdef __cplusplus
5590 }
5591 #endif
5592
5593 int
5594 main ()
5595 {
5596 return f != $ac_func;
5597   ;
5598   return 0;
5599 }
5600 _ACEOF
5601 rm -f conftest.$ac_objext conftest$ac_exeext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603   (eval $ac_link) 2>conftest.er1
5604   ac_status=$?
5605   grep -v '^ *+' conftest.er1 >conftest.err
5606   rm -f conftest.er1
5607   cat conftest.err >&5
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); } &&
5610          { ac_try='test -z "$ac_c_werror_flag"
5611                          || test ! -s conftest.err'
5612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613   (eval $ac_try) 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); }; } &&
5617          { ac_try='test -s conftest$ac_exeext'
5618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619   (eval $ac_try) 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); }; }; then
5623   eval "$as_ac_var=yes"
5624 else
5625   echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628 eval "$as_ac_var=no"
5629 fi
5630 rm -f conftest.err conftest.$ac_objext \
5631       conftest$ac_exeext conftest.$ac_ext
5632 fi
5633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5635 if test `eval echo '${'$as_ac_var'}'` = yes; then
5636   cat >>confdefs.h <<_ACEOF
5637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5638 _ACEOF
5639
5640 fi
5641 done
5642
5643   echo "$as_me:$LINENO: checking whether basename is declared" >&5
5644 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5645 if test "${ac_cv_have_decl_basename+set}" = set; then
5646   echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648   cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h.  */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h.  */
5654 $ac_includes_default
5655 int
5656 main ()
5657 {
5658 #ifndef basename
5659   char *p = (char *) basename;
5660 #endif
5661
5662   ;
5663   return 0;
5664 }
5665 _ACEOF
5666 rm -f conftest.$ac_objext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668   (eval $ac_compile) 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } &&
5675          { ac_try='test -z "$ac_c_werror_flag"
5676                          || test ! -s conftest.err'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; } &&
5682          { ac_try='test -s conftest.$ac_objext'
5683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684   (eval $ac_try) 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); }; }; then
5688   ac_cv_have_decl_basename=yes
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693 ac_cv_have_decl_basename=no
5694 fi
5695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5696 fi
5697 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5698 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5699 if test $ac_cv_have_decl_basename = yes; then
5700
5701 cat >>confdefs.h <<_ACEOF
5702 #define HAVE_DECL_BASENAME 1
5703 _ACEOF
5704
5705
5706 else
5707   cat >>confdefs.h <<_ACEOF
5708 #define HAVE_DECL_BASENAME 0
5709 _ACEOF
5710
5711
5712 fi
5713 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5714 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5715 if test "${ac_cv_have_decl_ffs+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h.  */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h.  */
5724 $ac_includes_default
5725 int
5726 main ()
5727 {
5728 #ifndef ffs
5729   char *p = (char *) ffs;
5730 #endif
5731
5732   ;
5733   return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738   (eval $ac_compile) 2>conftest.er1
5739   ac_status=$?
5740   grep -v '^ *+' conftest.er1 >conftest.err
5741   rm -f conftest.er1
5742   cat conftest.err >&5
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } &&
5745          { ac_try='test -z "$ac_c_werror_flag"
5746                          || test ! -s conftest.err'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; } &&
5752          { ac_try='test -s conftest.$ac_objext'
5753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754   (eval $ac_try) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; }; then
5758   ac_cv_have_decl_ffs=yes
5759 else
5760   echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 ac_cv_have_decl_ffs=no
5764 fi
5765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5766 fi
5767 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5768 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5769 if test $ac_cv_have_decl_ffs = yes; then
5770
5771 cat >>confdefs.h <<_ACEOF
5772 #define HAVE_DECL_FFS 1
5773 _ACEOF
5774
5775
5776 else
5777   cat >>confdefs.h <<_ACEOF
5778 #define HAVE_DECL_FFS 0
5779 _ACEOF
5780
5781
5782 fi
5783 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5784 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5785 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5786   echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788   cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h.  */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h.  */
5794 $ac_includes_default
5795 int
5796 main ()
5797 {
5798 #ifndef asprintf
5799   char *p = (char *) asprintf;
5800 #endif
5801
5802   ;
5803   return 0;
5804 }
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808   (eval $ac_compile) 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } &&
5815          { ac_try='test -z "$ac_c_werror_flag"
5816                          || test ! -s conftest.err'
5817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818   (eval $ac_try) 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; } &&
5822          { ac_try='test -s conftest.$ac_objext'
5823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824   (eval $ac_try) 2>&5
5825   ac_status=$?
5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827   (exit $ac_status); }; }; then
5828   ac_cv_have_decl_asprintf=yes
5829 else
5830   echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 ac_cv_have_decl_asprintf=no
5834 fi
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5836 fi
5837 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5838 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5839 if test $ac_cv_have_decl_asprintf = yes; then
5840
5841 cat >>confdefs.h <<_ACEOF
5842 #define HAVE_DECL_ASPRINTF 1
5843 _ACEOF
5844
5845
5846 else
5847   cat >>confdefs.h <<_ACEOF
5848 #define HAVE_DECL_ASPRINTF 0
5849 _ACEOF
5850
5851
5852 fi
5853 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5854 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5855 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5856   echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858   cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h.  */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h.  */
5864 $ac_includes_default
5865 int
5866 main ()
5867 {
5868 #ifndef vasprintf
5869   char *p = (char *) vasprintf;
5870 #endif
5871
5872   ;
5873   return 0;
5874 }
5875 _ACEOF
5876 rm -f conftest.$ac_objext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878   (eval $ac_compile) 2>conftest.er1
5879   ac_status=$?
5880   grep -v '^ *+' conftest.er1 >conftest.err
5881   rm -f conftest.er1
5882   cat conftest.err >&5
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } &&
5885          { ac_try='test -z "$ac_c_werror_flag"
5886                          || test ! -s conftest.err'
5887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888   (eval $ac_try) 2>&5
5889   ac_status=$?
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); }; } &&
5892          { ac_try='test -s conftest.$ac_objext'
5893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894   (eval $ac_try) 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); }; }; then
5898   ac_cv_have_decl_vasprintf=yes
5899 else
5900   echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 ac_cv_have_decl_vasprintf=no
5904 fi
5905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906 fi
5907 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5908 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5909 if test $ac_cv_have_decl_vasprintf = yes; then
5910
5911 cat >>confdefs.h <<_ACEOF
5912 #define HAVE_DECL_VASPRINTF 1
5913 _ACEOF
5914
5915
5916 else
5917   cat >>confdefs.h <<_ACEOF
5918 #define HAVE_DECL_VASPRINTF 0
5919 _ACEOF
5920
5921
5922 fi
5923 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
5924 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
5925 if test "${ac_cv_have_decl_snprintf+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h.  */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h.  */
5934 $ac_includes_default
5935 int
5936 main ()
5937 {
5938 #ifndef snprintf
5939   char *p = (char *) snprintf;
5940 #endif
5941
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948   (eval $ac_compile) 2>conftest.er1
5949   ac_status=$?
5950   grep -v '^ *+' conftest.er1 >conftest.err
5951   rm -f conftest.er1
5952   cat conftest.err >&5
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); } &&
5955          { ac_try='test -z "$ac_c_werror_flag"
5956                          || test ! -s conftest.err'
5957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958   (eval $ac_try) 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }; } &&
5962          { ac_try='test -s conftest.$ac_objext'
5963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964   (eval $ac_try) 2>&5
5965   ac_status=$?
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); }; }; then
5968   ac_cv_have_decl_snprintf=yes
5969 else
5970   echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973 ac_cv_have_decl_snprintf=no
5974 fi
5975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
5978 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
5979 if test $ac_cv_have_decl_snprintf = yes; then
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define HAVE_DECL_SNPRINTF 1
5983 _ACEOF
5984
5985
5986 else
5987   cat >>confdefs.h <<_ACEOF
5988 #define HAVE_DECL_SNPRINTF 0
5989 _ACEOF
5990
5991
5992 fi
5993 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
5994 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
5995 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h.  */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h.  */
6004 $ac_includes_default
6005 int
6006 main ()
6007 {
6008 #ifndef vsnprintf
6009   char *p = (char *) vsnprintf;
6010 #endif
6011
6012   ;
6013   return 0;
6014 }
6015 _ACEOF
6016 rm -f conftest.$ac_objext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018   (eval $ac_compile) 2>conftest.er1
6019   ac_status=$?
6020   grep -v '^ *+' conftest.er1 >conftest.err
6021   rm -f conftest.er1
6022   cat conftest.err >&5
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); } &&
6025          { ac_try='test -z "$ac_c_werror_flag"
6026                          || test ! -s conftest.err'
6027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028   (eval $ac_try) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; } &&
6032          { ac_try='test -s conftest.$ac_objext'
6033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034   (eval $ac_try) 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; }; then
6038   ac_cv_have_decl_vsnprintf=yes
6039 else
6040   echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 ac_cv_have_decl_vsnprintf=no
6044 fi
6045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6046 fi
6047 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
6048 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
6049 if test $ac_cv_have_decl_vsnprintf = yes; then
6050
6051 cat >>confdefs.h <<_ACEOF
6052 #define HAVE_DECL_VSNPRINTF 1
6053 _ACEOF
6054
6055
6056 else
6057   cat >>confdefs.h <<_ACEOF
6058 #define HAVE_DECL_VSNPRINTF 0
6059 _ACEOF
6060
6061
6062 fi
6063
6064
6065
6066 cat >>confdefs.h <<\_ACEOF
6067 #define HAVE_SYS_ERRLIST 1
6068 _ACEOF
6069
6070
6071 cat >>confdefs.h <<\_ACEOF
6072 #define HAVE_SYS_NERR 1
6073 _ACEOF
6074
6075
6076 cat >>confdefs.h <<\_ACEOF
6077 #define HAVE_SYS_SIGLIST 1
6078 _ACEOF
6079
6080 fi
6081
6082 # For each of these functions, if the host does not provide the
6083 # function we want to put FN.o in LIBOBJS, and if the host does
6084 # provide the function, we want to define HAVE_FN in config.h.
6085
6086 setobjs=
6087 CHECK=
6088 target_header_dir=
6089 if test -n "${with_target_subdir}"; then
6090
6091   # We are being configured as a target library.  AC_REPLACE_FUNCS
6092   # may not work correctly, because the compiler may not be able to
6093   # link executables.  Note that we may still be being configured
6094   # native.
6095
6096   # If we are being configured for newlib, we know which functions
6097   # newlib provide and which ones we will be expected to provide.
6098
6099   if test "x${with_newlib}" = "xyes"; then
6100     case $LIBOBJS in
6101     "asprintf.$ac_objext"   | \
6102   *" asprintf.$ac_objext"   | \
6103     "asprintf.$ac_objext "* | \
6104   *" asprintf.$ac_objext "* ) ;;
6105   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
6106 esac
6107
6108     case $LIBOBJS in
6109     "basename.$ac_objext"   | \
6110   *" basename.$ac_objext"   | \
6111     "basename.$ac_objext "* | \
6112   *" basename.$ac_objext "* ) ;;
6113   *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
6114 esac
6115
6116     case $LIBOBJS in
6117     "insque.$ac_objext"   | \
6118   *" insque.$ac_objext"   | \
6119     "insque.$ac_objext "* | \
6120   *" insque.$ac_objext "* ) ;;
6121   *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
6122 esac
6123
6124     case $LIBOBJS in
6125     "random.$ac_objext"   | \
6126   *" random.$ac_objext"   | \
6127     "random.$ac_objext "* | \
6128   *" random.$ac_objext "* ) ;;
6129   *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
6130 esac
6131
6132     case $LIBOBJS in
6133     "strdup.$ac_objext"   | \
6134   *" strdup.$ac_objext"   | \
6135     "strdup.$ac_objext "* | \
6136   *" strdup.$ac_objext "* ) ;;
6137   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
6138 esac
6139
6140     case $LIBOBJS in
6141     "vasprintf.$ac_objext"   | \
6142   *" vasprintf.$ac_objext"   | \
6143     "vasprintf.$ac_objext "* | \
6144   *" vasprintf.$ac_objext "* ) ;;
6145   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
6146 esac
6147
6148
6149     for f in $funcs; do
6150       case "$f" in
6151         asprintf | basename | insque | random | strdup | vasprintf)
6152           ;;
6153         *)
6154           n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6155           cat >>confdefs.h <<_ACEOF
6156 #define $n 1
6157 _ACEOF
6158
6159           ;;
6160       esac
6161     done
6162
6163     # newlib doesnt provide any of the variables in $vars, so we
6164     # dont have to check them here.
6165
6166     # Of the functions in $checkfuncs, newlib only has strerror.
6167     cat >>confdefs.h <<\_ACEOF
6168 #define HAVE_STRERROR 1
6169 _ACEOF
6170
6171
6172     setobjs=yes
6173
6174   fi
6175
6176   # If we are being configured for Mingw, we know which functions
6177   # Mingw provides and which ones we will be expected to provide.
6178
6179   case "${host}" in
6180   *-*-mingw*)
6181     case $LIBOBJS in
6182     "asprintf.$ac_objext"   | \
6183   *" asprintf.$ac_objext"   | \
6184     "asprintf.$ac_objext "* | \
6185   *" asprintf.$ac_objext "* ) ;;
6186   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
6187 esac
6188
6189     case $LIBOBJS in
6190     "basename.$ac_objext"   | \
6191   *" basename.$ac_objext"   | \
6192     "basename.$ac_objext "* | \
6193   *" basename.$ac_objext "* ) ;;
6194   *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
6195 esac
6196
6197     case $LIBOBJS in
6198     "bcmp.$ac_objext"   | \
6199   *" bcmp.$ac_objext"   | \
6200     "bcmp.$ac_objext "* | \
6201   *" bcmp.$ac_objext "* ) ;;
6202   *) LIBOBJS="$LIBOBJS bcmp.$ac_objext" ;;
6203 esac
6204
6205     case $LIBOBJS in
6206     "bcopy.$ac_objext"   | \
6207   *" bcopy.$ac_objext"   | \
6208     "bcopy.$ac_objext "* | \
6209   *" bcopy.$ac_objext "* ) ;;
6210   *) LIBOBJS="$LIBOBJS bcopy.$ac_objext" ;;
6211 esac
6212
6213     case $LIBOBJS in
6214     "bzero.$ac_objext"   | \
6215   *" bzero.$ac_objext"   | \
6216     "bzero.$ac_objext "* | \
6217   *" bzero.$ac_objext "* ) ;;
6218   *) LIBOBJS="$LIBOBJS bzero.$ac_objext" ;;
6219 esac
6220
6221     case $LIBOBJS in
6222     "clock.$ac_objext"   | \
6223   *" clock.$ac_objext"   | \
6224     "clock.$ac_objext "* | \
6225   *" clock.$ac_objext "* ) ;;
6226   *) LIBOBJS="$LIBOBJS clock.$ac_objext" ;;
6227 esac
6228
6229     case $LIBOBJS in
6230     "ffs.$ac_objext"   | \
6231   *" ffs.$ac_objext"   | \
6232     "ffs.$ac_objext "* | \
6233   *" ffs.$ac_objext "* ) ;;
6234   *) LIBOBJS="$LIBOBJS ffs.$ac_objext" ;;
6235 esac
6236
6237     case $LIBOBJS in
6238     "getpagesize.$ac_objext"   | \
6239   *" getpagesize.$ac_objext"   | \
6240     "getpagesize.$ac_objext "* | \
6241   *" getpagesize.$ac_objext "* ) ;;
6242   *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
6243 esac
6244
6245     case $LIBOBJS in
6246     "index.$ac_objext"   | \
6247   *" index.$ac_objext"   | \
6248     "index.$ac_objext "* | \
6249   *" index.$ac_objext "* ) ;;
6250   *) LIBOBJS="$LIBOBJS index.$ac_objext" ;;
6251 esac
6252
6253     case $LIBOBJS in
6254     "insque.$ac_objext"   | \
6255   *" insque.$ac_objext"   | \
6256     "insque.$ac_objext "* | \
6257   *" insque.$ac_objext "* ) ;;
6258   *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
6259 esac
6260
6261     case $LIBOBJS in
6262     "mempcpy.$ac_objext"   | \
6263   *" mempcpy.$ac_objext"   | \
6264     "mempcpy.$ac_objext "* | \
6265   *" mempcpy.$ac_objext "* ) ;;
6266   *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext" ;;
6267 esac
6268
6269     case $LIBOBJS in
6270     "mkstemps.$ac_objext"   | \
6271   *" mkstemps.$ac_objext"   | \
6272     "mkstemps.$ac_objext "* | \
6273   *" mkstemps.$ac_objext "* ) ;;
6274   *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext" ;;
6275 esac
6276
6277     case $LIBOBJS in
6278     "random.$ac_objext"   | \
6279   *" random.$ac_objext"   | \
6280     "random.$ac_objext "* | \
6281   *" random.$ac_objext "* ) ;;
6282   *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
6283 esac
6284
6285     case $LIBOBJS in
6286     "rindex.$ac_objext"   | \
6287   *" rindex.$ac_objext"   | \
6288     "rindex.$ac_objext "* | \
6289   *" rindex.$ac_objext "* ) ;;
6290   *) LIBOBJS="$LIBOBJS rindex.$ac_objext" ;;
6291 esac
6292
6293     case $LIBOBJS in
6294     "sigsetmask.$ac_objext"   | \
6295   *" sigsetmask.$ac_objext"   | \
6296     "sigsetmask.$ac_objext "* | \
6297   *" sigsetmask.$ac_objext "* ) ;;
6298   *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext" ;;
6299 esac
6300
6301     case $LIBOBJS in
6302     "stpcpy.$ac_objext"   | \
6303   *" stpcpy.$ac_objext"   | \
6304     "stpcpy.$ac_objext "* | \
6305   *" stpcpy.$ac_objext "* ) ;;
6306   *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext" ;;
6307 esac
6308
6309     case $LIBOBJS in
6310     "stpncpy.$ac_objext"   | \
6311   *" stpncpy.$ac_objext"   | \
6312     "stpncpy.$ac_objext "* | \
6313   *" stpncpy.$ac_objext "* ) ;;
6314   *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext" ;;
6315 esac
6316
6317     case $LIBOBJS in
6318     "strndup.$ac_objext"   | \
6319   *" strndup.$ac_objext"   | \
6320     "strndup.$ac_objext "* | \
6321   *" strndup.$ac_objext "* ) ;;
6322   *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
6323 esac
6324
6325     case $LIBOBJS in
6326     "strverscmp.$ac_objext"   | \
6327   *" strverscmp.$ac_objext"   | \
6328     "strverscmp.$ac_objext "* | \
6329   *" strverscmp.$ac_objext "* ) ;;
6330   *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext" ;;
6331 esac
6332
6333     case $LIBOBJS in
6334     "vasprintf.$ac_objext"   | \
6335   *" vasprintf.$ac_objext"   | \
6336     "vasprintf.$ac_objext "* | \
6337   *" vasprintf.$ac_objext "* ) ;;
6338   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
6339 esac
6340
6341     case $LIBOBJS in
6342     "waitpid.$ac_objext"   | \
6343   *" waitpid.$ac_objext"   | \
6344     "waitpid.$ac_objext "* | \
6345   *" waitpid.$ac_objext "* ) ;;
6346   *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
6347 esac
6348
6349
6350     for f in $funcs; do
6351       case "$f" in
6352         asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid)
6353           ;;
6354         *)
6355           n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6356           cat >>confdefs.h <<_ACEOF
6357 #define $n 1
6358 _ACEOF
6359
6360           ;;
6361       esac
6362     done
6363
6364     # Mingw doesnt provide any of the variables in $vars, so we
6365     # dont have to check them here.
6366
6367     # Of the functions in $checkfuncs, Mingw only has strerror.
6368     cat >>confdefs.h <<\_ACEOF
6369 #define HAVE_STRERROR 1
6370 _ACEOF
6371
6372
6373     setobjs=yes
6374     ;;
6375
6376   esac
6377
6378   # We may wish to install the target headers somewhere.
6379   # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
6380 if test "${enable_install_libiberty+set}" = set; then
6381   enableval="$enable_install_libiberty"
6382   enable_install_libiberty=$enableval
6383 else
6384   enable_install_libiberty=no
6385 fi;
6386   # Option parsed, now set things appropriately.
6387   case x"$enable_install_libiberty" in
6388     xyes|x)
6389       target_header_dir=libiberty
6390       ;;
6391     xno)
6392       target_header_dir=
6393       ;;
6394     *)
6395       # This could be sanity-checked in various ways...
6396       target_header_dir="${enable_install_libiberty}"
6397       ;;
6398   esac
6399
6400
6401 else
6402
6403    # Not a target library, so we set things up to run the test suite.
6404    CHECK=really-check
6405
6406 fi
6407
6408
6409
6410
6411 case "${host}" in
6412   *-*-cygwin* | *-*-mingw*)
6413     cat >>confdefs.h <<\_ACEOF
6414 #define HAVE_SYS_ERRLIST 1
6415 _ACEOF
6416
6417     cat >>confdefs.h <<\_ACEOF
6418 #define HAVE_SYS_NERR 1
6419 _ACEOF
6420
6421     ;;
6422 esac
6423
6424 if test -z "${setobjs}"; then
6425   case "${host}" in
6426
6427   *-*-vxworks*)
6428     # Handle VxWorks configuration specially, since on VxWorks the
6429     # libraries are actually on the target board, not in the file
6430     # system.
6431     case $LIBOBJS in
6432     "basename.$ac_objext"   | \
6433   *" basename.$ac_objext"   | \
6434     "basename.$ac_objext "* | \
6435   *" basename.$ac_objext "* ) ;;
6436   *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
6437 esac
6438
6439     case $LIBOBJS in
6440     "getpagesize.$ac_objext"   | \
6441   *" getpagesize.$ac_objext"   | \
6442     "getpagesize.$ac_objext "* | \
6443   *" getpagesize.$ac_objext "* ) ;;
6444   *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
6445 esac
6446
6447     case $LIBOBJS in
6448     "insque.$ac_objext"   | \
6449   *" insque.$ac_objext"   | \
6450     "insque.$ac_objext "* | \
6451   *" insque.$ac_objext "* ) ;;
6452   *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
6453 esac
6454
6455     case $LIBOBJS in
6456     "random.$ac_objext"   | \
6457   *" random.$ac_objext"   | \
6458     "random.$ac_objext "* | \
6459   *" random.$ac_objext "* ) ;;
6460   *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
6461 esac
6462
6463     case $LIBOBJS in
6464     "strcasecmp.$ac_objext"   | \
6465   *" strcasecmp.$ac_objext"   | \
6466     "strcasecmp.$ac_objext "* | \
6467   *" strcasecmp.$ac_objext "* ) ;;
6468   *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
6469 esac
6470
6471     case $LIBOBJS in
6472     "strncasecmp.$ac_objext"   | \
6473   *" strncasecmp.$ac_objext"   | \
6474     "strncasecmp.$ac_objext "* | \
6475   *" strncasecmp.$ac_objext "* ) ;;
6476   *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
6477 esac
6478
6479     case $LIBOBJS in
6480     "strdup.$ac_objext"   | \
6481   *" strdup.$ac_objext"   | \
6482     "strdup.$ac_objext "* | \
6483   *" strdup.$ac_objext "* ) ;;
6484   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
6485 esac
6486
6487     case $LIBOBJS in
6488     "vfork.$ac_objext"   | \
6489   *" vfork.$ac_objext"   | \
6490     "vfork.$ac_objext "* | \
6491   *" vfork.$ac_objext "* ) ;;
6492   *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
6493 esac
6494
6495     case $LIBOBJS in
6496     "waitpid.$ac_objext"   | \
6497   *" waitpid.$ac_objext"   | \
6498     "waitpid.$ac_objext "* | \
6499   *" waitpid.$ac_objext "* ) ;;
6500   *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
6501 esac
6502
6503     case $LIBOBJS in
6504     "vasprintf.$ac_objext"   | \
6505   *" vasprintf.$ac_objext"   | \
6506     "vasprintf.$ac_objext "* | \
6507   *" vasprintf.$ac_objext "* ) ;;
6508   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
6509 esac
6510
6511     for f in $funcs; do
6512       case "$f" in
6513         basename | getpagesize | insque | random | strcasecmp)
6514           ;;
6515         strncasecmp | strdup | vfork | waitpid | vasprintf)
6516           ;;
6517         *)
6518           n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6519           cat >>confdefs.h <<_ACEOF
6520 #define $n 1
6521 _ACEOF
6522
6523           ;;
6524       esac
6525     done
6526
6527     # VxWorks doesn't provide any of the variables in $vars, so we
6528     # don't have to check them here.
6529
6530     # Of the functions in $checkfuncs, VxWorks only has strerror.
6531     cat >>confdefs.h <<\_ACEOF
6532 #define HAVE_STRERROR 1
6533 _ACEOF
6534
6535
6536     setobjs=yes
6537     ;;
6538
6539   *-*-msdosdjgpp)
6540     for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
6541              getcwd getpagesize getrusage gettimeofday \
6542              index insque memchr memcmp memcpy memmove memset psignal \
6543              putenv random rename rindex sbrk setenv stpcpy strcasecmp \
6544              strchr strdup strerror strncasecmp strrchr strstr strtod \
6545              strtol strtoul sysconf times tmpnam vfprintf vprintf \
6546              vsprintf waitpid
6547     do
6548       n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6549       cat >>confdefs.h <<_ACEOF
6550 #define $n 1
6551 _ACEOF
6552
6553     done
6554
6555
6556     setobjs=yes
6557     ;;
6558
6559   esac
6560 fi
6561
6562 if test -z "${setobjs}"; then
6563
6564   case "${host}" in
6565
6566   *-*-cygwin*)
6567     # The Cygwin library actually uses a couple of files from
6568     # libiberty when it is built.  If we are building a native
6569     # Cygwin, and we run the tests, we will appear to have these
6570     # files.  However, when we go on to build winsup, we will wind up
6571     # with a library which does not have the files, since they should
6572     # have come from libiberty.
6573
6574     # We handle this by removing the functions the winsup library
6575     # provides from our shell variables, so that they appear to be
6576     # missing.
6577
6578     # DJ - only if we're *building* cygwin, not just building *with* cygwin
6579
6580     if test -n "${with_target_subdir}"
6581     then
6582       funcs="`echo $funcs | sed -e 's/random//'`"
6583       case $LIBOBJS in
6584     "random.$ac_objext"   | \
6585   *" random.$ac_objext"   | \
6586     "random.$ac_objext "* | \
6587   *" random.$ac_objext "* ) ;;
6588   *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
6589 esac
6590
6591       vars="`echo $vars | sed -e 's/sys_siglist//'`"
6592       checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
6593     fi
6594     ;;
6595
6596   *-*-mingw32*)
6597     # Under mingw32, sys_nerr and sys_errlist exist, but they are
6598     # macros, so the test below won't find them.
6599     libiberty_cv_var_sys_nerr=yes
6600     libiberty_cv_var_sys_errlist=yes
6601     ;;
6602
6603   *-*-msdosdjgpp*)
6604     # vfork and fork are stubs.
6605     ac_cv_func_vfork_works=no
6606     ;;
6607
6608   *-*-uwin*)
6609     # Under some versions of uwin, vfork is notoriously buggy and the test
6610     # can hang configure; on other versions, vfork exists just as a stub.
6611     # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6612     ac_cv_func_vfork_works=no
6613     # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6614     # macros (actually, these are imported from a DLL, but the end effect
6615     # is the same), so the test below won't find them.
6616     libiberty_cv_var_sys_nerr=yes
6617     libiberty_cv_var_sys_errlist=yes
6618     ;;
6619
6620   *-*-*vms*)
6621     # Under VMS, vfork works very different than on Unix. The standard test
6622     # won't work, and it isn't easily adaptable. It makes more sense to
6623     # just force it.
6624     ac_cv_func_vfork_works=yes
6625     ;;
6626
6627   esac
6628
6629   # We haven't set the list of objects yet.  Use the standard autoconf
6630   # tests.  This will only work if the compiler works.
6631   echo "$as_me:$LINENO: checking for library containing strerror" >&5
6632 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6633 if test "${ac_cv_search_strerror+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   ac_func_search_save_LIBS=$LIBS
6637 ac_cv_search_strerror=no
6638 if test x$gcc_no_link = xyes; then
6639   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6640 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6641    { (exit 1); exit 1; }; }
6642 fi
6643 cat >conftest.$ac_ext <<_ACEOF
6644 /* confdefs.h.  */
6645 _ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h.  */
6649
6650 /* Override any gcc2 internal prototype to avoid an error.  */
6651 #ifdef __cplusplus
6652 extern "C"
6653 #endif
6654 /* We use char because int might match the return type of a gcc2
6655    builtin and then its argument prototype would still apply.  */
6656 char strerror ();
6657 int
6658 main ()
6659 {
6660 strerror ();
6661   ;
6662   return 0;
6663 }
6664 _ACEOF
6665 rm -f conftest.$ac_objext conftest$ac_exeext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667   (eval $ac_link) 2>conftest.er1
6668   ac_status=$?
6669   grep -v '^ *+' conftest.er1 >conftest.err
6670   rm -f conftest.er1
6671   cat conftest.err >&5
6672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673   (exit $ac_status); } &&
6674          { ac_try='test -z "$ac_c_werror_flag"
6675                          || test ! -s conftest.err'
6676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677   (eval $ac_try) 2>&5
6678   ac_status=$?
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); }; } &&
6681          { ac_try='test -s conftest$ac_exeext'
6682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683   (eval $ac_try) 2>&5
6684   ac_status=$?
6685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686   (exit $ac_status); }; }; then
6687   ac_cv_search_strerror="none required"
6688 else
6689   echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6691
6692 fi
6693 rm -f conftest.err conftest.$ac_objext \
6694       conftest$ac_exeext conftest.$ac_ext
6695 if test "$ac_cv_search_strerror" = no; then
6696   for ac_lib in cposix; do
6697     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6698     if test x$gcc_no_link = xyes; then
6699   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6700 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6701    { (exit 1); exit 1; }; }
6702 fi
6703 cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h.  */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h.  */
6709
6710 /* Override any gcc2 internal prototype to avoid an error.  */
6711 #ifdef __cplusplus
6712 extern "C"
6713 #endif
6714 /* We use char because int might match the return type of a gcc2
6715    builtin and then its argument prototype would still apply.  */
6716 char strerror ();
6717 int
6718 main ()
6719 {
6720 strerror ();
6721   ;
6722   return 0;
6723 }
6724 _ACEOF
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727   (eval $ac_link) 2>conftest.er1
6728   ac_status=$?
6729   grep -v '^ *+' conftest.er1 >conftest.err
6730   rm -f conftest.er1
6731   cat conftest.err >&5
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); } &&
6734          { ac_try='test -z "$ac_c_werror_flag"
6735                          || test ! -s conftest.err'
6736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737   (eval $ac_try) 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; } &&
6741          { ac_try='test -s conftest$ac_exeext'
6742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743   (eval $ac_try) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); }; }; then
6747   ac_cv_search_strerror="-l$ac_lib"
6748 break
6749 else
6750   echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 fi
6754 rm -f conftest.err conftest.$ac_objext \
6755       conftest$ac_exeext conftest.$ac_ext
6756   done
6757 fi
6758 LIBS=$ac_func_search_save_LIBS
6759 fi
6760 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6761 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6762 if test "$ac_cv_search_strerror" != no; then
6763   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6764
6765 fi
6766
6767
6768 for ac_func in $funcs
6769 do
6770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6771 echo "$as_me:$LINENO: checking for $ac_func" >&5
6772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6773 if eval "test \"\${$as_ac_var+set}\" = set"; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   if test x$gcc_no_link = xyes; then
6777   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6778 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6779    { (exit 1); exit 1; }; }
6780 fi
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h.  */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h.  */
6787 /* System header to define __stub macros and hopefully few prototypes,
6788     which can conflict with char $ac_func (); below.
6789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6790     <limits.h> exists even on freestanding compilers.  Under hpux,
6791     including <limits.h> includes <sys/time.h> and causes problems
6792     checking for functions defined therein.  */
6793 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6794 # include <limits.h>
6795 #else
6796 # include <assert.h>
6797 #endif
6798 /* Override any gcc2 internal prototype to avoid an error.  */
6799 #ifdef __cplusplus
6800 extern "C"
6801 {
6802 #endif
6803 /* We use char because int might match the return type of a gcc2
6804    builtin and then its argument prototype would still apply.  */
6805 char $ac_func ();
6806 /* The GNU C library defines this for functions which it implements
6807     to always fail with ENOSYS.  Some functions are actually named
6808     something starting with __ and the normal name is an alias.  */
6809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6810 choke me
6811 #else
6812 char (*f) () = $ac_func;
6813 #endif
6814 #ifdef __cplusplus
6815 }
6816 #endif
6817
6818 int
6819 main ()
6820 {
6821 return f != $ac_func;
6822   ;
6823   return 0;
6824 }
6825 _ACEOF
6826 rm -f conftest.$ac_objext conftest$ac_exeext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828   (eval $ac_link) 2>conftest.er1
6829   ac_status=$?
6830   grep -v '^ *+' conftest.er1 >conftest.err
6831   rm -f conftest.er1
6832   cat conftest.err >&5
6833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834   (exit $ac_status); } &&
6835          { ac_try='test -z "$ac_c_werror_flag"
6836                          || test ! -s conftest.err'
6837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838   (eval $ac_try) 2>&5
6839   ac_status=$?
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); }; } &&
6842          { ac_try='test -s conftest$ac_exeext'
6843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844   (eval $ac_try) 2>&5
6845   ac_status=$?
6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); }; }; then
6848   eval "$as_ac_var=yes"
6849 else
6850   echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853 eval "$as_ac_var=no"
6854 fi
6855 rm -f conftest.err conftest.$ac_objext \
6856       conftest$ac_exeext conftest.$ac_ext
6857 fi
6858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6860 if test `eval echo '${'$as_ac_var'}'` = yes; then
6861   cat >>confdefs.h <<_ACEOF
6862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6863 _ACEOF
6864
6865 else
6866   case $LIBOBJS in
6867     "$ac_func.$ac_objext"   | \
6868   *" $ac_func.$ac_objext"   | \
6869     "$ac_func.$ac_objext "* | \
6870   *" $ac_func.$ac_objext "* ) ;;
6871   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6872 esac
6873
6874 fi
6875 done
6876
6877
6878   echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6879 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6880 if test "${ac_cv_os_cray+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h.  */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h.  */
6889 #if defined(CRAY) && ! defined(CRAY2)
6890 webecray
6891 #else
6892 wenotbecray
6893 #endif
6894
6895 _ACEOF
6896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6897   $EGREP "webecray" >/dev/null 2>&1; then
6898   ac_cv_os_cray=yes
6899 else
6900   ac_cv_os_cray=no
6901 fi
6902 rm -f conftest*
6903
6904 fi
6905 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6906 echo "${ECHO_T}$ac_cv_os_cray" >&6
6907 if test $ac_cv_os_cray = yes; then
6908   for ac_func in _getb67 GETB67 getb67; do
6909     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6910 echo "$as_me:$LINENO: checking for $ac_func" >&5
6911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6912 if eval "test \"\${$as_ac_var+set}\" = set"; then
6913   echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915   if test x$gcc_no_link = xyes; then
6916   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6917 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6918    { (exit 1); exit 1; }; }
6919 fi
6920 cat >conftest.$ac_ext <<_ACEOF
6921 /* confdefs.h.  */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h.  */
6926 /* System header to define __stub macros and hopefully few prototypes,
6927     which can conflict with char $ac_func (); below.
6928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6929     <limits.h> exists even on freestanding compilers.  Under hpux,
6930     including <limits.h> includes <sys/time.h> and causes problems
6931     checking for functions defined therein.  */
6932 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6933 # include <limits.h>
6934 #else
6935 # include <assert.h>
6936 #endif
6937 /* Override any gcc2 internal prototype to avoid an error.  */
6938 #ifdef __cplusplus
6939 extern "C"
6940 {
6941 #endif
6942 /* We use char because int might match the return type of a gcc2
6943    builtin and then its argument prototype would still apply.  */
6944 char $ac_func ();
6945 /* The GNU C library defines this for functions which it implements
6946     to always fail with ENOSYS.  Some functions are actually named
6947     something starting with __ and the normal name is an alias.  */
6948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6949 choke me
6950 #else
6951 char (*f) () = $ac_func;
6952 #endif
6953 #ifdef __cplusplus
6954 }
6955 #endif
6956
6957 int
6958 main ()
6959 {
6960 return f != $ac_func;
6961   ;
6962   return 0;
6963 }
6964 _ACEOF
6965 rm -f conftest.$ac_objext conftest$ac_exeext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967   (eval $ac_link) 2>conftest.er1
6968   ac_status=$?
6969   grep -v '^ *+' conftest.er1 >conftest.err
6970   rm -f conftest.er1
6971   cat conftest.err >&5
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); } &&
6974          { ac_try='test -z "$ac_c_werror_flag"
6975                          || test ! -s conftest.err'
6976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977   (eval $ac_try) 2>&5
6978   ac_status=$?
6979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980   (exit $ac_status); }; } &&
6981          { ac_try='test -s conftest$ac_exeext'
6982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983   (eval $ac_try) 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); }; }; then
6987   eval "$as_ac_var=yes"
6988 else
6989   echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 eval "$as_ac_var=no"
6993 fi
6994 rm -f conftest.err conftest.$ac_objext \
6995       conftest$ac_exeext conftest.$ac_ext
6996 fi
6997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6999 if test `eval echo '${'$as_ac_var'}'` = yes; then
7000
7001 cat >>confdefs.h <<_ACEOF
7002 #define CRAY_STACKSEG_END $ac_func
7003 _ACEOF
7004   break
7005 fi
7006
7007   done
7008 fi
7009
7010 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7011 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7012 if test "${ac_cv_c_stack_direction+set}" = set; then
7013   echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015   if test "$cross_compiling" = yes; then
7016   ac_cv_c_stack_direction=0
7017 else
7018   cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h.  */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h.  */
7024 find_stack_direction ()
7025 {
7026   static char *addr = 0;
7027   auto char dummy;
7028   if (addr == 0)
7029     {
7030       addr = &dummy;
7031       return find_stack_direction ();
7032     }
7033   else
7034     return (&dummy > addr) ? 1 : -1;
7035 }
7036 main ()
7037 {
7038   exit (find_stack_direction() < 0);
7039 }
7040 _ACEOF
7041 rm -f conftest$ac_exeext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7043   (eval $ac_link) 2>&5
7044   ac_status=$?
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048   (eval $ac_try) 2>&5
7049   ac_status=$?
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); }; }; then
7052   ac_cv_c_stack_direction=1
7053 else
7054   echo "$as_me: program exited with status $ac_status" >&5
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7057
7058 ( exit $ac_status )
7059 ac_cv_c_stack_direction=-1
7060 fi
7061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7062 fi
7063 fi
7064 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7065 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7066
7067 cat >>confdefs.h <<_ACEOF
7068 #define STACK_DIRECTION $ac_cv_c_stack_direction
7069 _ACEOF
7070
7071
7072
7073
7074 for ac_header in unistd.h vfork.h
7075 do
7076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7077 echo "$as_me:$LINENO: checking for $ac_header" >&5
7078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h.  */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h.  */
7088 #include <$ac_header>
7089 _ACEOF
7090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7092   ac_status=$?
7093   grep -v '^ *+' conftest.er1 >conftest.err
7094   rm -f conftest.er1
7095   cat conftest.err >&5
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); } >/dev/null; then
7098   if test -s conftest.err; then
7099     ac_cpp_err=$ac_c_preproc_warn_flag
7100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7101   else
7102     ac_cpp_err=
7103   fi
7104 else
7105   ac_cpp_err=yes
7106 fi
7107 if test -z "$ac_cpp_err"; then
7108   eval "$as_ac_Header=yes"
7109 else
7110   echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7112
7113   eval "$as_ac_Header=no"
7114 fi
7115 rm -f conftest.err conftest.$ac_ext
7116 fi
7117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7120   cat >>confdefs.h <<_ACEOF
7121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7122 _ACEOF
7123
7124 fi
7125 done
7126
7127
7128
7129 for ac_func in fork vfork
7130 do
7131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7132 echo "$as_me:$LINENO: checking for $ac_func" >&5
7133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7134 if eval "test \"\${$as_ac_var+set}\" = set"; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   if test x$gcc_no_link = xyes; then
7138   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7140    { (exit 1); exit 1; }; }
7141 fi
7142 cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h.  */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h.  */
7148 /* System header to define __stub macros and hopefully few prototypes,
7149     which can conflict with char $ac_func (); below.
7150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7151     <limits.h> exists even on freestanding compilers.  Under hpux,
7152     including <limits.h> includes <sys/time.h> and causes problems
7153     checking for functions defined therein.  */
7154 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7155 # include <limits.h>
7156 #else
7157 # include <assert.h>
7158 #endif
7159 /* Override any gcc2 internal prototype to avoid an error.  */
7160 #ifdef __cplusplus
7161 extern "C"
7162 {
7163 #endif
7164 /* We use char because int might match the return type of a gcc2
7165    builtin and then its argument prototype would still apply.  */
7166 char $ac_func ();
7167 /* The GNU C library defines this for functions which it implements
7168     to always fail with ENOSYS.  Some functions are actually named
7169     something starting with __ and the normal name is an alias.  */
7170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7171 choke me
7172 #else
7173 char (*f) () = $ac_func;
7174 #endif
7175 #ifdef __cplusplus
7176 }
7177 #endif
7178
7179 int
7180 main ()
7181 {
7182 return f != $ac_func;
7183   ;
7184   return 0;
7185 }
7186 _ACEOF
7187 rm -f conftest.$ac_objext conftest$ac_exeext
7188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7189   (eval $ac_link) 2>conftest.er1
7190   ac_status=$?
7191   grep -v '^ *+' conftest.er1 >conftest.err
7192   rm -f conftest.er1
7193   cat conftest.err >&5
7194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195   (exit $ac_status); } &&
7196          { ac_try='test -z "$ac_c_werror_flag"
7197                          || test ! -s conftest.err'
7198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199   (eval $ac_try) 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); }; } &&
7203          { ac_try='test -s conftest$ac_exeext'
7204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205   (eval $ac_try) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); }; }; then
7209   eval "$as_ac_var=yes"
7210 else
7211   echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7213
7214 eval "$as_ac_var=no"
7215 fi
7216 rm -f conftest.err conftest.$ac_objext \
7217       conftest$ac_exeext conftest.$ac_ext
7218 fi
7219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7221 if test `eval echo '${'$as_ac_var'}'` = yes; then
7222   cat >>confdefs.h <<_ACEOF
7223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7224 _ACEOF
7225
7226 fi
7227 done
7228
7229 if test "x$ac_cv_func_fork" = xyes; then
7230   echo "$as_me:$LINENO: checking for working fork" >&5
7231 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7232 if test "${ac_cv_func_fork_works+set}" = set; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235   if test "$cross_compiling" = yes; then
7236   ac_cv_func_fork_works=cross
7237 else
7238   cat >conftest.$ac_ext <<_ACEOF
7239 /* By Ruediger Kuhlmann. */
7240       #include <sys/types.h>
7241       #if HAVE_UNISTD_H
7242       # include <unistd.h>
7243       #endif
7244       /* Some systems only have a dummy stub for fork() */
7245       int main ()
7246       {
7247         if (fork() < 0)
7248           exit (1);
7249         exit (0);
7250       }
7251 _ACEOF
7252 rm -f conftest$ac_exeext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7254   (eval $ac_link) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259   (eval $ac_try) 2>&5
7260   ac_status=$?
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); }; }; then
7263   ac_cv_func_fork_works=yes
7264 else
7265   echo "$as_me: program exited with status $ac_status" >&5
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ( exit $ac_status )
7270 ac_cv_func_fork_works=no
7271 fi
7272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7273 fi
7274 fi
7275 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7276 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7277
7278 else
7279   ac_cv_func_fork_works=$ac_cv_func_fork
7280 fi
7281 if test "x$ac_cv_func_fork_works" = xcross; then
7282   case $host in
7283     *-*-amigaos* | *-*-msdosdjgpp*)
7284       # Override, as these systems have only a dummy fork() stub
7285       ac_cv_func_fork_works=no
7286       ;;
7287     *)
7288       ac_cv_func_fork_works=yes
7289       ;;
7290   esac
7291   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7292 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7293 fi
7294 ac_cv_func_vfork_works=$ac_cv_func_vfork
7295 if test "x$ac_cv_func_vfork" = xyes; then
7296   echo "$as_me:$LINENO: checking for working vfork" >&5
7297 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7298 if test "${ac_cv_func_vfork_works+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   if test "$cross_compiling" = yes; then
7302   ac_cv_func_vfork_works=cross
7303 else
7304   cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h.  */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h.  */
7310 /* Thanks to Paul Eggert for this test.  */
7311 #include <stdio.h>
7312 #include <stdlib.h>
7313 #include <sys/types.h>
7314 #include <sys/stat.h>
7315 #include <sys/wait.h>
7316 #if HAVE_UNISTD_H
7317 # include <unistd.h>
7318 #endif
7319 #if HAVE_VFORK_H
7320 # include <vfork.h>
7321 #endif
7322 /* On some sparc systems, changes by the child to local and incoming
7323    argument registers are propagated back to the parent.  The compiler
7324    is told about this with #include <vfork.h>, but some compilers
7325    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7326    static variable whose address is put into a register that is
7327    clobbered by the vfork.  */
7328 static void
7329 #ifdef __cplusplus
7330 sparc_address_test (int arg)
7331 # else
7332 sparc_address_test (arg) int arg;
7333 #endif
7334 {
7335   static pid_t child;
7336   if (!child) {
7337     child = vfork ();
7338     if (child < 0) {
7339       perror ("vfork");
7340       _exit(2);
7341     }
7342     if (!child) {
7343       arg = getpid();
7344       write(-1, "", 0);
7345       _exit (arg);
7346     }
7347   }
7348 }
7349
7350 int
7351 main ()
7352 {
7353   pid_t parent = getpid ();
7354   pid_t child;
7355
7356   sparc_address_test (0);
7357
7358   child = vfork ();
7359
7360   if (child == 0) {
7361     /* Here is another test for sparc vfork register problems.  This
7362        test uses lots of local variables, at least as many local
7363        variables as main has allocated so far including compiler
7364        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7365        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7366        reuse the register of parent for one of the local variables,
7367        since it will think that parent can't possibly be used any more
7368        in this routine.  Assigning to the local variable will thus
7369        munge parent in the parent process.  */
7370     pid_t
7371       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7372       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7373     /* Convince the compiler that p..p7 are live; otherwise, it might
7374        use the same hardware register for all 8 local variables.  */
7375     if (p != p1 || p != p2 || p != p3 || p != p4
7376         || p != p5 || p != p6 || p != p7)
7377       _exit(1);
7378
7379     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7380        from child file descriptors.  If the child closes a descriptor
7381        before it execs or exits, this munges the parent's descriptor
7382        as well.  Test for this by closing stdout in the child.  */
7383     _exit(close(fileno(stdout)) != 0);
7384   } else {
7385     int status;
7386     struct stat st;
7387
7388     while (wait(&status) != child)
7389       ;
7390     exit(
7391          /* Was there some problem with vforking?  */
7392          child < 0
7393
7394          /* Did the child fail?  (This shouldn't happen.)  */
7395          || status
7396
7397          /* Did the vfork/compiler bug occur?  */
7398          || parent != getpid()
7399
7400          /* Did the file descriptor bug occur?  */
7401          || fstat(fileno(stdout), &st) != 0
7402          );
7403   }
7404 }
7405 _ACEOF
7406 rm -f conftest$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408   (eval $ac_link) 2>&5
7409   ac_status=$?
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; }; then
7417   ac_cv_func_vfork_works=yes
7418 else
7419   echo "$as_me: program exited with status $ac_status" >&5
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423 ( exit $ac_status )
7424 ac_cv_func_vfork_works=no
7425 fi
7426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7427 fi
7428 fi
7429 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7430 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7431
7432 fi;
7433 if test "x$ac_cv_func_fork_works" = xcross; then
7434   ac_cv_func_vfork_works=$ac_cv_func_vfork
7435   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7436 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7437 fi
7438
7439 if test "x$ac_cv_func_vfork_works" = xyes; then
7440
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_WORKING_VFORK 1
7443 _ACEOF
7444
7445 else
7446
7447 cat >>confdefs.h <<\_ACEOF
7448 #define vfork fork
7449 _ACEOF
7450
7451 fi
7452 if test "x$ac_cv_func_fork_works" = xyes; then
7453
7454 cat >>confdefs.h <<\_ACEOF
7455 #define HAVE_WORKING_FORK 1
7456 _ACEOF
7457
7458 fi
7459
7460   if test $ac_cv_func_vfork_works = no; then
7461     case $LIBOBJS in
7462     "vfork.$ac_objext"   | \
7463   *" vfork.$ac_objext"   | \
7464     "vfork.$ac_objext "* | \
7465   *" vfork.$ac_objext "* ) ;;
7466   *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
7467 esac
7468
7469   fi
7470   # We only need _doprnt if we might use it to implement v*printf.
7471   if test $ac_cv_func_vprintf != yes \
7472      || test $ac_cv_func_vfprintf != yes \
7473      || test $ac_cv_func_vsprintf != yes; then
7474
7475 for ac_func in _doprnt
7476 do
7477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7478 echo "$as_me:$LINENO: checking for $ac_func" >&5
7479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7480 if eval "test \"\${$as_ac_var+set}\" = set"; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   if test x$gcc_no_link = xyes; then
7484   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7485 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7486    { (exit 1); exit 1; }; }
7487 fi
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h.  */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h.  */
7494 /* System header to define __stub macros and hopefully few prototypes,
7495     which can conflict with char $ac_func (); below.
7496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7497     <limits.h> exists even on freestanding compilers.  Under hpux,
7498     including <limits.h> includes <sys/time.h> and causes problems
7499     checking for functions defined therein.  */
7500 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7501 # include <limits.h>
7502 #else
7503 # include <assert.h>
7504 #endif
7505 /* Override any gcc2 internal prototype to avoid an error.  */
7506 #ifdef __cplusplus
7507 extern "C"
7508 {
7509 #endif
7510 /* We use char because int might match the return type of a gcc2
7511    builtin and then its argument prototype would still apply.  */
7512 char $ac_func ();
7513 /* The GNU C library defines this for functions which it implements
7514     to always fail with ENOSYS.  Some functions are actually named
7515     something starting with __ and the normal name is an alias.  */
7516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7517 choke me
7518 #else
7519 char (*f) () = $ac_func;
7520 #endif
7521 #ifdef __cplusplus
7522 }
7523 #endif
7524
7525 int
7526 main ()
7527 {
7528 return f != $ac_func;
7529   ;
7530   return 0;
7531 }
7532 _ACEOF
7533 rm -f conftest.$ac_objext conftest$ac_exeext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7535   (eval $ac_link) 2>conftest.er1
7536   ac_status=$?
7537   grep -v '^ *+' conftest.er1 >conftest.err
7538   rm -f conftest.er1
7539   cat conftest.err >&5
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); } &&
7542          { ac_try='test -z "$ac_c_werror_flag"
7543                          || test ! -s conftest.err'
7544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545   (eval $ac_try) 2>&5
7546   ac_status=$?
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); }; } &&
7549          { ac_try='test -s conftest$ac_exeext'
7550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551   (eval $ac_try) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); }; }; then
7555   eval "$as_ac_var=yes"
7556 else
7557   echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 eval "$as_ac_var=no"
7561 fi
7562 rm -f conftest.err conftest.$ac_objext \
7563       conftest$ac_exeext conftest.$ac_ext
7564 fi
7565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7567 if test `eval echo '${'$as_ac_var'}'` = yes; then
7568   cat >>confdefs.h <<_ACEOF
7569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7570 _ACEOF
7571
7572 else
7573   case $LIBOBJS in
7574     "$ac_func.$ac_objext"   | \
7575   *" $ac_func.$ac_objext"   | \
7576     "$ac_func.$ac_objext "* | \
7577   *" $ac_func.$ac_objext "* ) ;;
7578   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7579 esac
7580
7581 fi
7582 done
7583
7584
7585   else
7586
7587 for ac_func in _doprnt
7588 do
7589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7590 echo "$as_me:$LINENO: checking for $ac_func" >&5
7591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7592 if eval "test \"\${$as_ac_var+set}\" = set"; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   if test x$gcc_no_link = xyes; then
7596   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7597 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7598    { (exit 1); exit 1; }; }
7599 fi
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h.  */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h.  */
7606 /* System header to define __stub macros and hopefully few prototypes,
7607     which can conflict with char $ac_func (); below.
7608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7609     <limits.h> exists even on freestanding compilers.  Under hpux,
7610     including <limits.h> includes <sys/time.h> and causes problems
7611     checking for functions defined therein.  */
7612 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7613 # include <limits.h>
7614 #else
7615 # include <assert.h>
7616 #endif
7617 /* Override any gcc2 internal prototype to avoid an error.  */
7618 #ifdef __cplusplus
7619 extern "C"
7620 {
7621 #endif
7622 /* We use char because int might match the return type of a gcc2
7623    builtin and then its argument prototype would still apply.  */
7624 char $ac_func ();
7625 /* The GNU C library defines this for functions which it implements
7626     to always fail with ENOSYS.  Some functions are actually named
7627     something starting with __ and the normal name is an alias.  */
7628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7629 choke me
7630 #else
7631 char (*f) () = $ac_func;
7632 #endif
7633 #ifdef __cplusplus
7634 }
7635 #endif
7636
7637 int
7638 main ()
7639 {
7640 return f != $ac_func;
7641   ;
7642   return 0;
7643 }
7644 _ACEOF
7645 rm -f conftest.$ac_objext conftest$ac_exeext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7647   (eval $ac_link) 2>conftest.er1
7648   ac_status=$?
7649   grep -v '^ *+' conftest.er1 >conftest.err
7650   rm -f conftest.er1
7651   cat conftest.err >&5
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); } &&
7654          { ac_try='test -z "$ac_c_werror_flag"
7655                          || test ! -s conftest.err'
7656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657   (eval $ac_try) 2>&5
7658   ac_status=$?
7659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660   (exit $ac_status); }; } &&
7661          { ac_try='test -s conftest$ac_exeext'
7662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663   (eval $ac_try) 2>&5
7664   ac_status=$?
7665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); }; }; then
7667   eval "$as_ac_var=yes"
7668 else
7669   echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7671
7672 eval "$as_ac_var=no"
7673 fi
7674 rm -f conftest.err conftest.$ac_objext \
7675       conftest$ac_exeext conftest.$ac_ext
7676 fi
7677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7679 if test `eval echo '${'$as_ac_var'}'` = yes; then
7680   cat >>confdefs.h <<_ACEOF
7681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7682 _ACEOF
7683
7684 fi
7685 done
7686
7687   fi
7688
7689   for v in $vars; do
7690     echo "$as_me:$LINENO: checking for $v" >&5
7691 echo $ECHO_N "checking for $v... $ECHO_C" >&6
7692     if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
7693   echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695   if test x$gcc_no_link = xyes; then
7696   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7698    { (exit 1); exit 1; }; }
7699 fi
7700 cat >conftest.$ac_ext <<_ACEOF
7701 /* confdefs.h.  */
7702 _ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h.  */
7706 int *p;
7707 int
7708 main ()
7709 {
7710 extern int $v []; p = $v;
7711   ;
7712   return 0;
7713 }
7714 _ACEOF
7715 rm -f conftest.$ac_objext conftest$ac_exeext
7716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7717   (eval $ac_link) 2>conftest.er1
7718   ac_status=$?
7719   grep -v '^ *+' conftest.er1 >conftest.err
7720   rm -f conftest.er1
7721   cat conftest.err >&5
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); } &&
7724          { ac_try='test -z "$ac_c_werror_flag"
7725                          || test ! -s conftest.err'
7726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727   (eval $ac_try) 2>&5
7728   ac_status=$?
7729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   (exit $ac_status); }; } &&
7731          { ac_try='test -s conftest$ac_exeext'
7732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733   (eval $ac_try) 2>&5
7734   ac_status=$?
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); }; }; then
7737   eval "libiberty_cv_var_$v=yes"
7738 else
7739   echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7741
7742 eval "libiberty_cv_var_$v=no"
7743 fi
7744 rm -f conftest.err conftest.$ac_objext \
7745       conftest$ac_exeext conftest.$ac_ext
7746 fi
7747
7748     if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7749       echo "$as_me:$LINENO: result: yes" >&5
7750 echo "${ECHO_T}yes" >&6
7751       n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7752       cat >>confdefs.h <<_ACEOF
7753 #define $n 1
7754 _ACEOF
7755
7756     else
7757       echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6
7759     fi
7760   done
7761
7762   # special check for _system_configuration because AIX <4.3.2 do not
7763   # contain the `physmem' member.
7764   echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
7765 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
7766   cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h.  */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h.  */
7772 #include <sys/systemcfg.h>
7773 int
7774 main ()
7775 {
7776 double x = _system_configuration.physmem;
7777   ;
7778   return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783   (eval $ac_compile) 2>conftest.er1
7784   ac_status=$?
7785   grep -v '^ *+' conftest.er1 >conftest.err
7786   rm -f conftest.er1
7787   cat conftest.err >&5
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); } &&
7790          { ac_try='test -z "$ac_c_werror_flag"
7791                          || test ! -s conftest.err'
7792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793   (eval $ac_try) 2>&5
7794   ac_status=$?
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); }; } &&
7797          { ac_try='test -s conftest.$ac_objext'
7798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799   (eval $ac_try) 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); }; }; then
7803   echo "$as_me:$LINENO: result: yes" >&5
7804 echo "${ECHO_T}yes" >&6
7805
7806 cat >>confdefs.h <<\_ACEOF
7807 #define HAVE__SYSTEM_CONFIGURATION 1
7808 _ACEOF
7809
7810 else
7811   echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 echo "$as_me:$LINENO: result: no" >&5
7815 echo "${ECHO_T}no" >&6
7816 fi
7817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7818
7819
7820 for ac_func in $checkfuncs
7821 do
7822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7823 echo "$as_me:$LINENO: checking for $ac_func" >&5
7824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7825 if eval "test \"\${$as_ac_var+set}\" = set"; then
7826   echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828   if test x$gcc_no_link = xyes; then
7829   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7830 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7831    { (exit 1); exit 1; }; }
7832 fi
7833 cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h.  */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h.  */
7839 /* System header to define __stub macros and hopefully few prototypes,
7840     which can conflict with char $ac_func (); below.
7841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7842     <limits.h> exists even on freestanding compilers.  Under hpux,
7843     including <limits.h> includes <sys/time.h> and causes problems
7844     checking for functions defined therein.  */
7845 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7846 # include <limits.h>
7847 #else
7848 # include <assert.h>
7849 #endif
7850 /* Override any gcc2 internal prototype to avoid an error.  */
7851 #ifdef __cplusplus
7852 extern "C"
7853 {
7854 #endif
7855 /* We use char because int might match the return type of a gcc2
7856    builtin and then its argument prototype would still apply.  */
7857 char $ac_func ();
7858 /* The GNU C library defines this for functions which it implements
7859     to always fail with ENOSYS.  Some functions are actually named
7860     something starting with __ and the normal name is an alias.  */
7861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7862 choke me
7863 #else
7864 char (*f) () = $ac_func;
7865 #endif
7866 #ifdef __cplusplus
7867 }
7868 #endif
7869
7870 int
7871 main ()
7872 {
7873 return f != $ac_func;
7874   ;
7875   return 0;
7876 }
7877 _ACEOF
7878 rm -f conftest.$ac_objext conftest$ac_exeext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880   (eval $ac_link) 2>conftest.er1
7881   ac_status=$?
7882   grep -v '^ *+' conftest.er1 >conftest.err
7883   rm -f conftest.er1
7884   cat conftest.err >&5
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); } &&
7887          { ac_try='test -z "$ac_c_werror_flag"
7888                          || test ! -s conftest.err'
7889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890   (eval $ac_try) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); }; } &&
7894          { ac_try='test -s conftest$ac_exeext'
7895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896   (eval $ac_try) 2>&5
7897   ac_status=$?
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); }; }; then
7900   eval "$as_ac_var=yes"
7901 else
7902   echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7904
7905 eval "$as_ac_var=no"
7906 fi
7907 rm -f conftest.err conftest.$ac_objext \
7908       conftest$ac_exeext conftest.$ac_ext
7909 fi
7910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7912 if test `eval echo '${'$as_ac_var'}'` = yes; then
7913   cat >>confdefs.h <<_ACEOF
7914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7915 _ACEOF
7916
7917 fi
7918 done
7919
7920   echo "$as_me:$LINENO: checking whether basename is declared" >&5
7921 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
7922 if test "${ac_cv_have_decl_basename+set}" = set; then
7923   echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925   cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h.  */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h.  */
7931 $ac_includes_default
7932 int
7933 main ()
7934 {
7935 #ifndef basename
7936   char *p = (char *) basename;
7937 #endif
7938
7939   ;
7940   return 0;
7941 }
7942 _ACEOF
7943 rm -f conftest.$ac_objext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7945   (eval $ac_compile) 2>conftest.er1
7946   ac_status=$?
7947   grep -v '^ *+' conftest.er1 >conftest.err
7948   rm -f conftest.er1
7949   cat conftest.err >&5
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); } &&
7952          { ac_try='test -z "$ac_c_werror_flag"
7953                          || test ! -s conftest.err'
7954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955   (eval $ac_try) 2>&5
7956   ac_status=$?
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); }; } &&
7959          { ac_try='test -s conftest.$ac_objext'
7960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961   (eval $ac_try) 2>&5
7962   ac_status=$?
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); }; }; then
7965   ac_cv_have_decl_basename=yes
7966 else
7967   echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970 ac_cv_have_decl_basename=no
7971 fi
7972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7973 fi
7974 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
7975 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
7976 if test $ac_cv_have_decl_basename = yes; then
7977
7978 cat >>confdefs.h <<_ACEOF
7979 #define HAVE_DECL_BASENAME 1
7980 _ACEOF
7981
7982
7983 else
7984   cat >>confdefs.h <<_ACEOF
7985 #define HAVE_DECL_BASENAME 0
7986 _ACEOF
7987
7988
7989 fi
7990 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
7991 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
7992 if test "${ac_cv_have_decl_ffs+set}" = set; then
7993   echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995   cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h.  */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h.  */
8001 $ac_includes_default
8002 int
8003 main ()
8004 {
8005 #ifndef ffs
8006   char *p = (char *) ffs;
8007 #endif
8008
8009   ;
8010   return 0;
8011 }
8012 _ACEOF
8013 rm -f conftest.$ac_objext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015   (eval $ac_compile) 2>conftest.er1
8016   ac_status=$?
8017   grep -v '^ *+' conftest.er1 >conftest.err
8018   rm -f conftest.er1
8019   cat conftest.err >&5
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); } &&
8022          { ac_try='test -z "$ac_c_werror_flag"
8023                          || test ! -s conftest.err'
8024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025   (eval $ac_try) 2>&5
8026   ac_status=$?
8027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028   (exit $ac_status); }; } &&
8029          { ac_try='test -s conftest.$ac_objext'
8030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031   (eval $ac_try) 2>&5
8032   ac_status=$?
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); }; }; then
8035   ac_cv_have_decl_ffs=yes
8036 else
8037   echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8039
8040 ac_cv_have_decl_ffs=no
8041 fi
8042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8043 fi
8044 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8045 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8046 if test $ac_cv_have_decl_ffs = yes; then
8047
8048 cat >>confdefs.h <<_ACEOF
8049 #define HAVE_DECL_FFS 1
8050 _ACEOF
8051
8052
8053 else
8054   cat >>confdefs.h <<_ACEOF
8055 #define HAVE_DECL_FFS 0
8056 _ACEOF
8057
8058
8059 fi
8060 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
8061 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
8062 if test "${ac_cv_have_decl_asprintf+set}" = set; then
8063   echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065   cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h.  */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h.  */
8071 $ac_includes_default
8072 int
8073 main ()
8074 {
8075 #ifndef asprintf
8076   char *p = (char *) asprintf;
8077 #endif
8078
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 rm -f conftest.$ac_objext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8085   (eval $ac_compile) 2>conftest.er1
8086   ac_status=$?
8087   grep -v '^ *+' conftest.er1 >conftest.err
8088   rm -f conftest.er1
8089   cat conftest.err >&5
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); } &&
8092          { ac_try='test -z "$ac_c_werror_flag"
8093                          || test ! -s conftest.err'
8094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095   (eval $ac_try) 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); }; } &&
8099          { ac_try='test -s conftest.$ac_objext'
8100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101   (eval $ac_try) 2>&5
8102   ac_status=$?
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); }; }; then
8105   ac_cv_have_decl_asprintf=yes
8106 else
8107   echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 ac_cv_have_decl_asprintf=no
8111 fi
8112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8113 fi
8114 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
8115 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
8116 if test $ac_cv_have_decl_asprintf = yes; then
8117
8118 cat >>confdefs.h <<_ACEOF
8119 #define HAVE_DECL_ASPRINTF 1
8120 _ACEOF
8121
8122
8123 else
8124   cat >>confdefs.h <<_ACEOF
8125 #define HAVE_DECL_ASPRINTF 0
8126 _ACEOF
8127
8128
8129 fi
8130 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
8131 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
8132 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h.  */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h.  */
8141 $ac_includes_default
8142 int
8143 main ()
8144 {
8145 #ifndef vasprintf
8146   char *p = (char *) vasprintf;
8147 #endif
8148
8149   ;
8150   return 0;
8151 }
8152 _ACEOF
8153 rm -f conftest.$ac_objext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8155   (eval $ac_compile) 2>conftest.er1
8156   ac_status=$?
8157   grep -v '^ *+' conftest.er1 >conftest.err
8158   rm -f conftest.er1
8159   cat conftest.err >&5
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); } &&
8162          { ac_try='test -z "$ac_c_werror_flag"
8163                          || test ! -s conftest.err'
8164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165   (eval $ac_try) 2>&5
8166   ac_status=$?
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); }; } &&
8169          { ac_try='test -s conftest.$ac_objext'
8170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171   (eval $ac_try) 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); }; }; then
8175   ac_cv_have_decl_vasprintf=yes
8176 else
8177   echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180 ac_cv_have_decl_vasprintf=no
8181 fi
8182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8183 fi
8184 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
8185 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
8186 if test $ac_cv_have_decl_vasprintf = yes; then
8187
8188 cat >>confdefs.h <<_ACEOF
8189 #define HAVE_DECL_VASPRINTF 1
8190 _ACEOF
8191
8192
8193 else
8194   cat >>confdefs.h <<_ACEOF
8195 #define HAVE_DECL_VASPRINTF 0
8196 _ACEOF
8197
8198
8199 fi
8200 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
8201 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
8202 if test "${ac_cv_have_decl_snprintf+set}" = set; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205   cat >conftest.$ac_ext <<_ACEOF
8206 /* confdefs.h.  */
8207 _ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h.  */
8211 $ac_includes_default
8212 int
8213 main ()
8214 {
8215 #ifndef snprintf
8216   char *p = (char *) snprintf;
8217 #endif
8218
8219   ;
8220   return 0;
8221 }
8222 _ACEOF
8223 rm -f conftest.$ac_objext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8225   (eval $ac_compile) 2>conftest.er1
8226   ac_status=$?
8227   grep -v '^ *+' conftest.er1 >conftest.err
8228   rm -f conftest.er1
8229   cat conftest.err >&5
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); } &&
8232          { ac_try='test -z "$ac_c_werror_flag"
8233                          || test ! -s conftest.err'
8234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235   (eval $ac_try) 2>&5
8236   ac_status=$?
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); }; } &&
8239          { ac_try='test -s conftest.$ac_objext'
8240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241   (eval $ac_try) 2>&5
8242   ac_status=$?
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); }; }; then
8245   ac_cv_have_decl_snprintf=yes
8246 else
8247   echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250 ac_cv_have_decl_snprintf=no
8251 fi
8252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8253 fi
8254 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
8255 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
8256 if test $ac_cv_have_decl_snprintf = yes; then
8257
8258 cat >>confdefs.h <<_ACEOF
8259 #define HAVE_DECL_SNPRINTF 1
8260 _ACEOF
8261
8262
8263 else
8264   cat >>confdefs.h <<_ACEOF
8265 #define HAVE_DECL_SNPRINTF 0
8266 _ACEOF
8267
8268
8269 fi
8270 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
8271 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
8272 if test "${ac_cv_have_decl_vsnprintf+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
8282 int
8283 main ()
8284 {
8285 #ifndef vsnprintf
8286   char *p = (char *) vsnprintf;
8287 #endif
8288
8289   ;
8290   return 0;
8291 }
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_vsnprintf=yes
8316 else
8317   echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8319
8320 ac_cv_have_decl_vsnprintf=no
8321 fi
8322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
8325 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
8326 if test $ac_cv_have_decl_vsnprintf = yes; then
8327
8328 cat >>confdefs.h <<_ACEOF
8329 #define HAVE_DECL_VSNPRINTF 1
8330 _ACEOF
8331
8332
8333 else
8334   cat >>confdefs.h <<_ACEOF
8335 #define HAVE_DECL_VSNPRINTF 0
8336 _ACEOF
8337
8338
8339 fi
8340
8341
8342   echo "$as_me:$LINENO: checking whether calloc is declared" >&5
8343 echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
8344 if test "${ac_cv_have_decl_calloc+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.  */
8353 $ac_includes_default
8354 int
8355 main ()
8356 {
8357 #ifndef calloc
8358   char *p = (char *) calloc;
8359 #endif
8360
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367   (eval $ac_compile) 2>conftest.er1
8368   ac_status=$?
8369   grep -v '^ *+' conftest.er1 >conftest.err
8370   rm -f conftest.er1
8371   cat conftest.err >&5
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); } &&
8374          { ac_try='test -z "$ac_c_werror_flag"
8375                          || test ! -s conftest.err'
8376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377   (eval $ac_try) 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); }; } &&
8381          { ac_try='test -s conftest.$ac_objext'
8382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383   (eval $ac_try) 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   ac_cv_have_decl_calloc=yes
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 ac_cv_have_decl_calloc=no
8393 fi
8394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8395 fi
8396 echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
8397 echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
8398 if test $ac_cv_have_decl_calloc = yes; then
8399
8400 cat >>confdefs.h <<_ACEOF
8401 #define HAVE_DECL_CALLOC 1
8402 _ACEOF
8403
8404
8405 else
8406   cat >>confdefs.h <<_ACEOF
8407 #define HAVE_DECL_CALLOC 0
8408 _ACEOF
8409
8410
8411 fi
8412 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8413 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8414 if test "${ac_cv_have_decl_getenv+set}" = set; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417   cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423 $ac_includes_default
8424 int
8425 main ()
8426 {
8427 #ifndef getenv
8428   char *p = (char *) getenv;
8429 #endif
8430
8431   ;
8432   return 0;
8433 }
8434 _ACEOF
8435 rm -f conftest.$ac_objext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8437   (eval $ac_compile) 2>conftest.er1
8438   ac_status=$?
8439   grep -v '^ *+' conftest.er1 >conftest.err
8440   rm -f conftest.er1
8441   cat conftest.err >&5
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); } &&
8444          { ac_try='test -z "$ac_c_werror_flag"
8445                          || test ! -s conftest.err'
8446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447   (eval $ac_try) 2>&5
8448   ac_status=$?
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); }; } &&
8451          { ac_try='test -s conftest.$ac_objext'
8452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453   (eval $ac_try) 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; }; then
8457   ac_cv_have_decl_getenv=yes
8458 else
8459   echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8461
8462 ac_cv_have_decl_getenv=no
8463 fi
8464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8465 fi
8466 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8467 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8468 if test $ac_cv_have_decl_getenv = yes; then
8469
8470 cat >>confdefs.h <<_ACEOF
8471 #define HAVE_DECL_GETENV 1
8472 _ACEOF
8473
8474
8475 else
8476   cat >>confdefs.h <<_ACEOF
8477 #define HAVE_DECL_GETENV 0
8478 _ACEOF
8479
8480
8481 fi
8482 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
8483 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
8484 if test "${ac_cv_have_decl_getopt+set}" = set; then
8485   echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487   cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493 $ac_includes_default
8494 int
8495 main ()
8496 {
8497 #ifndef getopt
8498   char *p = (char *) getopt;
8499 #endif
8500
8501   ;
8502   return 0;
8503 }
8504 _ACEOF
8505 rm -f conftest.$ac_objext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8507   (eval $ac_compile) 2>conftest.er1
8508   ac_status=$?
8509   grep -v '^ *+' conftest.er1 >conftest.err
8510   rm -f conftest.er1
8511   cat conftest.err >&5
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); } &&
8514          { ac_try='test -z "$ac_c_werror_flag"
8515                          || test ! -s conftest.err'
8516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517   (eval $ac_try) 2>&5
8518   ac_status=$?
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); }; } &&
8521          { ac_try='test -s conftest.$ac_objext'
8522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523   (eval $ac_try) 2>&5
8524   ac_status=$?
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); }; }; then
8527   ac_cv_have_decl_getopt=yes
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532 ac_cv_have_decl_getopt=no
8533 fi
8534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8535 fi
8536 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
8537 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
8538 if test $ac_cv_have_decl_getopt = yes; then
8539
8540 cat >>confdefs.h <<_ACEOF
8541 #define HAVE_DECL_GETOPT 1
8542 _ACEOF
8543
8544
8545 else
8546   cat >>confdefs.h <<_ACEOF
8547 #define HAVE_DECL_GETOPT 0
8548 _ACEOF
8549
8550
8551 fi
8552 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8553 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8554 if test "${ac_cv_have_decl_malloc+set}" = set; then
8555   echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557   cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563 $ac_includes_default
8564 int
8565 main ()
8566 {
8567 #ifndef malloc
8568   char *p = (char *) malloc;
8569 #endif
8570
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8577   (eval $ac_compile) 2>conftest.er1
8578   ac_status=$?
8579   grep -v '^ *+' conftest.er1 >conftest.err
8580   rm -f conftest.er1
8581   cat conftest.err >&5
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); } &&
8584          { ac_try='test -z "$ac_c_werror_flag"
8585                          || test ! -s conftest.err'
8586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587   (eval $ac_try) 2>&5
8588   ac_status=$?
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); }; } &&
8591          { ac_try='test -s conftest.$ac_objext'
8592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593   (eval $ac_try) 2>&5
8594   ac_status=$?
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); }; }; then
8597   ac_cv_have_decl_malloc=yes
8598 else
8599   echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8601
8602 ac_cv_have_decl_malloc=no
8603 fi
8604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8605 fi
8606 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8607 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8608 if test $ac_cv_have_decl_malloc = yes; then
8609
8610 cat >>confdefs.h <<_ACEOF
8611 #define HAVE_DECL_MALLOC 1
8612 _ACEOF
8613
8614
8615 else
8616   cat >>confdefs.h <<_ACEOF
8617 #define HAVE_DECL_MALLOC 0
8618 _ACEOF
8619
8620
8621 fi
8622 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8623 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8624 if test "${ac_cv_have_decl_realloc+set}" = set; then
8625   echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627   cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h.  */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h.  */
8633 $ac_includes_default
8634 int
8635 main ()
8636 {
8637 #ifndef realloc
8638   char *p = (char *) realloc;
8639 #endif
8640
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8647   (eval $ac_compile) 2>conftest.er1
8648   ac_status=$?
8649   grep -v '^ *+' conftest.er1 >conftest.err
8650   rm -f conftest.er1
8651   cat conftest.err >&5
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } &&
8654          { ac_try='test -z "$ac_c_werror_flag"
8655                          || test ! -s conftest.err'
8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657   (eval $ac_try) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; } &&
8661          { ac_try='test -s conftest.$ac_objext'
8662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663   (eval $ac_try) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; }; then
8667   ac_cv_have_decl_realloc=yes
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 ac_cv_have_decl_realloc=no
8673 fi
8674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675 fi
8676 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8677 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8678 if test $ac_cv_have_decl_realloc = yes; then
8679
8680 cat >>confdefs.h <<_ACEOF
8681 #define HAVE_DECL_REALLOC 1
8682 _ACEOF
8683
8684
8685 else
8686   cat >>confdefs.h <<_ACEOF
8687 #define HAVE_DECL_REALLOC 0
8688 _ACEOF
8689
8690
8691 fi
8692 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8693 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8694 if test "${ac_cv_have_decl_sbrk+set}" = set; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h.  */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h.  */
8703 $ac_includes_default
8704 int
8705 main ()
8706 {
8707 #ifndef sbrk
8708   char *p = (char *) sbrk;
8709 #endif
8710
8711   ;
8712   return 0;
8713 }
8714 _ACEOF
8715 rm -f conftest.$ac_objext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8717   (eval $ac_compile) 2>conftest.er1
8718   ac_status=$?
8719   grep -v '^ *+' conftest.er1 >conftest.err
8720   rm -f conftest.er1
8721   cat conftest.err >&5
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); } &&
8724          { ac_try='test -z "$ac_c_werror_flag"
8725                          || test ! -s conftest.err'
8726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727   (eval $ac_try) 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; } &&
8731          { ac_try='test -s conftest.$ac_objext'
8732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733   (eval $ac_try) 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); }; }; then
8737   ac_cv_have_decl_sbrk=yes
8738 else
8739   echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742 ac_cv_have_decl_sbrk=no
8743 fi
8744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8745 fi
8746 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8747 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8748 if test $ac_cv_have_decl_sbrk = yes; then
8749
8750 cat >>confdefs.h <<_ACEOF
8751 #define HAVE_DECL_SBRK 1
8752 _ACEOF
8753
8754
8755 else
8756   cat >>confdefs.h <<_ACEOF
8757 #define HAVE_DECL_SBRK 0
8758 _ACEOF
8759
8760
8761 fi
8762
8763
8764   echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
8765 echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
8766 if test "${ac_cv_have_decl_strverscmp+set}" = set; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h.  */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h.  */
8775 $ac_includes_default
8776 int
8777 main ()
8778 {
8779 #ifndef strverscmp
8780   char *p = (char *) strverscmp;
8781 #endif
8782
8783   ;
8784   return 0;
8785 }
8786 _ACEOF
8787 rm -f conftest.$ac_objext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8789   (eval $ac_compile) 2>conftest.er1
8790   ac_status=$?
8791   grep -v '^ *+' conftest.er1 >conftest.err
8792   rm -f conftest.er1
8793   cat conftest.err >&5
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); } &&
8796          { ac_try='test -z "$ac_c_werror_flag"
8797                          || test ! -s conftest.err'
8798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799   (eval $ac_try) 2>&5
8800   ac_status=$?
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); }; } &&
8803          { ac_try='test -s conftest.$ac_objext'
8804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805   (eval $ac_try) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; }; then
8809   ac_cv_have_decl_strverscmp=yes
8810 else
8811   echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814 ac_cv_have_decl_strverscmp=no
8815 fi
8816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8817 fi
8818 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
8819 echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
8820 if test $ac_cv_have_decl_strverscmp = yes; then
8821
8822 cat >>confdefs.h <<_ACEOF
8823 #define HAVE_DECL_STRVERSCMP 1
8824 _ACEOF
8825
8826
8827 else
8828   cat >>confdefs.h <<_ACEOF
8829 #define HAVE_DECL_STRVERSCMP 0
8830 _ACEOF
8831
8832
8833 fi
8834
8835
8836   echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
8837 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
8838 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
8839   echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841   cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h.  */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h.  */
8847
8848 #include "confdefs.h"
8849 #include <stdio.h>
8850 #ifdef HAVE_STRING_H
8851 #include <string.h>
8852 #else
8853 #ifdef HAVE_STRINGS_H
8854 #include <strings.h>
8855 #endif
8856 #endif
8857 #ifdef HAVE_STDLIB_H
8858 #include <stdlib.h>
8859 #endif
8860 #ifdef HAVE_UNISTD_H
8861 #include <unistd.h>
8862 #endif
8863 int
8864 main ()
8865 {
8866 char *(*pfn) = (char *(*)) canonicalize_file_name
8867   ;
8868   return 0;
8869 }
8870 _ACEOF
8871 rm -f conftest.$ac_objext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8873   (eval $ac_compile) 2>conftest.er1
8874   ac_status=$?
8875   grep -v '^ *+' conftest.er1 >conftest.err
8876   rm -f conftest.er1
8877   cat conftest.err >&5
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } &&
8880          { ac_try='test -z "$ac_c_werror_flag"
8881                          || test ! -s conftest.err'
8882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883   (eval $ac_try) 2>&5
8884   ac_status=$?
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); }; } &&
8887          { ac_try='test -s conftest.$ac_objext'
8888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889   (eval $ac_try) 2>&5
8890   ac_status=$?
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); }; }; then
8893   libiberty_cv_decl_needed_canonicalize_file_name=no
8894 else
8895   echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898 libiberty_cv_decl_needed_canonicalize_file_name=yes
8899 fi
8900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8901 fi
8902
8903 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
8904 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
8905 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
8906
8907 cat >>confdefs.h <<\_ACEOF
8908 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
8909 _ACEOF
8910
8911 fi
8912
8913 fi
8914
8915 # Figure out which version of pexecute to use.
8916 case "${host}" in
8917      *-*-mingw* | *-*-winnt*)   pexecute=./pex-win32.o  ;;
8918      *-*-msdosdjgpp*)           pexecute=./pex-djgpp.o  ;;
8919      *-*-msdos*)                pexecute=./pex-msdos.o  ;;
8920      *)                         pexecute=./pex-unix.o   ;;
8921 esac
8922
8923
8924 if test x$gcc_no_link = xyes; then
8925   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
8926     ac_cv_func_mmap_fixed_mapped=no
8927   fi
8928 fi
8929 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
8930
8931
8932 for ac_header in stdlib.h unistd.h
8933 do
8934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8935 echo "$as_me:$LINENO: checking for $ac_header" >&5
8936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8938   echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940   cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h.  */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h.  */
8946 #include <$ac_header>
8947 _ACEOF
8948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8950   ac_status=$?
8951   grep -v '^ *+' conftest.er1 >conftest.err
8952   rm -f conftest.er1
8953   cat conftest.err >&5
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); } >/dev/null; then
8956   if test -s conftest.err; then
8957     ac_cpp_err=$ac_c_preproc_warn_flag
8958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8959   else
8960     ac_cpp_err=
8961   fi
8962 else
8963   ac_cpp_err=yes
8964 fi
8965 if test -z "$ac_cpp_err"; then
8966   eval "$as_ac_Header=yes"
8967 else
8968   echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971   eval "$as_ac_Header=no"
8972 fi
8973 rm -f conftest.err conftest.$ac_ext
8974 fi
8975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8978   cat >>confdefs.h <<_ACEOF
8979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8980 _ACEOF
8981
8982 fi
8983 done
8984
8985
8986 for ac_func in getpagesize
8987 do
8988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8989 echo "$as_me:$LINENO: checking for $ac_func" >&5
8990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8991 if eval "test \"\${$as_ac_var+set}\" = set"; then
8992   echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994   if test x$gcc_no_link = xyes; then
8995   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8996 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8997    { (exit 1); exit 1; }; }
8998 fi
8999 cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h.  */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h.  */
9005 /* System header to define __stub macros and hopefully few prototypes,
9006     which can conflict with char $ac_func (); below.
9007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9008     <limits.h> exists even on freestanding compilers.  Under hpux,
9009     including <limits.h> includes <sys/time.h> and causes problems
9010     checking for functions defined therein.  */
9011 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
9012 # include <limits.h>
9013 #else
9014 # include <assert.h>
9015 #endif
9016 /* Override any gcc2 internal prototype to avoid an error.  */
9017 #ifdef __cplusplus
9018 extern "C"
9019 {
9020 #endif
9021 /* We use char because int might match the return type of a gcc2
9022    builtin and then its argument prototype would still apply.  */
9023 char $ac_func ();
9024 /* The GNU C library defines this for functions which it implements
9025     to always fail with ENOSYS.  Some functions are actually named
9026     something starting with __ and the normal name is an alias.  */
9027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9028 choke me
9029 #else
9030 char (*f) () = $ac_func;
9031 #endif
9032 #ifdef __cplusplus
9033 }
9034 #endif
9035
9036 int
9037 main ()
9038 {
9039 return f != $ac_func;
9040   ;
9041   return 0;
9042 }
9043 _ACEOF
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9046   (eval $ac_link) 2>conftest.er1
9047   ac_status=$?
9048   grep -v '^ *+' conftest.er1 >conftest.err
9049   rm -f conftest.er1
9050   cat conftest.err >&5
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); } &&
9053          { ac_try='test -z "$ac_c_werror_flag"
9054                          || test ! -s conftest.err'
9055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056   (eval $ac_try) 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); }; } &&
9060          { ac_try='test -s conftest$ac_exeext'
9061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062   (eval $ac_try) 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; }; then
9066   eval "$as_ac_var=yes"
9067 else
9068   echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071 eval "$as_ac_var=no"
9072 fi
9073 rm -f conftest.err conftest.$ac_objext \
9074       conftest$ac_exeext conftest.$ac_ext
9075 fi
9076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9078 if test `eval echo '${'$as_ac_var'}'` = yes; then
9079   cat >>confdefs.h <<_ACEOF
9080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9081 _ACEOF
9082
9083 fi
9084 done
9085
9086 echo "$as_me:$LINENO: checking for working mmap" >&5
9087 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9088 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091   if test "$cross_compiling" = yes; then
9092   ac_cv_func_mmap_fixed_mapped=no
9093 else
9094   cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h.  */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h.  */
9100 $ac_includes_default
9101 /* malloc might have been renamed as rpl_malloc. */
9102 #undef malloc
9103
9104 /* Thanks to Mike Haertel and Jim Avera for this test.
9105    Here is a matrix of mmap possibilities:
9106         mmap private not fixed
9107         mmap private fixed at somewhere currently unmapped
9108         mmap private fixed at somewhere already mapped
9109         mmap shared not fixed
9110         mmap shared fixed at somewhere currently unmapped
9111         mmap shared fixed at somewhere already mapped
9112    For private mappings, we should verify that changes cannot be read()
9113    back from the file, nor mmap's back from the file at a different
9114    address.  (There have been systems where private was not correctly
9115    implemented like the infamous i386 svr4.0, and systems where the
9116    VM page cache was not coherent with the file system buffer cache
9117    like early versions of FreeBSD and possibly contemporary NetBSD.)
9118    For shared mappings, we should conversely verify that changes get
9119    propagated back to all the places they're supposed to be.
9120
9121    Grep wants private fixed already mapped.
9122    The main things grep needs to know about mmap are:
9123    * does it exist and is it safe to write into the mmap'd area
9124    * how to use it (BSD variants)  */
9125
9126 #include <fcntl.h>
9127 #include <sys/mman.h>
9128
9129 #if !STDC_HEADERS && !HAVE_STDLIB_H
9130 char *malloc ();
9131 #endif
9132
9133 /* This mess was copied from the GNU getpagesize.h.  */
9134 #if !HAVE_GETPAGESIZE
9135 /* Assume that all systems that can run configure have sys/param.h.  */
9136 # if !HAVE_SYS_PARAM_H
9137 #  define HAVE_SYS_PARAM_H 1
9138 # endif
9139
9140 # ifdef _SC_PAGESIZE
9141 #  define getpagesize() sysconf(_SC_PAGESIZE)
9142 # else /* no _SC_PAGESIZE */
9143 #  if HAVE_SYS_PARAM_H
9144 #   include <sys/param.h>
9145 #   ifdef EXEC_PAGESIZE
9146 #    define getpagesize() EXEC_PAGESIZE
9147 #   else /* no EXEC_PAGESIZE */
9148 #    ifdef NBPG
9149 #     define getpagesize() NBPG * CLSIZE
9150 #     ifndef CLSIZE
9151 #      define CLSIZE 1
9152 #     endif /* no CLSIZE */
9153 #    else /* no NBPG */
9154 #     ifdef NBPC
9155 #      define getpagesize() NBPC
9156 #     else /* no NBPC */
9157 #      ifdef PAGESIZE
9158 #       define getpagesize() PAGESIZE
9159 #      endif /* PAGESIZE */
9160 #     endif /* no NBPC */
9161 #    endif /* no NBPG */
9162 #   endif /* no EXEC_PAGESIZE */
9163 #  else /* no HAVE_SYS_PARAM_H */
9164 #   define getpagesize() 8192   /* punt totally */
9165 #  endif /* no HAVE_SYS_PARAM_H */
9166 # endif /* no _SC_PAGESIZE */
9167
9168 #endif /* no HAVE_GETPAGESIZE */
9169
9170 int
9171 main ()
9172 {
9173   char *data, *data2, *data3;
9174   int i, pagesize;
9175   int fd;
9176
9177   pagesize = getpagesize ();
9178
9179   /* First, make a file with some known garbage in it. */
9180   data = (char *) malloc (pagesize);
9181   if (!data)
9182     exit (1);
9183   for (i = 0; i < pagesize; ++i)
9184     *(data + i) = rand ();
9185   umask (0);
9186   fd = creat ("conftest.mmap", 0600);
9187   if (fd < 0)
9188     exit (1);
9189   if (write (fd, data, pagesize) != pagesize)
9190     exit (1);
9191   close (fd);
9192
9193   /* Next, try to mmap the file at a fixed address which already has
9194      something else allocated at it.  If we can, also make sure that
9195      we see the same garbage.  */
9196   fd = open ("conftest.mmap", O_RDWR);
9197   if (fd < 0)
9198     exit (1);
9199   data2 = (char *) malloc (2 * pagesize);
9200   if (!data2)
9201     exit (1);
9202   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9203   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9204                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9205     exit (1);
9206   for (i = 0; i < pagesize; ++i)
9207     if (*(data + i) != *(data2 + i))
9208       exit (1);
9209
9210   /* Finally, make sure that changes to the mapped area do not
9211      percolate back to the file as seen by read().  (This is a bug on
9212      some variants of i386 svr4.0.)  */
9213   for (i = 0; i < pagesize; ++i)
9214     *(data2 + i) = *(data2 + i) + 1;
9215   data3 = (char *) malloc (pagesize);
9216   if (!data3)
9217     exit (1);
9218   if (read (fd, data3, pagesize) != pagesize)
9219     exit (1);
9220   for (i = 0; i < pagesize; ++i)
9221     if (*(data + i) != *(data3 + i))
9222       exit (1);
9223   close (fd);
9224   exit (0);
9225 }
9226 _ACEOF
9227 rm -f conftest$ac_exeext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229   (eval $ac_link) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234   (eval $ac_try) 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); }; }; then
9238   ac_cv_func_mmap_fixed_mapped=yes
9239 else
9240   echo "$as_me: program exited with status $ac_status" >&5
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9243
9244 ( exit $ac_status )
9245 ac_cv_func_mmap_fixed_mapped=no
9246 fi
9247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9248 fi
9249 fi
9250 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9251 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9252 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9253
9254 cat >>confdefs.h <<\_ACEOF
9255 #define HAVE_MMAP 1
9256 _ACEOF
9257
9258 fi
9259 rm -f conftest.mmap
9260
9261 fi
9262
9263 echo "$as_me:$LINENO: checking for working strncmp" >&5
9264 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
9265 if test "${ac_cv_func_strncmp_works+set}" = set; then
9266   echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268   if test "$cross_compiling" = yes; then
9269   ac_cv_func_strncmp_works=no
9270 else
9271   cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h.  */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h.  */
9277
9278 /* Test by Jim Wilson and Kaveh Ghazi.
9279    Check whether strncmp reads past the end of its string parameters. */
9280 #include <sys/types.h>
9281
9282 #ifdef HAVE_FCNTL_H
9283 #include <fcntl.h>
9284 #endif
9285
9286 #ifdef HAVE_SYS_MMAN_H
9287 #include <sys/mman.h>
9288 #endif
9289
9290 #ifndef MAP_ANON
9291 #ifdef MAP_ANONYMOUS
9292 #define MAP_ANON MAP_ANONYMOUS
9293 #else
9294 #define MAP_ANON MAP_FILE
9295 #endif
9296 #endif
9297
9298 #ifndef MAP_FILE
9299 #define MAP_FILE 0
9300 #endif
9301 #ifndef O_RDONLY
9302 #define O_RDONLY 0
9303 #endif
9304
9305 #define MAP_LEN 0x10000
9306
9307 main ()
9308 {
9309 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
9310   char *p;
9311   int dev_zero;
9312
9313   dev_zero = open ("/dev/zero", O_RDONLY);
9314   if (dev_zero < 0)
9315     exit (1);
9316
9317   p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
9318                      MAP_ANON|MAP_PRIVATE, dev_zero, 0);
9319   if (p == (char *)-1)
9320     p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
9321                        MAP_ANON|MAP_PRIVATE, -1, 0);
9322   if (p == (char *)-1)
9323     exit (2);
9324   else
9325     {
9326       char *string = "__si_type_info";
9327       char *q = (char *) p + MAP_LEN - strlen (string) - 2;
9328       char *r = (char *) p + 0xe;
9329
9330       strcpy (q, string);
9331       strcpy (r, string);
9332       strncmp (r, q, 14);
9333     }
9334 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
9335   exit (0);
9336 }
9337
9338 _ACEOF
9339 rm -f conftest$ac_exeext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9341   (eval $ac_link) 2>&5
9342   ac_status=$?
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346   (eval $ac_try) 2>&5
9347   ac_status=$?
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); }; }; then
9350   ac_cv_func_strncmp_works=yes
9351 else
9352   echo "$as_me: program exited with status $ac_status" >&5
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9355
9356 ( exit $ac_status )
9357 ac_cv_func_strncmp_works=no
9358 fi
9359 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9360 fi
9361 rm -f core core.* *.core
9362 fi
9363 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
9364 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
9365 if test $ac_cv_func_strncmp_works = no ; then
9366   case $LIBOBJS in
9367     "strncmp.$ac_objext"   | \
9368   *" strncmp.$ac_objext"   | \
9369     "strncmp.$ac_objext "* | \
9370   *" strncmp.$ac_objext "* ) ;;
9371   *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;;
9372 esac
9373
9374 fi
9375
9376
9377 # Install a library built with a cross compiler in $(tooldir) rather
9378 # than $(libdir).
9379 if test -z "${with_cross_host}"; then
9380   INSTALL_DEST=libdir
9381 else
9382   INSTALL_DEST=tooldir
9383 fi
9384
9385
9386
9387 L=""
9388 for l in x $LIBOBJS; do
9389   case $l in
9390     x) ;;
9391     *) L="$L ./$l" ;;
9392   esac
9393 done
9394 LIBOBJS="$L"
9395
9396
9397
9398
9399
9400 # We need multilib support, but only if configuring for the target.
9401                     ac_config_files="$ac_config_files Makefile testsuite/Makefile"
9402
9403           ac_config_commands="$ac_config_commands default"
9404
9405 cat >confcache <<\_ACEOF
9406 # This file is a shell script that caches the results of configure
9407 # tests run on this system so they can be shared between configure
9408 # scripts and configure runs, see configure's option --config-cache.
9409 # It is not useful on other systems.  If it contains results you don't
9410 # want to keep, you may remove or edit it.
9411 #
9412 # config.status only pays attention to the cache file if you give it
9413 # the --recheck option to rerun configure.
9414 #
9415 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9416 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9417 # following values.
9418
9419 _ACEOF
9420
9421 # The following way of writing the cache mishandles newlines in values,
9422 # but we know of no workaround that is simple, portable, and efficient.
9423 # So, don't put newlines in cache variables' values.
9424 # Ultrix sh set writes to stderr and can't be redirected directly,
9425 # and sets the high bit in the cache file unless we assign to the vars.
9426 {
9427   (set) 2>&1 |
9428     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9429     *ac_space=\ *)
9430       # `set' does not quote correctly, so add quotes (double-quote
9431       # substitution turns \\\\ into \\, and sed turns \\ into \).
9432       sed -n \
9433         "s/'/'\\\\''/g;
9434           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9435       ;;
9436     *)
9437       # `set' quotes correctly as required by POSIX, so do not add quotes.
9438       sed -n \
9439         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9440       ;;
9441     esac;
9442 } |
9443   sed '
9444      t clear
9445      : clear
9446      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9447      t end
9448      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9449      : end' >>confcache
9450 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9451   if test -w $cache_file; then
9452     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9453     cat confcache >$cache_file
9454   else
9455     echo "not updating unwritable cache $cache_file"
9456   fi
9457 fi
9458 rm -f confcache
9459
9460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9461 # Let make expand exec_prefix.
9462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9463
9464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9466 # trailing colons and then remove the whole line if VPATH becomes empty
9467 # (actually we leave an empty line to preserve line numbers).
9468 if test "x$srcdir" = x.; then
9469   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9470 s/:*\$(srcdir):*/:/;
9471 s/:*\${srcdir}:*/:/;
9472 s/:*@srcdir@:*/:/;
9473 s/^\([^=]*=[     ]*\):*/\1/;
9474 s/:*$//;
9475 s/^[^=]*=[       ]*$//;
9476 }'
9477 fi
9478
9479 DEFS=-DHAVE_CONFIG_H
9480
9481 ac_libobjs=
9482 ac_ltlibobjs=
9483 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9484   # 1. Remove the extension, and $U if already installed.
9485   ac_i=`echo "$ac_i" |
9486          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9487   # 2. Add them.
9488   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9489   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9490 done
9491 LIBOBJS=$ac_libobjs
9492
9493 LTLIBOBJS=$ac_ltlibobjs
9494
9495
9496
9497 : ${CONFIG_STATUS=./config.status}
9498 ac_clean_files_save=$ac_clean_files
9499 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9500 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9501 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9502 cat >$CONFIG_STATUS <<_ACEOF
9503 #! $SHELL
9504 # Generated by $as_me.
9505 # Run this file to recreate the current configuration.
9506 # Compiler output produced by configure, useful for debugging
9507 # configure, is in config.log if it exists.
9508
9509 debug=false
9510 ac_cs_recheck=false
9511 ac_cs_silent=false
9512 SHELL=\${CONFIG_SHELL-$SHELL}
9513 _ACEOF
9514
9515 cat >>$CONFIG_STATUS <<\_ACEOF
9516 ## --------------------- ##
9517 ## M4sh Initialization.  ##
9518 ## --------------------- ##
9519
9520 # Be Bourne compatible
9521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9522   emulate sh
9523   NULLCMD=:
9524   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9525   # is contrary to our usage.  Disable this feature.
9526   alias -g '${1+"$@"}'='"$@"'
9527 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9528   set -o posix
9529 fi
9530 DUALCASE=1; export DUALCASE # for MKS sh
9531
9532 # Support unset when possible.
9533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9534   as_unset=unset
9535 else
9536   as_unset=false
9537 fi
9538
9539
9540 # Work around bugs in pre-3.0 UWIN ksh.
9541 $as_unset ENV MAIL MAILPATH
9542 PS1='$ '
9543 PS2='> '
9544 PS4='+ '
9545
9546 # NLS nuisances.
9547 for as_var in \
9548   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9549   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9550   LC_TELEPHONE LC_TIME
9551 do
9552   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9553     eval $as_var=C; export $as_var
9554   else
9555     $as_unset $as_var
9556   fi
9557 done
9558
9559 # Required to use basename.
9560 if expr a : '\(a\)' >/dev/null 2>&1; then
9561   as_expr=expr
9562 else
9563   as_expr=false
9564 fi
9565
9566 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9567   as_basename=basename
9568 else
9569   as_basename=false
9570 fi
9571
9572
9573 # Name of the executable.
9574 as_me=`$as_basename "$0" ||
9575 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9576          X"$0" : 'X\(//\)$' \| \
9577          X"$0" : 'X\(/\)$' \| \
9578          .     : '\(.\)' 2>/dev/null ||
9579 echo X/"$0" |
9580     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9581           /^X\/\(\/\/\)$/{ s//\1/; q; }
9582           /^X\/\(\/\).*/{ s//\1/; q; }
9583           s/.*/./; q'`
9584
9585
9586 # PATH needs CR, and LINENO needs CR and PATH.
9587 # Avoid depending upon Character Ranges.
9588 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9589 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9590 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9591 as_cr_digits='0123456789'
9592 as_cr_alnum=$as_cr_Letters$as_cr_digits
9593
9594 # The user is always right.
9595 if test "${PATH_SEPARATOR+set}" != set; then
9596   echo "#! /bin/sh" >conf$$.sh
9597   echo  "exit 0"   >>conf$$.sh
9598   chmod +x conf$$.sh
9599   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9600     PATH_SEPARATOR=';'
9601   else
9602     PATH_SEPARATOR=:
9603   fi
9604   rm -f conf$$.sh
9605 fi
9606
9607
9608   as_lineno_1=$LINENO
9609   as_lineno_2=$LINENO
9610   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9611   test "x$as_lineno_1" != "x$as_lineno_2" &&
9612   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9613   # Find who we are.  Look in the path if we contain no path at all
9614   # relative or not.
9615   case $0 in
9616     *[\\/]* ) as_myself=$0 ;;
9617     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618 for as_dir in $PATH
9619 do
9620   IFS=$as_save_IFS
9621   test -z "$as_dir" && as_dir=.
9622   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9623 done
9624
9625        ;;
9626   esac
9627   # We did not find ourselves, most probably we were run as `sh COMMAND'
9628   # in which case we are not to be found in the path.
9629   if test "x$as_myself" = x; then
9630     as_myself=$0
9631   fi
9632   if test ! -f "$as_myself"; then
9633     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9634 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9635    { (exit 1); exit 1; }; }
9636   fi
9637   case $CONFIG_SHELL in
9638   '')
9639     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9641 do
9642   IFS=$as_save_IFS
9643   test -z "$as_dir" && as_dir=.
9644   for as_base in sh bash ksh sh5; do
9645          case $as_dir in
9646          /*)
9647            if ("$as_dir/$as_base" -c '
9648   as_lineno_1=$LINENO
9649   as_lineno_2=$LINENO
9650   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9651   test "x$as_lineno_1" != "x$as_lineno_2" &&
9652   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9653              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9654              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9655              CONFIG_SHELL=$as_dir/$as_base
9656              export CONFIG_SHELL
9657              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9658            fi;;
9659          esac
9660        done
9661 done
9662 ;;
9663   esac
9664
9665   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9666   # uniformly replaced by the line number.  The first 'sed' inserts a
9667   # line-number line before each line; the second 'sed' does the real
9668   # work.  The second script uses 'N' to pair each line-number line
9669   # with the numbered line, and appends trailing '-' during
9670   # substitution so that $LINENO is not a special case at line end.
9671   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9672   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9673   sed '=' <$as_myself |
9674     sed '
9675       N
9676       s,$,-,
9677       : loop
9678       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9679       t loop
9680       s,-$,,
9681       s,^['$as_cr_digits']*\n,,
9682     ' >$as_me.lineno &&
9683   chmod +x $as_me.lineno ||
9684     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9685 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9686    { (exit 1); exit 1; }; }
9687
9688   # Don't try to exec as it changes $[0], causing all sort of problems
9689   # (the dirname of $[0] is not the place where we might find the
9690   # original and so on.  Autoconf is especially sensible to this).
9691   . ./$as_me.lineno
9692   # Exit status is that of the last command.
9693   exit
9694 }
9695
9696
9697 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9698   *c*,-n*) ECHO_N= ECHO_C='
9699 ' ECHO_T='      ' ;;
9700   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9701   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9702 esac
9703
9704 if expr a : '\(a\)' >/dev/null 2>&1; then
9705   as_expr=expr
9706 else
9707   as_expr=false
9708 fi
9709
9710 rm -f conf$$ conf$$.exe conf$$.file
9711 echo >conf$$.file
9712 if ln -s conf$$.file conf$$ 2>/dev/null; then
9713   # We could just check for DJGPP; but this test a) works b) is more generic
9714   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9715   if test -f conf$$.exe; then
9716     # Don't use ln at all; we don't have any links
9717     as_ln_s='cp -p'
9718   else
9719     as_ln_s='ln -s'
9720   fi
9721 elif ln conf$$.file conf$$ 2>/dev/null; then
9722   as_ln_s=ln
9723 else
9724   as_ln_s='cp -p'
9725 fi
9726 rm -f conf$$ conf$$.exe conf$$.file
9727
9728 if mkdir -p . 2>/dev/null; then
9729   as_mkdir_p=:
9730 else
9731   test -d ./-p && rmdir ./-p
9732   as_mkdir_p=false
9733 fi
9734
9735 as_executable_p="test -f"
9736
9737 # Sed expression to map a string onto a valid CPP name.
9738 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9739
9740 # Sed expression to map a string onto a valid variable name.
9741 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9742
9743
9744 # IFS
9745 # We need space, tab and new line, in precisely that order.
9746 as_nl='
9747 '
9748 IFS="   $as_nl"
9749
9750 # CDPATH.
9751 $as_unset CDPATH
9752
9753 exec 6>&1
9754
9755 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9756 # report actual input values of CONFIG_FILES etc. instead of their
9757 # values after options handling.  Logging --version etc. is OK.
9758 exec 5>>config.log
9759 {
9760   echo
9761   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9762 ## Running $as_me. ##
9763 _ASBOX
9764 } >&5
9765 cat >&5 <<_CSEOF
9766
9767 This file was extended by $as_me, which was
9768 generated by GNU Autoconf 2.59.  Invocation command line was
9769
9770   CONFIG_FILES    = $CONFIG_FILES
9771   CONFIG_HEADERS  = $CONFIG_HEADERS
9772   CONFIG_LINKS    = $CONFIG_LINKS
9773   CONFIG_COMMANDS = $CONFIG_COMMANDS
9774   $ $0 $@
9775
9776 _CSEOF
9777 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9778 echo >&5
9779 _ACEOF
9780
9781 # Files that config.status was made for.
9782 if test -n "$ac_config_files"; then
9783   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9784 fi
9785
9786 if test -n "$ac_config_headers"; then
9787   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9788 fi
9789
9790 if test -n "$ac_config_links"; then
9791   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9792 fi
9793
9794 if test -n "$ac_config_commands"; then
9795   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9796 fi
9797
9798 cat >>$CONFIG_STATUS <<\_ACEOF
9799
9800 ac_cs_usage="\
9801 \`$as_me' instantiates files from templates according to the
9802 current configuration.
9803
9804 Usage: $0 [OPTIONS] [FILE]...
9805
9806   -h, --help       print this help, then exit
9807   -V, --version    print version number, then exit
9808   -q, --quiet      do not print progress messages
9809   -d, --debug      don't remove temporary files
9810       --recheck    update $as_me by reconfiguring in the same conditions
9811   --file=FILE[:TEMPLATE]
9812                    instantiate the configuration file FILE
9813   --header=FILE[:TEMPLATE]
9814                    instantiate the configuration header FILE
9815
9816 Configuration files:
9817 $config_files
9818
9819 Configuration headers:
9820 $config_headers
9821
9822 Configuration commands:
9823 $config_commands
9824
9825 Report bugs to <bug-autoconf@gnu.org>."
9826 _ACEOF
9827
9828 cat >>$CONFIG_STATUS <<_ACEOF
9829 ac_cs_version="\\
9830 config.status
9831 configured by $0, generated by GNU Autoconf 2.59,
9832   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9833
9834 Copyright (C) 2003 Free Software Foundation, Inc.
9835 This config.status script is free software; the Free Software Foundation
9836 gives unlimited permission to copy, distribute and modify it."
9837 srcdir=$srcdir
9838 INSTALL="$INSTALL"
9839 _ACEOF
9840
9841 cat >>$CONFIG_STATUS <<\_ACEOF
9842 # If no file are specified by the user, then we need to provide default
9843 # value.  By we need to know if files were specified by the user.
9844 ac_need_defaults=:
9845 while test $# != 0
9846 do
9847   case $1 in
9848   --*=*)
9849     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9850     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9851     ac_shift=:
9852     ;;
9853   -*)
9854     ac_option=$1
9855     ac_optarg=$2
9856     ac_shift=shift
9857     ;;
9858   *) # This is not an option, so the user has probably given explicit
9859      # arguments.
9860      ac_option=$1
9861      ac_need_defaults=false;;
9862   esac
9863
9864   case $ac_option in
9865   # Handling of the options.
9866 _ACEOF
9867 cat >>$CONFIG_STATUS <<\_ACEOF
9868   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9869     ac_cs_recheck=: ;;
9870   --version | --vers* | -V )
9871     echo "$ac_cs_version"; exit 0 ;;
9872   --he | --h)
9873     # Conflict between --help and --header
9874     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9875 Try \`$0 --help' for more information." >&5
9876 echo "$as_me: error: ambiguous option: $1
9877 Try \`$0 --help' for more information." >&2;}
9878    { (exit 1); exit 1; }; };;
9879   --help | --hel | -h )
9880     echo "$ac_cs_usage"; exit 0 ;;
9881   --debug | --d* | -d )
9882     debug=: ;;
9883   --file | --fil | --fi | --f )
9884     $ac_shift
9885     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9886     ac_need_defaults=false;;
9887   --header | --heade | --head | --hea )
9888     $ac_shift
9889     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9890     ac_need_defaults=false;;
9891   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9892   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9893     ac_cs_silent=: ;;
9894
9895   # This is an error.
9896   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9897 Try \`$0 --help' for more information." >&5
9898 echo "$as_me: error: unrecognized option: $1
9899 Try \`$0 --help' for more information." >&2;}
9900    { (exit 1); exit 1; }; } ;;
9901
9902   *) ac_config_targets="$ac_config_targets $1" ;;
9903
9904   esac
9905   shift
9906 done
9907
9908 ac_configure_extra_args=
9909
9910 if $ac_cs_silent; then
9911   exec 6>/dev/null
9912   ac_configure_extra_args="$ac_configure_extra_args --silent"
9913 fi
9914
9915 _ACEOF
9916 cat >>$CONFIG_STATUS <<_ACEOF
9917 if \$ac_cs_recheck; then
9918   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9919   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9920 fi
9921
9922 _ACEOF
9923
9924 cat >>$CONFIG_STATUS <<_ACEOF
9925 #
9926 # INIT-COMMANDS section.
9927 #
9928
9929 srcdir=${srcdir}
9930 host=${host}
9931 target=${target}
9932 with_target_subdir=${with_target_subdir}
9933 with_multisubdir=${with_multisubdir}
9934 ac_configure_args="--enable-multilib ${ac_configure_args}"
9935 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9936 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9937 libiberty_topdir=${libiberty_topdir}
9938
9939
9940 _ACEOF
9941
9942
9943
9944 cat >>$CONFIG_STATUS <<\_ACEOF
9945 for ac_config_target in $ac_config_targets
9946 do
9947   case "$ac_config_target" in
9948   # Handling of arguments.
9949   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9950   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
9951   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9952   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9953   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9954 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9955    { (exit 1); exit 1; }; };;
9956   esac
9957 done
9958
9959 # If the user did not use the arguments to specify the items to instantiate,
9960 # then the envvar interface is used.  Set only those that are not.
9961 # We use the long form for the default assignment because of an extremely
9962 # bizarre bug on SunOS 4.1.3.
9963 if $ac_need_defaults; then
9964   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9965   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9966   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9967 fi
9968
9969 # Have a temporary directory for convenience.  Make it in the build tree
9970 # simply because there is no reason to put it here, and in addition,
9971 # creating and moving files from /tmp can sometimes cause problems.
9972 # Create a temporary directory, and hook for its removal unless debugging.
9973 $debug ||
9974 {
9975   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9976   trap '{ (exit 1); exit 1; }' 1 2 13 15
9977 }
9978
9979 # Create a (secure) tmp directory for tmp files.
9980
9981 {
9982   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9983   test -n "$tmp" && test -d "$tmp"
9984 }  ||
9985 {
9986   tmp=./confstat$$-$RANDOM
9987   (umask 077 && mkdir $tmp)
9988 } ||
9989 {
9990    echo "$me: cannot create a temporary directory in ." >&2
9991    { (exit 1); exit 1; }
9992 }
9993
9994 _ACEOF
9995
9996 cat >>$CONFIG_STATUS <<_ACEOF
9997
9998 #
9999 # CONFIG_FILES section.
10000 #
10001
10002 # No need to generate the scripts if there are no CONFIG_FILES.
10003 # This happens for instance when ./config.status config.h
10004 if test -n "\$CONFIG_FILES"; then
10005   # Protect against being on the right side of a sed subst in config.status.
10006   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10007    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10008 s,@SHELL@,$SHELL,;t t
10009 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10010 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10011 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10012 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10013 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10014 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10015 s,@exec_prefix@,$exec_prefix,;t t
10016 s,@prefix@,$prefix,;t t
10017 s,@program_transform_name@,$program_transform_name,;t t
10018 s,@bindir@,$bindir,;t t
10019 s,@sbindir@,$sbindir,;t t
10020 s,@libexecdir@,$libexecdir,;t t
10021 s,@datadir@,$datadir,;t t
10022 s,@sysconfdir@,$sysconfdir,;t t
10023 s,@sharedstatedir@,$sharedstatedir,;t t
10024 s,@localstatedir@,$localstatedir,;t t
10025 s,@libdir@,$libdir,;t t
10026 s,@includedir@,$includedir,;t t
10027 s,@oldincludedir@,$oldincludedir,;t t
10028 s,@infodir@,$infodir,;t t
10029 s,@mandir@,$mandir,;t t
10030 s,@build_alias@,$build_alias,;t t
10031 s,@host_alias@,$host_alias,;t t
10032 s,@target_alias@,$target_alias,;t t
10033 s,@DEFS@,$DEFS,;t t
10034 s,@ECHO_C@,$ECHO_C,;t t
10035 s,@ECHO_N@,$ECHO_N,;t t
10036 s,@ECHO_T@,$ECHO_T,;t t
10037 s,@LIBS@,$LIBS,;t t
10038 s,@libiberty_topdir@,$libiberty_topdir,;t t
10039 s,@MAINT@,$MAINT,;t t
10040 s,@NOTMAINT@,$NOTMAINT,;t t
10041 s,@MAKEINFO@,$MAKEINFO,;t t
10042 s,@BUILD_INFO@,$BUILD_INFO,;t t
10043 s,@PERL@,$PERL,;t t
10044 s,@HAVE_PERL@,$HAVE_PERL,;t t
10045 s,@build@,$build,;t t
10046 s,@build_cpu@,$build_cpu,;t t
10047 s,@build_vendor@,$build_vendor,;t t
10048 s,@build_os@,$build_os,;t t
10049 s,@host@,$host,;t t
10050 s,@host_cpu@,$host_cpu,;t t
10051 s,@host_vendor@,$host_vendor,;t t
10052 s,@host_os@,$host_os,;t t
10053 s,@AR@,$AR,;t t
10054 s,@ac_ct_AR@,$ac_ct_AR,;t t
10055 s,@RANLIB@,$RANLIB,;t t
10056 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10057 s,@CC@,$CC,;t t
10058 s,@CFLAGS@,$CFLAGS,;t t
10059 s,@LDFLAGS@,$LDFLAGS,;t t
10060 s,@CPPFLAGS@,$CPPFLAGS,;t t
10061 s,@ac_ct_CC@,$ac_ct_CC,;t t
10062 s,@EXEEXT@,$EXEEXT,;t t
10063 s,@OBJEXT@,$OBJEXT,;t t
10064 s,@CPP@,$CPP,;t t
10065 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
10066 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
10067 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
10068 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10069 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10070 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10071 s,@PICFLAG@,$PICFLAG,;t t
10072 s,@EGREP@,$EGREP,;t t
10073 s,@LIBOBJS@,$LIBOBJS,;t t
10074 s,@CHECK@,$CHECK,;t t
10075 s,@target_header_dir@,$target_header_dir,;t t
10076 s,@pexecute@,$pexecute,;t t
10077 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
10078 s,@datarootdir@,$datarootdir,;t t
10079 s,@docdir@,$docdir,;t t
10080 s,@htmldir@,$htmldir,;t t
10081 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10082 /@host_makefile_frag@/r $host_makefile_frag
10083 s,@host_makefile_frag@,,;t t
10084 CEOF
10085
10086 _ACEOF
10087
10088   cat >>$CONFIG_STATUS <<\_ACEOF
10089   # Split the substitutions into bite-sized pieces for seds with
10090   # small command number limits, like on Digital OSF/1 and HP-UX.
10091   ac_max_sed_lines=48
10092   ac_sed_frag=1 # Number of current file.
10093   ac_beg=1 # First line for current file.
10094   ac_end=$ac_max_sed_lines # Line after last line for current file.
10095   ac_more_lines=:
10096   ac_sed_cmds=
10097   while $ac_more_lines; do
10098     if test $ac_beg -gt 1; then
10099       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10100     else
10101       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10102     fi
10103     if test ! -s $tmp/subs.frag; then
10104       ac_more_lines=false
10105     else
10106       # The purpose of the label and of the branching condition is to
10107       # speed up the sed processing (if there are no `@' at all, there
10108       # is no need to browse any of the substitutions).
10109       # These are the two extra sed commands mentioned above.
10110       (echo ':t
10111   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10112       if test -z "$ac_sed_cmds"; then
10113         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10114       else
10115         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10116       fi
10117       ac_sed_frag=`expr $ac_sed_frag + 1`
10118       ac_beg=$ac_end
10119       ac_end=`expr $ac_end + $ac_max_sed_lines`
10120     fi
10121   done
10122   if test -z "$ac_sed_cmds"; then
10123     ac_sed_cmds=cat
10124   fi
10125 fi # test -n "$CONFIG_FILES"
10126
10127 _ACEOF
10128 cat >>$CONFIG_STATUS <<\_ACEOF
10129 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10130   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10131   case $ac_file in
10132   - | *:- | *:-:* ) # input from stdin
10133         cat >$tmp/stdin
10134         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10135         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10136   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10137         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10138   * )   ac_file_in=$ac_file.in ;;
10139   esac
10140
10141   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10142   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10144          X"$ac_file" : 'X\(//\)[^/]' \| \
10145          X"$ac_file" : 'X\(//\)$' \| \
10146          X"$ac_file" : 'X\(/\)' \| \
10147          .     : '\(.\)' 2>/dev/null ||
10148 echo X"$ac_file" |
10149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10150           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10151           /^X\(\/\/\)$/{ s//\1/; q; }
10152           /^X\(\/\).*/{ s//\1/; q; }
10153           s/.*/./; q'`
10154   { if $as_mkdir_p; then
10155     mkdir -p "$ac_dir"
10156   else
10157     as_dir="$ac_dir"
10158     as_dirs=
10159     while test ! -d "$as_dir"; do
10160       as_dirs="$as_dir $as_dirs"
10161       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10163          X"$as_dir" : 'X\(//\)[^/]' \| \
10164          X"$as_dir" : 'X\(//\)$' \| \
10165          X"$as_dir" : 'X\(/\)' \| \
10166          .     : '\(.\)' 2>/dev/null ||
10167 echo X"$as_dir" |
10168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10169           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10170           /^X\(\/\/\)$/{ s//\1/; q; }
10171           /^X\(\/\).*/{ s//\1/; q; }
10172           s/.*/./; q'`
10173     done
10174     test ! -n "$as_dirs" || mkdir $as_dirs
10175   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10177    { (exit 1); exit 1; }; }; }
10178
10179   ac_builddir=.
10180
10181 if test "$ac_dir" != .; then
10182   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10183   # A "../" for each directory in $ac_dir_suffix.
10184   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10185 else
10186   ac_dir_suffix= ac_top_builddir=
10187 fi
10188
10189 case $srcdir in
10190   .)  # No --srcdir option.  We are building in place.
10191     ac_srcdir=.
10192     if test -z "$ac_top_builddir"; then
10193        ac_top_srcdir=.
10194     else
10195        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10196     fi ;;
10197   [\\/]* | ?:[\\/]* )  # Absolute path.
10198     ac_srcdir=$srcdir$ac_dir_suffix;
10199     ac_top_srcdir=$srcdir ;;
10200   *) # Relative path.
10201     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10202     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10203 esac
10204
10205 # Do not use `cd foo && pwd` to compute absolute paths, because
10206 # the directories may not exist.
10207 case `pwd` in
10208 .) ac_abs_builddir="$ac_dir";;
10209 *)
10210   case "$ac_dir" in
10211   .) ac_abs_builddir=`pwd`;;
10212   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10213   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10214   esac;;
10215 esac
10216 case $ac_abs_builddir in
10217 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10218 *)
10219   case ${ac_top_builddir}. in
10220   .) ac_abs_top_builddir=$ac_abs_builddir;;
10221   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10222   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10223   esac;;
10224 esac
10225 case $ac_abs_builddir in
10226 .) ac_abs_srcdir=$ac_srcdir;;
10227 *)
10228   case $ac_srcdir in
10229   .) ac_abs_srcdir=$ac_abs_builddir;;
10230   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10231   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10232   esac;;
10233 esac
10234 case $ac_abs_builddir in
10235 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10236 *)
10237   case $ac_top_srcdir in
10238   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10239   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10240   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10241   esac;;
10242 esac
10243
10244
10245   case $INSTALL in
10246   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10247   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10248   esac
10249
10250   if test x"$ac_file" != x-; then
10251     { echo "$as_me:$LINENO: creating $ac_file" >&5
10252 echo "$as_me: creating $ac_file" >&6;}
10253     rm -f "$ac_file"
10254   fi
10255   # Let's still pretend it is `configure' which instantiates (i.e., don't
10256   # use $as_me), people would be surprised to read:
10257   #    /* config.h.  Generated by config.status.  */
10258   if test x"$ac_file" = x-; then
10259     configure_input=
10260   else
10261     configure_input="$ac_file.  "
10262   fi
10263   configure_input=$configure_input"Generated from `echo $ac_file_in |
10264                                      sed 's,.*/,,'` by configure."
10265
10266   # First look for the input files in the build tree, otherwise in the
10267   # src tree.
10268   ac_file_inputs=`IFS=:
10269     for f in $ac_file_in; do
10270       case $f in
10271       -) echo $tmp/stdin ;;
10272       [\\/$]*)
10273          # Absolute (can't be DOS-style, as IFS=:)
10274          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10275 echo "$as_me: error: cannot find input file: $f" >&2;}
10276    { (exit 1); exit 1; }; }
10277          echo "$f";;
10278       *) # Relative
10279          if test -f "$f"; then
10280            # Build tree
10281            echo "$f"
10282          elif test -f "$srcdir/$f"; then
10283            # Source tree
10284            echo "$srcdir/$f"
10285          else
10286            # /dev/null tree
10287            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10288 echo "$as_me: error: cannot find input file: $f" >&2;}
10289    { (exit 1); exit 1; }; }
10290          fi;;
10291       esac
10292     done` || { (exit 1); exit 1; }
10293 _ACEOF
10294 cat >>$CONFIG_STATUS <<_ACEOF
10295   sed "$ac_vpsub
10296 $extrasub
10297 _ACEOF
10298 cat >>$CONFIG_STATUS <<\_ACEOF
10299 :t
10300 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10301 s,@configure_input@,$configure_input,;t t
10302 s,@srcdir@,$ac_srcdir,;t t
10303 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10304 s,@top_srcdir@,$ac_top_srcdir,;t t
10305 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10306 s,@builddir@,$ac_builddir,;t t
10307 s,@abs_builddir@,$ac_abs_builddir,;t t
10308 s,@top_builddir@,$ac_top_builddir,;t t
10309 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10310 s,@INSTALL@,$ac_INSTALL,;t t
10311 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10312   rm -f $tmp/stdin
10313   if test x"$ac_file" != x-; then
10314     mv $tmp/out $ac_file
10315   else
10316     cat $tmp/out
10317     rm -f $tmp/out
10318   fi
10319
10320 done
10321 _ACEOF
10322 cat >>$CONFIG_STATUS <<\_ACEOF
10323
10324 #
10325 # CONFIG_HEADER section.
10326 #
10327
10328 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10329 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10330 #
10331 # ac_d sets the value in "#define NAME VALUE" lines.
10332 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
10333 ac_dB='[         ].*$,\1#\2'
10334 ac_dC=' '
10335 ac_dD=',;t'
10336 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10337 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10338 ac_uB='$,\1#\2define\3'
10339 ac_uC=' '
10340 ac_uD=',;t'
10341
10342 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10343   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10344   case $ac_file in
10345   - | *:- | *:-:* ) # input from stdin
10346         cat >$tmp/stdin
10347         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10348         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10349   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10350         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10351   * )   ac_file_in=$ac_file.in ;;
10352   esac
10353
10354   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10355 echo "$as_me: creating $ac_file" >&6;}
10356
10357   # First look for the input files in the build tree, otherwise in the
10358   # src tree.
10359   ac_file_inputs=`IFS=:
10360     for f in $ac_file_in; do
10361       case $f in
10362       -) echo $tmp/stdin ;;
10363       [\\/$]*)
10364          # Absolute (can't be DOS-style, as IFS=:)
10365          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10366 echo "$as_me: error: cannot find input file: $f" >&2;}
10367    { (exit 1); exit 1; }; }
10368          # Do quote $f, to prevent DOS paths from being IFS'd.
10369          echo "$f";;
10370       *) # Relative
10371          if test -f "$f"; then
10372            # Build tree
10373            echo "$f"
10374          elif test -f "$srcdir/$f"; then
10375            # Source tree
10376            echo "$srcdir/$f"
10377          else
10378            # /dev/null tree
10379            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10380 echo "$as_me: error: cannot find input file: $f" >&2;}
10381    { (exit 1); exit 1; }; }
10382          fi;;
10383       esac
10384     done` || { (exit 1); exit 1; }
10385   # Remove the trailing spaces.
10386   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10387
10388 _ACEOF
10389
10390 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10391 # `conftest.undefs', that substitutes the proper values into
10392 # config.h.in to produce config.h.  The first handles `#define'
10393 # templates, and the second `#undef' templates.
10394 # And first: Protect against being on the right side of a sed subst in
10395 # config.status.  Protect against being in an unquoted here document
10396 # in config.status.
10397 rm -f conftest.defines conftest.undefs
10398 # Using a here document instead of a string reduces the quoting nightmare.
10399 # Putting comments in sed scripts is not portable.
10400 #
10401 # `end' is used to avoid that the second main sed command (meant for
10402 # 0-ary CPP macros) applies to n-ary macro definitions.
10403 # See the Autoconf documentation for `clear'.
10404 cat >confdef2sed.sed <<\_ACEOF
10405 s/[\\&,]/\\&/g
10406 s,[\\$`],\\&,g
10407 t clear
10408 : clear
10409 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10410 t end
10411 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10412 : end
10413 _ACEOF
10414 # If some macros were called several times there might be several times
10415 # the same #defines, which is useless.  Nevertheless, we may not want to
10416 # sort them, since we want the *last* AC-DEFINE to be honored.
10417 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10418 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10419 rm -f confdef2sed.sed
10420
10421 # This sed command replaces #undef with comments.  This is necessary, for
10422 # example, in the case of _POSIX_SOURCE, which is predefined and required
10423 # on some systems where configure will not decide to define it.
10424 cat >>conftest.undefs <<\_ACEOF
10425 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10426 _ACEOF
10427
10428 # Break up conftest.defines because some shells have a limit on the size
10429 # of here documents, and old seds have small limits too (100 cmds).
10430 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10431 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10432 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10433 echo '  :' >>$CONFIG_STATUS
10434 rm -f conftest.tail
10435 while grep . conftest.defines >/dev/null
10436 do
10437   # Write a limited-size here document to $tmp/defines.sed.
10438   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10439   # Speed up: don't consider the non `#define' lines.
10440   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10441   # Work around the forget-to-reset-the-flag bug.
10442   echo 't clr' >>$CONFIG_STATUS
10443   echo ': clr' >>$CONFIG_STATUS
10444   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10445   echo 'CEOF
10446   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10447   rm -f $tmp/in
10448   mv $tmp/out $tmp/in
10449 ' >>$CONFIG_STATUS
10450   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10451   rm -f conftest.defines
10452   mv conftest.tail conftest.defines
10453 done
10454 rm -f conftest.defines
10455 echo '  fi # grep' >>$CONFIG_STATUS
10456 echo >>$CONFIG_STATUS
10457
10458 # Break up conftest.undefs because some shells have a limit on the size
10459 # of here documents, and old seds have small limits too (100 cmds).
10460 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10461 rm -f conftest.tail
10462 while grep . conftest.undefs >/dev/null
10463 do
10464   # Write a limited-size here document to $tmp/undefs.sed.
10465   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10466   # Speed up: don't consider the non `#undef'
10467   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10468   # Work around the forget-to-reset-the-flag bug.
10469   echo 't clr' >>$CONFIG_STATUS
10470   echo ': clr' >>$CONFIG_STATUS
10471   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10472   echo 'CEOF
10473   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10474   rm -f $tmp/in
10475   mv $tmp/out $tmp/in
10476 ' >>$CONFIG_STATUS
10477   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10478   rm -f conftest.undefs
10479   mv conftest.tail conftest.undefs
10480 done
10481 rm -f conftest.undefs
10482
10483 cat >>$CONFIG_STATUS <<\_ACEOF
10484   # Let's still pretend it is `configure' which instantiates (i.e., don't
10485   # use $as_me), people would be surprised to read:
10486   #    /* config.h.  Generated by config.status.  */
10487   if test x"$ac_file" = x-; then
10488     echo "/* Generated by configure.  */" >$tmp/config.h
10489   else
10490     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10491   fi
10492   cat $tmp/in >>$tmp/config.h
10493   rm -f $tmp/in
10494   if test x"$ac_file" != x-; then
10495     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10496       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10497 echo "$as_me: $ac_file is unchanged" >&6;}
10498     else
10499       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10501          X"$ac_file" : 'X\(//\)[^/]' \| \
10502          X"$ac_file" : 'X\(//\)$' \| \
10503          X"$ac_file" : 'X\(/\)' \| \
10504          .     : '\(.\)' 2>/dev/null ||
10505 echo X"$ac_file" |
10506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10508           /^X\(\/\/\)$/{ s//\1/; q; }
10509           /^X\(\/\).*/{ s//\1/; q; }
10510           s/.*/./; q'`
10511       { if $as_mkdir_p; then
10512     mkdir -p "$ac_dir"
10513   else
10514     as_dir="$ac_dir"
10515     as_dirs=
10516     while test ! -d "$as_dir"; do
10517       as_dirs="$as_dir $as_dirs"
10518       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10520          X"$as_dir" : 'X\(//\)[^/]' \| \
10521          X"$as_dir" : 'X\(//\)$' \| \
10522          X"$as_dir" : 'X\(/\)' \| \
10523          .     : '\(.\)' 2>/dev/null ||
10524 echo X"$as_dir" |
10525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10526           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10527           /^X\(\/\/\)$/{ s//\1/; q; }
10528           /^X\(\/\).*/{ s//\1/; q; }
10529           s/.*/./; q'`
10530     done
10531     test ! -n "$as_dirs" || mkdir $as_dirs
10532   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10533 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10534    { (exit 1); exit 1; }; }; }
10535
10536       rm -f $ac_file
10537       mv $tmp/config.h $ac_file
10538     fi
10539   else
10540     cat $tmp/config.h
10541     rm -f $tmp/config.h
10542   fi
10543 done
10544 _ACEOF
10545 cat >>$CONFIG_STATUS <<\_ACEOF
10546
10547 #
10548 # CONFIG_COMMANDS section.
10549 #
10550 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10551   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10552   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10553   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10554 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10555          X"$ac_dest" : 'X\(//\)[^/]' \| \
10556          X"$ac_dest" : 'X\(//\)$' \| \
10557          X"$ac_dest" : 'X\(/\)' \| \
10558          .     : '\(.\)' 2>/dev/null ||
10559 echo X"$ac_dest" |
10560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10561           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10562           /^X\(\/\/\)$/{ s//\1/; q; }
10563           /^X\(\/\).*/{ s//\1/; q; }
10564           s/.*/./; q'`
10565   { if $as_mkdir_p; then
10566     mkdir -p "$ac_dir"
10567   else
10568     as_dir="$ac_dir"
10569     as_dirs=
10570     while test ! -d "$as_dir"; do
10571       as_dirs="$as_dir $as_dirs"
10572       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10574          X"$as_dir" : 'X\(//\)[^/]' \| \
10575          X"$as_dir" : 'X\(//\)$' \| \
10576          X"$as_dir" : 'X\(/\)' \| \
10577          .     : '\(.\)' 2>/dev/null ||
10578 echo X"$as_dir" |
10579     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10580           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10581           /^X\(\/\/\)$/{ s//\1/; q; }
10582           /^X\(\/\).*/{ s//\1/; q; }
10583           s/.*/./; q'`
10584     done
10585     test ! -n "$as_dirs" || mkdir $as_dirs
10586   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10587 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10588    { (exit 1); exit 1; }; }; }
10589
10590   ac_builddir=.
10591
10592 if test "$ac_dir" != .; then
10593   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10594   # A "../" for each directory in $ac_dir_suffix.
10595   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10596 else
10597   ac_dir_suffix= ac_top_builddir=
10598 fi
10599
10600 case $srcdir in
10601   .)  # No --srcdir option.  We are building in place.
10602     ac_srcdir=.
10603     if test -z "$ac_top_builddir"; then
10604        ac_top_srcdir=.
10605     else
10606        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10607     fi ;;
10608   [\\/]* | ?:[\\/]* )  # Absolute path.
10609     ac_srcdir=$srcdir$ac_dir_suffix;
10610     ac_top_srcdir=$srcdir ;;
10611   *) # Relative path.
10612     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10613     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10614 esac
10615
10616 # Do not use `cd foo && pwd` to compute absolute paths, because
10617 # the directories may not exist.
10618 case `pwd` in
10619 .) ac_abs_builddir="$ac_dir";;
10620 *)
10621   case "$ac_dir" in
10622   .) ac_abs_builddir=`pwd`;;
10623   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10624   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10625   esac;;
10626 esac
10627 case $ac_abs_builddir in
10628 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10629 *)
10630   case ${ac_top_builddir}. in
10631   .) ac_abs_top_builddir=$ac_abs_builddir;;
10632   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10633   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10634   esac;;
10635 esac
10636 case $ac_abs_builddir in
10637 .) ac_abs_srcdir=$ac_srcdir;;
10638 *)
10639   case $ac_srcdir in
10640   .) ac_abs_srcdir=$ac_abs_builddir;;
10641   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10642   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10643   esac;;
10644 esac
10645 case $ac_abs_builddir in
10646 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10647 *)
10648   case $ac_top_srcdir in
10649   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10650   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10651   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10652   esac;;
10653 esac
10654
10655
10656   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10657 echo "$as_me: executing $ac_dest commands" >&6;}
10658   case $ac_dest in
10659     default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
10660 if test -n "$CONFIG_FILES"; then
10661   if test -n "${with_target_subdir}"; then
10662     # FIXME: We shouldn't need to set ac_file
10663     ac_file=Makefile
10664     LD="${ORIGINAL_LD_FOR_MULTILIBS}"
10665     . ${libiberty_topdir}/config-ml.in
10666   fi
10667 fi ;;
10668   esac
10669 done
10670 _ACEOF
10671
10672 cat >>$CONFIG_STATUS <<\_ACEOF
10673
10674 { (exit 0); exit 0; }
10675 _ACEOF
10676 chmod +x $CONFIG_STATUS
10677 ac_clean_files=$ac_clean_files_save
10678
10679
10680 # configure is writing to config.log, and then calls config.status.
10681 # config.status does its own redirection, appending to config.log.
10682 # Unfortunately, on DOS this fails, as config.log is still kept open
10683 # by configure, so config.status won't be able to write to it; its
10684 # output is simply discarded.  So we exec the FD to /dev/null,
10685 # effectively closing config.log, so it can be properly (re)opened and
10686 # appended to by config.status.  When coming back to configure, we
10687 # need to make the FD available again.
10688 if test "$no_create" != yes; then
10689   ac_cs_success=:
10690   ac_config_status_args=
10691   test "$silent" = yes &&
10692     ac_config_status_args="$ac_config_status_args --quiet"
10693   exec 5>/dev/null
10694   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10695   exec 5>>config.log
10696   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10697   # would make configure fail if this is the last instruction.
10698   $ac_cs_success || { (exit 1); exit 1; }
10699 fi
10700