OSDN Git Service

98a641e8ab05e4f856e3a61e8e0aaa6210dd3912
[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.* *.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    '#include <stdlib.h>' \
2491    'extern "C" void std::exit (int) throw (); using std::exit;' \
2492    'extern "C" void std::exit (int); using std::exit;' \
2493    'extern "C" void exit (int) throw ();' \
2494    'extern "C" void exit (int);' \
2495    'void exit (int);'
2496 do
2497   cat >conftest.$ac_ext <<_ACEOF
2498 #line $LINENO "configure"
2499 /* confdefs.h.  */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h.  */
2504 #include <stdlib.h>
2505 $ac_declaration
2506 int
2507 main ()
2508 {
2509 exit (42);
2510   ;
2511   return 0;
2512 }
2513 _ACEOF
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516   (eval $ac_compile) 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); } &&
2520          { ac_try='test -s conftest.$ac_objext'
2521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522   (eval $ac_try) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; }; then
2526   :
2527 else
2528   echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531 continue
2532 fi
2533 rm -f conftest.$ac_objext conftest.$ac_ext
2534   cat >conftest.$ac_ext <<_ACEOF
2535 #line $LINENO "configure"
2536 /* confdefs.h.  */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h.  */
2541 $ac_declaration
2542 int
2543 main ()
2544 {
2545 exit (42);
2546   ;
2547   return 0;
2548 }
2549 _ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552   (eval $ac_compile) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); } &&
2556          { ac_try='test -s conftest.$ac_objext'
2557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558   (eval $ac_try) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; }; then
2562   break
2563 else
2564   echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 fi
2568 rm -f conftest.$ac_objext conftest.$ac_ext
2569 done
2570 rm -f conftest*
2571 if test -n "$ac_declaration"; then
2572   echo '#ifdef __cplusplus' >>confdefs.h
2573   echo $ac_declaration      >>confdefs.h
2574   echo '#endif'             >>confdefs.h
2575 fi
2576
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581 fi
2582 rm -f conftest.$ac_objext conftest.$ac_ext
2583 ac_ext=c
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588
2589
2590 if test x$GCC = xyes; then
2591   ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic'
2592 fi
2593
2594
2595 if test "x$CC" != xcc; then
2596   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2597 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2598 else
2599   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2600 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2601 fi
2602 set dummy $CC; ac_cc=`echo $2 |
2603                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2604 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 /* confdefs.h.  */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h.  */
2614
2615 int
2616 main ()
2617 {
2618
2619   ;
2620   return 0;
2621 }
2622 _ACEOF
2623 # Make sure it works both with $CC and with simple cc.
2624 # We do the test twice because some compilers refuse to overwrite an
2625 # existing .o file with -o, though they will create one.
2626 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2627 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } &&
2632    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633   (eval $ac_try) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); };
2637 then
2638   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2639   if test "x$CC" != xcc; then
2640     # Test first that cc exists at all.
2641     if { ac_try='cc -c conftest.$ac_ext >&5'
2642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643   (eval $ac_try) 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); }; }; then
2647       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2648       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649   (eval $ac_try) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } &&
2653          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654   (eval $ac_try) 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); };
2658       then
2659         # cc works too.
2660         :
2661       else
2662         # cc exists but doesn't like -o.
2663         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2664       fi
2665     fi
2666   fi
2667 else
2668   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2669 fi
2670 rm -f conftest*
2671
2672 fi
2673 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2674   echo "$as_me:$LINENO: result: yes" >&5
2675 echo "${ECHO_T}yes" >&6
2676 else
2677   echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2679
2680 cat >>confdefs.h <<\_ACEOF
2681 #define NO_MINUS_C_MINUS_O 1
2682 _ACEOF
2683
2684 fi
2685
2686 # autoconf is lame and doesn't give us any substitution variable for this.
2687 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2688   NO_MINUS_C_MINUS_O=yes
2689 else
2690   OUTPUT_OPTION='-o $@'
2691 fi
2692
2693
2694
2695
2696 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2697 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2698 if test "${ac_cv_c_const+set}" = set; then
2699   echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701   cat >conftest.$ac_ext <<_ACEOF
2702 #line $LINENO "configure"
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708
2709 int
2710 main ()
2711 {
2712 /* FIXME: Include the comments suggested by Paul. */
2713 #ifndef __cplusplus
2714   /* Ultrix mips cc rejects this.  */
2715   typedef int charset[2];
2716   const charset x;
2717   /* SunOS 4.1.1 cc rejects this.  */
2718   char const *const *ccp;
2719   char **p;
2720   /* NEC SVR4.0.2 mips cc rejects this.  */
2721   struct point {int x, y;};
2722   static struct point const zero = {0,0};
2723   /* AIX XL C 1.02.0.0 rejects this.
2724      It does not let you subtract one const X* pointer from another in
2725      an arm of an if-expression whose if-part is not a constant
2726      expression */
2727   const char *g = "string";
2728   ccp = &g + (g ? g-g : 0);
2729   /* HPUX 7.0 cc rejects these. */
2730   ++ccp;
2731   p = (char**) ccp;
2732   ccp = (char const *const *) p;
2733   { /* SCO 3.2v4 cc rejects this.  */
2734     char *t;
2735     char const *s = 0 ? (char *) 0 : (char const *) 0;
2736
2737     *t++ = 0;
2738   }
2739   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2740     int x[] = {25, 17};
2741     const int *foo = &x[0];
2742     ++foo;
2743   }
2744   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2745     typedef const int *iptr;
2746     iptr p = 0;
2747     ++p;
2748   }
2749   { /* AIX XL C 1.02.0.0 rejects this saying
2750        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2751     struct s { int j; const int *ap[3]; };
2752     struct s *b; b->j = 5;
2753   }
2754   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2755     const int foo = 10;
2756   }
2757 #endif
2758
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); } &&
2769          { ac_try='test -s conftest.$ac_objext'
2770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771   (eval $ac_try) 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }; }; then
2775   ac_cv_c_const=yes
2776 else
2777   echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2779
2780 ac_cv_c_const=no
2781 fi
2782 rm -f conftest.$ac_objext conftest.$ac_ext
2783 fi
2784 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2785 echo "${ECHO_T}$ac_cv_c_const" >&6
2786 if test $ac_cv_c_const = no; then
2787
2788 cat >>confdefs.h <<\_ACEOF
2789 #define const
2790 _ACEOF
2791
2792 fi
2793
2794 echo "$as_me:$LINENO: checking for inline" >&5
2795 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2796 if test "${ac_cv_c_inline+set}" = set; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   ac_cv_c_inline=no
2800 for ac_kw in inline __inline__ __inline; do
2801   cat >conftest.$ac_ext <<_ACEOF
2802 #line $LINENO "configure"
2803 /* confdefs.h.  */
2804 _ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h.  */
2808 #ifndef __cplusplus
2809 typedef int foo_t;
2810 static $ac_kw foo_t static_foo () {return 0; }
2811 $ac_kw foo_t foo () {return 0; }
2812 #endif
2813
2814 _ACEOF
2815 rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817   (eval $ac_compile) 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); } &&
2821          { ac_try='test -s conftest.$ac_objext'
2822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823   (eval $ac_try) 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; }; then
2827   ac_cv_c_inline=$ac_kw; break
2828 else
2829   echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832 fi
2833 rm -f conftest.$ac_objext conftest.$ac_ext
2834 done
2835
2836 fi
2837 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2838 echo "${ECHO_T}$ac_cv_c_inline" >&6
2839 case $ac_cv_c_inline in
2840   inline | yes) ;;
2841   no)
2842 cat >>confdefs.h <<\_ACEOF
2843 #define inline
2844 _ACEOF
2845  ;;
2846   *)  cat >>confdefs.h <<_ACEOF
2847 #define inline $ac_cv_c_inline
2848 _ACEOF
2849  ;;
2850 esac
2851
2852 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2853 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2854 if test "${ac_cv_c_bigendian+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   ac_cv_c_bigendian=unknown
2858 # See if sys/param.h defines the BYTE_ORDER macro.
2859 cat >conftest.$ac_ext <<_ACEOF
2860 #line $LINENO "configure"
2861 /* confdefs.h.  */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h.  */
2866 #include <sys/types.h>
2867 #include <sys/param.h>
2868 int
2869 main ()
2870 {
2871
2872 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2873  bogus endian macros
2874 #endif
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881   (eval $ac_compile) 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } &&
2885          { ac_try='test -s conftest.$ac_objext'
2886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891   # It does; now see whether it defined to BIG_ENDIAN or not.
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #line $LINENO "configure"
2894 /* confdefs.h.  */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h.  */
2899 #include <sys/types.h>
2900 #include <sys/param.h>
2901 int
2902 main ()
2903 {
2904
2905 #if BYTE_ORDER != BIG_ENDIAN
2906  not big endian
2907 #endif
2908   ;
2909   return 0;
2910 }
2911 _ACEOF
2912 rm -f conftest.$ac_objext
2913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2914   (eval $ac_compile) 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } &&
2918          { ac_try='test -s conftest.$ac_objext'
2919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920   (eval $ac_try) 2>&5
2921   ac_status=$?
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); }; }; then
2924   ac_cv_c_bigendian=yes
2925 else
2926   echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929 ac_cv_c_bigendian=no
2930 fi
2931 rm -f conftest.$ac_objext conftest.$ac_ext
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 fi
2937 rm -f conftest.$ac_objext conftest.$ac_ext
2938 if test $ac_cv_c_bigendian = unknown; then
2939 if test "$cross_compiling" = yes; then
2940    echo $ac_n "cross-compiling... " 2>&6
2941 else
2942   cat >conftest.$ac_ext <<_ACEOF
2943 #line $LINENO "configure"
2944 /* confdefs.h.  */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h.  */
2949 main () {
2950   /* Are we little or big endian?  From Harbison&Steele.  */
2951   union
2952   {
2953     long l;
2954     char c[sizeof (long)];
2955   } u;
2956   u.l = 1;
2957   exit (u.c[sizeof (long) - 1] == 1);
2958 }
2959 _ACEOF
2960 rm -f conftest$ac_exeext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2962   (eval $ac_link) 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967   (eval $ac_try) 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }; }; then
2971   ac_cv_c_bigendian=no
2972 else
2973   echo "$as_me: program exited with status $ac_status" >&5
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 ( exit $ac_status )
2978 ac_cv_c_bigendian=yes
2979 fi
2980 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2981 fi
2982 fi
2983 fi
2984 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2985 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2986 if test $ac_cv_c_bigendian = unknown; then
2987 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
2988 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
2989
2990 cat >conftest.c <<EOF
2991 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2992 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2993 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
2994 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2995 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2996 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
2997 int main() { _ascii (); _ebcdic (); return 0; }
2998 EOF
2999  if test -f conftest.c ; then
3000      if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
3001         if test `grep -l BIGenDianSyS conftest.o` ; then
3002            echo $ac_n ' big endian probe OK, ' 1>&6
3003            ac_cv_c_bigendian=yes
3004         fi
3005         if test `grep -l LiTTleEnDian conftest.o` ; then
3006            echo $ac_n ' little endian probe OK, ' 1>&6
3007            if test $ac_cv_c_bigendian = yes ; then
3008             ac_cv_c_bigendian=unknown;
3009            else
3010             ac_cv_c_bigendian=no
3011            fi
3012         fi
3013         echo $ac_n 'guessing bigendian ...  ' >&6
3014      fi
3015   fi
3016 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3017 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3018 fi
3019 if test $ac_cv_c_bigendian = yes; then
3020
3021 cat >>confdefs.h <<\_ACEOF
3022 #define WORDS_BIGENDIAN 1
3023 _ACEOF
3024
3025
3026 cat >>confdefs.h <<\_ACEOF
3027 #define HOST_WORDS_BIG_ENDIAN 1
3028 _ACEOF
3029
3030   BYTEORDER=4321
3031 else
3032   BYTEORDER=1234
3033 fi
3034
3035 cat >>confdefs.h <<_ACEOF
3036 #define BYTEORDER $BYTEORDER
3037 _ACEOF
3038
3039 if test $ac_cv_c_bigendian = unknown; then
3040   { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
3041 echo "$as_me: error: unknown endianess - sorry" >&2;}
3042    { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
3043 fi
3044
3045
3046
3047
3048           ac_config_headers="$ac_config_headers config.h:config.in"
3049
3050
3051
3052 # Find a good install program.  We prefer a C program (faster),
3053 # so one script is as good as another.  But avoid the broken or
3054 # incompatible versions:
3055 # SysV /etc/install, /usr/sbin/install
3056 # SunOS /usr/etc/install
3057 # IRIX /sbin/install
3058 # AIX /bin/install
3059 # AmigaOS /C/install, which installs bootblocks on floppy discs
3060 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3061 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3062 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3063 # ./install, which can be erroneously created by make from ./install.sh.
3064 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3065 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3066 if test -z "$INSTALL"; then
3067 if test "${ac_cv_path_install+set}" = set; then
3068   echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073   IFS=$as_save_IFS
3074   test -z "$as_dir" && as_dir=.
3075   # Account for people who put trailing slashes in PATH elements.
3076 case $as_dir/ in
3077   ./ | .// | /cC/* | \
3078   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3079   /usr/ucb/* ) ;;
3080   *)
3081     # OSF1 and SCO ODT 3.0 have their own names for install.
3082     # Don't use installbsd from OSF since it installs stuff as root
3083     # by default.
3084     for ac_prog in ginstall scoinst install; do
3085       for ac_exec_ext in '' $ac_executable_extensions; do
3086         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3087           if test $ac_prog = install &&
3088             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3089             # AIX install.  It has an incompatible calling convention.
3090             :
3091           elif test $ac_prog = install &&
3092             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3093             # program-specific install script used by HP pwplus--don't use.
3094             :
3095           else
3096             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3097             break 3
3098           fi
3099         fi
3100       done
3101     done
3102     ;;
3103 esac
3104 done
3105
3106
3107 fi
3108   if test "${ac_cv_path_install+set}" = set; then
3109     INSTALL=$ac_cv_path_install
3110   else
3111     # As a last resort, use the slow shell script.  We don't cache a
3112     # path for INSTALL within a source directory, because that will
3113     # break other packages using the cache if that directory is
3114     # removed, or if the path is relative.
3115     INSTALL=$ac_install_sh
3116   fi
3117 fi
3118 echo "$as_me:$LINENO: result: $INSTALL" >&5
3119 echo "${ECHO_T}$INSTALL" >&6
3120
3121 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3122 # It thinks the first close brace ends the variable substitution.
3123 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3124
3125 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3126
3127 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3128
3129
3130 . ${srcdir}/config.table
3131 host_makefile_frag=${frag}
3132
3133
3134 # It's OK to check for header files.  Although the compiler may not be
3135 # able to link anything, it had better be able to at least compile
3136 # something.
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3143 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3144 # On Suns, sometimes $CPP names a directory.
3145 if test -n "$CPP" && test -d "$CPP"; then
3146   CPP=
3147 fi
3148 if test -z "$CPP"; then
3149   if test "${ac_cv_prog_CPP+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152       # Double quotes because CPP needs to be expanded
3153     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3154     do
3155       ac_preproc_ok=false
3156 for ac_c_preproc_warn_flag in '' yes
3157 do
3158   # Use a header file that comes with gcc, so configuring glibc
3159   # with a fresh cross-compiler works.
3160   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3161   # <limits.h> exists even on freestanding compilers.
3162   # On the NeXT, cc -E runs the code through the compiler's parser,
3163   # not just through cpp. "Syntax error" is here to catch this case.
3164   cat >conftest.$ac_ext <<_ACEOF
3165 #line $LINENO "configure"
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171 #ifdef __STDC__
3172 # include <limits.h>
3173 #else
3174 # include <assert.h>
3175 #endif
3176                      Syntax error
3177 _ACEOF
3178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3179   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3180   ac_status=$?
3181   grep -v '^ *+' conftest.er1 >conftest.err
3182   rm -f conftest.er1
3183   cat conftest.err >&5
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } >/dev/null; then
3186   if test -s conftest.err; then
3187     ac_cpp_err=$ac_c_preproc_warn_flag
3188   else
3189     ac_cpp_err=
3190   fi
3191 else
3192   ac_cpp_err=yes
3193 fi
3194 if test -z "$ac_cpp_err"; then
3195   :
3196 else
3197   echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200   # Broken: fails on valid input.
3201 continue
3202 fi
3203 rm -f conftest.err conftest.$ac_ext
3204
3205   # OK, works on sane cases.  Now check whether non-existent headers
3206   # can be detected and how.
3207   cat >conftest.$ac_ext <<_ACEOF
3208 #line $LINENO "configure"
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214 #include <ac_nonexistent.h>
3215 _ACEOF
3216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3218   ac_status=$?
3219   grep -v '^ *+' conftest.er1 >conftest.err
3220   rm -f conftest.er1
3221   cat conftest.err >&5
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); } >/dev/null; then
3224   if test -s conftest.err; then
3225     ac_cpp_err=$ac_c_preproc_warn_flag
3226   else
3227     ac_cpp_err=
3228   fi
3229 else
3230   ac_cpp_err=yes
3231 fi
3232 if test -z "$ac_cpp_err"; then
3233   # Broken: success on invalid input.
3234 continue
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239   # Passes both tests.
3240 ac_preproc_ok=:
3241 break
3242 fi
3243 rm -f conftest.err conftest.$ac_ext
3244
3245 done
3246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3247 rm -f conftest.err conftest.$ac_ext
3248 if $ac_preproc_ok; then
3249   break
3250 fi
3251
3252     done
3253     ac_cv_prog_CPP=$CPP
3254
3255 fi
3256   CPP=$ac_cv_prog_CPP
3257 else
3258   ac_cv_prog_CPP=$CPP
3259 fi
3260 echo "$as_me:$LINENO: result: $CPP" >&5
3261 echo "${ECHO_T}$CPP" >&6
3262 ac_preproc_ok=false
3263 for ac_c_preproc_warn_flag in '' yes
3264 do
3265   # Use a header file that comes with gcc, so configuring glibc
3266   # with a fresh cross-compiler works.
3267   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3268   # <limits.h> exists even on freestanding compilers.
3269   # On the NeXT, cc -E runs the code through the compiler's parser,
3270   # not just through cpp. "Syntax error" is here to catch this case.
3271   cat >conftest.$ac_ext <<_ACEOF
3272 #line $LINENO "configure"
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278 #ifdef __STDC__
3279 # include <limits.h>
3280 #else
3281 # include <assert.h>
3282 #endif
3283                      Syntax error
3284 _ACEOF
3285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3287   ac_status=$?
3288   grep -v '^ *+' conftest.er1 >conftest.err
3289   rm -f conftest.er1
3290   cat conftest.err >&5
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); } >/dev/null; then
3293   if test -s conftest.err; then
3294     ac_cpp_err=$ac_c_preproc_warn_flag
3295   else
3296     ac_cpp_err=
3297   fi
3298 else
3299   ac_cpp_err=yes
3300 fi
3301 if test -z "$ac_cpp_err"; then
3302   :
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307   # Broken: fails on valid input.
3308 continue
3309 fi
3310 rm -f conftest.err conftest.$ac_ext
3311
3312   # OK, works on sane cases.  Now check whether non-existent headers
3313   # can be detected and how.
3314   cat >conftest.$ac_ext <<_ACEOF
3315 #line $LINENO "configure"
3316 /* confdefs.h.  */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h.  */
3321 #include <ac_nonexistent.h>
3322 _ACEOF
3323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3325   ac_status=$?
3326   grep -v '^ *+' conftest.er1 >conftest.err
3327   rm -f conftest.er1
3328   cat conftest.err >&5
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); } >/dev/null; then
3331   if test -s conftest.err; then
3332     ac_cpp_err=$ac_c_preproc_warn_flag
3333   else
3334     ac_cpp_err=
3335   fi
3336 else
3337   ac_cpp_err=yes
3338 fi
3339 if test -z "$ac_cpp_err"; then
3340   # Broken: success on invalid input.
3341 continue
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346   # Passes both tests.
3347 ac_preproc_ok=:
3348 break
3349 fi
3350 rm -f conftest.err conftest.$ac_ext
3351
3352 done
3353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3354 rm -f conftest.err conftest.$ac_ext
3355 if $ac_preproc_ok; then
3356   :
3357 else
3358   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3359 See \`config.log' for more details." >&5
3360 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3361 See \`config.log' for more details." >&2;}
3362    { (exit 1); exit 1; }; }
3363 fi
3364
3365 ac_ext=c
3366 ac_cpp='$CPP $CPPFLAGS'
3367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370
3371
3372 echo "$as_me:$LINENO: checking for egrep" >&5
3373 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3374 if test "${ac_cv_prog_egrep+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3378     then ac_cv_prog_egrep='grep -E'
3379     else ac_cv_prog_egrep='egrep'
3380     fi
3381 fi
3382 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3383 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3384  EGREP=$ac_cv_prog_egrep
3385
3386
3387 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3388 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3389 if test "${ac_cv_header_stdc+set}" = set; then
3390   echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392   cat >conftest.$ac_ext <<_ACEOF
3393 #line $LINENO "configure"
3394 /* confdefs.h.  */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h.  */
3399 #include <stdlib.h>
3400 #include <stdarg.h>
3401 #include <string.h>
3402 #include <float.h>
3403
3404 int
3405 main ()
3406 {
3407
3408   ;
3409   return 0;
3410 }
3411 _ACEOF
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414   (eval $ac_compile) 2>&5
3415   ac_status=$?
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } &&
3418          { ac_try='test -s conftest.$ac_objext'
3419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420   (eval $ac_try) 2>&5
3421   ac_status=$?
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); }; }; then
3424   ac_cv_header_stdc=yes
3425 else
3426   echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429 ac_cv_header_stdc=no
3430 fi
3431 rm -f conftest.$ac_objext conftest.$ac_ext
3432
3433 if test $ac_cv_header_stdc = yes; then
3434   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3435   cat >conftest.$ac_ext <<_ACEOF
3436 #line $LINENO "configure"
3437 /* confdefs.h.  */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h.  */
3442 #include <string.h>
3443
3444 _ACEOF
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446   $EGREP "memchr" >/dev/null 2>&1; then
3447   :
3448 else
3449   ac_cv_header_stdc=no
3450 fi
3451 rm -f conftest*
3452
3453 fi
3454
3455 if test $ac_cv_header_stdc = yes; then
3456   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3457   cat >conftest.$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #include <stdlib.h>
3465
3466 _ACEOF
3467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3468   $EGREP "free" >/dev/null 2>&1; then
3469   :
3470 else
3471   ac_cv_header_stdc=no
3472 fi
3473 rm -f conftest*
3474
3475 fi
3476
3477 if test $ac_cv_header_stdc = yes; then
3478   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3479   if test "$cross_compiling" = yes; then
3480   :
3481 else
3482   cat >conftest.$ac_ext <<_ACEOF
3483 #line $LINENO "configure"
3484 /* confdefs.h.  */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h.  */
3489 #include <ctype.h>
3490 #if ((' ' & 0x0FF) == 0x020)
3491 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3492 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3493 #else
3494 # define ISLOWER(c) \
3495                    (('a' <= (c) && (c) <= 'i') \
3496                      || ('j' <= (c) && (c) <= 'r') \
3497                      || ('s' <= (c) && (c) <= 'z'))
3498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3499 #endif
3500
3501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3502 int
3503 main ()
3504 {
3505   int i;
3506   for (i = 0; i < 256; i++)
3507     if (XOR (islower (i), ISLOWER (i))
3508         || toupper (i) != TOUPPER (i))
3509       exit(2);
3510   exit (0);
3511 }
3512 _ACEOF
3513 rm -f conftest$ac_exeext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3515   (eval $ac_link) 2>&5
3516   ac_status=$?
3517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); }; }; then
3524   :
3525 else
3526   echo "$as_me: program exited with status $ac_status" >&5
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 ( exit $ac_status )
3531 ac_cv_header_stdc=no
3532 fi
3533 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3534 fi
3535 fi
3536 fi
3537 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3538 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3539 if test $ac_cv_header_stdc = yes; then
3540
3541 cat >>confdefs.h <<\_ACEOF
3542 #define STDC_HEADERS 1
3543 _ACEOF
3544
3545 fi
3546
3547 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3558                   inttypes.h stdint.h unistd.h
3559 do
3560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3561 echo "$as_me:$LINENO: checking for $ac_header" >&5
3562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   cat >conftest.$ac_ext <<_ACEOF
3567 #line $LINENO "configure"
3568 /* confdefs.h.  */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h.  */
3573 $ac_includes_default
3574
3575 #include <$ac_header>
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579   (eval $ac_compile) 2>&5
3580   ac_status=$?
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); } &&
3583          { ac_try='test -s conftest.$ac_objext'
3584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585   (eval $ac_try) 2>&5
3586   ac_status=$?
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); }; }; then
3589   eval "$as_ac_Header=yes"
3590 else
3591   echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594 eval "$as_ac_Header=no"
3595 fi
3596 rm -f conftest.$ac_objext conftest.$ac_ext
3597 fi
3598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3601   cat >>confdefs.h <<_ACEOF
3602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3603 _ACEOF
3604
3605 fi
3606
3607 done
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632 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
3633 do
3634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3636   echo "$as_me:$LINENO: checking for $ac_header" >&5
3637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 fi
3641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3643 else
3644   # Is the header compilable?
3645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3647 cat >conftest.$ac_ext <<_ACEOF
3648 #line $LINENO "configure"
3649 /* confdefs.h.  */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h.  */
3654 $ac_includes_default
3655 #include <$ac_header>
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659   (eval $ac_compile) 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); } &&
3663          { ac_try='test -s conftest.$ac_objext'
3664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665   (eval $ac_try) 2>&5
3666   ac_status=$?
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); }; }; then
3669   ac_header_compiler=yes
3670 else
3671   echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3673
3674 ac_header_compiler=no
3675 fi
3676 rm -f conftest.$ac_objext conftest.$ac_ext
3677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3678 echo "${ECHO_T}$ac_header_compiler" >&6
3679
3680 # Is the header present?
3681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3683 cat >conftest.$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3685 /* confdefs.h.  */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h.  */
3690 #include <$ac_header>
3691 _ACEOF
3692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3693   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3694   ac_status=$?
3695   grep -v '^ *+' conftest.er1 >conftest.err
3696   rm -f conftest.er1
3697   cat conftest.err >&5
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); } >/dev/null; then
3700   if test -s conftest.err; then
3701     ac_cpp_err=$ac_c_preproc_warn_flag
3702   else
3703     ac_cpp_err=
3704   fi
3705 else
3706   ac_cpp_err=yes
3707 fi
3708 if test -z "$ac_cpp_err"; then
3709   ac_header_preproc=yes
3710 else
3711   echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714   ac_header_preproc=no
3715 fi
3716 rm -f conftest.err conftest.$ac_ext
3717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3718 echo "${ECHO_T}$ac_header_preproc" >&6
3719
3720 # So?  What about this header?
3721 case $ac_header_compiler:$ac_header_preproc in
3722   yes:no )
3723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3727     (
3728       cat <<\_ASBOX
3729 ## ------------------------------------ ##
3730 ## Report this to bug-autoconf@gnu.org. ##
3731 ## ------------------------------------ ##
3732 _ASBOX
3733     ) |
3734       sed "s/^/$as_me: WARNING:     /" >&2
3735     ;;
3736   no:yes )
3737     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3739     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3743     (
3744       cat <<\_ASBOX
3745 ## ------------------------------------ ##
3746 ## Report this to bug-autoconf@gnu.org. ##
3747 ## ------------------------------------ ##
3748 _ASBOX
3749     ) |
3750       sed "s/^/$as_me: WARNING:     /" >&2
3751     ;;
3752 esac
3753 echo "$as_me:$LINENO: checking for $ac_header" >&5
3754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758   eval "$as_ac_Header=$ac_header_preproc"
3759 fi
3760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3762
3763 fi
3764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3765   cat >>confdefs.h <<_ACEOF
3766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3767 _ACEOF
3768
3769 fi
3770
3771 done
3772
3773 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3774 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3775 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   cat >conftest.$ac_ext <<_ACEOF
3779 #line $LINENO "configure"
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785 #include <sys/types.h>
3786 #include <sys/wait.h>
3787 #ifndef WEXITSTATUS
3788 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3789 #endif
3790 #ifndef WIFEXITED
3791 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3792 #endif
3793
3794 int
3795 main ()
3796 {
3797   int s;
3798   wait (&s);
3799   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 rm -f conftest.$ac_objext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806   (eval $ac_compile) 2>&5
3807   ac_status=$?
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); } &&
3810          { ac_try='test -s conftest.$ac_objext'
3811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); }; }; then
3816   ac_cv_header_sys_wait_h=yes
3817 else
3818   echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 ac_cv_header_sys_wait_h=no
3822 fi
3823 rm -f conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3826 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3827 if test $ac_cv_header_sys_wait_h = yes; then
3828
3829 cat >>confdefs.h <<\_ACEOF
3830 #define HAVE_SYS_WAIT_H 1
3831 _ACEOF
3832
3833 fi
3834
3835 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3836 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3837 if test "${ac_cv_header_time+set}" = set; then
3838   echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840   cat >conftest.$ac_ext <<_ACEOF
3841 #line $LINENO "configure"
3842 /* confdefs.h.  */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h.  */
3847 #include <sys/types.h>
3848 #include <sys/time.h>
3849 #include <time.h>
3850
3851 int
3852 main ()
3853 {
3854 if ((struct tm *) 0)
3855 return 0;
3856   ;
3857   return 0;
3858 }
3859 _ACEOF
3860 rm -f conftest.$ac_objext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862   (eval $ac_compile) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); } &&
3866          { ac_try='test -s conftest.$ac_objext'
3867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868   (eval $ac_try) 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); }; }; then
3872   ac_cv_header_time=yes
3873 else
3874   echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 ac_cv_header_time=no
3878 fi
3879 rm -f conftest.$ac_objext conftest.$ac_ext
3880 fi
3881 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3882 echo "${ECHO_T}$ac_cv_header_time" >&6
3883 if test $ac_cv_header_time = yes; then
3884
3885 cat >>confdefs.h <<\_ACEOF
3886 #define TIME_WITH_SYS_TIME 1
3887 _ACEOF
3888
3889 fi
3890
3891
3892 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3893 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3894 if test "${libiberty_cv_declare_errno+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   cat >conftest.$ac_ext <<_ACEOF
3898 #line $LINENO "configure"
3899 /* confdefs.h.  */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h.  */
3904 #include <errno.h>
3905 int
3906 main ()
3907 {
3908 int x = errno;
3909   ;
3910   return 0;
3911 }
3912 _ACEOF
3913 rm -f conftest.$ac_objext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3915   (eval $ac_compile) 2>&5
3916   ac_status=$?
3917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918   (exit $ac_status); } &&
3919          { ac_try='test -s conftest.$ac_objext'
3920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921   (eval $ac_try) 2>&5
3922   ac_status=$?
3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); }; }; then
3925   libiberty_cv_declare_errno=no
3926 else
3927   echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 libiberty_cv_declare_errno=yes
3931 fi
3932 rm -f conftest.$ac_objext conftest.$ac_ext
3933 fi
3934 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
3935 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
3936 if test $libiberty_cv_declare_errno = yes
3937 then
3938 cat >>confdefs.h <<\_ACEOF
3939 #define NEED_DECLARATION_ERRNO 1
3940 _ACEOF
3941
3942 fi
3943
3944
3945 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3946 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3947 if test "${ac_cv_type_uintptr_t+set}" = set; then
3948   echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950   cat >conftest.$ac_ext <<_ACEOF
3951 #line $LINENO "configure"
3952 /* confdefs.h.  */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h.  */
3957 $ac_includes_default
3958 int
3959 main ()
3960 {
3961 if ((uintptr_t *) 0)
3962   return 0;
3963 if (sizeof (uintptr_t))
3964   return 0;
3965   ;
3966   return 0;
3967 }
3968 _ACEOF
3969 rm -f conftest.$ac_objext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971   (eval $ac_compile) 2>&5
3972   ac_status=$?
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } &&
3975          { ac_try='test -s conftest.$ac_objext'
3976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977   (eval $ac_try) 2>&5
3978   ac_status=$?
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); }; }; then
3981   ac_cv_type_uintptr_t=yes
3982 else
3983   echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986 ac_cv_type_uintptr_t=no
3987 fi
3988 rm -f conftest.$ac_objext conftest.$ac_ext
3989 fi
3990 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3991 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3992 if test $ac_cv_type_uintptr_t = yes; then
3993   :
3994 else
3995
3996 cat >>confdefs.h <<_ACEOF
3997 #define uintptr_t unsigned long
3998 _ACEOF
3999
4000 fi
4001
4002 # Given the above check, we always have uintptr_t or a fallback
4003 # definition.  So define HAVE_UINTPTR_T in case any imported code
4004 # relies on it.
4005
4006 cat >>confdefs.h <<\_ACEOF
4007 #define HAVE_UINTPTR_T 1
4008 _ACEOF
4009
4010
4011 echo "$as_me:$LINENO: checking for pid_t" >&5
4012 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4013 if test "${ac_cv_type_pid_t+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   cat >conftest.$ac_ext <<_ACEOF
4017 #line $LINENO "configure"
4018 /* confdefs.h.  */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h.  */
4023 $ac_includes_default
4024 int
4025 main ()
4026 {
4027 if ((pid_t *) 0)
4028   return 0;
4029 if (sizeof (pid_t))
4030   return 0;
4031   ;
4032   return 0;
4033 }
4034 _ACEOF
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037   (eval $ac_compile) 2>&5
4038   ac_status=$?
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); } &&
4041          { ac_try='test -s conftest.$ac_objext'
4042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043   (eval $ac_try) 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; }; then
4047   ac_cv_type_pid_t=yes
4048 else
4049   echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4051
4052 ac_cv_type_pid_t=no
4053 fi
4054 rm -f conftest.$ac_objext conftest.$ac_ext
4055 fi
4056 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4057 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4058 if test $ac_cv_type_pid_t = yes; then
4059   :
4060 else
4061
4062 cat >>confdefs.h <<_ACEOF
4063 #define pid_t int
4064 _ACEOF
4065
4066 fi
4067
4068
4069 # This is the list of functions which libiberty will provide if they
4070 # are not available on the host.
4071
4072 funcs="asprintf"
4073 funcs="$funcs atexit"
4074 funcs="$funcs basename"
4075 funcs="$funcs bcmp"
4076 funcs="$funcs bcopy"
4077 funcs="$funcs bsearch"
4078 funcs="$funcs bzero"
4079 funcs="$funcs calloc"
4080 funcs="$funcs clock"
4081 funcs="$funcs ffs"
4082 funcs="$funcs getcwd"
4083 funcs="$funcs getpagesize"
4084 funcs="$funcs index"
4085 funcs="$funcs insque"
4086 funcs="$funcs memchr"
4087 funcs="$funcs memcmp"
4088 funcs="$funcs memcpy"
4089 funcs="$funcs memmove"
4090 funcs="$funcs mempcpy"
4091 funcs="$funcs memset"
4092 funcs="$funcs mkstemps"
4093 funcs="$funcs putenv"
4094 funcs="$funcs random"
4095 funcs="$funcs rename"
4096 funcs="$funcs rindex"
4097 funcs="$funcs setenv"
4098 funcs="$funcs snprintf"
4099 funcs="$funcs sigsetmask"
4100 funcs="$funcs stpcpy"
4101 funcs="$funcs stpncpy"
4102 funcs="$funcs strcasecmp"
4103 funcs="$funcs strchr"
4104 funcs="$funcs strdup"
4105 funcs="$funcs strncasecmp"
4106 funcs="$funcs strrchr"
4107 funcs="$funcs strstr"
4108 funcs="$funcs strtod"
4109 funcs="$funcs strtol"
4110 funcs="$funcs strtoul"
4111 funcs="$funcs tmpnam"
4112 funcs="$funcs vasprintf"
4113 funcs="$funcs vfprintf"
4114 funcs="$funcs vprintf"
4115 funcs="$funcs vsnprintf"
4116 funcs="$funcs vsprintf"
4117 funcs="$funcs waitpid"
4118
4119 # Also in the old function.def file: alloca, vfork, getopt.
4120
4121 vars="sys_errlist sys_nerr sys_siglist"
4122
4123 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
4124 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
4125 checkfuncs="$checkfuncs getsysinfo table sysctl"
4126
4127 # These are neither executed nor required, but they help keep
4128 # autoheader happy without adding a bunch of text to acconfig.h.
4129 if test "x" = "y"; then
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
4193 for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
4194   getcwd getpagesize index insque mkstemps memchr memcmp memcpy \
4195   memmove mempcpy memset putenv random rename rindex sigsetmask \
4196   strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strrchr strstr \
4197   strtod strtol strtoul tmpnam vasprintf vfprintf vprintf \
4198   vsprintf waitpid getrusage on_exit psignal strerror strsignal \
4199   sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
4200   pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl \
4201   realpath canonicalize_file_name
4202 do
4203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4204 echo "$as_me:$LINENO: checking for $ac_func" >&5
4205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4206 if eval "test \"\${$as_ac_var+set}\" = set"; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   if test x$gcc_no_link = xyes; then
4210   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4212    { (exit 1); exit 1; }; }
4213 fi
4214 cat >conftest.$ac_ext <<_ACEOF
4215 #line $LINENO "configure"
4216 /* confdefs.h.  */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h.  */
4221 /* System header to define __stub macros and hopefully few prototypes,
4222     which can conflict with char $ac_func (); below.
4223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4224     <limits.h> exists even on freestanding compilers.  Under hpux,
4225     including <limits.h> includes <sys/time.h> and causes problems
4226     checking for functions defined therein.  */
4227 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
4228 # include <limits.h>
4229 #else
4230 # include <assert.h>
4231 #endif
4232 /* Override any gcc2 internal prototype to avoid an error.  */
4233 #ifdef __cplusplus
4234 extern "C"
4235 {
4236 #endif
4237 /* We use char because int might match the return type of a gcc2
4238    builtin and then its argument prototype would still apply.  */
4239 char $ac_func ();
4240 /* The GNU C library defines this for functions which it implements
4241     to always fail with ENOSYS.  Some functions are actually named
4242     something starting with __ and the normal name is an alias.  */
4243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4244 choke me
4245 #else
4246 char (*f) () = $ac_func;
4247 #endif
4248 #ifdef __cplusplus
4249 }
4250 #endif
4251
4252 int
4253 main ()
4254 {
4255 return f != $ac_func;
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.$ac_objext conftest$ac_exeext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4262   (eval $ac_link) 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); } &&
4266          { ac_try='test -s conftest$ac_exeext'
4267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268   (eval $ac_try) 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; }; then
4272   eval "$as_ac_var=yes"
4273 else
4274   echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 eval "$as_ac_var=no"
4278 fi
4279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4280 fi
4281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4283 if test `eval echo '${'$as_ac_var'}'` = yes; then
4284   cat >>confdefs.h <<_ACEOF
4285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4286 _ACEOF
4287
4288 fi
4289 done
4290
4291
4292 cat >>confdefs.h <<\_ACEOF
4293 #define HAVE_SYS_ERRLIST 1
4294 _ACEOF
4295
4296
4297 cat >>confdefs.h <<\_ACEOF
4298 #define HAVE_SYS_NERR 1
4299 _ACEOF
4300
4301
4302 cat >>confdefs.h <<\_ACEOF
4303 #define HAVE_SYS_SIGLIST 1
4304 _ACEOF
4305
4306 fi
4307
4308 # For each of these functions, if the host does not provide the
4309 # function we want to put FN.o in LIBOBJS, and if the host does
4310 # provide the function, we want to define HAVE_FN in config.h.
4311
4312 setobjs=
4313 CHECK=
4314 target_header_dir=
4315 if test -n "${with_target_subdir}"; then
4316
4317   # We are being configured as a target library.  AC_REPLACE_FUNCS
4318   # may not work correctly, because the compiler may not be able to
4319   # link executables.  Note that we may still be being configured
4320   # native.
4321
4322   # If we are being configured for newlib, we know which functions
4323   # newlib provide and which ones we will be expected to provide.
4324
4325   if test "x${with_newlib}" = "xyes"; then
4326     LIBOBJS="$LIBOBJS asprintf.$ac_objext"
4327     LIBOBJS="$LIBOBJS basename.$ac_objext"
4328     LIBOBJS="$LIBOBJS insque.$ac_objext"
4329     LIBOBJS="$LIBOBJS random.$ac_objext"
4330     LIBOBJS="$LIBOBJS strdup.$ac_objext"
4331     LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
4332
4333     for f in $funcs; do
4334       case "$f" in
4335         asprintf | basename | insque | random | strdup | vasprintf)
4336           ;;
4337         *)
4338           n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4339           cat >>confdefs.h <<_ACEOF
4340 #define $n 1
4341 _ACEOF
4342
4343           ;;
4344       esac
4345     done
4346
4347     # newlib doesnt provide any of the variables in $vars, so we
4348     # dont have to check them here.
4349
4350     # Of the functions in $checkfuncs, newlib only has strerror.
4351     cat >> confdefs.h <<\EOF
4352 #define HAVE_STRERROR 1
4353 EOF
4354
4355
4356     setobjs=yes
4357
4358   fi
4359
4360   # We may wish to install the target headers somewhere.
4361   # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
4362 if test "${enable_install_libiberty+set}" = set; then
4363   enableval="$enable_install_libiberty"
4364   enable_install_libiberty=$enableval
4365 else
4366   enable_install_libiberty=no
4367 fi;
4368   # Option parsed, now set things appropriately.
4369   case x"$enable_install_libiberty" in
4370     xyes|x)
4371       target_header_dir=libiberty
4372       ;;
4373     xno)
4374       target_header_dir=
4375       ;;
4376     *)
4377       # This could be sanity-checked in various ways...
4378       target_header_dir="${enable_install_libiberty}"
4379       ;;
4380   esac
4381
4382
4383 else
4384
4385    # Not a target library, so we set things up to run the test suite.
4386    CHECK=check-cplus-dem
4387
4388 fi
4389
4390
4391
4392
4393 case "${host}" in
4394   *-*-cygwin* | *-*-mingw*)
4395     cat >> confdefs.h <<\EOF
4396 #define HAVE_SYS_ERRLIST 1
4397 EOF
4398
4399     cat >> confdefs.h <<\EOF
4400 #define HAVE_SYS_NERR 1
4401 EOF
4402
4403     ;;
4404 esac
4405
4406 if test -z "${setobjs}"; then
4407   case "${host}" in
4408
4409   *-*-vxworks*)
4410     # Handle VxWorks configuration specially, since on VxWorks the
4411     # libraries are actually on the target board, not in the file
4412     # system.
4413     LIBOBJS="$LIBOBJS basename.$ac_objext"
4414     LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
4415     LIBOBJS="$LIBOBJS insque.$ac_objext"
4416     LIBOBJS="$LIBOBJS random.$ac_objext"
4417     LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
4418     LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
4419     LIBOBJS="$LIBOBJS strdup.$ac_objext"
4420     LIBOBJS="$LIBOBJS vfork.$ac_objext"
4421     LIBOBJS="$LIBOBJS waitpid.$ac_objext"
4422     LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
4423     for f in $funcs; do
4424       case "$f" in
4425         basename | getpagesize | insque | random | strcasecmp)
4426           ;;
4427         strncasecmp | strdup | vfork | waitpid | vasprintf)
4428           ;;
4429         *)
4430           n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4431           cat >>confdefs.h <<_ACEOF
4432 #define $n 1
4433 _ACEOF
4434
4435           ;;
4436       esac
4437     done
4438
4439     # VxWorks doesn't provide any of the variables in $vars, so we
4440     # don't have to check them here.
4441
4442     # Of the functions in $checkfuncs, VxWorks only has strerror.
4443     cat >> confdefs.h <<\EOF
4444 #define HAVE_STRERROR 1
4445 EOF
4446
4447
4448     setobjs=yes
4449     ;;
4450
4451   esac
4452 fi
4453
4454 if test -z "${setobjs}"; then
4455
4456   case "${host}" in
4457
4458   *-*-cygwin*)
4459     # The Cygwin library actually uses a couple of files from
4460     # libiberty when it is built.  If we are building a native
4461     # Cygwin, and we run the tests, we will appear to have these
4462     # files.  However, when we go on to build winsup, we will wind up
4463     # with a library which does not have the files, since they should
4464     # have come from libiberty.
4465
4466     # We handle this by removing the functions the winsup library
4467     # provides from our shell variables, so that they appear to be
4468     # missing.
4469
4470     # DJ - only if we're *building* cygwin, not just building *with* cygwin
4471
4472     if test -n "${with_target_subdir}"
4473     then
4474       funcs="`echo $funcs | sed -e 's/random//'`"
4475       LIBOBJS="$LIBOBJS random.$ac_objext"
4476       vars="`echo $vars | sed -e 's/sys_siglist//'`"
4477       checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
4478     fi
4479     ;;
4480
4481   *-*-mingw32*)
4482     # Under mingw32, sys_nerr and sys_errlist exist, but they are
4483     # macros, so the test below won't find them.
4484     libiberty_cv_var_sys_nerr=yes
4485     libiberty_cv_var_sys_errlist=yes
4486     ;;
4487
4488   *-*-uwin*)
4489     # Under some versions of uwin, vfork is notoriously buggy and the test
4490     # can hang configure; on other versions, vfork exists just as a stub.
4491     # FIXME: This should be removed once vfork in uwin's runtime is fixed.
4492     ac_cv_func_vfork_works=no
4493     # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
4494     # macros (actually, these are imported from a DLL, but the end effect
4495     # is the same), so the test below won't find them.
4496     libiberty_cv_var_sys_nerr=yes
4497     libiberty_cv_var_sys_errlist=yes
4498     ;;
4499
4500   *-*-*vms*)
4501     # Under VMS, vfork works very different than on Unix. The standard test
4502     # won't work, and it isn't easily adaptable. It makes more sense to
4503     # just force it.
4504     ac_cv_func_vfork_works=yes
4505     ;;
4506
4507   esac
4508
4509   # We haven't set the list of objects yet.  Use the standard autoconf
4510   # tests.  This will only work if the compiler works.
4511   echo "$as_me:$LINENO: checking for library containing strerror" >&5
4512 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4513 if test "${ac_cv_search_strerror+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   ac_func_search_save_LIBS=$LIBS
4517 ac_cv_search_strerror=no
4518 if test x$gcc_no_link = xyes; then
4519   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4520 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4521    { (exit 1); exit 1; }; }
4522 fi
4523 cat >conftest.$ac_ext <<_ACEOF
4524 #line $LINENO "configure"
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530
4531 /* Override any gcc2 internal prototype to avoid an error.  */
4532 #ifdef __cplusplus
4533 extern "C"
4534 #endif
4535 /* We use char because int might match the return type of a gcc2
4536    builtin and then its argument prototype would still apply.  */
4537 char strerror ();
4538 int
4539 main ()
4540 {
4541 strerror ();
4542   ;
4543   return 0;
4544 }
4545 _ACEOF
4546 rm -f conftest.$ac_objext conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548   (eval $ac_link) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } &&
4552          { ac_try='test -s conftest$ac_exeext'
4553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554   (eval $ac_try) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }; }; then
4558   ac_cv_search_strerror="none required"
4559 else
4560   echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 fi
4564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4565 if test "$ac_cv_search_strerror" = no; then
4566   for ac_lib in cposix; do
4567     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4568     if test x$gcc_no_link = xyes; then
4569   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4571    { (exit 1); exit 1; }; }
4572 fi
4573 cat >conftest.$ac_ext <<_ACEOF
4574 #line $LINENO "configure"
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580
4581 /* Override any gcc2 internal prototype to avoid an error.  */
4582 #ifdef __cplusplus
4583 extern "C"
4584 #endif
4585 /* We use char because int might match the return type of a gcc2
4586    builtin and then its argument prototype would still apply.  */
4587 char strerror ();
4588 int
4589 main ()
4590 {
4591 strerror ();
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598   (eval $ac_link) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); } &&
4602          { ac_try='test -s conftest$ac_exeext'
4603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604   (eval $ac_try) 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); }; }; then
4608   ac_cv_search_strerror="-l$ac_lib"
4609 break
4610 else
4611   echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 fi
4615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4616   done
4617 fi
4618 LIBS=$ac_func_search_save_LIBS
4619 fi
4620 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4621 echo "${ECHO_T}$ac_cv_search_strerror" >&6
4622 if test "$ac_cv_search_strerror" != no; then
4623   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4624
4625 fi
4626
4627
4628 for ac_func in $funcs
4629 do
4630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4631 echo "$as_me:$LINENO: checking for $ac_func" >&5
4632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4633 if eval "test \"\${$as_ac_var+set}\" = set"; then
4634   echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636   if test x$gcc_no_link = xyes; then
4637   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4639    { (exit 1); exit 1; }; }
4640 fi
4641 cat >conftest.$ac_ext <<_ACEOF
4642 #line $LINENO "configure"
4643 /* confdefs.h.  */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h.  */
4648 /* System header to define __stub macros and hopefully few prototypes,
4649     which can conflict with char $ac_func (); below.
4650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4651     <limits.h> exists even on freestanding compilers.  Under hpux,
4652     including <limits.h> includes <sys/time.h> and causes problems
4653     checking for functions defined therein.  */
4654 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
4655 # include <limits.h>
4656 #else
4657 # include <assert.h>
4658 #endif
4659 /* Override any gcc2 internal prototype to avoid an error.  */
4660 #ifdef __cplusplus
4661 extern "C"
4662 {
4663 #endif
4664 /* We use char because int might match the return type of a gcc2
4665    builtin and then its argument prototype would still apply.  */
4666 char $ac_func ();
4667 /* The GNU C library defines this for functions which it implements
4668     to always fail with ENOSYS.  Some functions are actually named
4669     something starting with __ and the normal name is an alias.  */
4670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4671 choke me
4672 #else
4673 char (*f) () = $ac_func;
4674 #endif
4675 #ifdef __cplusplus
4676 }
4677 #endif
4678
4679 int
4680 main ()
4681 {
4682 return f != $ac_func;
4683   ;
4684   return 0;
4685 }
4686 _ACEOF
4687 rm -f conftest.$ac_objext conftest$ac_exeext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4689   (eval $ac_link) 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); } &&
4693          { ac_try='test -s conftest$ac_exeext'
4694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695   (eval $ac_try) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; }; then
4699   eval "$as_ac_var=yes"
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 eval "$as_ac_var=no"
4705 fi
4706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4707 fi
4708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4710 if test `eval echo '${'$as_ac_var'}'` = yes; then
4711   cat >>confdefs.h <<_ACEOF
4712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4713 _ACEOF
4714
4715 else
4716   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4717 fi
4718 done
4719
4720
4721   echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
4722 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
4723 if test "${ac_cv_os_cray+set}" = set; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   cat >conftest.$ac_ext <<_ACEOF
4727 #line $LINENO "configure"
4728 /* confdefs.h.  */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h.  */
4733 #if defined(CRAY) && ! defined(CRAY2)
4734 webecray
4735 #else
4736 wenotbecray
4737 #endif
4738
4739 _ACEOF
4740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4741   $EGREP "webecray" >/dev/null 2>&1; then
4742   ac_cv_os_cray=yes
4743 else
4744   ac_cv_os_cray=no
4745 fi
4746 rm -f conftest*
4747
4748 fi
4749 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4750 echo "${ECHO_T}$ac_cv_os_cray" >&6
4751 if test $ac_cv_os_cray = yes; then
4752   for ac_func in _getb67 GETB67 getb67; do
4753     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4754 echo "$as_me:$LINENO: checking for $ac_func" >&5
4755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4756 if eval "test \"\${$as_ac_var+set}\" = set"; then
4757   echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759   if test x$gcc_no_link = xyes; then
4760   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4761 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4762    { (exit 1); exit 1; }; }
4763 fi
4764 cat >conftest.$ac_ext <<_ACEOF
4765 #line $LINENO "configure"
4766 /* confdefs.h.  */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h.  */
4771 /* System header to define __stub macros and hopefully few prototypes,
4772     which can conflict with char $ac_func (); below.
4773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4774     <limits.h> exists even on freestanding compilers.  Under hpux,
4775     including <limits.h> includes <sys/time.h> and causes problems
4776     checking for functions defined therein.  */
4777 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
4778 # include <limits.h>
4779 #else
4780 # include <assert.h>
4781 #endif
4782 /* Override any gcc2 internal prototype to avoid an error.  */
4783 #ifdef __cplusplus
4784 extern "C"
4785 {
4786 #endif
4787 /* We use char because int might match the return type of a gcc2
4788    builtin and then its argument prototype would still apply.  */
4789 char $ac_func ();
4790 /* The GNU C library defines this for functions which it implements
4791     to always fail with ENOSYS.  Some functions are actually named
4792     something starting with __ and the normal name is an alias.  */
4793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4794 choke me
4795 #else
4796 char (*f) () = $ac_func;
4797 #endif
4798 #ifdef __cplusplus
4799 }
4800 #endif
4801
4802 int
4803 main ()
4804 {
4805 return f != $ac_func;
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext conftest$ac_exeext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4812   (eval $ac_link) 2>&5
4813   ac_status=$?
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } &&
4816          { ac_try='test -s conftest$ac_exeext'
4817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818   (eval $ac_try) 2>&5
4819   ac_status=$?
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); }; }; then
4822   eval "$as_ac_var=yes"
4823 else
4824   echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4826
4827 eval "$as_ac_var=no"
4828 fi
4829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4830 fi
4831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4833 if test `eval echo '${'$as_ac_var'}'` = yes; then
4834
4835 cat >>confdefs.h <<_ACEOF
4836 #define CRAY_STACKSEG_END $ac_func
4837 _ACEOF
4838   break
4839 fi
4840
4841   done
4842 fi
4843
4844 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4845 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4846 if test "${ac_cv_c_stack_direction+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   if test "$cross_compiling" = yes; then
4850   ac_cv_c_stack_direction=0
4851 else
4852   cat >conftest.$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859 find_stack_direction ()
4860 {
4861   static char *addr = 0;
4862   auto char dummy;
4863   if (addr == 0)
4864     {
4865       addr = &dummy;
4866       return find_stack_direction ();
4867     }
4868   else
4869     return (&dummy > addr) ? 1 : -1;
4870 }
4871 main ()
4872 {
4873   exit (find_stack_direction() < 0);
4874 }
4875 _ACEOF
4876 rm -f conftest$ac_exeext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878   (eval $ac_link) 2>&5
4879   ac_status=$?
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883   (eval $ac_try) 2>&5
4884   ac_status=$?
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); }; }; then
4887   ac_cv_c_stack_direction=1
4888 else
4889   echo "$as_me: program exited with status $ac_status" >&5
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 ( exit $ac_status )
4894 ac_cv_c_stack_direction=-1
4895 fi
4896 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4897 fi
4898 fi
4899 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4900 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4901
4902 cat >>confdefs.h <<_ACEOF
4903 #define STACK_DIRECTION $ac_cv_c_stack_direction
4904 _ACEOF
4905
4906
4907
4908
4909 for ac_header in unistd.h vfork.h
4910 do
4911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4913   echo "$as_me:$LINENO: checking for $ac_header" >&5
4914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4916   echo $ECHO_N "(cached) $ECHO_C" >&6
4917 fi
4918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4920 else
4921   # Is the header compilable?
4922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4924 cat >conftest.$ac_ext <<_ACEOF
4925 #line $LINENO "configure"
4926 /* confdefs.h.  */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h.  */
4931 $ac_includes_default
4932 #include <$ac_header>
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936   (eval $ac_compile) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); } &&
4940          { ac_try='test -s conftest.$ac_objext'
4941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942   (eval $ac_try) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); }; }; then
4946   ac_header_compiler=yes
4947 else
4948   echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4950
4951 ac_header_compiler=no
4952 fi
4953 rm -f conftest.$ac_objext conftest.$ac_ext
4954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4955 echo "${ECHO_T}$ac_header_compiler" >&6
4956
4957 # Is the header present?
4958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4960 cat >conftest.$ac_ext <<_ACEOF
4961 #line $LINENO "configure"
4962 /* confdefs.h.  */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h.  */
4967 #include <$ac_header>
4968 _ACEOF
4969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4971   ac_status=$?
4972   grep -v '^ *+' conftest.er1 >conftest.err
4973   rm -f conftest.er1
4974   cat conftest.err >&5
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } >/dev/null; then
4977   if test -s conftest.err; then
4978     ac_cpp_err=$ac_c_preproc_warn_flag
4979   else
4980     ac_cpp_err=
4981   fi
4982 else
4983   ac_cpp_err=yes
4984 fi
4985 if test -z "$ac_cpp_err"; then
4986   ac_header_preproc=yes
4987 else
4988   echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991   ac_header_preproc=no
4992 fi
4993 rm -f conftest.err conftest.$ac_ext
4994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4995 echo "${ECHO_T}$ac_header_preproc" >&6
4996
4997 # So?  What about this header?
4998 case $ac_header_compiler:$ac_header_preproc in
4999   yes:no )
5000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5004     (
5005       cat <<\_ASBOX
5006 ## ------------------------------------ ##
5007 ## Report this to bug-autoconf@gnu.org. ##
5008 ## ------------------------------------ ##
5009 _ASBOX
5010     ) |
5011       sed "s/^/$as_me: WARNING:     /" >&2
5012     ;;
5013   no:yes )
5014     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5016     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5020     (
5021       cat <<\_ASBOX
5022 ## ------------------------------------ ##
5023 ## Report this to bug-autoconf@gnu.org. ##
5024 ## ------------------------------------ ##
5025 _ASBOX
5026     ) |
5027       sed "s/^/$as_me: WARNING:     /" >&2
5028     ;;
5029 esac
5030 echo "$as_me:$LINENO: checking for $ac_header" >&5
5031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   eval "$as_ac_Header=$ac_header_preproc"
5036 fi
5037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5039
5040 fi
5041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5042   cat >>confdefs.h <<_ACEOF
5043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5044 _ACEOF
5045
5046 fi
5047
5048 done
5049
5050
5051
5052 for ac_func in fork vfork
5053 do
5054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5055 echo "$as_me:$LINENO: checking for $ac_func" >&5
5056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5057 if eval "test \"\${$as_ac_var+set}\" = set"; then
5058   echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060   if test x$gcc_no_link = xyes; then
5061   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5062 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5063    { (exit 1); exit 1; }; }
5064 fi
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 /* System header to define __stub macros and hopefully few prototypes,
5073     which can conflict with char $ac_func (); below.
5074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5075     <limits.h> exists even on freestanding compilers.  Under hpux,
5076     including <limits.h> includes <sys/time.h> and causes problems
5077     checking for functions defined therein.  */
5078 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5079 # include <limits.h>
5080 #else
5081 # include <assert.h>
5082 #endif
5083 /* Override any gcc2 internal prototype to avoid an error.  */
5084 #ifdef __cplusplus
5085 extern "C"
5086 {
5087 #endif
5088 /* We use char because int might match the return type of a gcc2
5089    builtin and then its argument prototype would still apply.  */
5090 char $ac_func ();
5091 /* The GNU C library defines this for functions which it implements
5092     to always fail with ENOSYS.  Some functions are actually named
5093     something starting with __ and the normal name is an alias.  */
5094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5095 choke me
5096 #else
5097 char (*f) () = $ac_func;
5098 #endif
5099 #ifdef __cplusplus
5100 }
5101 #endif
5102
5103 int
5104 main ()
5105 {
5106 return f != $ac_func;
5107   ;
5108   return 0;
5109 }
5110 _ACEOF
5111 rm -f conftest.$ac_objext conftest$ac_exeext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5113   (eval $ac_link) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } &&
5117          { ac_try='test -s conftest$ac_exeext'
5118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119   (eval $ac_try) 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; }; then
5123   eval "$as_ac_var=yes"
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 eval "$as_ac_var=no"
5129 fi
5130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5131 fi
5132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5134 if test `eval echo '${'$as_ac_var'}'` = yes; then
5135   cat >>confdefs.h <<_ACEOF
5136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5137 _ACEOF
5138
5139 fi
5140 done
5141
5142 if test "x$ac_cv_func_fork" = xyes; then
5143   echo "$as_me:$LINENO: checking for working fork" >&5
5144 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5145 if test "${ac_cv_func_fork_works+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   if test "$cross_compiling" = yes; then
5149   ac_cv_func_fork_works=cross
5150 else
5151   cat >conftest.$ac_ext <<_ACEOF
5152 /* By Ruediger Kuhlmann. */
5153       #include <sys/types.h>
5154       #if HAVE_UNISTD_H
5155       # include <unistd.h>
5156       #endif
5157       /* Some systems only have a dummy stub for fork() */
5158       int main ()
5159       {
5160         if (fork() < 0)
5161           exit (1);
5162         exit (0);
5163       }
5164 _ACEOF
5165 rm -f conftest$ac_exeext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5167   (eval $ac_link) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172   (eval $ac_try) 2>&5
5173   ac_status=$?
5174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175   (exit $ac_status); }; }; then
5176   ac_cv_func_fork_works=yes
5177 else
5178   echo "$as_me: program exited with status $ac_status" >&5
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182 ( exit $ac_status )
5183 ac_cv_func_fork_works=no
5184 fi
5185 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5186 fi
5187 fi
5188 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5189 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5190
5191 else
5192   ac_cv_func_fork_works=$ac_cv_func_fork
5193 fi
5194 if test "x$ac_cv_func_fork_works" = xcross; then
5195   case $host in
5196     *-*-amigaos* | *-*-msdosdjgpp*)
5197       # Override, as these systems have only a dummy fork() stub
5198       ac_cv_func_fork_works=no
5199       ;;
5200     *)
5201       ac_cv_func_fork_works=yes
5202       ;;
5203   esac
5204   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5205 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5206 fi
5207 ac_cv_func_vfork_works=$ac_cv_func_vfork
5208 if test "x$ac_cv_func_vfork" = xyes; then
5209   echo "$as_me:$LINENO: checking for working vfork" >&5
5210 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5211 if test "${ac_cv_func_vfork_works+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   if test "$cross_compiling" = yes; then
5215   ac_cv_func_vfork_works=cross
5216 else
5217   cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5219 /* confdefs.h.  */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h.  */
5224 /* Thanks to Paul Eggert for this test.  */
5225 #include <stdio.h>
5226 #include <stdlib.h>
5227 #include <sys/types.h>
5228 #include <sys/stat.h>
5229 #include <sys/wait.h>
5230 #if HAVE_UNISTD_H
5231 # include <unistd.h>
5232 #endif
5233 #if HAVE_VFORK_H
5234 # include <vfork.h>
5235 #endif
5236 /* On some sparc systems, changes by the child to local and incoming
5237    argument registers are propagated back to the parent.  The compiler
5238    is told about this with #include <vfork.h>, but some compilers
5239    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
5240    static variable whose address is put into a register that is
5241    clobbered by the vfork.  */
5242 static void
5243 #ifdef __cplusplus
5244 sparc_address_test (int arg)
5245 # else
5246 sparc_address_test (arg) int arg;
5247 #endif
5248 {
5249   static pid_t child;
5250   if (!child) {
5251     child = vfork ();
5252     if (child < 0) {
5253       perror ("vfork");
5254       _exit(2);
5255     }
5256     if (!child) {
5257       arg = getpid();
5258       write(-1, "", 0);
5259       _exit (arg);
5260     }
5261   }
5262 }
5263
5264 int
5265 main ()
5266 {
5267   pid_t parent = getpid ();
5268   pid_t child;
5269
5270   sparc_address_test (0);
5271
5272   child = vfork ();
5273
5274   if (child == 0) {
5275     /* Here is another test for sparc vfork register problems.  This
5276        test uses lots of local variables, at least as many local
5277        variables as main has allocated so far including compiler
5278        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5279        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5280        reuse the register of parent for one of the local variables,
5281        since it will think that parent can't possibly be used any more
5282        in this routine.  Assigning to the local variable will thus
5283        munge parent in the parent process.  */
5284     pid_t
5285       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5286       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5287     /* Convince the compiler that p..p7 are live; otherwise, it might
5288        use the same hardware register for all 8 local variables.  */
5289     if (p != p1 || p != p2 || p != p3 || p != p4
5290         || p != p5 || p != p6 || p != p7)
5291       _exit(1);
5292
5293     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5294        from child file descriptors.  If the child closes a descriptor
5295        before it execs or exits, this munges the parent's descriptor
5296        as well.  Test for this by closing stdout in the child.  */
5297     _exit(close(fileno(stdout)) != 0);
5298   } else {
5299     int status;
5300     struct stat st;
5301
5302     while (wait(&status) != child)
5303       ;
5304     exit(
5305          /* Was there some problem with vforking?  */
5306          child < 0
5307
5308          /* Did the child fail?  (This shouldn't happen.)  */
5309          || status
5310
5311          /* Did the vfork/compiler bug occur?  */
5312          || parent != getpid()
5313
5314          /* Did the file descriptor bug occur?  */
5315          || fstat(fileno(stdout), &st) != 0
5316          );
5317   }
5318 }
5319 _ACEOF
5320 rm -f conftest$ac_exeext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5322   (eval $ac_link) 2>&5
5323   ac_status=$?
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327   (eval $ac_try) 2>&5
5328   ac_status=$?
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); }; }; then
5331   ac_cv_func_vfork_works=yes
5332 else
5333   echo "$as_me: program exited with status $ac_status" >&5
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5336
5337 ( exit $ac_status )
5338 ac_cv_func_vfork_works=no
5339 fi
5340 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5341 fi
5342 fi
5343 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5344 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5345
5346 fi;
5347 if test "x$ac_cv_func_fork_works" = xcross; then
5348   ac_cv_func_vfork_works=ac_cv_func_vfork
5349   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5350 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5351 fi
5352
5353 if test "x$ac_cv_func_vfork_works" = xyes; then
5354
5355 cat >>confdefs.h <<\_ACEOF
5356 #define HAVE_WORKING_VFORK 1
5357 _ACEOF
5358
5359 else
5360
5361 cat >>confdefs.h <<\_ACEOF
5362 #define vfork fork
5363 _ACEOF
5364
5365 fi
5366 if test "x$ac_cv_func_fork_works" = xyes; then
5367
5368 cat >>confdefs.h <<\_ACEOF
5369 #define HAVE_WORKING_FORK 1
5370 _ACEOF
5371
5372 fi
5373
5374   if test $ac_cv_func_vfork_works = no; then
5375     LIBOBJS="$LIBOBJS vfork.$ac_objext"
5376   fi
5377   # We only need _doprnt if we might use it to implement v*printf.
5378   if test $ac_cv_func_vprintf != yes \
5379      || test $ac_cv_func_vfprintf != yes \
5380      || test $ac_cv_func_vsprintf != yes; then
5381
5382 for ac_func in _doprnt
5383 do
5384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5385 echo "$as_me:$LINENO: checking for $ac_func" >&5
5386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5387 if eval "test \"\${$as_ac_var+set}\" = set"; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390   if test x$gcc_no_link = xyes; then
5391   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5393    { (exit 1); exit 1; }; }
5394 fi
5395 cat >conftest.$ac_ext <<_ACEOF
5396 #line $LINENO "configure"
5397 /* confdefs.h.  */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h.  */
5402 /* System header to define __stub macros and hopefully few prototypes,
5403     which can conflict with char $ac_func (); below.
5404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5405     <limits.h> exists even on freestanding compilers.  Under hpux,
5406     including <limits.h> includes <sys/time.h> and causes problems
5407     checking for functions defined therein.  */
5408 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5409 # include <limits.h>
5410 #else
5411 # include <assert.h>
5412 #endif
5413 /* Override any gcc2 internal prototype to avoid an error.  */
5414 #ifdef __cplusplus
5415 extern "C"
5416 {
5417 #endif
5418 /* We use char because int might match the return type of a gcc2
5419    builtin and then its argument prototype would still apply.  */
5420 char $ac_func ();
5421 /* The GNU C library defines this for functions which it implements
5422     to always fail with ENOSYS.  Some functions are actually named
5423     something starting with __ and the normal name is an alias.  */
5424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5425 choke me
5426 #else
5427 char (*f) () = $ac_func;
5428 #endif
5429 #ifdef __cplusplus
5430 }
5431 #endif
5432
5433 int
5434 main ()
5435 {
5436 return f != $ac_func;
5437   ;
5438   return 0;
5439 }
5440 _ACEOF
5441 rm -f conftest.$ac_objext conftest$ac_exeext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5443   (eval $ac_link) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); } &&
5447          { ac_try='test -s conftest$ac_exeext'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; }; then
5453   eval "$as_ac_var=yes"
5454 else
5455   echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 eval "$as_ac_var=no"
5459 fi
5460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5461 fi
5462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5464 if test `eval echo '${'$as_ac_var'}'` = yes; then
5465   cat >>confdefs.h <<_ACEOF
5466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5467 _ACEOF
5468
5469 else
5470   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5471 fi
5472 done
5473
5474
5475   else
5476
5477 for ac_func in _doprnt
5478 do
5479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5480 echo "$as_me:$LINENO: checking for $ac_func" >&5
5481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5482 if eval "test \"\${$as_ac_var+set}\" = set"; then
5483   echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485   if test x$gcc_no_link = xyes; then
5486   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5488    { (exit 1); exit 1; }; }
5489 fi
5490 cat >conftest.$ac_ext <<_ACEOF
5491 #line $LINENO "configure"
5492 /* confdefs.h.  */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h.  */
5497 /* System header to define __stub macros and hopefully few prototypes,
5498     which can conflict with char $ac_func (); below.
5499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5500     <limits.h> exists even on freestanding compilers.  Under hpux,
5501     including <limits.h> includes <sys/time.h> and causes problems
5502     checking for functions defined therein.  */
5503 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5504 # include <limits.h>
5505 #else
5506 # include <assert.h>
5507 #endif
5508 /* Override any gcc2 internal prototype to avoid an error.  */
5509 #ifdef __cplusplus
5510 extern "C"
5511 {
5512 #endif
5513 /* We use char because int might match the return type of a gcc2
5514    builtin and then its argument prototype would still apply.  */
5515 char $ac_func ();
5516 /* The GNU C library defines this for functions which it implements
5517     to always fail with ENOSYS.  Some functions are actually named
5518     something starting with __ and the normal name is an alias.  */
5519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5520 choke me
5521 #else
5522 char (*f) () = $ac_func;
5523 #endif
5524 #ifdef __cplusplus
5525 }
5526 #endif
5527
5528 int
5529 main ()
5530 {
5531 return f != $ac_func;
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538   (eval $ac_link) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); } &&
5542          { ac_try='test -s conftest$ac_exeext'
5543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544   (eval $ac_try) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; }; then
5548   eval "$as_ac_var=yes"
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553 eval "$as_ac_var=no"
5554 fi
5555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5556 fi
5557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5559 if test `eval echo '${'$as_ac_var'}'` = yes; then
5560   cat >>confdefs.h <<_ACEOF
5561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5562 _ACEOF
5563
5564 fi
5565 done
5566
5567   fi
5568
5569   for v in $vars; do
5570     echo "$as_me:$LINENO: checking for $v" >&5
5571 echo $ECHO_N "checking for $v... $ECHO_C" >&6
5572     if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
5573   echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575   if test x$gcc_no_link = xyes; then
5576   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5578    { (exit 1); exit 1; }; }
5579 fi
5580 cat >conftest.$ac_ext <<_ACEOF
5581 #line $LINENO "configure"
5582 /* confdefs.h.  */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h.  */
5587 int *p;
5588 int
5589 main ()
5590 {
5591 extern int $v []; p = $v;
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598   (eval $ac_link) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); } &&
5602          { ac_try='test -s conftest$ac_exeext'
5603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604   (eval $ac_try) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); }; }; then
5608   eval "libiberty_cv_var_$v=yes"
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613 eval "libiberty_cv_var_$v=no"
5614 fi
5615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5616 fi
5617
5618     if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
5619       echo "$as_me:$LINENO: result: yes" >&5
5620 echo "${ECHO_T}yes" >&6
5621       n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5622       cat >>confdefs.h <<_ACEOF
5623 #define $n 1
5624 _ACEOF
5625
5626     else
5627       echo "$as_me:$LINENO: result: no" >&5
5628 echo "${ECHO_T}no" >&6
5629     fi
5630   done
5631
5632   # special check for _system_configuration because AIX <4.3.2 do not
5633   # contain the `physmem' member.
5634   echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
5635 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
5636   cat >conftest.$ac_ext <<_ACEOF
5637 #line $LINENO "configure"
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643 #include <sys/systemcfg.h>
5644 int
5645 main ()
5646 {
5647 double x = _system_configuration.physmem;
5648   ;
5649   return 0;
5650 }
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654   (eval $ac_compile) 2>&5
5655   ac_status=$?
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } &&
5658          { ac_try='test -s conftest.$ac_objext'
5659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660   (eval $ac_try) 2>&5
5661   ac_status=$?
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); }; }; then
5664   echo "$as_me:$LINENO: result: yes" >&5
5665 echo "${ECHO_T}yes" >&6
5666
5667 cat >>confdefs.h <<\_ACEOF
5668 #define HAVE__SYSTEM_CONFIGURATION 1
5669 _ACEOF
5670
5671 else
5672   echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5677 fi
5678 rm -f conftest.$ac_objext conftest.$ac_ext
5679
5680
5681 for ac_func in $checkfuncs
5682 do
5683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5684 echo "$as_me:$LINENO: checking for $ac_func" >&5
5685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5686 if eval "test \"\${$as_ac_var+set}\" = set"; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689   if test x$gcc_no_link = xyes; then
5690   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5691 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5692    { (exit 1); exit 1; }; }
5693 fi
5694 cat >conftest.$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701 /* System header to define __stub macros and hopefully few prototypes,
5702     which can conflict with char $ac_func (); below.
5703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5704     <limits.h> exists even on freestanding compilers.  Under hpux,
5705     including <limits.h> includes <sys/time.h> and causes problems
5706     checking for functions defined therein.  */
5707 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5708 # include <limits.h>
5709 #else
5710 # include <assert.h>
5711 #endif
5712 /* Override any gcc2 internal prototype to avoid an error.  */
5713 #ifdef __cplusplus
5714 extern "C"
5715 {
5716 #endif
5717 /* We use char because int might match the return type of a gcc2
5718    builtin and then its argument prototype would still apply.  */
5719 char $ac_func ();
5720 /* The GNU C library defines this for functions which it implements
5721     to always fail with ENOSYS.  Some functions are actually named
5722     something starting with __ and the normal name is an alias.  */
5723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5724 choke me
5725 #else
5726 char (*f) () = $ac_func;
5727 #endif
5728 #ifdef __cplusplus
5729 }
5730 #endif
5731
5732 int
5733 main ()
5734 {
5735 return f != $ac_func;
5736   ;
5737   return 0;
5738 }
5739 _ACEOF
5740 rm -f conftest.$ac_objext conftest$ac_exeext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5742   (eval $ac_link) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); } &&
5746          { ac_try='test -s conftest$ac_exeext'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; }; then
5752   eval "$as_ac_var=yes"
5753 else
5754   echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5756
5757 eval "$as_ac_var=no"
5758 fi
5759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5760 fi
5761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5763 if test `eval echo '${'$as_ac_var'}'` = yes; then
5764   cat >>confdefs.h <<_ACEOF
5765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5766 _ACEOF
5767
5768 fi
5769 done
5770
5771   echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
5772 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
5773 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
5774   echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776   cat >conftest.$ac_ext <<_ACEOF
5777 #line $LINENO "configure"
5778 /* confdefs.h.  */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h.  */
5783
5784 #include "confdefs.h"
5785 #include <stdio.h>
5786 #ifdef HAVE_STRING_H
5787 #include <string.h>
5788 #else
5789 #ifdef HAVE_STRINGS_H
5790 #include <strings.h>
5791 #endif
5792 #endif
5793 #ifdef HAVE_STDLIB_H
5794 #include <stdlib.h>
5795 #endif
5796 #ifdef HAVE_UNISTD_H
5797 #include <unistd.h>
5798 #endif
5799 int
5800 main ()
5801 {
5802 char *(*pfn) = (char *(*)) canonicalize_file_name
5803   ;
5804   return 0;
5805 }
5806 _ACEOF
5807 rm -f conftest.$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809   (eval $ac_compile) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -s conftest.$ac_objext'
5814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815   (eval $ac_try) 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }; }; then
5819   libiberty_cv_decl_needed_canonicalize_file_name=no
5820 else
5821   echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824 libiberty_cv_decl_needed_canonicalize_file_name=yes
5825 fi
5826 rm -f conftest.$ac_objext conftest.$ac_ext
5827 fi
5828
5829 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
5830 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
5831 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
5832
5833 cat >>confdefs.h <<\_ACEOF
5834 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
5835 _ACEOF
5836
5837 fi
5838
5839 fi
5840
5841 # Figure out which version of pexecute to use.
5842 case "${host}" in
5843      *-*-mingw* | *-*-winnt*)   pexecute=pex-win32.o  ;;
5844      *-*-msdosdjgpp*)           pexecute=pex-djgpp.o  ;;
5845      *-*-msdos*)                pexecute=pex-msdos.o  ;;
5846      *-*-os2-emx*)              pexecute=pex-os2.o    ;;
5847      *)                         pexecute=pex-unix.o   ;;
5848 esac
5849
5850
5851 if test x$gcc_no_link = xyes; then
5852   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
5853     ac_cv_func_mmap_fixed_mapped=no
5854   fi
5855 fi
5856 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
5857
5858
5859 for ac_header in stdlib.h unistd.h
5860 do
5861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5863   echo "$as_me:$LINENO: checking for $ac_header" >&5
5864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 fi
5868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5870 else
5871   # Is the header compilable?
5872 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5874 cat >conftest.$ac_ext <<_ACEOF
5875 #line $LINENO "configure"
5876 /* confdefs.h.  */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h.  */
5881 $ac_includes_default
5882 #include <$ac_header>
5883 _ACEOF
5884 rm -f conftest.$ac_objext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886   (eval $ac_compile) 2>&5
5887   ac_status=$?
5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889   (exit $ac_status); } &&
5890          { ac_try='test -s conftest.$ac_objext'
5891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892   (eval $ac_try) 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }; }; then
5896   ac_header_compiler=yes
5897 else
5898   echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901 ac_header_compiler=no
5902 fi
5903 rm -f conftest.$ac_objext conftest.$ac_ext
5904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5905 echo "${ECHO_T}$ac_header_compiler" >&6
5906
5907 # Is the header present?
5908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5910 cat >conftest.$ac_ext <<_ACEOF
5911 #line $LINENO "configure"
5912 /* confdefs.h.  */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h.  */
5917 #include <$ac_header>
5918 _ACEOF
5919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5921   ac_status=$?
5922   grep -v '^ *+' conftest.er1 >conftest.err
5923   rm -f conftest.er1
5924   cat conftest.err >&5
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); } >/dev/null; then
5927   if test -s conftest.err; then
5928     ac_cpp_err=$ac_c_preproc_warn_flag
5929   else
5930     ac_cpp_err=
5931   fi
5932 else
5933   ac_cpp_err=yes
5934 fi
5935 if test -z "$ac_cpp_err"; then
5936   ac_header_preproc=yes
5937 else
5938   echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941   ac_header_preproc=no
5942 fi
5943 rm -f conftest.err conftest.$ac_ext
5944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5945 echo "${ECHO_T}$ac_header_preproc" >&6
5946
5947 # So?  What about this header?
5948 case $ac_header_compiler:$ac_header_preproc in
5949   yes:no )
5950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5954     (
5955       cat <<\_ASBOX
5956 ## ------------------------------------ ##
5957 ## Report this to bug-autoconf@gnu.org. ##
5958 ## ------------------------------------ ##
5959 _ASBOX
5960     ) |
5961       sed "s/^/$as_me: WARNING:     /" >&2
5962     ;;
5963   no:yes )
5964     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5966     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5970     (
5971       cat <<\_ASBOX
5972 ## ------------------------------------ ##
5973 ## Report this to bug-autoconf@gnu.org. ##
5974 ## ------------------------------------ ##
5975 _ASBOX
5976     ) |
5977       sed "s/^/$as_me: WARNING:     /" >&2
5978     ;;
5979 esac
5980 echo "$as_me:$LINENO: checking for $ac_header" >&5
5981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   eval "$as_ac_Header=$ac_header_preproc"
5986 fi
5987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5989
5990 fi
5991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5992   cat >>confdefs.h <<_ACEOF
5993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5994 _ACEOF
5995
5996 fi
5997
5998 done
5999
6000
6001 for ac_func in getpagesize
6002 do
6003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6004 echo "$as_me:$LINENO: checking for $ac_func" >&5
6005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6006 if eval "test \"\${$as_ac_var+set}\" = set"; then
6007   echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009   if test x$gcc_no_link = xyes; then
6010   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6011 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6012    { (exit 1); exit 1; }; }
6013 fi
6014 cat >conftest.$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6016 /* confdefs.h.  */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h.  */
6021 /* System header to define __stub macros and hopefully few prototypes,
6022     which can conflict with char $ac_func (); below.
6023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6024     <limits.h> exists even on freestanding compilers.  Under hpux,
6025     including <limits.h> includes <sys/time.h> and causes problems
6026     checking for functions defined therein.  */
6027 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6028 # include <limits.h>
6029 #else
6030 # include <assert.h>
6031 #endif
6032 /* Override any gcc2 internal prototype to avoid an error.  */
6033 #ifdef __cplusplus
6034 extern "C"
6035 {
6036 #endif
6037 /* We use char because int might match the return type of a gcc2
6038    builtin and then its argument prototype would still apply.  */
6039 char $ac_func ();
6040 /* The GNU C library defines this for functions which it implements
6041     to always fail with ENOSYS.  Some functions are actually named
6042     something starting with __ and the normal name is an alias.  */
6043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6044 choke me
6045 #else
6046 char (*f) () = $ac_func;
6047 #endif
6048 #ifdef __cplusplus
6049 }
6050 #endif
6051
6052 int
6053 main ()
6054 {
6055 return f != $ac_func;
6056   ;
6057   return 0;
6058 }
6059 _ACEOF
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6062   (eval $ac_link) 2>&5
6063   ac_status=$?
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); } &&
6066          { ac_try='test -s conftest$ac_exeext'
6067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068   (eval $ac_try) 2>&5
6069   ac_status=$?
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); }; }; then
6072   eval "$as_ac_var=yes"
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077 eval "$as_ac_var=no"
6078 fi
6079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6080 fi
6081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6083 if test `eval echo '${'$as_ac_var'}'` = yes; then
6084   cat >>confdefs.h <<_ACEOF
6085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6086 _ACEOF
6087
6088 fi
6089 done
6090
6091 echo "$as_me:$LINENO: checking for working mmap" >&5
6092 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6093 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6094   echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096   if test "$cross_compiling" = yes; then
6097   ac_cv_func_mmap_fixed_mapped=no
6098 else
6099   cat >conftest.$ac_ext <<_ACEOF
6100 #line $LINENO "configure"
6101 /* confdefs.h.  */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h.  */
6106 $ac_includes_default
6107 /* malloc might have been renamed as rpl_malloc. */
6108 #undef malloc
6109
6110 /* Thanks to Mike Haertel and Jim Avera for this test.
6111    Here is a matrix of mmap possibilities:
6112         mmap private not fixed
6113         mmap private fixed at somewhere currently unmapped
6114         mmap private fixed at somewhere already mapped
6115         mmap shared not fixed
6116         mmap shared fixed at somewhere currently unmapped
6117         mmap shared fixed at somewhere already mapped
6118    For private mappings, we should verify that changes cannot be read()
6119    back from the file, nor mmap's back from the file at a different
6120    address.  (There have been systems where private was not correctly
6121    implemented like the infamous i386 svr4.0, and systems where the
6122    VM page cache was not coherent with the file system buffer cache
6123    like early versions of FreeBSD and possibly contemporary NetBSD.)
6124    For shared mappings, we should conversely verify that changes get
6125    propagated back to all the places they're supposed to be.
6126
6127    Grep wants private fixed already mapped.
6128    The main things grep needs to know about mmap are:
6129    * does it exist and is it safe to write into the mmap'd area
6130    * how to use it (BSD variants)  */
6131
6132 #include <fcntl.h>
6133 #include <sys/mman.h>
6134
6135 #if !STDC_HEADERS && !HAVE_STDLIB_H
6136 char *malloc ();
6137 #endif
6138
6139 /* This mess was copied from the GNU getpagesize.h.  */
6140 #if !HAVE_GETPAGESIZE
6141 /* Assume that all systems that can run configure have sys/param.h.  */
6142 # if !HAVE_SYS_PARAM_H
6143 #  define HAVE_SYS_PARAM_H 1
6144 # endif
6145
6146 # ifdef _SC_PAGESIZE
6147 #  define getpagesize() sysconf(_SC_PAGESIZE)
6148 # else /* no _SC_PAGESIZE */
6149 #  if HAVE_SYS_PARAM_H
6150 #   include <sys/param.h>
6151 #   ifdef EXEC_PAGESIZE
6152 #    define getpagesize() EXEC_PAGESIZE
6153 #   else /* no EXEC_PAGESIZE */
6154 #    ifdef NBPG
6155 #     define getpagesize() NBPG * CLSIZE
6156 #     ifndef CLSIZE
6157 #      define CLSIZE 1
6158 #     endif /* no CLSIZE */
6159 #    else /* no NBPG */
6160 #     ifdef NBPC
6161 #      define getpagesize() NBPC
6162 #     else /* no NBPC */
6163 #      ifdef PAGESIZE
6164 #       define getpagesize() PAGESIZE
6165 #      endif /* PAGESIZE */
6166 #     endif /* no NBPC */
6167 #    endif /* no NBPG */
6168 #   endif /* no EXEC_PAGESIZE */
6169 #  else /* no HAVE_SYS_PARAM_H */
6170 #   define getpagesize() 8192   /* punt totally */
6171 #  endif /* no HAVE_SYS_PARAM_H */
6172 # endif /* no _SC_PAGESIZE */
6173
6174 #endif /* no HAVE_GETPAGESIZE */
6175
6176 int
6177 main ()
6178 {
6179   char *data, *data2, *data3;
6180   int i, pagesize;
6181   int fd;
6182
6183   pagesize = getpagesize ();
6184
6185   /* First, make a file with some known garbage in it. */
6186   data = (char *) malloc (pagesize);
6187   if (!data)
6188     exit (1);
6189   for (i = 0; i < pagesize; ++i)
6190     *(data + i) = rand ();
6191   umask (0);
6192   fd = creat ("conftest.mmap", 0600);
6193   if (fd < 0)
6194     exit (1);
6195   if (write (fd, data, pagesize) != pagesize)
6196     exit (1);
6197   close (fd);
6198
6199   /* Next, try to mmap the file at a fixed address which already has
6200      something else allocated at it.  If we can, also make sure that
6201      we see the same garbage.  */
6202   fd = open ("conftest.mmap", O_RDWR);
6203   if (fd < 0)
6204     exit (1);
6205   data2 = (char *) malloc (2 * pagesize);
6206   if (!data2)
6207     exit (1);
6208   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6209   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6210                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6211     exit (1);
6212   for (i = 0; i < pagesize; ++i)
6213     if (*(data + i) != *(data2 + i))
6214       exit (1);
6215
6216   /* Finally, make sure that changes to the mapped area do not
6217      percolate back to the file as seen by read().  (This is a bug on
6218      some variants of i386 svr4.0.)  */
6219   for (i = 0; i < pagesize; ++i)
6220     *(data2 + i) = *(data2 + i) + 1;
6221   data3 = (char *) malloc (pagesize);
6222   if (!data3)
6223     exit (1);
6224   if (read (fd, data3, pagesize) != pagesize)
6225     exit (1);
6226   for (i = 0; i < pagesize; ++i)
6227     if (*(data + i) != *(data3 + i))
6228       exit (1);
6229   close (fd);
6230   exit (0);
6231 }
6232 _ACEOF
6233 rm -f conftest$ac_exeext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6235   (eval $ac_link) 2>&5
6236   ac_status=$?
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240   (eval $ac_try) 2>&5
6241   ac_status=$?
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); }; }; then
6244   ac_cv_func_mmap_fixed_mapped=yes
6245 else
6246   echo "$as_me: program exited with status $ac_status" >&5
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6249
6250 ( exit $ac_status )
6251 ac_cv_func_mmap_fixed_mapped=no
6252 fi
6253 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6254 fi
6255 fi
6256 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6257 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6258 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6259
6260 cat >>confdefs.h <<\_ACEOF
6261 #define HAVE_MMAP 1
6262 _ACEOF
6263
6264 fi
6265 rm -f conftest.mmap
6266
6267 fi
6268
6269 echo "$as_me:$LINENO: checking for working strncmp" >&5
6270 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
6271 if test "${ac_cv_func_strncmp_works+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274   if test "$cross_compiling" = yes; then
6275   ac_cv_func_strncmp_works=no
6276 else
6277   cat >conftest.$ac_ext <<_ACEOF
6278 #line $LINENO "configure"
6279 /* confdefs.h.  */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h.  */
6284
6285 /* Test by Jim Wilson and Kaveh Ghazi.
6286    Check whether strncmp reads past the end of its string parameters. */
6287 #include <sys/types.h>
6288
6289 #ifdef HAVE_FCNTL_H
6290 #include <fcntl.h>
6291 #endif
6292
6293 #ifdef HAVE_SYS_MMAN_H
6294 #include <sys/mman.h>
6295 #endif
6296
6297 #ifndef MAP_ANON
6298 #ifdef MAP_ANONYMOUS
6299 #define MAP_ANON MAP_ANONYMOUS
6300 #else
6301 #define MAP_ANON MAP_FILE
6302 #endif
6303 #endif
6304
6305 #ifndef MAP_FILE
6306 #define MAP_FILE 0
6307 #endif
6308 #ifndef O_RDONLY
6309 #define O_RDONLY 0
6310 #endif
6311
6312 #define MAP_LEN 0x10000
6313
6314 main ()
6315 {
6316 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
6317   char *p;
6318   int dev_zero;
6319
6320   dev_zero = open ("/dev/zero", O_RDONLY);
6321   if (dev_zero < 0)
6322     exit (1);
6323
6324   p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
6325                      MAP_ANON|MAP_PRIVATE, dev_zero, 0);
6326   if (p == (char *)-1)
6327     p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
6328                        MAP_ANON|MAP_PRIVATE, -1, 0);
6329   if (p == (char *)-1)
6330     exit (2);
6331   else
6332     {
6333       char *string = "__si_type_info";
6334       char *q = (char *) p + MAP_LEN - strlen (string) - 2;
6335       char *r = (char *) p + 0xe;
6336
6337       strcpy (q, string);
6338       strcpy (r, string);
6339       strncmp (r, q, 14);
6340     }
6341 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
6342   exit (0);
6343 }
6344
6345 _ACEOF
6346 rm -f conftest$ac_exeext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348   (eval $ac_link) 2>&5
6349   ac_status=$?
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353   (eval $ac_try) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); }; }; then
6357   ac_cv_func_strncmp_works=yes
6358 else
6359   echo "$as_me: program exited with status $ac_status" >&5
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 ( exit $ac_status )
6364 ac_cv_func_strncmp_works=no
6365 fi
6366 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6367 fi
6368 rm -f core core.* *.core
6369 fi
6370 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
6371 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
6372 if test $ac_cv_func_strncmp_works = no ; then
6373   LIBOBJS="$LIBOBJS strncmp.$ac_objext"
6374 fi
6375
6376
6377 # Install a library built with a cross compiler in $(tooldir) rather
6378 # than $(libdir).
6379 if test -z "${with_cross_host}"; then
6380   INSTALL_DEST=libdir
6381 else
6382   INSTALL_DEST=tooldir
6383 fi
6384
6385
6386 # We need multilib support, but only if configuring for the target.
6387                     ac_config_files="$ac_config_files Makefile testsuite/Makefile"
6388           ac_config_commands="$ac_config_commands default"
6389 cat >confcache <<\_ACEOF
6390 # This file is a shell script that caches the results of configure
6391 # tests run on this system so they can be shared between configure
6392 # scripts and configure runs, see configure's option --config-cache.
6393 # It is not useful on other systems.  If it contains results you don't
6394 # want to keep, you may remove or edit it.
6395 #
6396 # config.status only pays attention to the cache file if you give it
6397 # the --recheck option to rerun configure.
6398 #
6399 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6401 # following values.
6402
6403 _ACEOF
6404
6405 # The following way of writing the cache mishandles newlines in values,
6406 # but we know of no workaround that is simple, portable, and efficient.
6407 # So, don't put newlines in cache variables' values.
6408 # Ultrix sh set writes to stderr and can't be redirected directly,
6409 # and sets the high bit in the cache file unless we assign to the vars.
6410 {
6411   (set) 2>&1 |
6412     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6413     *ac_space=\ *)
6414       # `set' does not quote correctly, so add quotes (double-quote
6415       # substitution turns \\\\ into \\, and sed turns \\ into \).
6416       sed -n \
6417         "s/'/'\\\\''/g;
6418           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6419       ;;
6420     *)
6421       # `set' quotes correctly as required by POSIX, so do not add quotes.
6422       sed -n \
6423         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6424       ;;
6425     esac;
6426 } |
6427   sed '
6428      t clear
6429      : clear
6430      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6431      t end
6432      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6433      : end' >>confcache
6434 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6435   if test -w $cache_file; then
6436     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6437     cat confcache >$cache_file
6438   else
6439     echo "not updating unwritable cache $cache_file"
6440   fi
6441 fi
6442 rm -f confcache
6443
6444 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6445 # Let make expand exec_prefix.
6446 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6447
6448 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6449 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6450 # trailing colons and then remove the whole line if VPATH becomes empty
6451 # (actually we leave an empty line to preserve line numbers).
6452 if test "x$srcdir" = x.; then
6453   ac_vpsub='/^[         ]*VPATH[        ]*=/{
6454 s/:*\$(srcdir):*/:/;
6455 s/:*\${srcdir}:*/:/;
6456 s/:*@srcdir@:*/:/;
6457 s/^\([^=]*=[    ]*\):*/\1/;
6458 s/:*$//;
6459 s/^[^=]*=[      ]*$//;
6460 }'
6461 fi
6462
6463 DEFS=-DHAVE_CONFIG_H
6464
6465 ac_libobjs=
6466 ac_ltlibobjs=
6467 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6468   # 1. Remove the extension, and $U if already installed.
6469   ac_i=`echo "$ac_i" |
6470          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6471   # 2. Add them.
6472   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6473   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6474 done
6475 LIBOBJS=$ac_libobjs
6476
6477 LTLIBOBJS=$ac_ltlibobjs
6478
6479
6480
6481 : ${CONFIG_STATUS=./config.status}
6482 ac_clean_files_save=$ac_clean_files
6483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6484 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6485 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6486 cat >$CONFIG_STATUS <<_ACEOF
6487 #! $SHELL
6488 # Generated by $as_me.
6489 # Run this file to recreate the current configuration.
6490 # Compiler output produced by configure, useful for debugging
6491 # configure, is in config.log if it exists.
6492
6493 debug=false
6494 ac_cs_recheck=false
6495 ac_cs_silent=false
6496 SHELL=\${CONFIG_SHELL-$SHELL}
6497 _ACEOF
6498
6499 cat >>$CONFIG_STATUS <<\_ACEOF
6500 ## --------------------- ##
6501 ## M4sh Initialization.  ##
6502 ## --------------------- ##
6503
6504 # Be Bourne compatible
6505 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6506   emulate sh
6507   NULLCMD=:
6508   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6509   # is contrary to our usage.  Disable this feature.
6510   alias -g '${1+"$@"}'='"$@"'
6511 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6512   set -o posix
6513 fi
6514
6515 # Support unset when possible.
6516 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6517   as_unset=unset
6518 else
6519   as_unset=false
6520 fi
6521
6522
6523 # Work around bugs in pre-3.0 UWIN ksh.
6524 $as_unset ENV MAIL MAILPATH
6525 PS1='$ '
6526 PS2='> '
6527 PS4='+ '
6528
6529 # NLS nuisances.
6530 for as_var in \
6531   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6532   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6533   LC_TELEPHONE LC_TIME
6534 do
6535   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6536     eval $as_var=C; export $as_var
6537   else
6538     $as_unset $as_var
6539   fi
6540 done
6541
6542 # Required to use basename.
6543 if expr a : '\(a\)' >/dev/null 2>&1; then
6544   as_expr=expr
6545 else
6546   as_expr=false
6547 fi
6548
6549 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6550   as_basename=basename
6551 else
6552   as_basename=false
6553 fi
6554
6555
6556 # Name of the executable.
6557 as_me=`$as_basename "$0" ||
6558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6559          X"$0" : 'X\(//\)$' \| \
6560          X"$0" : 'X\(/\)$' \| \
6561          .     : '\(.\)' 2>/dev/null ||
6562 echo X/"$0" |
6563     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6564           /^X\/\(\/\/\)$/{ s//\1/; q; }
6565           /^X\/\(\/\).*/{ s//\1/; q; }
6566           s/.*/./; q'`
6567
6568
6569 # PATH needs CR, and LINENO needs CR and PATH.
6570 # Avoid depending upon Character Ranges.
6571 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6572 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6573 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6574 as_cr_digits='0123456789'
6575 as_cr_alnum=$as_cr_Letters$as_cr_digits
6576
6577 # The user is always right.
6578 if test "${PATH_SEPARATOR+set}" != set; then
6579   echo "#! /bin/sh" >conf$$.sh
6580   echo  "exit 0"   >>conf$$.sh
6581   chmod +x conf$$.sh
6582   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6583     PATH_SEPARATOR=';'
6584   else
6585     PATH_SEPARATOR=:
6586   fi
6587   rm -f conf$$.sh
6588 fi
6589
6590
6591   as_lineno_1=$LINENO
6592   as_lineno_2=$LINENO
6593   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6594   test "x$as_lineno_1" != "x$as_lineno_2" &&
6595   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6596   # Find who we are.  Look in the path if we contain no path at all
6597   # relative or not.
6598   case $0 in
6599     *[\\/]* ) as_myself=$0 ;;
6600     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603   IFS=$as_save_IFS
6604   test -z "$as_dir" && as_dir=.
6605   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6606 done
6607
6608        ;;
6609   esac
6610   # We did not find ourselves, most probably we were run as `sh COMMAND'
6611   # in which case we are not to be found in the path.
6612   if test "x$as_myself" = x; then
6613     as_myself=$0
6614   fi
6615   if test ! -f "$as_myself"; then
6616     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6617 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6618    { (exit 1); exit 1; }; }
6619   fi
6620   case $CONFIG_SHELL in
6621   '')
6622     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627   for as_base in sh bash ksh sh5; do
6628          case $as_dir in
6629          /*)
6630            if ("$as_dir/$as_base" -c '
6631   as_lineno_1=$LINENO
6632   as_lineno_2=$LINENO
6633   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6634   test "x$as_lineno_1" != "x$as_lineno_2" &&
6635   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6636              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6637              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6638              CONFIG_SHELL=$as_dir/$as_base
6639              export CONFIG_SHELL
6640              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6641            fi;;
6642          esac
6643        done
6644 done
6645 ;;
6646   esac
6647
6648   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6649   # uniformly replaced by the line number.  The first 'sed' inserts a
6650   # line-number line before each line; the second 'sed' does the real
6651   # work.  The second script uses 'N' to pair each line-number line
6652   # with the numbered line, and appends trailing '-' during
6653   # substitution so that $LINENO is not a special case at line end.
6654   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6655   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6656   sed '=' <$as_myself |
6657     sed '
6658       N
6659       s,$,-,
6660       : loop
6661       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6662       t loop
6663       s,-$,,
6664       s,^['$as_cr_digits']*\n,,
6665     ' >$as_me.lineno &&
6666   chmod +x $as_me.lineno ||
6667     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6668 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6669    { (exit 1); exit 1; }; }
6670
6671   # Don't try to exec as it changes $[0], causing all sort of problems
6672   # (the dirname of $[0] is not the place where we might find the
6673   # original and so on.  Autoconf is especially sensible to this).
6674   . ./$as_me.lineno
6675   # Exit status is that of the last command.
6676   exit
6677 }
6678
6679
6680 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6681   *c*,-n*) ECHO_N= ECHO_C='
6682 ' ECHO_T='      ' ;;
6683   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6684   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6685 esac
6686
6687 if expr a : '\(a\)' >/dev/null 2>&1; then
6688   as_expr=expr
6689 else
6690   as_expr=false
6691 fi
6692
6693 rm -f conf$$ conf$$.exe conf$$.file
6694 echo >conf$$.file
6695 if ln -s conf$$.file conf$$ 2>/dev/null; then
6696   # We could just check for DJGPP; but this test a) works b) is more generic
6697   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6698   if test -f conf$$.exe; then
6699     # Don't use ln at all; we don't have any links
6700     as_ln_s='cp -p'
6701   else
6702     as_ln_s='ln -s'
6703   fi
6704 elif ln conf$$.file conf$$ 2>/dev/null; then
6705   as_ln_s=ln
6706 else
6707   as_ln_s='cp -p'
6708 fi
6709 rm -f conf$$ conf$$.exe conf$$.file
6710
6711 if mkdir -p . 2>/dev/null; then
6712   as_mkdir_p=:
6713 else
6714   as_mkdir_p=false
6715 fi
6716
6717 as_executable_p="test -f"
6718
6719 # Sed expression to map a string onto a valid CPP name.
6720 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6721
6722 # Sed expression to map a string onto a valid variable name.
6723 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6724
6725
6726 # IFS
6727 # We need space, tab and new line, in precisely that order.
6728 as_nl='
6729 '
6730 IFS="   $as_nl"
6731
6732 # CDPATH.
6733 $as_unset CDPATH
6734
6735 exec 6>&1
6736
6737 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6738 # report actual input values of CONFIG_FILES etc. instead of their
6739 # values after options handling.  Logging --version etc. is OK.
6740 exec 5>>config.log
6741 {
6742   echo
6743   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6744 ## Running $as_me. ##
6745 _ASBOX
6746 } >&5
6747 cat >&5 <<_CSEOF
6748
6749 This file was extended by $as_me, which was
6750 generated by GNU Autoconf 2.57.  Invocation command line was
6751
6752   CONFIG_FILES    = $CONFIG_FILES
6753   CONFIG_HEADERS  = $CONFIG_HEADERS
6754   CONFIG_LINKS    = $CONFIG_LINKS
6755   CONFIG_COMMANDS = $CONFIG_COMMANDS
6756   $ $0 $@
6757
6758 _CSEOF
6759 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6760 echo >&5
6761 _ACEOF
6762
6763 # Files that config.status was made for.
6764 if test -n "$ac_config_files"; then
6765   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6766 fi
6767
6768 if test -n "$ac_config_headers"; then
6769   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6770 fi
6771
6772 if test -n "$ac_config_links"; then
6773   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6774 fi
6775
6776 if test -n "$ac_config_commands"; then
6777   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6778 fi
6779
6780 cat >>$CONFIG_STATUS <<\_ACEOF
6781
6782 ac_cs_usage="\
6783 \`$as_me' instantiates files from templates according to the
6784 current configuration.
6785
6786 Usage: $0 [OPTIONS] [FILE]...
6787
6788   -h, --help       print this help, then exit
6789   -V, --version    print version number, then exit
6790   -q, --quiet      do not print progress messages
6791   -d, --debug      don't remove temporary files
6792       --recheck    update $as_me by reconfiguring in the same conditions
6793   --file=FILE[:TEMPLATE]
6794                    instantiate the configuration file FILE
6795   --header=FILE[:TEMPLATE]
6796                    instantiate the configuration header FILE
6797
6798 Configuration files:
6799 $config_files
6800
6801 Configuration headers:
6802 $config_headers
6803
6804 Configuration commands:
6805 $config_commands
6806
6807 Report bugs to <bug-autoconf@gnu.org>."
6808 _ACEOF
6809
6810 cat >>$CONFIG_STATUS <<_ACEOF
6811 ac_cs_version="\\
6812 config.status
6813 configured by $0, generated by GNU Autoconf 2.57,
6814   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6815
6816 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6817 Free Software Foundation, Inc.
6818 This config.status script is free software; the Free Software Foundation
6819 gives unlimited permission to copy, distribute and modify it."
6820 srcdir=$srcdir
6821 INSTALL="$INSTALL"
6822 _ACEOF
6823
6824 cat >>$CONFIG_STATUS <<\_ACEOF
6825 # If no file are specified by the user, then we need to provide default
6826 # value.  By we need to know if files were specified by the user.
6827 ac_need_defaults=:
6828 while test $# != 0
6829 do
6830   case $1 in
6831   --*=*)
6832     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6833     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6834     ac_shift=:
6835     ;;
6836   -*)
6837     ac_option=$1
6838     ac_optarg=$2
6839     ac_shift=shift
6840     ;;
6841   *) # This is not an option, so the user has probably given explicit
6842      # arguments.
6843      ac_option=$1
6844      ac_need_defaults=false;;
6845   esac
6846
6847   case $ac_option in
6848   # Handling of the options.
6849 _ACEOF
6850 cat >>$CONFIG_STATUS <<\_ACEOF
6851   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6852     ac_cs_recheck=: ;;
6853   --version | --vers* | -V )
6854     echo "$ac_cs_version"; exit 0 ;;
6855   --he | --h)
6856     # Conflict between --help and --header
6857     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6858 Try \`$0 --help' for more information." >&5
6859 echo "$as_me: error: ambiguous option: $1
6860 Try \`$0 --help' for more information." >&2;}
6861    { (exit 1); exit 1; }; };;
6862   --help | --hel | -h )
6863     echo "$ac_cs_usage"; exit 0 ;;
6864   --debug | --d* | -d )
6865     debug=: ;;
6866   --file | --fil | --fi | --f )
6867     $ac_shift
6868     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6869     ac_need_defaults=false;;
6870   --header | --heade | --head | --hea )
6871     $ac_shift
6872     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6873     ac_need_defaults=false;;
6874   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6875   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6876     ac_cs_silent=: ;;
6877
6878   # This is an error.
6879   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6880 Try \`$0 --help' for more information." >&5
6881 echo "$as_me: error: unrecognized option: $1
6882 Try \`$0 --help' for more information." >&2;}
6883    { (exit 1); exit 1; }; } ;;
6884
6885   *) ac_config_targets="$ac_config_targets $1" ;;
6886
6887   esac
6888   shift
6889 done
6890
6891 ac_configure_extra_args=
6892
6893 if $ac_cs_silent; then
6894   exec 6>/dev/null
6895   ac_configure_extra_args="$ac_configure_extra_args --silent"
6896 fi
6897
6898 _ACEOF
6899 cat >>$CONFIG_STATUS <<_ACEOF
6900 if \$ac_cs_recheck; then
6901   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6902   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6903 fi
6904
6905 _ACEOF
6906
6907 cat >>$CONFIG_STATUS <<_ACEOF
6908 #
6909 # INIT-COMMANDS section.
6910 #
6911
6912 srcdir=${srcdir}
6913 host=${host}
6914 target=${target}
6915 with_target_subdir=${with_target_subdir}
6916 with_build_subdir=${with_build_subdir}
6917 with_multisubdir=${with_multisubdir}
6918 ac_configure_args="--enable-multilib ${ac_configure_args}"
6919 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6920 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
6921 libiberty_topdir=${libiberty_topdir}
6922
6923
6924 _ACEOF
6925
6926
6927
6928 cat >>$CONFIG_STATUS <<\_ACEOF
6929 for ac_config_target in $ac_config_targets
6930 do
6931   case "$ac_config_target" in
6932   # Handling of arguments.
6933   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6934   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
6935   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6936   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6937   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6938 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6939    { (exit 1); exit 1; }; };;
6940   esac
6941 done
6942
6943 # If the user did not use the arguments to specify the items to instantiate,
6944 # then the envvar interface is used.  Set only those that are not.
6945 # We use the long form for the default assignment because of an extremely
6946 # bizarre bug on SunOS 4.1.3.
6947 if $ac_need_defaults; then
6948   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6949   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6950   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6951 fi
6952
6953 # Have a temporary directory for convenience.  Make it in the build tree
6954 # simply because there is no reason to put it here, and in addition,
6955 # creating and moving files from /tmp can sometimes cause problems.
6956 # Create a temporary directory, and hook for its removal unless debugging.
6957 $debug ||
6958 {
6959   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6960   trap '{ (exit 1); exit 1; }' 1 2 13 15
6961 }
6962
6963 # Create a (secure) tmp directory for tmp files.
6964
6965 {
6966   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6967   test -n "$tmp" && test -d "$tmp"
6968 }  ||
6969 {
6970   tmp=./confstat$$-$RANDOM
6971   (umask 077 && mkdir $tmp)
6972 } ||
6973 {
6974    echo "$me: cannot create a temporary directory in ." >&2
6975    { (exit 1); exit 1; }
6976 }
6977
6978 _ACEOF
6979
6980 cat >>$CONFIG_STATUS <<_ACEOF
6981
6982 #
6983 # CONFIG_FILES section.
6984 #
6985
6986 # No need to generate the scripts if there are no CONFIG_FILES.
6987 # This happens for instance when ./config.status config.h
6988 if test -n "\$CONFIG_FILES"; then
6989   # Protect against being on the right side of a sed subst in config.status.
6990   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6991    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6992 s,@SHELL@,$SHELL,;t t
6993 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6994 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6995 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6996 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6997 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6998 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6999 s,@exec_prefix@,$exec_prefix,;t t
7000 s,@prefix@,$prefix,;t t
7001 s,@program_transform_name@,$program_transform_name,;t t
7002 s,@bindir@,$bindir,;t t
7003 s,@sbindir@,$sbindir,;t t
7004 s,@libexecdir@,$libexecdir,;t t
7005 s,@datadir@,$datadir,;t t
7006 s,@sysconfdir@,$sysconfdir,;t t
7007 s,@sharedstatedir@,$sharedstatedir,;t t
7008 s,@localstatedir@,$localstatedir,;t t
7009 s,@libdir@,$libdir,;t t
7010 s,@includedir@,$includedir,;t t
7011 s,@oldincludedir@,$oldincludedir,;t t
7012 s,@infodir@,$infodir,;t t
7013 s,@mandir@,$mandir,;t t
7014 s,@build_alias@,$build_alias,;t t
7015 s,@host_alias@,$host_alias,;t t
7016 s,@target_alias@,$target_alias,;t t
7017 s,@DEFS@,$DEFS,;t t
7018 s,@ECHO_C@,$ECHO_C,;t t
7019 s,@ECHO_N@,$ECHO_N,;t t
7020 s,@ECHO_T@,$ECHO_T,;t t
7021 s,@LIBS@,$LIBS,;t t
7022 s,@libiberty_topdir@,$libiberty_topdir,;t t
7023 s,@MAINT@,$MAINT,;t t
7024 s,@NOTMAINT@,$NOTMAINT,;t t
7025 s,@MAKEINFO@,$MAKEINFO,;t t
7026 s,@BUILD_INFO@,$BUILD_INFO,;t t
7027 s,@PERL@,$PERL,;t t
7028 s,@HAVE_PERL@,$HAVE_PERL,;t t
7029 s,@build@,$build,;t t
7030 s,@build_cpu@,$build_cpu,;t t
7031 s,@build_vendor@,$build_vendor,;t t
7032 s,@build_os@,$build_os,;t t
7033 s,@host@,$host,;t t
7034 s,@host_cpu@,$host_cpu,;t t
7035 s,@host_vendor@,$host_vendor,;t t
7036 s,@host_os@,$host_os,;t t
7037 s,@AR@,$AR,;t t
7038 s,@ac_ct_AR@,$ac_ct_AR,;t t
7039 s,@RANLIB@,$RANLIB,;t t
7040 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7041 s,@CC@,$CC,;t t
7042 s,@CFLAGS@,$CFLAGS,;t t
7043 s,@LDFLAGS@,$LDFLAGS,;t t
7044 s,@CPPFLAGS@,$CPPFLAGS,;t t
7045 s,@ac_ct_CC@,$ac_ct_CC,;t t
7046 s,@EXEEXT@,$EXEEXT,;t t
7047 s,@OBJEXT@,$OBJEXT,;t t
7048 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
7049 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
7050 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
7051 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7052 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7053 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7054 s,@CPP@,$CPP,;t t
7055 s,@EGREP@,$EGREP,;t t
7056 s,@LIBOBJS@,$LIBOBJS,;t t
7057 s,@CHECK@,$CHECK,;t t
7058 s,@target_header_dir@,$target_header_dir,;t t
7059 s,@pexecute@,$pexecute,;t t
7060 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
7061 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7062 /@host_makefile_frag@/r $host_makefile_frag
7063 s,@host_makefile_frag@,,;t t
7064 CEOF
7065
7066 _ACEOF
7067
7068   cat >>$CONFIG_STATUS <<\_ACEOF
7069   # Split the substitutions into bite-sized pieces for seds with
7070   # small command number limits, like on Digital OSF/1 and HP-UX.
7071   ac_max_sed_lines=48
7072   ac_sed_frag=1 # Number of current file.
7073   ac_beg=1 # First line for current file.
7074   ac_end=$ac_max_sed_lines # Line after last line for current file.
7075   ac_more_lines=:
7076   ac_sed_cmds=
7077   while $ac_more_lines; do
7078     if test $ac_beg -gt 1; then
7079       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7080     else
7081       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7082     fi
7083     if test ! -s $tmp/subs.frag; then
7084       ac_more_lines=false
7085     else
7086       # The purpose of the label and of the branching condition is to
7087       # speed up the sed processing (if there are no `@' at all, there
7088       # is no need to browse any of the substitutions).
7089       # These are the two extra sed commands mentioned above.
7090       (echo ':t
7091   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7092       if test -z "$ac_sed_cmds"; then
7093         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7094       else
7095         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7096       fi
7097       ac_sed_frag=`expr $ac_sed_frag + 1`
7098       ac_beg=$ac_end
7099       ac_end=`expr $ac_end + $ac_max_sed_lines`
7100     fi
7101   done
7102   if test -z "$ac_sed_cmds"; then
7103     ac_sed_cmds=cat
7104   fi
7105 fi # test -n "$CONFIG_FILES"
7106
7107 _ACEOF
7108 cat >>$CONFIG_STATUS <<\_ACEOF
7109 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7110   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7111   case $ac_file in
7112   - | *:- | *:-:* ) # input from stdin
7113         cat >$tmp/stdin
7114         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7115         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7116   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7117         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7118   * )   ac_file_in=$ac_file.in ;;
7119   esac
7120
7121   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7122   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7124          X"$ac_file" : 'X\(//\)[^/]' \| \
7125          X"$ac_file" : 'X\(//\)$' \| \
7126          X"$ac_file" : 'X\(/\)' \| \
7127          .     : '\(.\)' 2>/dev/null ||
7128 echo X"$ac_file" |
7129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7130           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7131           /^X\(\/\/\)$/{ s//\1/; q; }
7132           /^X\(\/\).*/{ s//\1/; q; }
7133           s/.*/./; q'`
7134   { if $as_mkdir_p; then
7135     mkdir -p "$ac_dir"
7136   else
7137     as_dir="$ac_dir"
7138     as_dirs=
7139     while test ! -d "$as_dir"; do
7140       as_dirs="$as_dir $as_dirs"
7141       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7143          X"$as_dir" : 'X\(//\)[^/]' \| \
7144          X"$as_dir" : 'X\(//\)$' \| \
7145          X"$as_dir" : 'X\(/\)' \| \
7146          .     : '\(.\)' 2>/dev/null ||
7147 echo X"$as_dir" |
7148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7149           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7150           /^X\(\/\/\)$/{ s//\1/; q; }
7151           /^X\(\/\).*/{ s//\1/; q; }
7152           s/.*/./; q'`
7153     done
7154     test ! -n "$as_dirs" || mkdir $as_dirs
7155   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7156 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7157    { (exit 1); exit 1; }; }; }
7158
7159   ac_builddir=.
7160
7161 if test "$ac_dir" != .; then
7162   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7163   # A "../" for each directory in $ac_dir_suffix.
7164   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7165 else
7166   ac_dir_suffix= ac_top_builddir=
7167 fi
7168
7169 case $srcdir in
7170   .)  # No --srcdir option.  We are building in place.
7171     ac_srcdir=.
7172     if test -z "$ac_top_builddir"; then
7173        ac_top_srcdir=.
7174     else
7175        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7176     fi ;;
7177   [\\/]* | ?:[\\/]* )  # Absolute path.
7178     ac_srcdir=$srcdir$ac_dir_suffix;
7179     ac_top_srcdir=$srcdir ;;
7180   *) # Relative path.
7181     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7182     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7183 esac
7184 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7185 # absolute.
7186 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7187 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7188 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7189 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7190
7191
7192   case $INSTALL in
7193   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7194   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7195   esac
7196
7197   if test x"$ac_file" != x-; then
7198     { echo "$as_me:$LINENO: creating $ac_file" >&5
7199 echo "$as_me: creating $ac_file" >&6;}
7200     rm -f "$ac_file"
7201   fi
7202   # Let's still pretend it is `configure' which instantiates (i.e., don't
7203   # use $as_me), people would be surprised to read:
7204   #    /* config.h.  Generated by config.status.  */
7205   if test x"$ac_file" = x-; then
7206     configure_input=
7207   else
7208     configure_input="$ac_file.  "
7209   fi
7210   configure_input=$configure_input"Generated from `echo $ac_file_in |
7211                                      sed 's,.*/,,'` by configure."
7212
7213   # First look for the input files in the build tree, otherwise in the
7214   # src tree.
7215   ac_file_inputs=`IFS=:
7216     for f in $ac_file_in; do
7217       case $f in
7218       -) echo $tmp/stdin ;;
7219       [\\/$]*)
7220          # Absolute (can't be DOS-style, as IFS=:)
7221          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7222 echo "$as_me: error: cannot find input file: $f" >&2;}
7223    { (exit 1); exit 1; }; }
7224          echo $f;;
7225       *) # Relative
7226          if test -f "$f"; then
7227            # Build tree
7228            echo $f
7229          elif test -f "$srcdir/$f"; then
7230            # Source tree
7231            echo $srcdir/$f
7232          else
7233            # /dev/null tree
7234            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7235 echo "$as_me: error: cannot find input file: $f" >&2;}
7236    { (exit 1); exit 1; }; }
7237          fi;;
7238       esac
7239     done` || { (exit 1); exit 1; }
7240 _ACEOF
7241 cat >>$CONFIG_STATUS <<_ACEOF
7242   sed "$ac_vpsub
7243 $extrasub
7244 _ACEOF
7245 cat >>$CONFIG_STATUS <<\_ACEOF
7246 :t
7247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7248 s,@configure_input@,$configure_input,;t t
7249 s,@srcdir@,$ac_srcdir,;t t
7250 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7251 s,@top_srcdir@,$ac_top_srcdir,;t t
7252 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7253 s,@builddir@,$ac_builddir,;t t
7254 s,@abs_builddir@,$ac_abs_builddir,;t t
7255 s,@top_builddir@,$ac_top_builddir,;t t
7256 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7257 s,@INSTALL@,$ac_INSTALL,;t t
7258 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7259   rm -f $tmp/stdin
7260   if test x"$ac_file" != x-; then
7261     mv $tmp/out $ac_file
7262   else
7263     cat $tmp/out
7264     rm -f $tmp/out
7265   fi
7266
7267 done
7268 _ACEOF
7269 cat >>$CONFIG_STATUS <<\_ACEOF
7270
7271 #
7272 # CONFIG_HEADER section.
7273 #
7274
7275 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7276 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7277 #
7278 # ac_d sets the value in "#define NAME VALUE" lines.
7279 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7280 ac_dB='[        ].*$,\1#\2'
7281 ac_dC=' '
7282 ac_dD=',;t'
7283 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7284 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7285 ac_uB='$,\1#\2define\3'
7286 ac_uC=' '
7287 ac_uD=',;t'
7288
7289 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7290   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7291   case $ac_file in
7292   - | *:- | *:-:* ) # input from stdin
7293         cat >$tmp/stdin
7294         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7295         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7296   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7297         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7298   * )   ac_file_in=$ac_file.in ;;
7299   esac
7300
7301   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7302 echo "$as_me: creating $ac_file" >&6;}
7303
7304   # First look for the input files in the build tree, otherwise in the
7305   # src tree.
7306   ac_file_inputs=`IFS=:
7307     for f in $ac_file_in; do
7308       case $f in
7309       -) echo $tmp/stdin ;;
7310       [\\/$]*)
7311          # Absolute (can't be DOS-style, as IFS=:)
7312          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7313 echo "$as_me: error: cannot find input file: $f" >&2;}
7314    { (exit 1); exit 1; }; }
7315          echo $f;;
7316       *) # Relative
7317          if test -f "$f"; then
7318            # Build tree
7319            echo $f
7320          elif test -f "$srcdir/$f"; then
7321            # Source tree
7322            echo $srcdir/$f
7323          else
7324            # /dev/null tree
7325            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7326 echo "$as_me: error: cannot find input file: $f" >&2;}
7327    { (exit 1); exit 1; }; }
7328          fi;;
7329       esac
7330     done` || { (exit 1); exit 1; }
7331   # Remove the trailing spaces.
7332   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7333
7334 _ACEOF
7335
7336 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7337 # `conftest.undefs', that substitutes the proper values into
7338 # config.h.in to produce config.h.  The first handles `#define'
7339 # templates, and the second `#undef' templates.
7340 # And first: Protect against being on the right side of a sed subst in
7341 # config.status.  Protect against being in an unquoted here document
7342 # in config.status.
7343 rm -f conftest.defines conftest.undefs
7344 # Using a here document instead of a string reduces the quoting nightmare.
7345 # Putting comments in sed scripts is not portable.
7346 #
7347 # `end' is used to avoid that the second main sed command (meant for
7348 # 0-ary CPP macros) applies to n-ary macro definitions.
7349 # See the Autoconf documentation for `clear'.
7350 cat >confdef2sed.sed <<\_ACEOF
7351 s/[\\&,]/\\&/g
7352 s,[\\$`],\\&,g
7353 t clear
7354 : clear
7355 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7356 t end
7357 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7358 : end
7359 _ACEOF
7360 # If some macros were called several times there might be several times
7361 # the same #defines, which is useless.  Nevertheless, we may not want to
7362 # sort them, since we want the *last* AC-DEFINE to be honored.
7363 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7364 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7365 rm -f confdef2sed.sed
7366
7367 # This sed command replaces #undef with comments.  This is necessary, for
7368 # example, in the case of _POSIX_SOURCE, which is predefined and required
7369 # on some systems where configure will not decide to define it.
7370 cat >>conftest.undefs <<\_ACEOF
7371 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7372 _ACEOF
7373
7374 # Break up conftest.defines because some shells have a limit on the size
7375 # of here documents, and old seds have small limits too (100 cmds).
7376 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7377 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7378 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7379 echo '  :' >>$CONFIG_STATUS
7380 rm -f conftest.tail
7381 while grep . conftest.defines >/dev/null
7382 do
7383   # Write a limited-size here document to $tmp/defines.sed.
7384   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7385   # Speed up: don't consider the non `#define' lines.
7386   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
7387   # Work around the forget-to-reset-the-flag bug.
7388   echo 't clr' >>$CONFIG_STATUS
7389   echo ': clr' >>$CONFIG_STATUS
7390   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7391   echo 'CEOF
7392   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7393   rm -f $tmp/in
7394   mv $tmp/out $tmp/in
7395 ' >>$CONFIG_STATUS
7396   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7397   rm -f conftest.defines
7398   mv conftest.tail conftest.defines
7399 done
7400 rm -f conftest.defines
7401 echo '  fi # grep' >>$CONFIG_STATUS
7402 echo >>$CONFIG_STATUS
7403
7404 # Break up conftest.undefs because some shells have a limit on the size
7405 # of here documents, and old seds have small limits too (100 cmds).
7406 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7407 rm -f conftest.tail
7408 while grep . conftest.undefs >/dev/null
7409 do
7410   # Write a limited-size here document to $tmp/undefs.sed.
7411   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7412   # Speed up: don't consider the non `#undef'
7413   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7414   # Work around the forget-to-reset-the-flag bug.
7415   echo 't clr' >>$CONFIG_STATUS
7416   echo ': clr' >>$CONFIG_STATUS
7417   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7418   echo 'CEOF
7419   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7420   rm -f $tmp/in
7421   mv $tmp/out $tmp/in
7422 ' >>$CONFIG_STATUS
7423   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7424   rm -f conftest.undefs
7425   mv conftest.tail conftest.undefs
7426 done
7427 rm -f conftest.undefs
7428
7429 cat >>$CONFIG_STATUS <<\_ACEOF
7430   # Let's still pretend it is `configure' which instantiates (i.e., don't
7431   # use $as_me), people would be surprised to read:
7432   #    /* config.h.  Generated by config.status.  */
7433   if test x"$ac_file" = x-; then
7434     echo "/* Generated by configure.  */" >$tmp/config.h
7435   else
7436     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7437   fi
7438   cat $tmp/in >>$tmp/config.h
7439   rm -f $tmp/in
7440   if test x"$ac_file" != x-; then
7441     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7442       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7443 echo "$as_me: $ac_file is unchanged" >&6;}
7444     else
7445       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7447          X"$ac_file" : 'X\(//\)[^/]' \| \
7448          X"$ac_file" : 'X\(//\)$' \| \
7449          X"$ac_file" : 'X\(/\)' \| \
7450          .     : '\(.\)' 2>/dev/null ||
7451 echo X"$ac_file" |
7452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7453           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7454           /^X\(\/\/\)$/{ s//\1/; q; }
7455           /^X\(\/\).*/{ s//\1/; q; }
7456           s/.*/./; q'`
7457       { if $as_mkdir_p; then
7458     mkdir -p "$ac_dir"
7459   else
7460     as_dir="$ac_dir"
7461     as_dirs=
7462     while test ! -d "$as_dir"; do
7463       as_dirs="$as_dir $as_dirs"
7464       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7465 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7466          X"$as_dir" : 'X\(//\)[^/]' \| \
7467          X"$as_dir" : 'X\(//\)$' \| \
7468          X"$as_dir" : 'X\(/\)' \| \
7469          .     : '\(.\)' 2>/dev/null ||
7470 echo X"$as_dir" |
7471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7472           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7473           /^X\(\/\/\)$/{ s//\1/; q; }
7474           /^X\(\/\).*/{ s//\1/; q; }
7475           s/.*/./; q'`
7476     done
7477     test ! -n "$as_dirs" || mkdir $as_dirs
7478   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7479 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7480    { (exit 1); exit 1; }; }; }
7481
7482       rm -f $ac_file
7483       mv $tmp/config.h $ac_file
7484     fi
7485   else
7486     cat $tmp/config.h
7487     rm -f $tmp/config.h
7488   fi
7489 done
7490 _ACEOF
7491 cat >>$CONFIG_STATUS <<\_ACEOF
7492
7493 #
7494 # CONFIG_COMMANDS section.
7495 #
7496 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7497   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7498   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7499   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7500 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7501          X"$ac_dest" : 'X\(//\)[^/]' \| \
7502          X"$ac_dest" : 'X\(//\)$' \| \
7503          X"$ac_dest" : 'X\(/\)' \| \
7504          .     : '\(.\)' 2>/dev/null ||
7505 echo X"$ac_dest" |
7506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7508           /^X\(\/\/\)$/{ s//\1/; q; }
7509           /^X\(\/\).*/{ s//\1/; q; }
7510           s/.*/./; q'`
7511   ac_builddir=.
7512
7513 if test "$ac_dir" != .; then
7514   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7515   # A "../" for each directory in $ac_dir_suffix.
7516   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7517 else
7518   ac_dir_suffix= ac_top_builddir=
7519 fi
7520
7521 case $srcdir in
7522   .)  # No --srcdir option.  We are building in place.
7523     ac_srcdir=.
7524     if test -z "$ac_top_builddir"; then
7525        ac_top_srcdir=.
7526     else
7527        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7528     fi ;;
7529   [\\/]* | ?:[\\/]* )  # Absolute path.
7530     ac_srcdir=$srcdir$ac_dir_suffix;
7531     ac_top_srcdir=$srcdir ;;
7532   *) # Relative path.
7533     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7534     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7535 esac
7536 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7537 # absolute.
7538 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7539 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7540 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7541 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7542
7543
7544   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7545 echo "$as_me: executing $ac_dest commands" >&6;}
7546   case $ac_dest in
7547     default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7548 if test -n "$CONFIG_FILES"; then
7549   if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
7550     # FIXME: We shouldn't need to set ac_file
7551     ac_file=Makefile
7552     LD="${ORIGINAL_LD_FOR_MULTILIBS}"
7553     . ${libiberty_topdir}/config-ml.in
7554   fi
7555 fi ;;
7556   esac
7557 done
7558 _ACEOF
7559
7560 cat >>$CONFIG_STATUS <<\_ACEOF
7561
7562 { (exit 0); exit 0; }
7563 _ACEOF
7564 chmod +x $CONFIG_STATUS
7565 ac_clean_files=$ac_clean_files_save
7566
7567
7568 # configure is writing to config.log, and then calls config.status.
7569 # config.status does its own redirection, appending to config.log.
7570 # Unfortunately, on DOS this fails, as config.log is still kept open
7571 # by configure, so config.status won't be able to write to it; its
7572 # output is simply discarded.  So we exec the FD to /dev/null,
7573 # effectively closing config.log, so it can be properly (re)opened and
7574 # appended to by config.status.  When coming back to configure, we
7575 # need to make the FD available again.
7576 if test "$no_create" != yes; then
7577   ac_cs_success=:
7578   ac_config_status_args=
7579   test "$silent" = yes &&
7580     ac_config_status_args="$ac_config_status_args --quiet"
7581   exec 5>/dev/null
7582   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7583   exec 5>>config.log
7584   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7585   # would make configure fail if this is the last instruction.
7586   $ac_cs_success || { (exit 1); exit 1; }
7587 fi
7588