OSDN Git Service

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