323c74e47dd1508ff53d9d631e0670c453a2bb21
[fw/sdcc] / support / cpp2 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
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 LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43   else
44     $as_unset $as_var
45   fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50   as_expr=expr
51 else
52   as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56   as_basename=basename
57 else
58   as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65          X"$0" : 'X\(//\)$' \| \
66          X"$0" : 'X\(/\)$' \| \
67          .     : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70           /^X\/\(\/\/\)$/{ s//\1/; q; }
71           /^X\/\(\/\).*/{ s//\1/; q; }
72           s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216   as_mkdir_p=:
217 else
218   as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS="   $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete.  It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
269
270 ac_unique_file="cppmain.c"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
273 #include <stdio.h>
274 #if HAVE_SYS_TYPES_H
275 # include <sys/types.h>
276 #endif
277 #if HAVE_SYS_STAT_H
278 # include <sys/stat.h>
279 #endif
280 #if STDC_HEADERS
281 # include <stdlib.h>
282 # include <stddef.h>
283 #else
284 # if HAVE_STDLIB_H
285 #  include <stdlib.h>
286 # endif
287 #endif
288 #if HAVE_STRING_H
289 # if !STDC_HEADERS && HAVE_MEMORY_H
290 #  include <memory.h>
291 # endif
292 # include <string.h>
293 #endif
294 #if HAVE_STRINGS_H
295 # include <strings.h>
296 #endif
297 #if HAVE_INTTYPES_H
298 # include <inttypes.h>
299 #else
300 # if HAVE_STDINT_H
301 #  include <stdint.h>
302 # endif
303 #endif
304 #if HAVE_UNISTD_H
305 # include <unistd.h>
306 #endif"
307
308 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP warn_cflags SET_MAKE LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA have_mktemp_command STRIP manext objext PACKAGE VERSION MAINT build_canonical host_canonical target_subdir objdir all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_file build_xm_defines check_languages dep_host_xmake_file dep_tmake_file extra_c_flags extra_headers_list extra_objs extra_parts extra_passes extra_programs gcc_config_arguments gcc_version gcc_version_full gcc_version_trigger host_exeext host_extra_gcc_objs install lang_tree_files local_prefix md_file out_file out_object_file symbolic_link thread_file c_target_objs LIBOBJS LTLIBOBJS'
309 ac_subst_files=''
310
311 # Initialize some variables set by options.
312 ac_init_help=
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
316 cache_file=/dev/null
317 exec_prefix=NONE
318 no_create=
319 no_recursion=
320 prefix=NONE
321 program_prefix=NONE
322 program_suffix=NONE
323 program_transform_name=s,x,x,
324 silent=
325 site=
326 srcdir=
327 verbose=
328 x_includes=NONE
329 x_libraries=NONE
330
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
348
349 ac_prev=
350 for ac_option
351 do
352   # If the previous option needs an argument, assign it.
353   if test -n "$ac_prev"; then
354     eval "$ac_prev=\$ac_option"
355     ac_prev=
356     continue
357   fi
358
359   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
360
361   # Accept the important Cygnus configure options, so we can diagnose typos.
362
363   case $ac_option in
364
365   -bindir | --bindir | --bindi | --bind | --bin | --bi)
366     ac_prev=bindir ;;
367   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368     bindir=$ac_optarg ;;
369
370   -build | --build | --buil | --bui | --bu)
371     ac_prev=build_alias ;;
372   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373     build_alias=$ac_optarg ;;
374
375   -cache-file | --cache-file | --cache-fil | --cache-fi \
376   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377     ac_prev=cache_file ;;
378   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380     cache_file=$ac_optarg ;;
381
382   --config-cache | -C)
383     cache_file=config.cache ;;
384
385   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386     ac_prev=datadir ;;
387   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388   | --da=*)
389     datadir=$ac_optarg ;;
390
391   -disable-* | --disable-*)
392     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393     # Reject names that are not valid shell variable names.
394     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396    { (exit 1); exit 1; }; }
397     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398     eval "enable_$ac_feature=no" ;;
399
400   -enable-* | --enable-*)
401     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402     # Reject names that are not valid shell variable names.
403     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405    { (exit 1); exit 1; }; }
406     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407     case $ac_option in
408       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
409       *) ac_optarg=yes ;;
410     esac
411     eval "enable_$ac_feature='$ac_optarg'" ;;
412
413   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415   | --exec | --exe | --ex)
416     ac_prev=exec_prefix ;;
417   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419   | --exec=* | --exe=* | --ex=*)
420     exec_prefix=$ac_optarg ;;
421
422   -gas | --gas | --ga | --g)
423     # Obsolete; use --with-gas.
424     with_gas=yes ;;
425
426   -help | --help | --hel | --he | -h)
427     ac_init_help=long ;;
428   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429     ac_init_help=recursive ;;
430   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431     ac_init_help=short ;;
432
433   -host | --host | --hos | --ho)
434     ac_prev=host_alias ;;
435   -host=* | --host=* | --hos=* | --ho=*)
436     host_alias=$ac_optarg ;;
437
438   -includedir | --includedir | --includedi | --included | --include \
439   | --includ | --inclu | --incl | --inc)
440     ac_prev=includedir ;;
441   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442   | --includ=* | --inclu=* | --incl=* | --inc=*)
443     includedir=$ac_optarg ;;
444
445   -infodir | --infodir | --infodi | --infod | --info | --inf)
446     ac_prev=infodir ;;
447   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448     infodir=$ac_optarg ;;
449
450   -libdir | --libdir | --libdi | --libd)
451     ac_prev=libdir ;;
452   -libdir=* | --libdir=* | --libdi=* | --libd=*)
453     libdir=$ac_optarg ;;
454
455   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456   | --libexe | --libex | --libe)
457     ac_prev=libexecdir ;;
458   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459   | --libexe=* | --libex=* | --libe=*)
460     libexecdir=$ac_optarg ;;
461
462   -localstatedir | --localstatedir | --localstatedi | --localstated \
463   | --localstate | --localstat | --localsta | --localst \
464   | --locals | --local | --loca | --loc | --lo)
465     ac_prev=localstatedir ;;
466   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469     localstatedir=$ac_optarg ;;
470
471   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472     ac_prev=mandir ;;
473   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474     mandir=$ac_optarg ;;
475
476   -nfp | --nfp | --nf)
477     # Obsolete; use --without-fp.
478     with_fp=no ;;
479
480   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481   | --no-cr | --no-c | -n)
482     no_create=yes ;;
483
484   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486     no_recursion=yes ;;
487
488   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490   | --oldin | --oldi | --old | --ol | --o)
491     ac_prev=oldincludedir ;;
492   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495     oldincludedir=$ac_optarg ;;
496
497   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498     ac_prev=prefix ;;
499   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
500     prefix=$ac_optarg ;;
501
502   -program-prefix | --program-prefix | --program-prefi | --program-pref \
503   | --program-pre | --program-pr | --program-p)
504     ac_prev=program_prefix ;;
505   -program-prefix=* | --program-prefix=* | --program-prefi=* \
506   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507     program_prefix=$ac_optarg ;;
508
509   -program-suffix | --program-suffix | --program-suffi | --program-suff \
510   | --program-suf | --program-su | --program-s)
511     ac_prev=program_suffix ;;
512   -program-suffix=* | --program-suffix=* | --program-suffi=* \
513   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514     program_suffix=$ac_optarg ;;
515
516   -program-transform-name | --program-transform-name \
517   | --program-transform-nam | --program-transform-na \
518   | --program-transform-n | --program-transform- \
519   | --program-transform | --program-transfor \
520   | --program-transfo | --program-transf \
521   | --program-trans | --program-tran \
522   | --progr-tra | --program-tr | --program-t)
523     ac_prev=program_transform_name ;;
524   -program-transform-name=* | --program-transform-name=* \
525   | --program-transform-nam=* | --program-transform-na=* \
526   | --program-transform-n=* | --program-transform-=* \
527   | --program-transform=* | --program-transfor=* \
528   | --program-transfo=* | --program-transf=* \
529   | --program-trans=* | --program-tran=* \
530   | --progr-tra=* | --program-tr=* | --program-t=*)
531     program_transform_name=$ac_optarg ;;
532
533   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534   | -silent | --silent | --silen | --sile | --sil)
535     silent=yes ;;
536
537   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538     ac_prev=sbindir ;;
539   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540   | --sbi=* | --sb=*)
541     sbindir=$ac_optarg ;;
542
543   -sharedstatedir | --sharedstatedir | --sharedstatedi \
544   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545   | --sharedst | --shareds | --shared | --share | --shar \
546   | --sha | --sh)
547     ac_prev=sharedstatedir ;;
548   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551   | --sha=* | --sh=*)
552     sharedstatedir=$ac_optarg ;;
553
554   -site | --site | --sit)
555     ac_prev=site ;;
556   -site=* | --site=* | --sit=*)
557     site=$ac_optarg ;;
558
559   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560     ac_prev=srcdir ;;
561   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
562     srcdir=$ac_optarg ;;
563
564   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565   | --syscon | --sysco | --sysc | --sys | --sy)
566     ac_prev=sysconfdir ;;
567   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569     sysconfdir=$ac_optarg ;;
570
571   -target | --target | --targe | --targ | --tar | --ta | --t)
572     ac_prev=target_alias ;;
573   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574     target_alias=$ac_optarg ;;
575
576   -v | -verbose | --verbose | --verbos | --verbo | --verb)
577     verbose=yes ;;
578
579   -version | --version | --versio | --versi | --vers | -V)
580     ac_init_version=: ;;
581
582   -with-* | --with-*)
583     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584     # Reject names that are not valid shell variable names.
585     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586       { echo "$as_me: error: invalid package name: $ac_package" >&2
587    { (exit 1); exit 1; }; }
588     ac_package=`echo $ac_package| sed 's/-/_/g'`
589     case $ac_option in
590       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591       *) ac_optarg=yes ;;
592     esac
593     eval "with_$ac_package='$ac_optarg'" ;;
594
595   -without-* | --without-*)
596     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597     # Reject names that are not valid shell variable names.
598     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599       { echo "$as_me: error: invalid package name: $ac_package" >&2
600    { (exit 1); exit 1; }; }
601     ac_package=`echo $ac_package | sed 's/-/_/g'`
602     eval "with_$ac_package=no" ;;
603
604   --x)
605     # Obsolete; use --with-x.
606     with_x=yes ;;
607
608   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609   | --x-incl | --x-inc | --x-in | --x-i)
610     ac_prev=x_includes ;;
611   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613     x_includes=$ac_optarg ;;
614
615   -x-libraries | --x-libraries | --x-librarie | --x-librari \
616   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617     ac_prev=x_libraries ;;
618   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620     x_libraries=$ac_optarg ;;
621
622   -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624    { (exit 1); exit 1; }; }
625     ;;
626
627   *=*)
628     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629     # Reject names that are not valid shell variable names.
630     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632    { (exit 1); exit 1; }; }
633     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634     eval "$ac_envvar='$ac_optarg'"
635     export $ac_envvar ;;
636
637   *)
638     # FIXME: should be removed in autoconf 3.0.
639     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
643     ;;
644
645   esac
646 done
647
648 if test -n "$ac_prev"; then
649   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650   { echo "$as_me: error: missing argument to $ac_option" >&2
651    { (exit 1); exit 1; }; }
652 fi
653
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
656 do
657   eval ac_val=$`echo $ac_var`
658   case $ac_val in
659     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661    { (exit 1); exit 1; }; };;
662   esac
663 done
664
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667               localstatedir libdir includedir oldincludedir infodir mandir
668 do
669   eval ac_val=$`echo $ac_var`
670   case $ac_val in
671     [\\/$]* | ?:[\\/]* ) ;;
672     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673    { (exit 1); exit 1; }; };;
674   esac
675 done
676
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
680 build=$build_alias
681 host=$host_alias
682 target=$target_alias
683
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686   if test "x$build_alias" = x; then
687     cross_compiling=maybe
688     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689     If a cross compiler is detected then cross compile mode will be used." >&2
690   elif test "x$build_alias" != "x$host_alias"; then
691     cross_compiling=yes
692   fi
693 fi
694
695 ac_tool_prefix=
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
697
698 test "$silent" = yes && exec 6>/dev/null
699
700
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703   ac_srcdir_defaulted=yes
704   # Try the directory containing this script, then its parent.
705   ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707          X"$0" : 'X\(//\)[^/]' \| \
708          X"$0" : 'X\(//\)$' \| \
709          X"$0" : 'X\(/\)' \| \
710          .     : '\(.\)' 2>/dev/null ||
711 echo X"$0" |
712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714           /^X\(\/\/\)$/{ s//\1/; q; }
715           /^X\(\/\).*/{ s//\1/; q; }
716           s/.*/./; q'`
717   srcdir=$ac_confdir
718   if test ! -r $srcdir/$ac_unique_file; then
719     srcdir=..
720   fi
721 else
722   ac_srcdir_defaulted=no
723 fi
724 if test ! -r $srcdir/$ac_unique_file; then
725   if test "$ac_srcdir_defaulted" = yes; then
726     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727    { (exit 1); exit 1; }; }
728   else
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730    { (exit 1); exit 1; }; }
731   fi
732 fi
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735    { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
750 ac_env_CC_value=$CC
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CPP_set=${CPP+set}
766 ac_env_CPP_value=$CPP
767 ac_cv_env_CPP_set=${CPP+set}
768 ac_cv_env_CPP_value=$CPP
769
770 #
771 # Report the --help message.
772 #
773 if test "$ac_init_help" = "long"; then
774   # Omit some internal or obsolete options to make the list less imposing.
775   # This message is too long to be a string in the A/UX 3.1 sh.
776   cat <<_ACEOF
777 \`configure' configures this package to adapt to many kinds of systems.
778
779 Usage: $0 [OPTION]... [VAR=VALUE]...
780
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE.  See below for descriptions of some of the useful variables.
783
784 Defaults for the options are specified in brackets.
785
786 Configuration:
787   -h, --help              display this help and exit
788       --help=short        display options specific to this package
789       --help=recursive    display the short help of all the included packages
790   -V, --version           display version information and exit
791   -q, --quiet, --silent   do not print \`checking...' messages
792       --cache-file=FILE   cache test results in FILE [disabled]
793   -C, --config-cache      alias for \`--cache-file=config.cache'
794   -n, --no-create         do not create output files
795       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
796
797 _ACEOF
798
799   cat <<_ACEOF
800 Installation directories:
801   --prefix=PREFIX         install architecture-independent files in PREFIX
802                           [$ac_default_prefix]
803   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
804                           [PREFIX]
805
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
810
811 For better control, use the options below.
812
813 Fine tuning of the installation directories:
814   --bindir=DIR           user executables [EPREFIX/bin]
815   --sbindir=DIR          system admin executables [EPREFIX/sbin]
816   --libexecdir=DIR       program executables [EPREFIX/libexec]
817   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
818   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
819   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
820   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
821   --libdir=DIR           object code libraries [EPREFIX/lib]
822   --includedir=DIR       C header files [PREFIX/include]
823   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
824   --infodir=DIR          info documentation [PREFIX/info]
825   --mandir=DIR           man documentation [PREFIX/man]
826 _ACEOF
827
828   cat <<\_ACEOF
829
830 Program names:
831   --program-prefix=PREFIX            prepend PREFIX to installed program names
832   --program-suffix=SUFFIX            append SUFFIX to installed program names
833   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838
839   cat <<\_ACEOF
840
841 Optional Features:
842   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
843   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
844   --enable-c-mbchar       enable multibyte characters for C and C++
845   --enable-maintainer-mode
846                           enable make rules and dependencies not useful
847                           (and sometimes confusing) to the casual installer
848
849 Optional Packages:
850   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
851   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
852   --with-gnu-ld           arrange to work with GNU ld.
853   --with-ld               arrange to use the specified ld (full pathname)
854   --with-gnu-as           arrange to work with GNU as
855   --with-as               arrange to use the specified as (full pathname)
856   --with-stabs            arrange to use stabs instead of host debug format
857   --with-elf              arrange to use ELF instead of host debug format
858   --with-local-prefix=DIR specifies directory to put local include
859
860 Some influential environment variables:
861   CC          C compiler command
862   CFLAGS      C compiler flags
863   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
864               nonstandard directory <lib dir>
865   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
866               headers in a nonstandard directory <include dir>
867   CPP         C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876   # If there are subdirs, report their specific --help.
877   ac_popdir=`pwd`
878   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879     test -d $ac_dir || continue
880     ac_builddir=.
881
882 if test "$ac_dir" != .; then
883   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884   # A "../" for each directory in $ac_dir_suffix.
885   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887   ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891   .)  # No --srcdir option.  We are building in place.
892     ac_srcdir=.
893     if test -z "$ac_top_builddir"; then
894        ac_top_srcdir=.
895     else
896        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897     fi ;;
898   [\\/]* | ?:[\\/]* )  # Absolute path.
899     ac_srcdir=$srcdir$ac_dir_suffix;
900     ac_top_srcdir=$srcdir ;;
901   *) # Relative path.
902     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903     ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 # absolute.
907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911
912     cd $ac_dir
913     # Check for guested configure; otherwise get Cygnus style configure.
914     if test -f $ac_srcdir/configure.gnu; then
915       echo
916       $SHELL $ac_srcdir/configure.gnu  --help=recursive
917     elif test -f $ac_srcdir/configure; then
918       echo
919       $SHELL $ac_srcdir/configure  --help=recursive
920     elif test -f $ac_srcdir/configure.ac ||
921            test -f $ac_srcdir/configure.in; then
922       echo
923       $ac_configure --help
924     else
925       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
926     fi
927     cd $ac_popdir
928   done
929 fi
930
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
933   cat <<\_ACEOF
934
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
939 _ACEOF
940   exit 0
941 fi
942 exec 5>config.log
943 cat >&5 <<_ACEOF
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
946
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.54.  Invocation command line was
949
950   $ $0 $@
951
952 _ACEOF
953 {
954 cat <<_ASUNAME
955 ## --------- ##
956 ## Platform. ##
957 ## --------- ##
958
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
967
968 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
969 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
972 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
973 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
974 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
975
976 _ASUNAME
977
978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 for as_dir in $PATH
980 do
981   IFS=$as_save_IFS
982   test -z "$as_dir" && as_dir=.
983   echo "PATH: $as_dir"
984 done
985
986 } >&5
987
988 cat >&5 <<_ACEOF
989
990
991 ## ----------- ##
992 ## Core tests. ##
993 ## ----------- ##
994
995 _ACEOF
996
997
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Also quote any args containing shell meta-characters.
1001 ac_configure_args=
1002 ac_sep=
1003 for ac_arg
1004 do
1005   case $ac_arg in
1006   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007   | --no-cr | --no-c | -n ) continue ;;
1008   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010     continue ;;
1011   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1012     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1013   esac
1014   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1015   # Get rid of the leading space.
1016   ac_sep=" "
1017 done
1018
1019 # When interrupted or exit'd, cleanup temporary files, and complete
1020 # config.log.  We remove comments because anyway the quotes in there
1021 # would cause problems or look ugly.
1022 # WARNING: Be sure not to use single quotes in there, as some shells,
1023 # such as our DU 5.0 friend, will then `close' the trap.
1024 trap 'exit_status=$?
1025   # Save into config.log some information that might help in debugging.
1026   {
1027     echo
1028
1029     cat <<\_ASBOX
1030 ## ---------------- ##
1031 ## Cache variables. ##
1032 ## ---------------- ##
1033 _ASBOX
1034     echo
1035     # The following way of writing the cache mishandles newlines in values,
1036 {
1037   (set) 2>&1 |
1038     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1039     *ac_space=\ *)
1040       sed -n \
1041         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1042           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1043       ;;
1044     *)
1045       sed -n \
1046         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1047       ;;
1048     esac;
1049 }
1050     echo
1051
1052     cat <<\_ASBOX
1053 ## ----------------- ##
1054 ## Output variables. ##
1055 ## ----------------- ##
1056 _ASBOX
1057     echo
1058     for ac_var in $ac_subst_vars
1059     do
1060       eval ac_val=$`echo $ac_var`
1061       echo "$ac_var='"'"'$ac_val'"'"'"
1062     done | sort
1063     echo
1064
1065     if test -n "$ac_subst_files"; then
1066       cat <<\_ASBOX
1067 ## ------------- ##
1068 ## Output files. ##
1069 ## ------------- ##
1070 _ASBOX
1071       echo
1072       for ac_var in $ac_subst_files
1073       do
1074         eval ac_val=$`echo $ac_var`
1075         echo "$ac_var='"'"'$ac_val'"'"'"
1076       done | sort
1077       echo
1078     fi
1079
1080     if test -s confdefs.h; then
1081       cat <<\_ASBOX
1082 ## ----------- ##
1083 ## confdefs.h. ##
1084 ## ----------- ##
1085 _ASBOX
1086       echo
1087       sed "/^$/d" confdefs.h | sort
1088       echo
1089     fi
1090     test "$ac_signal" != 0 &&
1091       echo "$as_me: caught signal $ac_signal"
1092     echo "$as_me: exit $exit_status"
1093   } >&5
1094   rm -f core core.* *.core &&
1095   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1096     exit $exit_status
1097      ' 0
1098 for ac_signal in 1 2 13 15; do
1099   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1100 done
1101 ac_signal=0
1102
1103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1104 rm -rf conftest* confdefs.h
1105 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1106 echo >confdefs.h
1107
1108 # Predefined preprocessor variables.
1109
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_NAME "$PACKAGE_NAME"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1117 _ACEOF
1118
1119
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1122 _ACEOF
1123
1124
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_STRING "$PACKAGE_STRING"
1127 _ACEOF
1128
1129
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1132 _ACEOF
1133
1134
1135 # Let the site file select an alternate cache file if it wants to.
1136 # Prefer explicitly selected file to automatically selected ones.
1137 if test -z "$CONFIG_SITE"; then
1138   if test "x$prefix" != xNONE; then
1139     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1140   else
1141     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1142   fi
1143 fi
1144 for ac_site_file in $CONFIG_SITE; do
1145   if test -r "$ac_site_file"; then
1146     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1147 echo "$as_me: loading site script $ac_site_file" >&6;}
1148     sed 's/^/| /' "$ac_site_file" >&5
1149     . "$ac_site_file"
1150   fi
1151 done
1152
1153 if test -r "$cache_file"; then
1154   # Some versions of bash will fail to source /dev/null (special
1155   # files actually), so we avoid doing that.
1156   if test -f "$cache_file"; then
1157     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1158 echo "$as_me: loading cache $cache_file" >&6;}
1159     case $cache_file in
1160       [\\/]* | ?:[\\/]* ) . $cache_file;;
1161       *)                      . ./$cache_file;;
1162     esac
1163   fi
1164 else
1165   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1166 echo "$as_me: creating cache $cache_file" >&6;}
1167   >$cache_file
1168 fi
1169
1170 # Check that the precious variables saved in the cache have kept the same
1171 # value.
1172 ac_cache_corrupted=false
1173 for ac_var in `(set) 2>&1 |
1174                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1175   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1176   eval ac_new_set=\$ac_env_${ac_var}_set
1177   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1178   eval ac_new_val="\$ac_env_${ac_var}_value"
1179   case $ac_old_set,$ac_new_set in
1180     set,)
1181       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1183       ac_cache_corrupted=: ;;
1184     ,set)
1185       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1186 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1187       ac_cache_corrupted=: ;;
1188     ,);;
1189     *)
1190       if test "x$ac_old_val" != "x$ac_new_val"; then
1191         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1192 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1193         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1194 echo "$as_me:   former value:  $ac_old_val" >&2;}
1195         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1196 echo "$as_me:   current value: $ac_new_val" >&2;}
1197         ac_cache_corrupted=:
1198       fi;;
1199   esac
1200   # Pass precious variables to config.status.
1201   if test "$ac_new_set" = set; then
1202     case $ac_new_val in
1203     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1205     *) ac_arg=$ac_var=$ac_new_val ;;
1206     esac
1207     case " $ac_configure_args " in
1208       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1209       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1210     esac
1211   fi
1212 done
1213 if $ac_cache_corrupted; then
1214   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1215 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1216   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1217 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1218    { (exit 1); exit 1; }; }
1219 fi
1220
1221 ac_ext=c
1222 ac_cpp='$CPP $CPPFLAGS'
1223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1246
1247
1248 remove=rm
1249 hard_link=ln
1250 symbolic_link='ln -s'
1251 copy=cp
1252
1253 # Check for additional parameters
1254
1255 # With GNU ld
1256
1257 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1258 if test "${with_gnu_ld+set}" = set; then
1259   withval="$with_gnu_ld"
1260   gnu_ld_flag="$with_gnu_ld"
1261 else
1262   gnu_ld_flag=no
1263 fi;
1264
1265 # With pre-defined ld
1266
1267 # Check whether --with-ld or --without-ld was given.
1268 if test "${with_ld+set}" = set; then
1269   withval="$with_ld"
1270   DEFAULT_LINKER="$with_ld"
1271 fi;
1272 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1273   if test ! -x "$DEFAULT_LINKER"; then
1274     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1275 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1276   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1277     gnu_ld_flag=yes
1278   fi
1279
1280 cat >>confdefs.h <<_ACEOF
1281 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1282 _ACEOF
1283
1284 fi
1285
1286 # With GNU as
1287
1288 # Check whether --with-gnu-as or --without-gnu-as was given.
1289 if test "${with_gnu_as+set}" = set; then
1290   withval="$with_gnu_as"
1291   gas_flag="$with_gnu_as"
1292 else
1293   gas_flag=no
1294 fi;
1295
1296
1297 # Check whether --with-as or --without-as was given.
1298 if test "${with_as+set}" = set; then
1299   withval="$with_as"
1300   DEFAULT_ASSEMBLER="$with_as"
1301 fi;
1302 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1303   if test ! -x "$DEFAULT_ASSEMBLER"; then
1304     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1305 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1306   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1307     gas_flag=yes
1308   fi
1309
1310 cat >>confdefs.h <<_ACEOF
1311 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1312 _ACEOF
1313
1314 fi
1315
1316 # With stabs
1317
1318 # Check whether --with-stabs or --without-stabs was given.
1319 if test "${with_stabs+set}" = set; then
1320   withval="$with_stabs"
1321   stabs="$with_stabs"
1322 else
1323   stabs=no
1324 fi;
1325
1326 # With ELF
1327
1328 # Check whether --with-elf or --without-elf was given.
1329 if test "${with_elf+set}" = set; then
1330   withval="$with_elf"
1331   elf="$with_elf"
1332 else
1333   elf=no
1334 fi;
1335
1336 # Specify the local prefix
1337 local_prefix=
1338
1339 # Check whether --with-local-prefix or --without-local-prefix was given.
1340 if test "${with_local_prefix+set}" = set; then
1341   withval="$with_local_prefix"
1342   case "${withval}" in
1343 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1344 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1345    { (exit 1); exit 1; }; } ;;
1346 no)     ;;
1347 *)      local_prefix=$with_local_prefix ;;
1348 esac
1349 fi;
1350
1351 # Default local prefix if it is empty
1352 if test x$local_prefix = x; then
1353         local_prefix=/usr/local
1354 fi
1355
1356 test "$program_prefix" != NONE &&
1357   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1358 # Use a double $ so make ignores it.
1359 test "$program_suffix" != NONE &&
1360   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1361 # Double any \ or $.  echo might interpret backslashes.
1362 # By default was `s,x,x', remove it if useless.
1363 cat <<\_ACEOF >conftest.sed
1364 s/[\\$]/&&/g;s/;s,x,x,$//
1365 _ACEOF
1366 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1367 rm conftest.sed
1368
1369
1370 # Enable Multibyte Characters for C/C++
1371 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
1372 if test "${enable_c_mbchar+set}" = set; then
1373   enableval="$enable_c_mbchar"
1374   if test x$enable_c_mbchar != xno; then
1375
1376 cat >>confdefs.h <<\_ACEOF
1377 #define MULTIBYTE_CHARS 1
1378 _ACEOF
1379
1380 fi
1381 fi;
1382
1383 # Find the native compiler
1384 ac_ext=c
1385 ac_cpp='$CPP $CPPFLAGS'
1386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1389 if test -n "$ac_tool_prefix"; then
1390   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1391 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_prog_CC+set}" = set; then
1395   echo $ECHO_N "(cached) $ECHO_C" >&6
1396 else
1397   if test -n "$CC"; then
1398   ac_cv_prog_CC="$CC" # Let the user override the test.
1399 else
1400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401 for as_dir in $PATH
1402 do
1403   IFS=$as_save_IFS
1404   test -z "$as_dir" && as_dir=.
1405   for ac_exec_ext in '' $ac_executable_extensions; do
1406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1409     break 2
1410   fi
1411 done
1412 done
1413
1414 fi
1415 fi
1416 CC=$ac_cv_prog_CC
1417 if test -n "$CC"; then
1418   echo "$as_me:$LINENO: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1420 else
1421   echo "$as_me:$LINENO: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1423 fi
1424
1425 fi
1426 if test -z "$ac_cv_prog_CC"; then
1427   ac_ct_CC=$CC
1428   # Extract the first word of "gcc", so it can be a program name with args.
1429 set dummy gcc; ac_word=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433   echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435   if test -n "$ac_ct_CC"; then
1436   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1437 else
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 for as_dir in $PATH
1440 do
1441   IFS=$as_save_IFS
1442   test -z "$as_dir" && as_dir=.
1443   for ac_exec_ext in '' $ac_executable_extensions; do
1444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445     ac_cv_prog_ac_ct_CC="gcc"
1446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447     break 2
1448   fi
1449 done
1450 done
1451
1452 fi
1453 fi
1454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1455 if test -n "$ac_ct_CC"; then
1456   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1457 echo "${ECHO_T}$ac_ct_CC" >&6
1458 else
1459   echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1461 fi
1462
1463   CC=$ac_ct_CC
1464 else
1465   CC="$ac_cv_prog_CC"
1466 fi
1467
1468 if test -z "$CC"; then
1469   if test -n "$ac_tool_prefix"; then
1470   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}cc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475   echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477   if test -n "$CC"; then
1478   ac_cv_prog_CC="$CC" # Let the user override the test.
1479 else
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1482 do
1483   IFS=$as_save_IFS
1484   test -z "$as_dir" && as_dir=.
1485   for ac_exec_ext in '' $ac_executable_extensions; do
1486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487     ac_cv_prog_CC="${ac_tool_prefix}cc"
1488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489     break 2
1490   fi
1491 done
1492 done
1493
1494 fi
1495 fi
1496 CC=$ac_cv_prog_CC
1497 if test -n "$CC"; then
1498   echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1500 else
1501   echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1503 fi
1504
1505 fi
1506 if test -z "$ac_cv_prog_CC"; then
1507   ac_ct_CC=$CC
1508   # Extract the first word of "cc", so it can be a program name with args.
1509 set dummy cc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513   echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515   if test -n "$ac_ct_CC"; then
1516   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517 else
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 for as_dir in $PATH
1520 do
1521   IFS=$as_save_IFS
1522   test -z "$as_dir" && as_dir=.
1523   for ac_exec_ext in '' $ac_executable_extensions; do
1524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525     ac_cv_prog_ac_ct_CC="cc"
1526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527     break 2
1528   fi
1529 done
1530 done
1531
1532 fi
1533 fi
1534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1538 else
1539   echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1541 fi
1542
1543   CC=$ac_ct_CC
1544 else
1545   CC="$ac_cv_prog_CC"
1546 fi
1547
1548 fi
1549 if test -z "$CC"; then
1550   # Extract the first word of "cc", so it can be a program name with args.
1551 set dummy cc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555   echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557   if test -n "$CC"; then
1558   ac_cv_prog_CC="$CC" # Let the user override the test.
1559 else
1560   ac_prog_rejected=no
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564   IFS=$as_save_IFS
1565   test -z "$as_dir" && as_dir=.
1566   for ac_exec_ext in '' $ac_executable_extensions; do
1567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1569        ac_prog_rejected=yes
1570        continue
1571      fi
1572     ac_cv_prog_CC="cc"
1573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574     break 2
1575   fi
1576 done
1577 done
1578
1579 if test $ac_prog_rejected = yes; then
1580   # We found a bogon in the path, so make sure we never use it.
1581   set dummy $ac_cv_prog_CC
1582   shift
1583   if test $# != 0; then
1584     # We chose a different compiler from the bogus one.
1585     # However, it has the same basename, so the bogon will be chosen
1586     # first if we set CC to just the basename; use the full file name.
1587     shift
1588     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1589   fi
1590 fi
1591 fi
1592 fi
1593 CC=$ac_cv_prog_CC
1594 if test -n "$CC"; then
1595   echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1597 else
1598   echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1600 fi
1601
1602 fi
1603 if test -z "$CC"; then
1604   if test -n "$ac_tool_prefix"; then
1605   for ac_prog in cl
1606   do
1607     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612   echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614   if test -n "$CC"; then
1615   ac_cv_prog_CC="$CC" # Let the user override the test.
1616 else
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1619 do
1620   IFS=$as_save_IFS
1621   test -z "$as_dir" && as_dir=.
1622   for ac_exec_ext in '' $ac_executable_extensions; do
1623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626     break 2
1627   fi
1628 done
1629 done
1630
1631 fi
1632 fi
1633 CC=$ac_cv_prog_CC
1634 if test -n "$CC"; then
1635   echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1637 else
1638   echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1640 fi
1641
1642     test -n "$CC" && break
1643   done
1644 fi
1645 if test -z "$CC"; then
1646   ac_ct_CC=$CC
1647   for ac_prog in cl
1648 do
1649   # Extract the first word of "$ac_prog", so it can be a program name with args.
1650 set dummy $ac_prog; ac_word=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654   echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656   if test -n "$ac_ct_CC"; then
1657   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1658 else
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1661 do
1662   IFS=$as_save_IFS
1663   test -z "$as_dir" && as_dir=.
1664   for ac_exec_ext in '' $ac_executable_extensions; do
1665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666     ac_cv_prog_ac_ct_CC="$ac_prog"
1667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668     break 2
1669   fi
1670 done
1671 done
1672
1673 fi
1674 fi
1675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1676 if test -n "$ac_ct_CC"; then
1677   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678 echo "${ECHO_T}$ac_ct_CC" >&6
1679 else
1680   echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1682 fi
1683
1684   test -n "$ac_ct_CC" && break
1685 done
1686
1687   CC=$ac_ct_CC
1688 fi
1689
1690 fi
1691
1692
1693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1694 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1695    { (exit 1); exit 1; }; }
1696
1697 # Provide some information about the compiler.
1698 echo "$as_me:$LINENO:" \
1699      "checking for C compiler version" >&5
1700 ac_compiler=`set X $ac_compile; echo $2`
1701 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1702   (eval $ac_compiler --version </dev/null >&5) 2>&5
1703   ac_status=$?
1704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705   (exit $ac_status); }
1706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1707   (eval $ac_compiler -v </dev/null >&5) 2>&5
1708   ac_status=$?
1709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710   (exit $ac_status); }
1711 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1712   (eval $ac_compiler -V </dev/null >&5) 2>&5
1713   ac_status=$?
1714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715   (exit $ac_status); }
1716
1717 cat >conftest.$ac_ext <<_ACEOF
1718 #line $LINENO "configure"
1719 #include "confdefs.h"
1720
1721 int
1722 main ()
1723 {
1724
1725   ;
1726   return 0;
1727 }
1728 _ACEOF
1729 ac_clean_files_save=$ac_clean_files
1730 ac_clean_files="$ac_clean_files a.out a.exe"
1731 # Try to create an executable without -o first, disregard a.out.
1732 # It will help us diagnose broken compilers, and finding out an intuition
1733 # of exeext.
1734 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1735 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1736 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1737 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1738   (eval $ac_link_default) 2>&5
1739   ac_status=$?
1740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741   (exit $ac_status); }; then
1742   # Find the output, starting from the most likely.  This scheme is
1743 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1744 # resort.
1745
1746 # Be careful to initialize this variable, since it used to be cached.
1747 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1748 ac_cv_exeext=
1749 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1750   test -f "$ac_file" || continue
1751   case $ac_file in
1752     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1753     a.out ) # We found the default executable, but exeext='' is most
1754             # certainly right.
1755             break;;
1756     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1757           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1758           export ac_cv_exeext
1759           break;;
1760     * ) break;;
1761   esac
1762 done
1763 else
1764   echo "$as_me: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1767 check \`config.log' for details." >&5
1768 echo "$as_me: error: C compiler cannot create executables
1769 check \`config.log' for details." >&2;}
1770    { (exit 77); exit 77; }; }
1771 fi
1772
1773 ac_exeext=$ac_cv_exeext
1774 echo "$as_me:$LINENO: result: $ac_file" >&5
1775 echo "${ECHO_T}$ac_file" >&6
1776
1777 # Check the compiler produces executables we can run.  If not, either
1778 # the compiler is broken, or we cross compile.
1779 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1780 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1781 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1782 # If not cross compiling, check that we can run a simple program.
1783 if test "$cross_compiling" != yes; then
1784   if { ac_try='./$ac_file'
1785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1786   (eval $ac_try) 2>&5
1787   ac_status=$?
1788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789   (exit $ac_status); }; }; then
1790     cross_compiling=no
1791   else
1792     if test "$cross_compiling" = maybe; then
1793         cross_compiling=yes
1794     else
1795         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1796 If you meant to cross compile, use \`--host'." >&5
1797 echo "$as_me: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'." >&2;}
1799    { (exit 1); exit 1; }; }
1800     fi
1801   fi
1802 fi
1803 echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1805
1806 rm -f a.out a.exe conftest$ac_cv_exeext
1807 ac_clean_files=$ac_clean_files_save
1808 # Check the compiler produces executables we can run.  If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1811 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1812 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1813 echo "${ECHO_T}$cross_compiling" >&6
1814
1815 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1816 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1818   (eval $ac_link) 2>&5
1819   ac_status=$?
1820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821   (exit $ac_status); }; then
1822   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1823 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1824 # work properly (i.e., refer to `conftest.exe'), while it won't with
1825 # `rm'.
1826 for ac_file in conftest.exe conftest conftest.*; do
1827   test -f "$ac_file" || continue
1828   case $ac_file in
1829     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1830     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1831           export ac_cv_exeext
1832           break;;
1833     * ) break;;
1834   esac
1835 done
1836 else
1837   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1838 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1839    { (exit 1); exit 1; }; }
1840 fi
1841
1842 rm -f conftest$ac_cv_exeext
1843 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1844 echo "${ECHO_T}$ac_cv_exeext" >&6
1845
1846 rm -f conftest.$ac_ext
1847 EXEEXT=$ac_cv_exeext
1848 ac_exeext=$EXEEXT
1849 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1851 if test "${ac_cv_objext+set}" = set; then
1852   echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854   cat >conftest.$ac_ext <<_ACEOF
1855 #line $LINENO "configure"
1856 #include "confdefs.h"
1857
1858 int
1859 main ()
1860 {
1861
1862   ;
1863   return 0;
1864 }
1865 _ACEOF
1866 rm -f conftest.o conftest.obj
1867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868   (eval $ac_compile) 2>&5
1869   ac_status=$?
1870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871   (exit $ac_status); }; then
1872   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1873   case $ac_file in
1874     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1875     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1876        break;;
1877   esac
1878 done
1879 else
1880   echo "$as_me: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1882 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1883 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1884    { (exit 1); exit 1; }; }
1885 fi
1886
1887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1888 fi
1889 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1890 echo "${ECHO_T}$ac_cv_objext" >&6
1891 OBJEXT=$ac_cv_objext
1892 ac_objext=$OBJEXT
1893 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1894 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1895 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1896   echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898   cat >conftest.$ac_ext <<_ACEOF
1899 #line $LINENO "configure"
1900 #include "confdefs.h"
1901
1902 int
1903 main ()
1904 {
1905 #ifndef __GNUC__
1906        choke me
1907 #endif
1908
1909   ;
1910   return 0;
1911 }
1912 _ACEOF
1913 rm -f conftest.$ac_objext
1914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1915   (eval $ac_compile) 2>&5
1916   ac_status=$?
1917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918   (exit $ac_status); } &&
1919          { ac_try='test -s conftest.$ac_objext'
1920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1921   (eval $ac_try) 2>&5
1922   ac_status=$?
1923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924   (exit $ac_status); }; }; then
1925   ac_compiler_gnu=yes
1926 else
1927   echo "$as_me: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1929 ac_compiler_gnu=no
1930 fi
1931 rm -f conftest.$ac_objext conftest.$ac_ext
1932 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1933
1934 fi
1935 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1936 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1937 GCC=`test $ac_compiler_gnu = yes && echo yes`
1938 ac_test_CFLAGS=${CFLAGS+set}
1939 ac_save_CFLAGS=$CFLAGS
1940 CFLAGS="-g"
1941 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1942 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1943 if test "${ac_cv_prog_cc_g+set}" = set; then
1944   echo $ECHO_N "(cached) $ECHO_C" >&6
1945 else
1946   cat >conftest.$ac_ext <<_ACEOF
1947 #line $LINENO "configure"
1948 #include "confdefs.h"
1949
1950 int
1951 main ()
1952 {
1953
1954   ;
1955   return 0;
1956 }
1957 _ACEOF
1958 rm -f conftest.$ac_objext
1959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960   (eval $ac_compile) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); } &&
1964          { ac_try='test -s conftest.$ac_objext'
1965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1966   (eval $ac_try) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }; }; then
1970   ac_cv_prog_cc_g=yes
1971 else
1972   echo "$as_me: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1974 ac_cv_prog_cc_g=no
1975 fi
1976 rm -f conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1979 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1980 if test "$ac_test_CFLAGS" = set; then
1981   CFLAGS=$ac_save_CFLAGS
1982 elif test $ac_cv_prog_cc_g = yes; then
1983   if test "$GCC" = yes; then
1984     CFLAGS="-g -O2"
1985   else
1986     CFLAGS="-g"
1987   fi
1988 else
1989   if test "$GCC" = yes; then
1990     CFLAGS="-O2"
1991   else
1992     CFLAGS=
1993   fi
1994 fi
1995 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1996 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1997 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1998   echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000   ac_cv_prog_cc_stdc=no
2001 ac_save_CC=$CC
2002 cat >conftest.$ac_ext <<_ACEOF
2003 #line $LINENO "configure"
2004 #include "confdefs.h"
2005 #include <stdarg.h>
2006 #include <stdio.h>
2007 #include <sys/types.h>
2008 #include <sys/stat.h>
2009 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2010 struct buf { int x; };
2011 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2012 static char *e (p, i)
2013      char **p;
2014      int i;
2015 {
2016   return p[i];
2017 }
2018 static char *f (char * (*g) (char **, int), char **p, ...)
2019 {
2020   char *s;
2021   va_list v;
2022   va_start (v,p);
2023   s = g (p, va_arg (v,int));
2024   va_end (v);
2025   return s;
2026 }
2027 int test (int i, double x);
2028 struct s1 {int (*f) (int a);};
2029 struct s2 {int (*f) (double a);};
2030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2031 int argc;
2032 char **argv;
2033 int
2034 main ()
2035 {
2036 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2037   ;
2038   return 0;
2039 }
2040 _ACEOF
2041 # Don't try gcc -ansi; that turns off useful extensions and
2042 # breaks some systems' header files.
2043 # AIX                   -qlanglvl=ansi
2044 # Ultrix and OSF/1      -std1
2045 # HP-UX 10.20 and later -Ae
2046 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2047 # SVR4                  -Xc -D__EXTENSIONS__
2048 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2049 do
2050   CC="$ac_save_CC $ac_arg"
2051   rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053   (eval $ac_compile) 2>&5
2054   ac_status=$?
2055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056   (exit $ac_status); } &&
2057          { ac_try='test -s conftest.$ac_objext'
2058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059   (eval $ac_try) 2>&5
2060   ac_status=$?
2061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062   (exit $ac_status); }; }; then
2063   ac_cv_prog_cc_stdc=$ac_arg
2064 break
2065 else
2066   echo "$as_me: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 fi
2069 rm -f conftest.$ac_objext
2070 done
2071 rm -f conftest.$ac_ext conftest.$ac_objext
2072 CC=$ac_save_CC
2073
2074 fi
2075
2076 case "x$ac_cv_prog_cc_stdc" in
2077   x|xno)
2078     echo "$as_me:$LINENO: result: none needed" >&5
2079 echo "${ECHO_T}none needed" >&6 ;;
2080   *)
2081     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2082 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2083     CC="$CC $ac_cv_prog_cc_stdc" ;;
2084 esac
2085
2086 # Some people use a C++ compiler to compile C.  Since we use `exit',
2087 # in C++ we need to declare it.  In case someone uses the same compiler
2088 # for both compiling C and C++ we need to have the C++ compiler decide
2089 # the declaration of exit, since it's the most demanding environment.
2090 cat >conftest.$ac_ext <<_ACEOF
2091 #ifndef __cplusplus
2092   choke me
2093 #endif
2094 _ACEOF
2095 rm -f conftest.$ac_objext
2096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097   (eval $ac_compile) 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); } &&
2101          { ac_try='test -s conftest.$ac_objext'
2102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103   (eval $ac_try) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }; }; then
2107   for ac_declaration in \
2108    ''\
2109    '#include <stdlib.h>' \
2110    'extern "C" void std::exit (int) throw (); using std::exit;' \
2111    'extern "C" void std::exit (int); using std::exit;' \
2112    'extern "C" void exit (int) throw ();' \
2113    'extern "C" void exit (int);' \
2114    'void exit (int);'
2115 do
2116   cat >conftest.$ac_ext <<_ACEOF
2117 #line $LINENO "configure"
2118 #include "confdefs.h"
2119 #include <stdlib.h>
2120 $ac_declaration
2121 int
2122 main ()
2123 {
2124 exit (42);
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 rm -f conftest.$ac_objext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131   (eval $ac_compile) 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); } &&
2135          { ac_try='test -s conftest.$ac_objext'
2136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137   (eval $ac_try) 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); }; }; then
2141   :
2142 else
2143   echo "$as_me: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2145 continue
2146 fi
2147 rm -f conftest.$ac_objext conftest.$ac_ext
2148   cat >conftest.$ac_ext <<_ACEOF
2149 #line $LINENO "configure"
2150 #include "confdefs.h"
2151 $ac_declaration
2152 int
2153 main ()
2154 {
2155 exit (42);
2156   ;
2157   return 0;
2158 }
2159 _ACEOF
2160 rm -f conftest.$ac_objext
2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162   (eval $ac_compile) 2>&5
2163   ac_status=$?
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); } &&
2166          { ac_try='test -s conftest.$ac_objext'
2167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168   (eval $ac_try) 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; }; then
2172   break
2173 else
2174   echo "$as_me: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2176 fi
2177 rm -f conftest.$ac_objext conftest.$ac_ext
2178 done
2179 rm -f conftest*
2180 if test -n "$ac_declaration"; then
2181   echo '#ifdef __cplusplus' >>confdefs.h
2182   echo $ac_declaration      >>confdefs.h
2183   echo '#endif'             >>confdefs.h
2184 fi
2185
2186 else
2187   echo "$as_me: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2189 fi
2190 rm -f conftest.$ac_objext conftest.$ac_ext
2191 ac_ext=c
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196
2197 if test "x$CC" != xcc; then
2198   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2199 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2200 else
2201   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2202 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2203 fi
2204 set dummy $CC; ac_cc=`echo $2 |
2205                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2206 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2207   echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209   cat >conftest.$ac_ext <<_ACEOF
2210 #line $LINENO "configure"
2211 #include "confdefs.h"
2212
2213 int
2214 main ()
2215 {
2216
2217   ;
2218   return 0;
2219 }
2220 _ACEOF
2221 # Make sure it works both with $CC and with simple cc.
2222 # We do the test twice because some compilers refuse to overwrite an
2223 # existing .o file with -o, though they will create one.
2224 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2225 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226   (eval $ac_try) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); } &&
2230    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); };
2235 then
2236   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2237   if test "x$CC" != xcc; then
2238     # Test first that cc exists at all.
2239     if { ac_try='cc -c conftest.$ac_ext >&5'
2240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241   (eval $ac_try) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; }; then
2245       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2246       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247   (eval $ac_try) 2>&5
2248   ac_status=$?
2249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250   (exit $ac_status); } &&
2251          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252   (eval $ac_try) 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); };
2256       then
2257         # cc works too.
2258         :
2259       else
2260         # cc exists but doesn't like -o.
2261         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2262       fi
2263     fi
2264   fi
2265 else
2266   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2267 fi
2268 rm -f conftest*
2269
2270 fi
2271 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2272   echo "$as_me:$LINENO: result: yes" >&5
2273 echo "${ECHO_T}yes" >&6
2274 else
2275   echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6
2277
2278 cat >>confdefs.h <<\_ACEOF
2279 #define NO_MINUS_C_MINUS_O 1
2280 _ACEOF
2281
2282 fi
2283
2284 # autoconf is lame and doesn't give us any substitution variable for this.
2285 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2286   NO_MINUS_C_MINUS_O=yes
2287 else
2288   OUTPUT_OPTION='-o $@'
2289 fi
2290
2291
2292
2293 ac_ext=c
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2299 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2300 # On Suns, sometimes $CPP names a directory.
2301 if test -n "$CPP" && test -d "$CPP"; then
2302   CPP=
2303 fi
2304 if test -z "$CPP"; then
2305   if test "${ac_cv_prog_CPP+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308       # Double quotes because CPP needs to be expanded
2309     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2310     do
2311       ac_preproc_ok=false
2312 for ac_c_preproc_warn_flag in '' yes
2313 do
2314   # Use a header file that comes with gcc, so configuring glibc
2315   # with a fresh cross-compiler works.
2316   # On the NeXT, cc -E runs the code through the compiler's parser,
2317   # not just through cpp. "Syntax error" is here to catch this case.
2318   cat >conftest.$ac_ext <<_ACEOF
2319 #line $LINENO "configure"
2320 #include "confdefs.h"
2321 #include <assert.h>
2322                      Syntax error
2323 _ACEOF
2324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2326   ac_status=$?
2327   grep -v '^ *+' conftest.er1 >conftest.err
2328   rm -f conftest.er1
2329   cat conftest.err >&5
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); } >/dev/null; then
2332   if test -s conftest.err; then
2333     ac_cpp_err=$ac_c_preproc_warn_flag
2334   else
2335     ac_cpp_err=
2336   fi
2337 else
2338   ac_cpp_err=yes
2339 fi
2340 if test -z "$ac_cpp_err"; then
2341   :
2342 else
2343   echo "$as_me: failed program was:" >&5
2344   cat conftest.$ac_ext >&5
2345   # Broken: fails on valid input.
2346 continue
2347 fi
2348 rm -f conftest.err conftest.$ac_ext
2349
2350   # OK, works on sane cases.  Now check whether non-existent headers
2351   # can be detected and how.
2352   cat >conftest.$ac_ext <<_ACEOF
2353 #line $LINENO "configure"
2354 #include "confdefs.h"
2355 #include <ac_nonexistent.h>
2356 _ACEOF
2357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2359   ac_status=$?
2360   grep -v '^ *+' conftest.er1 >conftest.err
2361   rm -f conftest.er1
2362   cat conftest.err >&5
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); } >/dev/null; then
2365   if test -s conftest.err; then
2366     ac_cpp_err=$ac_c_preproc_warn_flag
2367   else
2368     ac_cpp_err=
2369   fi
2370 else
2371   ac_cpp_err=yes
2372 fi
2373 if test -z "$ac_cpp_err"; then
2374   # Broken: success on invalid input.
2375 continue
2376 else
2377   echo "$as_me: failed program was:" >&5
2378   cat conftest.$ac_ext >&5
2379   # Passes both tests.
2380 ac_preproc_ok=:
2381 break
2382 fi
2383 rm -f conftest.err conftest.$ac_ext
2384
2385 done
2386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2387 rm -f conftest.err conftest.$ac_ext
2388 if $ac_preproc_ok; then
2389   break
2390 fi
2391
2392     done
2393     ac_cv_prog_CPP=$CPP
2394
2395 fi
2396   CPP=$ac_cv_prog_CPP
2397 else
2398   ac_cv_prog_CPP=$CPP
2399 fi
2400 echo "$as_me:$LINENO: result: $CPP" >&5
2401 echo "${ECHO_T}$CPP" >&6
2402 ac_preproc_ok=false
2403 for ac_c_preproc_warn_flag in '' yes
2404 do
2405   # Use a header file that comes with gcc, so configuring glibc
2406   # with a fresh cross-compiler works.
2407   # On the NeXT, cc -E runs the code through the compiler's parser,
2408   # not just through cpp. "Syntax error" is here to catch this case.
2409   cat >conftest.$ac_ext <<_ACEOF
2410 #line $LINENO "configure"
2411 #include "confdefs.h"
2412 #include <assert.h>
2413                      Syntax error
2414 _ACEOF
2415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2416   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2417   ac_status=$?
2418   grep -v '^ *+' conftest.er1 >conftest.err
2419   rm -f conftest.er1
2420   cat conftest.err >&5
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); } >/dev/null; then
2423   if test -s conftest.err; then
2424     ac_cpp_err=$ac_c_preproc_warn_flag
2425   else
2426     ac_cpp_err=
2427   fi
2428 else
2429   ac_cpp_err=yes
2430 fi
2431 if test -z "$ac_cpp_err"; then
2432   :
2433 else
2434   echo "$as_me: failed program was:" >&5
2435   cat conftest.$ac_ext >&5
2436   # Broken: fails on valid input.
2437 continue
2438 fi
2439 rm -f conftest.err conftest.$ac_ext
2440
2441   # OK, works on sane cases.  Now check whether non-existent headers
2442   # can be detected and how.
2443   cat >conftest.$ac_ext <<_ACEOF
2444 #line $LINENO "configure"
2445 #include "confdefs.h"
2446 #include <ac_nonexistent.h>
2447 _ACEOF
2448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2450   ac_status=$?
2451   grep -v '^ *+' conftest.er1 >conftest.err
2452   rm -f conftest.er1
2453   cat conftest.err >&5
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); } >/dev/null; then
2456   if test -s conftest.err; then
2457     ac_cpp_err=$ac_c_preproc_warn_flag
2458   else
2459     ac_cpp_err=
2460   fi
2461 else
2462   ac_cpp_err=yes
2463 fi
2464 if test -z "$ac_cpp_err"; then
2465   # Broken: success on invalid input.
2466 continue
2467 else
2468   echo "$as_me: failed program was:" >&5
2469   cat conftest.$ac_ext >&5
2470   # Passes both tests.
2471 ac_preproc_ok=:
2472 break
2473 fi
2474 rm -f conftest.err conftest.$ac_ext
2475
2476 done
2477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2478 rm -f conftest.err conftest.$ac_ext
2479 if $ac_preproc_ok; then
2480   :
2481 else
2482   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2483 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2484    { (exit 1); exit 1; }; }
2485 fi
2486
2487 ac_ext=c
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492
2493
2494 echo "$as_me:$LINENO: checking for inline" >&5
2495 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2496 if test "${ac_cv_c_inline+set}" = set; then
2497   echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499   ac_cv_c_inline=no
2500 for ac_kw in inline __inline__ __inline; do
2501   cat >conftest.$ac_ext <<_ACEOF
2502 #line $LINENO "configure"
2503 #include "confdefs.h"
2504 #ifndef __cplusplus
2505 typedef int foo_t;
2506 static $ac_kw foo_t static_foo () {return 0; }
2507 $ac_kw foo_t foo () {return 0; }
2508 #endif
2509
2510 _ACEOF
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513   (eval $ac_compile) 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); } &&
2517          { ac_try='test -s conftest.$ac_objext'
2518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519   (eval $ac_try) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }; }; then
2523   ac_cv_c_inline=$ac_kw; break
2524 else
2525   echo "$as_me: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2527 fi
2528 rm -f conftest.$ac_objext conftest.$ac_ext
2529 done
2530
2531 fi
2532 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2533 echo "${ECHO_T}$ac_cv_c_inline" >&6
2534 case $ac_cv_c_inline in
2535   inline | yes) ;;
2536   no)
2537 cat >>confdefs.h <<\_ACEOF
2538 #define inline
2539 _ACEOF
2540  ;;
2541   *)  cat >>confdefs.h <<_ACEOF
2542 #define inline $ac_cv_c_inline
2543 _ACEOF
2544  ;;
2545 esac
2546
2547
2548 # sizeof(char) is 1 by definition.
2549 echo "$as_me:$LINENO: checking size of short" >&5
2550 echo $ECHO_N "checking size of short... $ECHO_C" >&6
2551 if test "${ac_cv_sizeof_short+set}" = set; then
2552   echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
2555   cat >conftest.$ac_ext <<_ACEOF
2556 #line $LINENO "configure"
2557 #include "confdefs.h"
2558 #include "confdefs.h"
2559 #include <sys/types.h>
2560
2561
2562 int
2563 main ()
2564 {
2565 switch (0) case 0: case (sizeof (short) == $ac_size):;
2566   ;
2567   return 0;
2568 }
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572   (eval $ac_compile) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); } &&
2576          { ac_try='test -s conftest.$ac_objext'
2577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578   (eval $ac_try) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; }; then
2582   ac_cv_sizeof_short=$ac_size
2583 else
2584   echo "$as_me: failed program was:" >&5
2585 cat conftest.$ac_ext >&5
2586 fi
2587 rm -f conftest.$ac_objext conftest.$ac_ext
2588   if test x$ac_cv_sizeof_short != x ; then break; fi
2589 done
2590
2591 fi
2592
2593 if test x$ac_cv_sizeof_short = x ; then
2594   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
2595 echo "$as_me: error: cannot determine a size for short" >&2;}
2596    { (exit 1); exit 1; }; }
2597 fi
2598 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
2599 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
2600
2601 cat >>confdefs.h <<_ACEOF
2602 #define SIZEOF_SHORT $ac_cv_sizeof_short
2603 _ACEOF
2604
2605
2606 echo "$as_me:$LINENO: checking size of int" >&5
2607 echo $ECHO_N "checking size of int... $ECHO_C" >&6
2608 if test "${ac_cv_sizeof_int+set}" = set; then
2609   echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
2612   cat >conftest.$ac_ext <<_ACEOF
2613 #line $LINENO "configure"
2614 #include "confdefs.h"
2615 #include "confdefs.h"
2616 #include <sys/types.h>
2617
2618
2619 int
2620 main ()
2621 {
2622 switch (0) case 0: case (sizeof (int) == $ac_size):;
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629   (eval $ac_compile) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   ac_cv_sizeof_int=$ac_size
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 fi
2644 rm -f conftest.$ac_objext conftest.$ac_ext
2645   if test x$ac_cv_sizeof_int != x ; then break; fi
2646 done
2647
2648 fi
2649
2650 if test x$ac_cv_sizeof_int = x ; then
2651   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
2652 echo "$as_me: error: cannot determine a size for int" >&2;}
2653    { (exit 1); exit 1; }; }
2654 fi
2655 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
2656 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
2657
2658 cat >>confdefs.h <<_ACEOF
2659 #define SIZEOF_INT $ac_cv_sizeof_int
2660 _ACEOF
2661
2662
2663 echo "$as_me:$LINENO: checking size of long" >&5
2664 echo $ECHO_N "checking size of long... $ECHO_C" >&6
2665 if test "${ac_cv_sizeof_long+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
2669   cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2671 #include "confdefs.h"
2672 #include "confdefs.h"
2673 #include <sys/types.h>
2674
2675
2676 int
2677 main ()
2678 {
2679 switch (0) case 0: case (sizeof (long) == $ac_size):;
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 rm -f conftest.$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686   (eval $ac_compile) 2>&5
2687   ac_status=$?
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); } &&
2690          { ac_try='test -s conftest.$ac_objext'
2691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692   (eval $ac_try) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }; }; then
2696   ac_cv_sizeof_long=$ac_size
2697 else
2698   echo "$as_me: failed program was:" >&5
2699 cat conftest.$ac_ext >&5
2700 fi
2701 rm -f conftest.$ac_objext conftest.$ac_ext
2702   if test x$ac_cv_sizeof_long != x ; then break; fi
2703 done
2704
2705 fi
2706
2707 if test x$ac_cv_sizeof_long = x ; then
2708   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
2709 echo "$as_me: error: cannot determine a size for long" >&2;}
2710    { (exit 1); exit 1; }; }
2711 fi
2712 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
2713 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define SIZEOF_LONG $ac_cv_sizeof_long
2717 _ACEOF
2718
2719
2720
2721
2722 echo "$as_me:$LINENO: checking for egrep" >&5
2723 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2724 if test "${ac_cv_prog_egrep+set}" = set; then
2725   echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2728     then ac_cv_prog_egrep='grep -E'
2729     else ac_cv_prog_egrep='egrep'
2730     fi
2731 fi
2732 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2733 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2734  EGREP=$ac_cv_prog_egrep
2735
2736
2737 echo "$as_me:$LINENO: checking execution character set" >&5
2738 echo $ECHO_N "checking execution character set... $ECHO_C" >&6
2739 if test "${ac_cv_c_charset+set}" = set; then
2740   echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742   cat >conftest.$ac_ext <<_ACEOF
2743 #line $LINENO "configure"
2744 #include "confdefs.h"
2745 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
2746    && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
2747 ASCII
2748 #endif
2749 _ACEOF
2750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2751   $EGREP "ASCII" >/dev/null 2>&1; then
2752   ac_cv_c_charset=ASCII
2753 fi
2754 rm -f conftest*
2755
2756   if test x${ac_cv_c_charset+set} != xset; then
2757     cat >conftest.$ac_ext <<_ACEOF
2758 #line $LINENO "configure"
2759 #include "confdefs.h"
2760 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
2761    && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
2762 EBCDIC
2763 #endif
2764 _ACEOF
2765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2766   $EGREP "EBCDIC" >/dev/null 2>&1; then
2767   ac_cv_c_charset=EBCDIC
2768 fi
2769 rm -f conftest*
2770
2771   fi
2772   if test x${ac_cv_c_charset+set} != xset; then
2773     ac_cv_c_charset=unknown
2774   fi
2775 fi
2776 echo "$as_me:$LINENO: result: $ac_cv_c_charset" >&5
2777 echo "${ECHO_T}$ac_cv_c_charset" >&6
2778 if test $ac_cv_c_charset = unknown; then
2779   { { echo "$as_me:$LINENO: error: *** Cannot determine host character set." >&5
2780 echo "$as_me: error: *** Cannot determine host character set." >&2;}
2781    { (exit 1); exit 1; }; }
2782 elif test $ac_cv_c_charset = EBCDIC; then
2783
2784 cat >>confdefs.h <<\_ACEOF
2785 #define HOST_EBCDIC 1
2786 _ACEOF
2787
2788 fi
2789
2790 # If the native compiler is GCC, we can enable warnings even in stage1.
2791 # That's useful for people building cross-compilers, or just running a
2792 # quick `make'.
2793 warn_cflags=
2794 if test "x$GCC" = "xyes"; then
2795   warn_cflags='$(GCC_WARN_CFLAGS)'
2796 fi
2797
2798
2799 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2800 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2801 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2802 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2803   echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805   cat >conftest.make <<\_ACEOF
2806 all:
2807         @echo 'ac_maketemp="${MAKE}"'
2808 _ACEOF
2809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2810 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2811 if test -n "$ac_maketemp"; then
2812   eval ac_cv_prog_make_${ac_make}_set=yes
2813 else
2814   eval ac_cv_prog_make_${ac_make}_set=no
2815 fi
2816 rm -f conftest.make
2817 fi
2818 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2819   echo "$as_me:$LINENO: result: yes" >&5
2820 echo "${ECHO_T}yes" >&6
2821   SET_MAKE=
2822 else
2823   echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2825   SET_MAKE="MAKE=${MAKE-make}"
2826 fi
2827
2828
2829 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2830 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2831 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2832     if test x"$gas_flag" = x"no"; then
2833         echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2834 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2835     else
2836         echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2837 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2838     fi
2839 else
2840     echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2842 fi
2843
2844 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
2845 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
2846 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2847     if test x"$gnu_ld_flag" = x"no"; then
2848         echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
2849 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
2850     else
2851         echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2852 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
2853     fi
2854 else
2855     echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6
2857 fi
2858
2859 # Find some useful tools
2860 echo "$as_me:$LINENO: checking whether ln works" >&5
2861 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
2862 if test "${gcc_cv_prog_LN+set}" = set; then
2863   echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865   rm -f conftestdata_t
2866 echo >conftestdata_f
2867 if ln conftestdata_f conftestdata_t 2>/dev/null
2868 then
2869   gcc_cv_prog_LN="ln"
2870 else
2871   if ln -s conftestdata_f conftestdata_t 2>/dev/null
2872   then
2873     gcc_cv_prog_LN="ln -s"
2874   else
2875     gcc_cv_prog_LN=cp
2876   fi
2877 fi
2878 rm -f conftestdata_f conftestdata_t
2879
2880 fi
2881 LN="$gcc_cv_prog_LN"
2882 if test "$gcc_cv_prog_LN" = "ln"; then
2883   echo "$as_me:$LINENO: result: yes" >&5
2884 echo "${ECHO_T}yes" >&6
2885 else
2886   if test "$gcc_cv_prog_LN" = "ln -s"; then
2887     echo "$as_me:$LINENO: result: no, using ln -s" >&5
2888 echo "${ECHO_T}no, using ln -s" >&6
2889   else
2890     echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
2891 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
2892   fi
2893 fi
2894
2895 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2896 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2897 if test "${gcc_cv_prog_LN_S+set}" = set; then
2898   echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900   rm -f conftestdata_t
2901 echo >conftestdata_f
2902 if ln -s conftestdata_f conftestdata_t 2>/dev/null
2903 then
2904   gcc_cv_prog_LN_S="ln -s"
2905 else
2906   if ln conftestdata_f conftestdata_t 2>/dev/null
2907   then
2908     gcc_cv_prog_LN_S=ln
2909   else
2910     gcc_cv_prog_LN_S=cp
2911   fi
2912 fi
2913 rm -f conftestdata_f conftestdata_t
2914
2915 fi
2916 LN_S="$gcc_cv_prog_LN_S"
2917 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2918   echo "$as_me:$LINENO: result: yes" >&5
2919 echo "${ECHO_T}yes" >&6
2920 else
2921   if test "$gcc_cv_prog_LN_S" = "ln"; then
2922     echo "$as_me:$LINENO: result: no, using ln" >&5
2923 echo "${ECHO_T}no, using ln" >&6
2924   else
2925     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
2926 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
2927   fi
2928 fi
2929
2930 if test -n "$ac_tool_prefix"; then
2931   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2933 echo "$as_me:$LINENO: checking for $ac_word" >&5
2934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2935 if test "${ac_cv_prog_RANLIB+set}" = set; then
2936   echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938   if test -n "$RANLIB"; then
2939   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946   for ac_exec_ext in '' $ac_executable_extensions; do
2947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953 done
2954
2955 fi
2956 fi
2957 RANLIB=$ac_cv_prog_RANLIB
2958 if test -n "$RANLIB"; then
2959   echo "$as_me:$LINENO: result: $RANLIB" >&5
2960 echo "${ECHO_T}$RANLIB" >&6
2961 else
2962   echo "$as_me:$LINENO: result: no" >&5
2963 echo "${ECHO_T}no" >&6
2964 fi
2965
2966 fi
2967 if test -z "$ac_cv_prog_RANLIB"; then
2968   ac_ct_RANLIB=$RANLIB
2969   # Extract the first word of "ranlib", so it can be a program name with args.
2970 set dummy ranlib; ac_word=$2
2971 echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2973 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   if test -n "$ac_ct_RANLIB"; then
2977   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982   IFS=$as_save_IFS
2983   test -z "$as_dir" && as_dir=.
2984   for ac_exec_ext in '' $ac_executable_extensions; do
2985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986     ac_cv_prog_ac_ct_RANLIB="ranlib"
2987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988     break 2
2989   fi
2990 done
2991 done
2992
2993   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2994 fi
2995 fi
2996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2997 if test -n "$ac_ct_RANLIB"; then
2998   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2999 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3000 else
3001   echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3003 fi
3004
3005   RANLIB=$ac_ct_RANLIB
3006 else
3007   RANLIB="$ac_cv_prog_RANLIB"
3008 fi
3009
3010 ac_aux_dir=
3011 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3012   if test -f $ac_dir/install-sh; then
3013     ac_aux_dir=$ac_dir
3014     ac_install_sh="$ac_aux_dir/install-sh -c"
3015     break
3016   elif test -f $ac_dir/install.sh; then
3017     ac_aux_dir=$ac_dir
3018     ac_install_sh="$ac_aux_dir/install.sh -c"
3019     break
3020   elif test -f $ac_dir/shtool; then
3021     ac_aux_dir=$ac_dir
3022     ac_install_sh="$ac_aux_dir/shtool install -c"
3023     break
3024   fi
3025 done
3026 if test -z "$ac_aux_dir"; then
3027   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3028 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3029    { (exit 1); exit 1; }; }
3030 fi
3031 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3032 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3033 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3034
3035 # Find a good install program.  We prefer a C program (faster),
3036 # so one script is as good as another.  But avoid the broken or
3037 # incompatible versions:
3038 # SysV /etc/install, /usr/sbin/install
3039 # SunOS /usr/etc/install
3040 # IRIX /sbin/install
3041 # AIX /bin/install
3042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3044 # ./install, which can be erroneously created by make from ./install.sh.
3045 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
3046 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3047 if test -z "$INSTALL"; then
3048 if test "${ac_cv_path_install+set}" = set; then
3049   echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
3052   for ac_dir in $PATH; do
3053     # Account for people who put trailing slashes in PATH elements.
3054     case "$ac_dir/" in
3055     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3056     *)
3057       # OSF1 and SCO ODT 3.0 have their own names for install.
3058       for ac_prog in ginstall scoinst install; do
3059         if test -f $ac_dir/$ac_prog; then
3060           if test $ac_prog = install &&
3061             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3062             # AIX install.  It has an incompatible calling convention.
3063             # OSF/1 installbsd also uses dspmsg, but is usable.
3064             :
3065           else
3066             ac_cv_path_install="$ac_dir/$ac_prog -c"
3067             break 2
3068           fi
3069         fi
3070       done
3071       ;;
3072     esac
3073   done
3074   IFS="$ac_save_IFS"
3075
3076 fi
3077   if test "${ac_cv_path_install+set}" = set; then
3078     INSTALL="$ac_cv_path_install"
3079   else
3080     # As a last resort, use the slow shell script.  We don't cache a
3081     # path for INSTALL within a source directory, because that will
3082     # break other packages using the cache if that directory is
3083     # removed, or if the path is relative.
3084     INSTALL="$ac_install_sh"
3085   fi
3086 fi
3087 echo "$as_me:$LINENO: result: $INSTALL" >&5
3088 echo "${ECHO_T}$INSTALL" >&6
3089
3090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3091 # It thinks the first close brace ends the variable substitution.
3092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3093
3094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3095
3096
3097 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3099 if test "${ac_cv_header_stdc+set}" = set; then
3100   echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102   cat >conftest.$ac_ext <<_ACEOF
3103 #line $LINENO "configure"
3104 #include "confdefs.h"
3105 #include <stdlib.h>
3106 #include <stdarg.h>
3107 #include <string.h>
3108 #include <float.h>
3109
3110 _ACEOF
3111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3113   ac_status=$?
3114   grep -v '^ *+' conftest.er1 >conftest.err
3115   rm -f conftest.er1
3116   cat conftest.err >&5
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); } >/dev/null; then
3119   if test -s conftest.err; then
3120     ac_cpp_err=$ac_c_preproc_warn_flag
3121   else
3122     ac_cpp_err=
3123   fi
3124 else
3125   ac_cpp_err=yes
3126 fi
3127 if test -z "$ac_cpp_err"; then
3128   ac_cv_header_stdc=yes
3129 else
3130   echo "$as_me: failed program was:" >&5
3131   cat conftest.$ac_ext >&5
3132   ac_cv_header_stdc=no
3133 fi
3134 rm -f conftest.err conftest.$ac_ext
3135
3136 if test $ac_cv_header_stdc = yes; then
3137   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3138   cat >conftest.$ac_ext <<_ACEOF
3139 #line $LINENO "configure"
3140 #include "confdefs.h"
3141 #include <string.h>
3142
3143 _ACEOF
3144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3145   $EGREP "memchr" >/dev/null 2>&1; then
3146   :
3147 else
3148   ac_cv_header_stdc=no
3149 fi
3150 rm -f conftest*
3151
3152 fi
3153
3154 if test $ac_cv_header_stdc = yes; then
3155   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3156   cat >conftest.$ac_ext <<_ACEOF
3157 #line $LINENO "configure"
3158 #include "confdefs.h"
3159 #include <stdlib.h>
3160
3161 _ACEOF
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163   $EGREP "free" >/dev/null 2>&1; then
3164   :
3165 else
3166   ac_cv_header_stdc=no
3167 fi
3168 rm -f conftest*
3169
3170 fi
3171
3172 if test $ac_cv_header_stdc = yes; then
3173   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3174   if test "$cross_compiling" = yes; then
3175   :
3176 else
3177   cat >conftest.$ac_ext <<_ACEOF
3178 #line $LINENO "configure"
3179 #include "confdefs.h"
3180 #include <ctype.h>
3181 #if ((' ' & 0x0FF) == 0x020)
3182 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3183 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3184 #else
3185 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3186                      || ('j' <= (c) && (c) <= 'r') \
3187                      || ('s' <= (c) && (c) <= 'z'))
3188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3189 #endif
3190
3191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3192 int
3193 main ()
3194 {
3195   int i;
3196   for (i = 0; i < 256; i++)
3197     if (XOR (islower (i), ISLOWER (i))
3198         || toupper (i) != TOUPPER (i))
3199       exit(2);
3200   exit (0);
3201 }
3202 _ACEOF
3203 rm -f conftest$ac_exeext
3204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3205   (eval $ac_link) 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210   (eval $ac_try) 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }; }; then
3214   :
3215 else
3216   echo "$as_me: program exited with status $ac_status" >&5
3217 echo "$as_me: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3219 ( exit $ac_status )
3220 ac_cv_header_stdc=no
3221 fi
3222 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3223 fi
3224 fi
3225 fi
3226 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3227 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3228 if test $ac_cv_header_stdc = yes; then
3229
3230 cat >>confdefs.h <<\_ACEOF
3231 #define STDC_HEADERS 1
3232 _ACEOF
3233
3234 fi
3235
3236 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3237 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3238 if test "${ac_cv_header_time+set}" = set; then
3239   echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241   cat >conftest.$ac_ext <<_ACEOF
3242 #line $LINENO "configure"
3243 #include "confdefs.h"
3244 #include <sys/types.h>
3245 #include <sys/time.h>
3246 #include <time.h>
3247
3248 int
3249 main ()
3250 {
3251 if ((struct tm *) 0)
3252 return 0;
3253   ;
3254   return 0;
3255 }
3256 _ACEOF
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259   (eval $ac_compile) 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } &&
3263          { ac_try='test -s conftest.$ac_objext'
3264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265   (eval $ac_try) 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }; }; then
3269   ac_cv_header_time=yes
3270 else
3271   echo "$as_me: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3273 ac_cv_header_time=no
3274 fi
3275 rm -f conftest.$ac_objext conftest.$ac_ext
3276 fi
3277 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3278 echo "${ECHO_T}$ac_cv_header_time" >&6
3279 if test $ac_cv_header_time = yes; then
3280
3281 cat >>confdefs.h <<\_ACEOF
3282 #define TIME_WITH_SYS_TIME 1
3283 _ACEOF
3284
3285 fi
3286
3287 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
3288 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
3289 if test "${gcc_cv_header_string+set}" = set; then
3290   echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292   cat >conftest.$ac_ext <<_ACEOF
3293 #line $LINENO "configure"
3294 #include "confdefs.h"
3295 #include <string.h>
3296 #include <strings.h>
3297 int
3298 main ()
3299 {
3300
3301   ;
3302   return 0;
3303 }
3304 _ACEOF
3305 rm -f conftest.$ac_objext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307   (eval $ac_compile) 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); } &&
3311          { ac_try='test -s conftest.$ac_objext'
3312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313   (eval $ac_try) 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); }; }; then
3317   gcc_cv_header_string=yes
3318 else
3319   echo "$as_me: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3321 gcc_cv_header_string=no
3322 fi
3323 rm -f conftest.$ac_objext conftest.$ac_ext
3324 fi
3325 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
3326 echo "${ECHO_T}$gcc_cv_header_string" >&6
3327 if test $gcc_cv_header_string = yes; then
3328
3329 cat >>confdefs.h <<\_ACEOF
3330 #define STRING_WITH_STRINGS 1
3331 _ACEOF
3332
3333 fi
3334
3335 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3336 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3337 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3338   echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340   cat >conftest.$ac_ext <<_ACEOF
3341 #line $LINENO "configure"
3342 #include "confdefs.h"
3343 #include <sys/types.h>
3344 #include <sys/wait.h>
3345 #ifndef WEXITSTATUS
3346 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3347 #endif
3348 #ifndef WIFEXITED
3349 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3350 #endif
3351
3352 int
3353 main ()
3354 {
3355   int s;
3356   wait (&s);
3357   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3358   ;
3359   return 0;
3360 }
3361 _ACEOF
3362 rm -f conftest.$ac_objext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3364   (eval $ac_compile) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); } &&
3368          { ac_try='test -s conftest.$ac_objext'
3369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370   (eval $ac_try) 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); }; }; then
3374   ac_cv_header_sys_wait_h=yes
3375 else
3376   echo "$as_me: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 ac_cv_header_sys_wait_h=no
3379 fi
3380 rm -f conftest.$ac_objext conftest.$ac_ext
3381 fi
3382 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3383 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3384 if test $ac_cv_header_sys_wait_h = yes; then
3385
3386 cat >>confdefs.h <<\_ACEOF
3387 #define HAVE_SYS_WAIT_H 1
3388 _ACEOF
3389
3390 fi
3391
3392 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3403                   inttypes.h stdint.h unistd.h
3404 do
3405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3406 echo "$as_me:$LINENO: checking for $ac_header" >&5
3407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3409   echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411   cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 #include "confdefs.h"
3414 $ac_includes_default
3415
3416 #include <$ac_header>
3417 _ACEOF
3418 rm -f conftest.$ac_objext
3419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420   (eval $ac_compile) 2>&5
3421   ac_status=$?
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); } &&
3424          { ac_try='test -s conftest.$ac_objext'
3425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426   (eval $ac_try) 2>&5
3427   ac_status=$?
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); }; }; then
3430   eval "$as_ac_Header=yes"
3431 else
3432   echo "$as_me: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3434 eval "$as_ac_Header=no"
3435 fi
3436 rm -f conftest.$ac_objext conftest.$ac_ext
3437 fi
3438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3441   cat >>confdefs.h <<_ACEOF
3442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3443 _ACEOF
3444
3445 fi
3446
3447 done
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
3465                  fcntl.h unistd.h sys/file.h sys/time.h \
3466                  sys/param.h sys/stat.h \
3467                  direct.h malloc.h
3468 do
3469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3471   echo "$as_me:$LINENO: checking for $ac_header" >&5
3472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 fi
3476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3478 else
3479   # Is the header compilable?
3480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3482 cat >conftest.$ac_ext <<_ACEOF
3483 #line $LINENO "configure"
3484 #include "confdefs.h"
3485 $ac_includes_default
3486 #include <$ac_header>
3487 _ACEOF
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490   (eval $ac_compile) 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } &&
3494          { ac_try='test -s conftest.$ac_objext'
3495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496   (eval $ac_try) 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; }; then
3500   ac_header_compiler=yes
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 ac_header_compiler=no
3505 fi
3506 rm -f conftest.$ac_objext conftest.$ac_ext
3507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3508 echo "${ECHO_T}$ac_header_compiler" >&6
3509
3510 # Is the header present?
3511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3513 cat >conftest.$ac_ext <<_ACEOF
3514 #line $LINENO "configure"
3515 #include "confdefs.h"
3516 #include <$ac_header>
3517 _ACEOF
3518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } >/dev/null; then
3526   if test -s conftest.err; then
3527     ac_cpp_err=$ac_c_preproc_warn_flag
3528   else
3529     ac_cpp_err=
3530   fi
3531 else
3532   ac_cpp_err=yes
3533 fi
3534 if test -z "$ac_cpp_err"; then
3535   ac_header_preproc=yes
3536 else
3537   echo "$as_me: failed program was:" >&5
3538   cat conftest.$ac_ext >&5
3539   ac_header_preproc=no
3540 fi
3541 rm -f conftest.err conftest.$ac_ext
3542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3543 echo "${ECHO_T}$ac_header_preproc" >&6
3544
3545 # So?  What about this header?
3546 case $ac_header_compiler:$ac_header_preproc in
3547   yes:no )
3548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3552   no:yes )
3553     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3555     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3559 esac
3560 echo "$as_me:$LINENO: checking for $ac_header" >&5
3561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3563   echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565   eval "$as_ac_Header=$ac_header_preproc"
3566 fi
3567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3569
3570 fi
3571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3572   cat >>confdefs.h <<_ACEOF
3573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3574 _ACEOF
3575
3576 fi
3577
3578 done
3579
3580
3581 # Check for thread headers.
3582
3583 # These tests can't be done till we know if we have limits.h.
3584 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
3585 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
3586 if test "${gcc_cv_decl_char_bit+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   cat >conftest.$ac_ext <<_ACEOF
3590 #line $LINENO "configure"
3591 #include "confdefs.h"
3592 #ifdef HAVE_LIMITS_H
3593 #include <limits.h>
3594 #endif
3595 #ifdef CHAR_BIT
3596 found
3597 #endif
3598 _ACEOF
3599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3600   $EGREP "found" >/dev/null 2>&1; then
3601   gcc_cv_decl_char_bit=yes
3602 else
3603   gcc_cv_decl_char_bit=no
3604 fi
3605 rm -f conftest*
3606
3607
3608 fi
3609 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
3610 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
3611 if test $gcc_cv_decl_char_bit = no; then
3612   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
3613 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
3614 if test "${gcc_cv_c_nbby+set}" = set; then
3615   echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617   i=8
3618  gcc_cv_c_nbby=
3619  while test $i -lt 65; do
3620    cat >conftest.$ac_ext <<_ACEOF
3621 #line $LINENO "configure"
3622 #include "confdefs.h"
3623
3624 int
3625 main ()
3626 {
3627 switch(0) {
3628   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
3629   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
3630   ; }
3631   ;
3632   return 0;
3633 }
3634 _ACEOF
3635 rm -f conftest.$ac_objext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637   (eval $ac_compile) 2>&5
3638   ac_status=$?
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); } &&
3641          { ac_try='test -s conftest.$ac_objext'
3642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643   (eval $ac_try) 2>&5
3644   ac_status=$?
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); }; }; then
3647   gcc_cv_c_nbby=$i; break
3648 else
3649   echo "$as_me: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3651 fi
3652 rm -f conftest.$ac_objext conftest.$ac_ext
3653    i=`expr $i + 1`
3654  done
3655  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
3656
3657 fi
3658 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
3659 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
3660 if test $gcc_cv_c_nbby = failed; then
3661   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
3662 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
3663    { (exit 1); exit 1; }; }
3664 else
3665
3666 cat >>confdefs.h <<_ACEOF
3667 #define CHAR_BIT $gcc_cv_c_nbby
3668 _ACEOF
3669
3670 fi
3671 fi
3672 echo "$as_me:$LINENO: checking byte ordering" >&5
3673 echo $ECHO_N "checking byte ordering... $ECHO_C" >&6
3674 if test "${ac_cv_c_compile_endian+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   ac_cv_c_compile_endian=unknown
3678
3679
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3687 "configure"
3688 #include "confdefs.h"
3689
3690 #ifdef HAVE_LIMITS_H
3691 # include <limits.h>
3692 #endif
3693 /* This structure must have no internal padding.  */
3694   struct {
3695     char prefix[sizeof "\nendian:" - 1];
3696     short word;
3697     char postfix[2];
3698  } tester = {
3699     "\nendian:",
3700 #if SIZEOF_SHORT == 4
3701     ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
3702 #endif
3703     ('A' << CHAR_BIT) | 'B',
3704     'X', '\n'
3705 };
3706 EOF
3707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708   (eval $ac_compile) 2>&5
3709   ac_status=$?
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); }; then
3712   od -c conftest.o |
3713     sed 's/^[0-7]*[     ]*/ /
3714           s/\*/./g
3715           s/ \\n/*/g
3716           s/ [0-9][0-9][0-9]/./g
3717           s/  \\[^ ]/./g' |
3718     tr -d '
3719  ' | tr -s '*' '
3720 ' | fold | sed '$a\
3721 ' > conftest.dmp
3722   if   grep 'endian:AB' conftest.dmp >/dev/null 2>&1; then
3723     ac_cv_c_compile_endian=big-endian
3724   elif grep 'endian:BA' conftest.dmp >/dev/null 2>&1; then
3725     ac_cv_c_compile_endian=little-endian
3726   fi
3727 fi
3728 rm -rf conftest*
3729 ac_ext=c
3730 ac_cpp='$CPP $CPPFLAGS'
3731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734
3735
3736 fi
3737 echo "$as_me:$LINENO: result: $ac_cv_c_compile_endian" >&5
3738 echo "${ECHO_T}$ac_cv_c_compile_endian" >&6
3739 if test $ac_cv_c_compile_endian = unknown; then
3740   { { echo "$as_me:$LINENO: error: *** unable to determine endianness" >&5
3741 echo "$as_me: error: *** unable to determine endianness" >&2;}
3742    { (exit 1); exit 1; }; }
3743 elif test $ac_cv_c_compile_endian = big-endian; then
3744
3745 cat >>confdefs.h <<\_ACEOF
3746 #define HOST_WORDS_BIG_ENDIAN 1
3747 _ACEOF
3748
3749 fi
3750
3751
3752 # See if we have the mktemp command.
3753 # Extract the first word of "mktemp", so it can be a program name with args.
3754 set dummy mktemp; ac_word=$2
3755 echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   if test -n "$have_mktemp_command"; then
3761   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3765 do
3766   IFS=$as_save_IFS
3767   test -z "$as_dir" && as_dir=.
3768   for ac_exec_ext in '' $ac_executable_extensions; do
3769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770     ac_cv_prog_have_mktemp_command="yes"
3771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772     break 2
3773   fi
3774 done
3775 done
3776
3777   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
3778 fi
3779 fi
3780 have_mktemp_command=$ac_cv_prog_have_mktemp_command
3781 if test -n "$have_mktemp_command"; then
3782   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
3783 echo "${ECHO_T}$have_mktemp_command" >&6
3784 else
3785   echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6
3787 fi
3788
3789
3790 # Extract the first word of "strip", so it can be a program name with args.
3791 set dummy strip; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_prog_STRIP+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   if test -n "$STRIP"; then
3798   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805   for ac_exec_ext in '' $ac_executable_extensions; do
3806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807     ac_cv_prog_STRIP="strip"
3808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812 done
3813
3814   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3815 fi
3816 fi
3817 STRIP=$ac_cv_prog_STRIP
3818 if test -n "$STRIP"; then
3819   echo "$as_me:$LINENO: result: $STRIP" >&5
3820 echo "${ECHO_T}$STRIP" >&6
3821 else
3822   echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3824 fi
3825
3826
3827 # See if the stage1 system preprocessor understands the ANSI C
3828 # preprocessor stringification operator.  (Used by symcat.h.)
3829 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
3830 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
3831 if test "${ac_cv_c_stringize+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   cat >conftest.$ac_ext <<_ACEOF
3835 #line $LINENO "configure"
3836 #include "confdefs.h"
3837 #define x(y) #y
3838
3839 char *s = x(teststring);
3840 _ACEOF
3841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3842   $EGREP "#teststring" >/dev/null 2>&1; then
3843   ac_cv_c_stringize=no
3844 else
3845   ac_cv_c_stringize=yes
3846 fi
3847 rm -f conftest*
3848
3849 fi
3850 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
3851 echo "${ECHO_T}$ac_cv_c_stringize" >&6
3852 if test $ac_cv_c_stringize = yes; then
3853
3854 cat >>confdefs.h <<\_ACEOF
3855 #define HAVE_STRINGIZE 1
3856 _ACEOF
3857
3858 fi
3859
3860
3861
3862
3863
3864
3865
3866 for ac_func in clock strchr strrchr lstat
3867 do
3868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3869 echo "$as_me:$LINENO: checking for $ac_func" >&5
3870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3871 if eval "test \"\${$as_ac_var+set}\" = set"; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   cat >conftest.$ac_ext <<_ACEOF
3875 #line $LINENO "configure"
3876 #include "confdefs.h"
3877 /* System header to define __stub macros and hopefully few prototypes,
3878     which can conflict with char $ac_func (); below.  */
3879 #include <assert.h>
3880 /* Override any gcc2 internal prototype to avoid an error.  */
3881 #ifdef __cplusplus
3882 extern "C"
3883 #endif
3884 /* We use char because int might match the return type of a gcc2
3885    builtin and then its argument prototype would still apply.  */
3886 char $ac_func ();
3887 char (*f) ();
3888
3889 int
3890 main ()
3891 {
3892 /* The GNU C library defines this for functions which it implements
3893     to always fail with ENOSYS.  Some functions are actually named
3894     something starting with __ and the normal name is an alias.  */
3895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3896 choke me
3897 #else
3898 f = $ac_func;
3899 #endif
3900
3901   ;
3902   return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.$ac_objext conftest$ac_exeext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3907   (eval $ac_link) 2>&5
3908   ac_status=$?
3909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910   (exit $ac_status); } &&
3911          { ac_try='test -s conftest$ac_exeext'
3912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913   (eval $ac_try) 2>&5
3914   ac_status=$?
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); }; }; then
3917   eval "$as_ac_var=yes"
3918 else
3919   echo "$as_me: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3921 eval "$as_ac_var=no"
3922 fi
3923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3924 fi
3925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3927 if test `eval echo '${'$as_ac_var'}'` = yes; then
3928   cat >>confdefs.h <<_ACEOF
3929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3930 _ACEOF
3931
3932 fi
3933 done
3934
3935
3936 echo "$as_me:$LINENO: checking for ssize_t" >&5
3937 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
3938 if test "${ac_cv_type_ssize_t+set}" = set; then
3939   echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941   cat >conftest.$ac_ext <<_ACEOF
3942 #line $LINENO "configure"
3943 #include "confdefs.h"
3944 $ac_includes_default
3945 int
3946 main ()
3947 {
3948 if ((ssize_t *) 0)
3949   return 0;
3950 if (sizeof (ssize_t))
3951   return 0;
3952   ;
3953   return 0;
3954 }
3955 _ACEOF
3956 rm -f conftest.$ac_objext
3957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958   (eval $ac_compile) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); } &&
3962          { ac_try='test -s conftest.$ac_objext'
3963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964   (eval $ac_try) 2>&5
3965   ac_status=$?
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); }; }; then
3968   ac_cv_type_ssize_t=yes
3969 else
3970   echo "$as_me: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3972 ac_cv_type_ssize_t=no
3973 fi
3974 rm -f conftest.$ac_objext conftest.$ac_ext
3975 fi
3976 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
3977 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
3978 if test $ac_cv_type_ssize_t = yes; then
3979   :
3980 else
3981
3982 cat >>confdefs.h <<_ACEOF
3983 #define ssize_t int
3984 _ACEOF
3985
3986 fi
3987
3988
3989
3990 for ac_func in getpagesize
3991 do
3992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3993 echo "$as_me:$LINENO: checking for $ac_func" >&5
3994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3995 if eval "test \"\${$as_ac_var+set}\" = set"; then
3996   echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998   cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4000 #include "confdefs.h"
4001 /* System header to define __stub macros and hopefully few prototypes,
4002     which can conflict with char $ac_func (); below.  */
4003 #include <assert.h>
4004 /* Override any gcc2 internal prototype to avoid an error.  */
4005 #ifdef __cplusplus
4006 extern "C"
4007 #endif
4008 /* We use char because int might match the return type of a gcc2
4009    builtin and then its argument prototype would still apply.  */
4010 char $ac_func ();
4011 char (*f) ();
4012
4013 int
4014 main ()
4015 {
4016 /* The GNU C library defines this for functions which it implements
4017     to always fail with ENOSYS.  Some functions are actually named
4018     something starting with __ and the normal name is an alias.  */
4019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4020 choke me
4021 #else
4022 f = $ac_func;
4023 #endif
4024
4025   ;
4026   return 0;
4027 }
4028 _ACEOF
4029 rm -f conftest.$ac_objext conftest$ac_exeext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4031   (eval $ac_link) 2>&5
4032   ac_status=$?
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); } &&
4035          { ac_try='test -s conftest$ac_exeext'
4036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037   (eval $ac_try) 2>&5
4038   ac_status=$?
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); }; }; then
4041   eval "$as_ac_var=yes"
4042 else
4043   echo "$as_me: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4045 eval "$as_ac_var=no"
4046 fi
4047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4048 fi
4049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4051 if test `eval echo '${'$as_ac_var'}'` = yes; then
4052   cat >>confdefs.h <<_ACEOF
4053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4054 _ACEOF
4055
4056 fi
4057 done
4058
4059 # The test program for the next two tests is the same except for one
4060 # set of ifdefs.
4061 cat >ct-mmap.inc <<'EOF'
4062 #include <sys/types.h>
4063 #include <sys/mman.h>
4064 #include <fcntl.h>
4065 #include <signal.h>
4066 #include <setjmp.h>
4067 #include <stdio.h>
4068
4069 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4070 # define MAP_ANONYMOUS MAP_ANON
4071 #endif
4072
4073 /* This mess was copied from the GNU getpagesize.h.  */
4074 #ifndef HAVE_GETPAGESIZE
4075 # ifdef HAVE_UNISTD_H
4076 #  include <unistd.h>
4077 # endif
4078
4079 /* Assume that all systems that can run configure have sys/param.h.  */
4080 # ifndef HAVE_SYS_PARAM_H
4081 #  define HAVE_SYS_PARAM_H 1
4082 # endif
4083
4084 # ifdef _SC_PAGESIZE
4085 #  define getpagesize() sysconf(_SC_PAGESIZE)
4086 # else /* no _SC_PAGESIZE */
4087 #  ifdef HAVE_SYS_PARAM_H
4088 #   include <sys/param.h>
4089 #   ifdef EXEC_PAGESIZE
4090 #    define getpagesize() EXEC_PAGESIZE
4091 #   else /* no EXEC_PAGESIZE */
4092 #    ifdef NBPG
4093 #     define getpagesize() NBPG * CLSIZE
4094 #     ifndef CLSIZE
4095 #      define CLSIZE 1
4096 #     endif /* no CLSIZE */
4097 #    else /* no NBPG */
4098 #     ifdef NBPC
4099 #      define getpagesize() NBPC
4100 #     else /* no NBPC */
4101 #      ifdef PAGESIZE
4102 #       define getpagesize() PAGESIZE
4103 #      endif /* PAGESIZE */
4104 #     endif /* no NBPC */
4105 #    endif /* no NBPG */
4106 #   endif /* no EXEC_PAGESIZE */
4107 #  else /* no HAVE_SYS_PARAM_H */
4108 #   define getpagesize() 8192   /* punt totally */
4109 #  endif /* no HAVE_SYS_PARAM_H */
4110 # endif /* no _SC_PAGESIZE */
4111
4112 #endif /* no HAVE_GETPAGESIZE */
4113
4114 #ifndef MAP_FAILED
4115 # define MAP_FAILED -1
4116 #endif
4117
4118 #undef perror_exit
4119 #define perror_exit(str, val) \
4120   do { perror(str); exit(val); } while (0)
4121
4122 /* Some versions of cygwin mmap require that munmap is called with the
4123    same parameters as mmap.  GCC expects that this is not the case.
4124    Test for various forms of this problem.  Warning - icky signal games.  */
4125
4126 static sigset_t unblock_sigsegv;
4127 static jmp_buf r;
4128 static size_t pg;
4129 static int devzero;
4130
4131 static char *
4132 anonmap (size)
4133      size_t size;
4134 {
4135 #ifdef USE_MAP_ANON
4136   return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4137                         MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4138 #else
4139   return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4140                         MAP_PRIVATE, devzero, 0);
4141 #endif
4142 }
4143
4144 static void
4145 sigsegv (unused)
4146      int unused;
4147 {
4148   sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4149   longjmp (r, 1);
4150 }
4151
4152 /* Basic functionality test.  */
4153 void
4154 test_0 ()
4155 {
4156   char *x = anonmap (pg);
4157   if (x == (char *) MAP_FAILED)
4158     perror_exit("test 0 mmap", 2);
4159
4160   *(int *)x += 1;
4161
4162   if (munmap(x, pg) < 0)
4163     perror_exit("test 0 munmap", 3);
4164 }
4165
4166 /* 1. If we map a 2-page region and unmap its second page, the first page
4167    must remain.  */
4168 static void
4169 test_1 ()
4170 {
4171   char *x = anonmap (pg * 2);
4172   if (x == (char *)MAP_FAILED)
4173     perror_exit ("test 1 mmap", 4);
4174
4175   signal (SIGSEGV, sigsegv);
4176   if (setjmp (r))
4177     perror_exit ("test 1 fault", 5);
4178
4179   x[0] = 1;
4180   x[pg] = 1;
4181
4182   if (munmap (x + pg, pg) < 0)
4183     perror_exit ("test 1 munmap 1", 6);
4184   x[0] = 2;
4185
4186   if (setjmp (r) == 0)
4187     {
4188       x[pg] = 1;
4189       perror_exit ("test 1 no fault", 7);
4190     }
4191   if (munmap (x, pg) < 0)
4192     perror_exit ("test 1 munmap 2", 8);
4193 }
4194
4195 /* 2. If we map a 2-page region and unmap its first page, the second
4196    page must remain.  */
4197 static void
4198 test_2 ()
4199 {
4200   char *x = anonmap (pg * 2);
4201   if (x == (char *)MAP_FAILED)
4202     perror_exit ("test 2 mmap", 9);
4203
4204   signal (SIGSEGV, sigsegv);
4205   if (setjmp (r))
4206     perror_exit ("test 2 fault", 10);
4207
4208   x[0] = 1;
4209   x[pg] = 1;
4210
4211   if (munmap (x, pg) < 0)
4212     perror_exit ("test 2 munmap 1", 11);
4213
4214   x[pg] = 2;
4215
4216   if (setjmp (r) == 0)
4217     {
4218       x[0] = 1;
4219       perror_exit ("test 2 no fault", 12);
4220     }
4221
4222   if (munmap (x+pg, pg) < 0)
4223     perror_exit ("test 2 munmap 2", 13);
4224 }
4225
4226 /* 3. If we map two adjacent 1-page regions and unmap them both with
4227    one munmap, both must go away.
4228
4229    Getting two adjacent 1-page regions with two mmap calls is slightly
4230    tricky.  All OS's tested skip over already-allocated blocks; therefore
4231    we have been careful to unmap all allocated regions in previous tests.
4232    HP/UX allocates pages backward in memory.  No OS has yet been observed
4233    to be so perverse as to leave unmapped space between consecutive calls
4234    to mmap.  */
4235
4236 static void
4237 test_3 ()
4238 {
4239   char *x, *y, *z;
4240
4241   x = anonmap (pg);
4242   if (x == (char *)MAP_FAILED)
4243     perror_exit ("test 3 mmap 1", 14);
4244   y = anonmap (pg);
4245   if (y == (char *)MAP_FAILED)
4246     perror_exit ("test 3 mmap 2", 15);
4247
4248   if (y != x + pg)
4249     {
4250       if (y == x - pg)
4251         z = y, y = x, x = z;
4252       else
4253         {
4254           fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4255                    (unsigned long)x, (unsigned long)y);
4256           exit (16);
4257         }
4258     }
4259
4260   signal (SIGSEGV, sigsegv);
4261   if (setjmp (r))
4262     perror_exit ("test 3 fault", 17);
4263
4264   x[0] = 1;
4265   y[0] = 1;
4266
4267   if (munmap (x, pg*2) < 0)
4268     perror_exit ("test 3 munmap", 18);
4269
4270   if (setjmp (r) == 0)
4271     {
4272       x[0] = 1;
4273       perror_exit ("test 3 no fault 1", 19);
4274     }
4275
4276   signal (SIGSEGV, sigsegv);
4277   if (setjmp (r) == 0)
4278     {
4279       y[0] = 1;
4280       perror_exit ("test 3 no fault 2", 20);
4281     }
4282 }
4283
4284 int
4285 main ()
4286 {
4287   sigemptyset (&unblock_sigsegv);
4288   sigaddset (&unblock_sigsegv, SIGSEGV);
4289   pg = getpagesize ();
4290 #ifndef USE_MAP_ANON
4291   devzero = open ("/dev/zero", O_RDWR);
4292   if (devzero < 0)
4293     perror_exit ("open /dev/zero", 1);
4294 #endif
4295
4296   test_0();
4297   test_1();
4298   test_2();
4299   test_3();
4300
4301   exit(0);
4302 }
4303 EOF
4304
4305 echo "$as_me:$LINENO: checking for working mmap from /dev/zero" >&5
4306 echo $ECHO_N "checking for working mmap from /dev/zero... $ECHO_C" >&6
4307 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   if test "$cross_compiling" = yes; then
4311   # If this is not cygwin, and /dev/zero is a character device, it's probably
4312  # safe to assume it works.
4313  case "$host_os" in
4314    cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
4315    * ) if test -c /dev/zero
4316        then ac_cv_func_mmap_dev_zero=yes
4317        else ac_cv_func_mmap_dev_zero=no
4318        fi ;;
4319   esac
4320 else
4321   cat >conftest.$ac_ext <<_ACEOF
4322 #line $LINENO "configure"
4323 #include "confdefs.h"
4324 #include "ct-mmap.inc"
4325 _ACEOF
4326 rm -f conftest$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328   (eval $ac_link) 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333   (eval $ac_try) 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); }; }; then
4337   ac_cv_func_mmap_dev_zero=yes
4338 else
4339   echo "$as_me: program exited with status $ac_status" >&5
4340 echo "$as_me: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4342 ( exit $ac_status )
4343 if test $? -lt 4
4344  then ac_cv_func_mmap_dev_zero=no
4345  else ac_cv_func_mmap_dev_zero=buggy
4346  fi
4347 fi
4348 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4349 fi
4350
4351 fi
4352 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
4353 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
4354 if test $ac_cv_func_mmap_dev_zero = yes; then
4355
4356 cat >>confdefs.h <<\_ACEOF
4357 #define HAVE_MMAP_DEV_ZERO 1
4358 _ACEOF
4359
4360 fi
4361
4362 echo "$as_me:$LINENO: checking for working mmap with MAP_ANON(YMOUS)" >&5
4363 echo $ECHO_N "checking for working mmap with MAP_ANON(YMOUS)... $ECHO_C" >&6
4364 if test "${ac_cv_func_mmap_anon+set}" = set; then
4365   echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367   if test "$cross_compiling" = yes; then
4368   # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4369  # just because it's there. Some SCO Un*xen define it but don't implement it.
4370  ac_cv_func_mmap_anon=no
4371 else
4372   cat >conftest.$ac_ext <<_ACEOF
4373 #line $LINENO "configure"
4374 #include "confdefs.h"
4375 #define USE_MAP_ANON
4376 #include "ct-mmap.inc"
4377 _ACEOF
4378 rm -f conftest$ac_exeext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380   (eval $ac_link) 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; }; then
4389   ac_cv_func_mmap_anon=yes
4390 else
4391   echo "$as_me: program exited with status $ac_status" >&5
4392 echo "$as_me: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4394 ( exit $ac_status )
4395 if test $? -lt 4
4396  then ac_cv_func_mmap_anon=no
4397  else ac_cv_func_mmap_anon=buggy
4398  fi
4399 fi
4400 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4401 fi
4402
4403 fi
4404 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
4405 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
4406 if test $ac_cv_func_mmap_anon = yes; then
4407
4408 cat >>confdefs.h <<\_ACEOF
4409 #define HAVE_MMAP_ANON 1
4410 _ACEOF
4411
4412 fi
4413 rm -f ct-mmap.inc
4414
4415 echo "$as_me:$LINENO: checking for working mmap of a file" >&5
4416 echo $ECHO_N "checking for working mmap of a file... $ECHO_C" >&6
4417 if test "${ac_cv_func_mmap_file+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   # Create a file one thousand bytes long.
4421 for i in 1 2 3 4 5 6 7 8 9 0
4422 do for j in 1 2 3 4 5 6 7 8 9 0
4423 do echo $i $j xxxxx
4424 done
4425 done > conftestdata$$
4426
4427 if test "$cross_compiling" = yes; then
4428   ac_cv_func_mmap_file=no
4429 else
4430   cat >conftest.$ac_ext <<_ACEOF
4431 #line $LINENO "configure"
4432 #include "confdefs.h"
4433
4434 /* Test by Zack Weinberg.  Modified from MMAP_ANYWHERE test by
4435    Richard Henderson and Alexandre Oliva.
4436    Check whether read-only mmap of a plain file works. */
4437 #include <sys/types.h>
4438 #include <sys/stat.h>
4439 #include <fcntl.h>
4440 #include <sys/mman.h>
4441
4442 int main()
4443 {
4444   char *x;
4445   int fd;
4446   struct stat st;
4447
4448   fd = open("conftestdata$$", O_RDONLY);
4449   if (fd < 0)
4450     exit(1);
4451
4452   if (fstat (fd, &st))
4453     exit(2);
4454
4455   x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4456   if (x == (char *) -1)
4457     exit(3);
4458
4459   if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4460     exit(4);
4461
4462   if (munmap(x, st.st_size) < 0)
4463     exit(5);
4464
4465   exit(0);
4466 }
4467 _ACEOF
4468 rm -f conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470   (eval $ac_link) 2>&5
4471   ac_status=$?
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475   (eval $ac_try) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; }; then
4479   ac_cv_func_mmap_file=yes
4480 else
4481   echo "$as_me: program exited with status $ac_status" >&5
4482 echo "$as_me: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4484 ( exit $ac_status )
4485 ac_cv_func_mmap_file=no
4486 fi
4487 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4488 fi
4489 fi
4490 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
4491 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
4492 if test $ac_cv_func_mmap_file = yes; then
4493
4494 cat >>confdefs.h <<\_ACEOF
4495 #define HAVE_MMAP_FILE 1
4496 _ACEOF
4497
4498 fi
4499
4500
4501 # We will need to find libiberty.h and ansidecl.h
4502 saved_CFLAGS="$CFLAGS"
4503 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4504 for ac_func in getenv abort errno \
4505         malloc realloc calloc free clock
4506 do
4507   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4508 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
4509 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
4510 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   cat >conftest.$ac_ext <<_ACEOF
4514 #line $LINENO "configure"
4515 #include "confdefs.h"
4516 #undef $ac_tr_decl
4517 #define $ac_tr_decl 1
4518
4519 #include "ansidecl.h"
4520 #include "system.h"
4521
4522 int
4523 main ()
4524 {
4525 #ifndef $ac_func
4526 char *(*pfn) = (char *(*)) $ac_func ;
4527 #endif
4528   ;
4529   return 0;
4530 }
4531 _ACEOF
4532 rm -f conftest.$ac_objext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534   (eval $ac_compile) 2>&5
4535   ac_status=$?
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); } &&
4538          { ac_try='test -s conftest.$ac_objext'
4539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540   (eval $ac_try) 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }; }; then
4544   eval "gcc_cv_have_decl_$ac_func=yes"
4545 else
4546   echo "$as_me: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4548 eval "gcc_cv_have_decl_$ac_func=no"
4549 fi
4550 rm -f conftest.$ac_objext conftest.$ac_ext
4551 fi
4552
4553 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4554   echo "$as_me:$LINENO: result: yes" >&5
4555 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
4556 #define $ac_tr_decl 1
4557 _ACEOF
4558
4559 else
4560   echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
4562 #define $ac_tr_decl 0
4563 _ACEOF
4564
4565 fi
4566
4567 done
4568 if test x = y ; then
4569
4570 cat >>confdefs.h <<\_ACEOF
4571 #define HAVE_DECL_GETENV 1
4572 _ACEOF
4573
4574 cat >>confdefs.h <<\_ACEOF
4575 #define HAVE_DECL_ABORT 1
4576 _ACEOF
4577
4578 cat >>confdefs.h <<\_ACEOF
4579 #define HAVE_DECL_ERRNO 1
4580 _ACEOF
4581  \
4582
4583 cat >>confdefs.h <<\_ACEOF
4584 #define HAVE_DECL_MALLOC 1
4585 _ACEOF
4586
4587 cat >>confdefs.h <<\_ACEOF
4588 #define HAVE_DECL_REALLOC 1
4589 _ACEOF
4590
4591 cat >>confdefs.h <<\_ACEOF
4592 #define HAVE_DECL_CALLOC 1
4593 _ACEOF
4594
4595 cat >>confdefs.h <<\_ACEOF
4596 #define HAVE_DECL_FREE 1
4597 _ACEOF
4598
4599 cat >>confdefs.h <<\_ACEOF
4600 #define HAVE_DECL_CLOCK 1
4601 _ACEOF
4602 fi
4603
4604
4605 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4606 CFLAGS="$saved_CFLAGS"
4607
4608 # mkdir takes a single argument on some systems.
4609 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
4610 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
4611 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614   cat >conftest.$ac_ext <<_ACEOF
4615 #line $LINENO "configure"
4616 #include "confdefs.h"
4617
4618 #include <sys/types.h>
4619 #ifdef HAVE_SYS_STAT_H
4620 # include <sys/stat.h>
4621 #endif
4622 #ifdef HAVE_UNISTD_H
4623 # include <unistd.h>
4624 #endif
4625 #ifdef HAVE_DIRECT_H
4626 # include <direct.h>
4627 #endif
4628 int
4629 main ()
4630 {
4631 mkdir ("foo", 0);
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638   (eval $ac_compile) 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); } &&
4642          { ac_try='test -s conftest.$ac_objext'
4643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644   (eval $ac_try) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); }; }; then
4648   gcc_cv_mkdir_takes_one_arg=no
4649 else
4650   echo "$as_me: failed program was:" >&5
4651 cat conftest.$ac_ext >&5
4652 gcc_cv_mkdir_takes_one_arg=yes
4653 fi
4654 rm -f conftest.$ac_objext conftest.$ac_ext
4655 fi
4656 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
4657 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
4658 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4659
4660 cat >>confdefs.h <<\_ACEOF
4661 #define MKDIR_TAKES_ONE_ARG 1
4662 _ACEOF
4663
4664 fi
4665
4666
4667 # File extensions
4668 manext='.1'
4669 objext='.o'
4670
4671
4672
4673 build_xm_file=
4674 build_xm_defines=
4675 build_install_headers_dir=install-headers-tar
4676 build_exeext=
4677 host_xm_file=
4678 host_xm_defines=
4679 host_xmake_file=
4680 host_truncate_target=
4681 host_exeext=
4682
4683 # Decode the host machine, then the target machine.
4684 # For the host machine, we save the xm_file variable as host_xm_file;
4685 # then we decode the target machine and forget everything else
4686 # that came from the host machine.
4687 #for machine in $build $host $target; do
4688 #       . ${srcdir}/config.gcc
4689 #done
4690
4691 extra_objs="${host_extra_objs} ${extra_objs}"
4692
4693 # Default the target-machine variables that were not explicitly set.
4694 if test x"$tm_file" = x
4695 then tm_file=$cpu_type/$cpu_type.h; fi
4696
4697 if test x"$extra_headers" = x
4698 then extra_headers=; fi
4699
4700 if test x$md_file = x
4701 then md_file=$cpu_type/$cpu_type.md; fi
4702
4703 if test x$out_file = x
4704 then out_file=$cpu_type/$cpu_type.c; fi
4705
4706 if test x"$tmake_file" = x
4707 then tmake_file=$cpu_type/t-$cpu_type
4708 fi
4709
4710 if test x"$dwarf2" = xyes
4711 then tm_file="$tm_file tm-dwarf2.h"
4712 fi
4713
4714 # Handle cpp installation.
4715 if test x$enable_cpp != xno
4716 then
4717   tmake_file="$tmake_file t-install-cpp"
4718 fi
4719
4720 # auto-host.h is the file containing items generated by autoconf and is
4721 # the first file included by config.h.
4722 # If host=build, it is correct to have hconfig include auto-host.h
4723 # as well.  If host!=build, we are in error and need to do more
4724 # work to find out the build config parameters.
4725 if test x$host = x$build
4726 then
4727         build_auto=auto-host.h
4728 else
4729         # We create a subdir, then run autoconf in the subdir.
4730         # To prevent recursion we set host and build for the new
4731         # invocation of configure to the build for this invocation
4732         # of configure.
4733         tempdir=build.$$
4734         rm -rf $tempdir
4735         mkdir $tempdir
4736         cd $tempdir
4737         case ${srcdir} in
4738         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
4739         *) realsrcdir=../${srcdir};;
4740         esac
4741         CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4742                 --target=$target --host=$build --build=$build
4743
4744         # We just finished tests for the build machine, so rename
4745         # the file auto-build.h in the gcc directory.
4746         mv auto-host.h ../auto-build.h
4747         cd ..
4748         rm -rf $tempdir
4749         build_auto=auto-build.h
4750 fi
4751
4752 tm_file="${tm_file} defaults.h"
4753 host_xm_file="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
4754 build_xm_file="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
4755 xm_file="ansidecl.h ${xm_file} ${tm_file}"
4756
4757 # Truncate the target if necessary
4758 if test x$host_truncate_target != x; then
4759         target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4760 fi
4761
4762 # Get the version trigger filename from the toplevel
4763 if test "${with_gcc_version_trigger+set}" = set; then
4764         gcc_version_trigger=$with_gcc_version_trigger
4765 else
4766         gcc_version_trigger=${srcdir}/version.c
4767 fi
4768 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
4769 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4770
4771 # Compile in configure arguments.
4772 if test -f configargs.h ; then
4773         # Being re-configured.
4774         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
4775         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
4776 else
4777         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
4778 fi
4779 cat > configargs.h <<EOF
4780 /* Generated automatically. */
4781 static const char configuration_arguments[] = "$gcc_config_arguments";
4782 static const char thread_model[] = "$thread_file";
4783 EOF
4784
4785 # Internationalization
4786 PACKAGE=sdcc
4787 VERSION="$gcc_version"
4788
4789 cat >>confdefs.h <<_ACEOF
4790 #define PACKAGE "$PACKAGE"
4791 _ACEOF
4792
4793
4794 cat >>confdefs.h <<_ACEOF
4795 #define VERSION "$VERSION"
4796 _ACEOF
4797
4798
4799
4800
4801 ALL_LINGUAS="sv"
4802
4803 # Get an absolute path to the GCC top-level source directory
4804 holddir=`pwd`
4805 cd $srcdir
4806 topdir=`pwd`
4807 cd $holddir
4808
4809 out_object_file=`basename $out_file .c`.o
4810
4811 # Figure out what assembler we will be using.
4812 echo "$as_me:$LINENO: checking what assembler to use" >&5
4813 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
4814 gcc_cv_as=
4815 gcc_cv_gas_major_version=
4816 gcc_cv_gas_minor_version=
4817 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4818 if test -x "$DEFAULT_ASSEMBLER"; then
4819         gcc_cv_as="$DEFAULT_ASSEMBLER"
4820 elif test -x "$AS"; then
4821         gcc_cv_as="$AS"
4822 elif test -x as$host_exeext; then
4823         # Build using assembler in the current directory.
4824         gcc_cv_as=./as$host_exeext
4825 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4826         # Single tree build which includes gas.
4827         for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4828         do
4829                 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4830                 if test x$gcc_cv_gas_version != x; then
4831                         break
4832                 fi
4833         done
4834         gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4835         gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4836 fi
4837
4838 if test "x$gcc_cv_as" = x -a x$host = x$target; then
4839         # Native build.
4840         # Search the same directories that the installed compiler will
4841         # search.  Else we may find the wrong assembler and lose.  If we
4842         # do not find a suitable assembler binary, then try the user's
4843         # path.
4844         #
4845         # Also note we have to check MD_EXEC_PREFIX before checking the
4846         # user's path.  Unfortunately, there is no good way to get at the
4847         # value of MD_EXEC_PREFIX here.  So we do a brute force search
4848         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
4849         # to be fixed as part of the make/configure rewrite too.
4850
4851         if test "x$exec_prefix" = xNONE; then
4852                 if test "x$prefix" = xNONE; then
4853                         test_prefix=/usr/local
4854                 else
4855                         test_prefix=$prefix
4856                 fi
4857         else
4858                 test_prefix=$exec_prefix
4859         fi
4860
4861         # If the loop below does not find an assembler, then use whatever
4862         # one we can find in the users's path.
4863         # user's path.
4864         gcc_cv_as=as$host_exeext
4865
4866         test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4867                    $test_prefix/lib/gcc-lib/$target \
4868                    /usr/lib/gcc/$target/$gcc_version \
4869                    /usr/lib/gcc/$target \
4870                    $test_prefix/$target/bin/$target/$gcc_version \
4871                    $test_prefix/$target/bin \
4872                    /usr/libexec \
4873                    /usr/ccs/gcc \
4874                    /usr/ccs/bin \
4875                    /udk/usr/ccs/bin \
4876                    /bsd43/usr/lib/cmplrs/cc \
4877                    /usr/cross64/usr/bin \
4878                    /usr/lib/cmplrs/cc \
4879                    /sysv/usr/lib/cmplrs/cc \
4880                    /svr4/usr/lib/cmplrs/cc \
4881                    /usr/bin"
4882
4883         for dir in $test_dirs; do
4884                 if test -f $dir/as$host_exeext; then
4885                         gcc_cv_as=$dir/as$host_exeext
4886                         break;
4887                 fi
4888         done
4889 fi
4890 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4891   echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
4892 echo "${ECHO_T}\"newly built gas\"" >&6
4893 else
4894   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
4895 echo "${ECHO_T}$gcc_cv_as" >&6
4896 fi
4897
4898 # Figure out what nm we will be using.
4899 echo "$as_me:$LINENO: checking what nm to use" >&5
4900 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
4901 if test -x nm$host_exeext; then
4902         gcc_cv_nm=./nm$host_exeext
4903 elif test x$host = x$target; then
4904         # Native build.
4905         gcc_cv_nm=nm$host_exeext
4906 fi
4907 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
4908 echo "${ECHO_T}$gcc_cv_nm" >&6
4909
4910
4911 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4912 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4913     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4914 if test "${enable_maintainer_mode+set}" = set; then
4915   enableval="$enable_maintainer_mode"
4916   maintainer_mode=$enableval
4917 else
4918   maintainer_mode=no
4919 fi;
4920
4921 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
4922 echo "${ECHO_T}$maintainer_mode" >&6
4923
4924 if test "$maintainer_mode" = "yes"; then
4925   MAINT=''
4926 else
4927   MAINT='#'
4928 fi
4929
4930 # These (without "all_") are set in each config-lang.in.
4931 # `language' must be a single word so is spelled singularly.
4932 all_stagestuff=
4933 all_outputs='Makefile'
4934 # List of language makefile fragments.
4935
4936 # Add the language fragments.
4937 # Languages are added via two mechanisms.  Some information must be
4938 # recorded in makefile variables, these are defined in config-lang.in.
4939 # We accumulate them and plug them into the main Makefile.
4940 # The other mechanism is a set of hooks for each of the main targets
4941 # like `clean', `install', etc.
4942
4943 language_fragments="Make-lang"
4944
4945 # Define variables host_canonical and build_canonical
4946 # because some Cygnus local changes in the Makefile depend on them.
4947 build_canonical=${build}
4948 host_canonical=${host}
4949 target_subdir=
4950 if test "${host}" != "${target}" ; then
4951     target_subdir=${target_alias}/
4952 fi
4953
4954
4955
4956
4957 # Nothing to do for FLOAT_H, float_format already handled.
4958 objdir=`pwd`
4959
4960
4961 # Substitute configuration variables
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993 #AC_SUBST_FILE(target_overrides)
4994 #AC_SUBST_FILE(host_overrides)
4995 #AC_SUBST(cross_defines)
4996 #AC_SUBST_FILE(cross_overrides)
4997 #AC_SUBST_FILE(build_overrides)
4998
4999 # Create the Makefile
5000 # and configure language subdirectories
5001           ac_config_files="$ac_config_files $all_outputs"
5002           ac_config_commands="$ac_config_commands default"
5003 cat >confcache <<\_ACEOF
5004 # This file is a shell script that caches the results of configure
5005 # tests run on this system so they can be shared between configure
5006 # scripts and configure runs, see configure's option --config-cache.
5007 # It is not useful on other systems.  If it contains results you don't
5008 # want to keep, you may remove or edit it.
5009 #
5010 # config.status only pays attention to the cache file if you give it
5011 # the --recheck option to rerun configure.
5012 #
5013 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5014 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5015 # following values.
5016
5017 _ACEOF
5018
5019 # The following way of writing the cache mishandles newlines in values,
5020 # but we know of no workaround that is simple, portable, and efficient.
5021 # So, don't put newlines in cache variables' values.
5022 # Ultrix sh set writes to stderr and can't be redirected directly,
5023 # and sets the high bit in the cache file unless we assign to the vars.
5024 {
5025   (set) 2>&1 |
5026     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5027     *ac_space=\ *)
5028       # `set' does not quote correctly, so add quotes (double-quote
5029       # substitution turns \\\\ into \\, and sed turns \\ into \).
5030       sed -n \
5031         "s/'/'\\\\''/g;
5032           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5033       ;;
5034     *)
5035       # `set' quotes correctly as required by POSIX, so do not add quotes.
5036       sed -n \
5037         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5038       ;;
5039     esac;
5040 } |
5041   sed '
5042      t clear
5043      : clear
5044      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5045      t end
5046      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5047      : end' >>confcache
5048 if cmp -s $cache_file confcache; then :; else
5049   if test -w $cache_file; then
5050     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5051     cat confcache >$cache_file
5052   else
5053     echo "not updating unwritable cache $cache_file"
5054   fi
5055 fi
5056 rm -f confcache
5057
5058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5059 # Let make expand exec_prefix.
5060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5061
5062 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5063 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5064 # trailing colons and then remove the whole line if VPATH becomes empty
5065 # (actually we leave an empty line to preserve line numbers).
5066 if test "x$srcdir" = x.; then
5067   ac_vpsub='/^[         ]*VPATH[        ]*=/{
5068 s/:*\$(srcdir):*/:/;
5069 s/:*\${srcdir}:*/:/;
5070 s/:*@srcdir@:*/:/;
5071 s/^\([^=]*=[    ]*\):*/\1/;
5072 s/:*$//;
5073 s/^[^=]*=[      ]*$//;
5074 }'
5075 fi
5076
5077 DEFS=-DHAVE_CONFIG_H
5078
5079 ac_libobjs=
5080 ac_ltlibobjs=
5081 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5082   # 1. Remove the extension, and $U if already installed.
5083   ac_i=`echo "$ac_i" |
5084          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5085   # 2. Add them.
5086   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5087   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5088 done
5089 LIBOBJS=$ac_libobjs
5090
5091 LTLIBOBJS=$ac_ltlibobjs
5092
5093
5094
5095 : ${CONFIG_STATUS=./config.status}
5096 ac_clean_files_save=$ac_clean_files
5097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5098 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5099 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5100 cat >$CONFIG_STATUS <<_ACEOF
5101 #! $SHELL
5102 # Generated by $as_me.
5103 # Run this file to recreate the current configuration.
5104 # Compiler output produced by configure, useful for debugging
5105 # configure, is in config.log if it exists.
5106
5107 debug=false
5108 SHELL=\${CONFIG_SHELL-$SHELL}
5109 _ACEOF
5110
5111 cat >>$CONFIG_STATUS <<\_ACEOF
5112 ## --------------------- ##
5113 ## M4sh Initialization.  ##
5114 ## --------------------- ##
5115
5116 # Be Bourne compatible
5117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5118   emulate sh
5119   NULLCMD=:
5120   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5121   # is contrary to our usage.  Disable this feature.
5122   alias -g '${1+"$@"}'='"$@"'
5123 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5124   set -o posix
5125 fi
5126
5127 # Support unset when possible.
5128 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5129   as_unset=unset
5130 else
5131   as_unset=false
5132 fi
5133
5134
5135 # Work around bugs in pre-3.0 UWIN ksh.
5136 $as_unset ENV MAIL MAILPATH
5137 PS1='$ '
5138 PS2='> '
5139 PS4='+ '
5140
5141 # NLS nuisances.
5142 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
5143 do
5144   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5145     eval $as_var=C; export $as_var
5146   else
5147     $as_unset $as_var
5148   fi
5149 done
5150
5151 # Required to use basename.
5152 if expr a : '\(a\)' >/dev/null 2>&1; then
5153   as_expr=expr
5154 else
5155   as_expr=false
5156 fi
5157
5158 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5159   as_basename=basename
5160 else
5161   as_basename=false
5162 fi
5163
5164
5165 # Name of the executable.
5166 as_me=`$as_basename "$0" ||
5167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5168          X"$0" : 'X\(//\)$' \| \
5169          X"$0" : 'X\(/\)$' \| \
5170          .     : '\(.\)' 2>/dev/null ||
5171 echo X/"$0" |
5172     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5173           /^X\/\(\/\/\)$/{ s//\1/; q; }
5174           /^X\/\(\/\).*/{ s//\1/; q; }
5175           s/.*/./; q'`
5176
5177
5178 # PATH needs CR, and LINENO needs CR and PATH.
5179 # Avoid depending upon Character Ranges.
5180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5183 as_cr_digits='0123456789'
5184 as_cr_alnum=$as_cr_Letters$as_cr_digits
5185
5186 # The user is always right.
5187 if test "${PATH_SEPARATOR+set}" != set; then
5188   echo "#! /bin/sh" >conftest.sh
5189   echo  "exit 0"   >>conftest.sh
5190   chmod +x conftest.sh
5191   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
5192     PATH_SEPARATOR=';'
5193   else
5194     PATH_SEPARATOR=:
5195   fi
5196   rm -f conftest.sh
5197 fi
5198
5199
5200   as_lineno_1=$LINENO
5201   as_lineno_2=$LINENO
5202   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5203   test "x$as_lineno_1" != "x$as_lineno_2" &&
5204   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5205   # Find who we are.  Look in the path if we contain no path at all
5206   # relative or not.
5207   case $0 in
5208     *[\\/]* ) as_myself=$0 ;;
5209     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212   IFS=$as_save_IFS
5213   test -z "$as_dir" && as_dir=.
5214   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5215 done
5216
5217        ;;
5218   esac
5219   # We did not find ourselves, most probably we were run as `sh COMMAND'
5220   # in which case we are not to be found in the path.
5221   if test "x$as_myself" = x; then
5222     as_myself=$0
5223   fi
5224   if test ! -f "$as_myself"; then
5225     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5226 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5227    { (exit 1); exit 1; }; }
5228   fi
5229   case $CONFIG_SHELL in
5230   '')
5231     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236   for as_base in sh bash ksh sh5; do
5237          case $as_dir in
5238          /*)
5239            if ("$as_dir/$as_base" -c '
5240   as_lineno_1=$LINENO
5241   as_lineno_2=$LINENO
5242   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5243   test "x$as_lineno_1" != "x$as_lineno_2" &&
5244   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5245              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5246              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5247              CONFIG_SHELL=$as_dir/$as_base
5248              export CONFIG_SHELL
5249              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5250            fi;;
5251          esac
5252        done
5253 done
5254 ;;
5255   esac
5256
5257   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5258   # uniformly replaced by the line number.  The first 'sed' inserts a
5259   # line-number line before each line; the second 'sed' does the real
5260   # work.  The second script uses 'N' to pair each line-number line
5261   # with the numbered line, and appends trailing '-' during
5262   # substitution so that $LINENO is not a special case at line end.
5263   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5264   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5265   sed '=' <$as_myself |
5266     sed '
5267       N
5268       s,$,-,
5269       : loop
5270       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5271       t loop
5272       s,-$,,
5273       s,^['$as_cr_digits']*\n,,
5274     ' >$as_me.lineno &&
5275   chmod +x $as_me.lineno ||
5276     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5277 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5278    { (exit 1); exit 1; }; }
5279
5280   # Don't try to exec as it changes $[0], causing all sort of problems
5281   # (the dirname of $[0] is not the place where we might find the
5282   # original and so on.  Autoconf is especially sensible to this).
5283   . ./$as_me.lineno
5284   # Exit status is that of the last command.
5285   exit
5286 }
5287
5288
5289 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5290   *c*,-n*) ECHO_N= ECHO_C='
5291 ' ECHO_T='      ' ;;
5292   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5293   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5294 esac
5295
5296 if expr a : '\(a\)' >/dev/null 2>&1; then
5297   as_expr=expr
5298 else
5299   as_expr=false
5300 fi
5301
5302 rm -f conf$$ conf$$.exe conf$$.file
5303 echo >conf$$.file
5304 if ln -s conf$$.file conf$$ 2>/dev/null; then
5305   # We could just check for DJGPP; but this test a) works b) is more generic
5306   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5307   if test -f conf$$.exe; then
5308     # Don't use ln at all; we don't have any links
5309     as_ln_s='cp -p'
5310   else
5311     as_ln_s='ln -s'
5312   fi
5313 elif ln conf$$.file conf$$ 2>/dev/null; then
5314   as_ln_s=ln
5315 else
5316   as_ln_s='cp -p'
5317 fi
5318 rm -f conf$$ conf$$.exe conf$$.file
5319
5320 if mkdir -p . 2>/dev/null; then
5321   as_mkdir_p=:
5322 else
5323   as_mkdir_p=false
5324 fi
5325
5326 as_executable_p="test -f"
5327
5328 # Sed expression to map a string onto a valid CPP name.
5329 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5330
5331 # Sed expression to map a string onto a valid variable name.
5332 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5333
5334
5335 # IFS
5336 # We need space, tab and new line, in precisely that order.
5337 as_nl='
5338 '
5339 IFS="   $as_nl"
5340
5341 # CDPATH.
5342 $as_unset CDPATH
5343
5344 exec 6>&1
5345
5346 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5347 # report actual input values of CONFIG_FILES etc. instead of their
5348 # values after options handling.  Logging --version etc. is OK.
5349 exec 5>>config.log
5350 {
5351   echo
5352   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5353 ## Running $as_me. ##
5354 _ASBOX
5355 } >&5
5356 cat >&5 <<_CSEOF
5357
5358 This file was extended by $as_me, which was
5359 generated by GNU Autoconf 2.54.  Invocation command line was
5360
5361   CONFIG_FILES    = $CONFIG_FILES
5362   CONFIG_HEADERS  = $CONFIG_HEADERS
5363   CONFIG_LINKS    = $CONFIG_LINKS
5364   CONFIG_COMMANDS = $CONFIG_COMMANDS
5365   $ $0 $@
5366
5367 _CSEOF
5368 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5369 echo >&5
5370 _ACEOF
5371
5372 # Files that config.status was made for.
5373 if test -n "$ac_config_files"; then
5374   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5375 fi
5376
5377 if test -n "$ac_config_headers"; then
5378   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5379 fi
5380
5381 if test -n "$ac_config_links"; then
5382   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5383 fi
5384
5385 if test -n "$ac_config_commands"; then
5386   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5387 fi
5388
5389 cat >>$CONFIG_STATUS <<\_ACEOF
5390
5391 ac_cs_usage="\
5392 \`$as_me' instantiates files from templates according to the
5393 current configuration.
5394
5395 Usage: $0 [OPTIONS] [FILE]...
5396
5397   -h, --help       print this help, then exit
5398   -V, --version    print version number, then exit
5399   -d, --debug      don't remove temporary files
5400       --recheck    update $as_me by reconfiguring in the same conditions
5401   --file=FILE[:TEMPLATE]
5402                    instantiate the configuration file FILE
5403   --header=FILE[:TEMPLATE]
5404                    instantiate the configuration header FILE
5405
5406 Configuration files:
5407 $config_files
5408
5409 Configuration headers:
5410 $config_headers
5411
5412 Configuration commands:
5413 $config_commands
5414
5415 Report bugs to <bug-autoconf@gnu.org>."
5416 _ACEOF
5417
5418 cat >>$CONFIG_STATUS <<_ACEOF
5419 ac_cs_version="\\
5420 config.status
5421 configured by $0, generated by GNU Autoconf 2.54,
5422   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5423
5424 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5425 Free Software Foundation, Inc.
5426 This config.status script is free software; the Free Software Foundation
5427 gives unlimited permission to copy, distribute and modify it."
5428 srcdir=$srcdir
5429 _ACEOF
5430
5431 cat >>$CONFIG_STATUS <<\_ACEOF
5432 # If no file are specified by the user, then we need to provide default
5433 # value.  By we need to know if files were specified by the user.
5434 ac_need_defaults=:
5435 while test $# != 0
5436 do
5437   case $1 in
5438   --*=*)
5439     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5440     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5441     ac_shift=:
5442     ;;
5443   -*)
5444     ac_option=$1
5445     ac_optarg=$2
5446     ac_shift=shift
5447     ;;
5448   *) # This is not an option, so the user has probably given explicit
5449      # arguments.
5450      ac_option=$1
5451      ac_need_defaults=false;;
5452   esac
5453
5454   case $ac_option in
5455   # Handling of the options.
5456 _ACEOF
5457 cat >>$CONFIG_STATUS <<_ACEOF
5458   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5459     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5460     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5461 _ACEOF
5462 cat >>$CONFIG_STATUS <<\_ACEOF
5463   --version | --vers* | -V )
5464     echo "$ac_cs_version"; exit 0 ;;
5465   --he | --h)
5466     # Conflict between --help and --header
5467     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5468 Try \`$0 --help' for more information." >&5
5469 echo "$as_me: error: ambiguous option: $1
5470 Try \`$0 --help' for more information." >&2;}
5471    { (exit 1); exit 1; }; };;
5472   --help | --hel | -h )
5473     echo "$ac_cs_usage"; exit 0 ;;
5474   --debug | --d* | -d )
5475     debug=: ;;
5476   --file | --fil | --fi | --f )
5477     $ac_shift
5478     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5479     ac_need_defaults=false;;
5480   --header | --heade | --head | --hea )
5481     $ac_shift
5482     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5483     ac_need_defaults=false;;
5484
5485   # This is an error.
5486   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5487 Try \`$0 --help' for more information." >&5
5488 echo "$as_me: error: unrecognized option: $1
5489 Try \`$0 --help' for more information." >&2;}
5490    { (exit 1); exit 1; }; } ;;
5491
5492   *) ac_config_targets="$ac_config_targets $1" ;;
5493
5494   esac
5495   shift
5496 done
5497
5498 _ACEOF
5499
5500 cat >>$CONFIG_STATUS <<_ACEOF
5501 #
5502 # INIT-COMMANDS section.
5503 #
5504
5505
5506 host='${host}'
5507 build='${build}'
5508 target='${target}'
5509 target_alias='${target_alias}'
5510 srcdir='${srcdir}'
5511 symbolic_link='${symbolic_link}'
5512 program_transform_set='${program_transform_set}'
5513 program_transform_name='${program_transform_name}'
5514 dep_host_xmake_file='${dep_host_xmake_file}'
5515 host_xmake_file='${host_xmake_file}'
5516 dep_tmake_file='${dep_tmake_file}'
5517 tmake_file='${tmake_file}'
5518 thread_file='${thread_file}'
5519 gcc_config_arguments='${gcc_config_arguments}'
5520 gcc_version='${gcc_version}'
5521 gcc_version_full='${gcc_version_full}'
5522 gcc_version_trigger='${gcc_version_trigger}'
5523 local_prefix='${local_prefix}'
5524 build_install_headers_dir='${build_install_headers_dir}'
5525 build_exeext='${build_exeext}'
5526 host_exeext='${host_exeext}'
5527 out_file='${out_file}'
5528 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5529 SET_MAKE='${SET_MAKE}'
5530 target_list='${target_list}'
5531 target_overrides='${target_overrides}'
5532 host_overrides='${host_overrides}'
5533 cross_defines='${cross_defines}'
5534 cross_overrides='${cross_overrides}'
5535 build_overrides='${build_overrides}'
5536 cpp_install_dir='${cpp_install_dir}'
5537
5538
5539 _ACEOF
5540
5541
5542
5543 cat >>$CONFIG_STATUS <<\_ACEOF
5544 for ac_config_target in $ac_config_targets
5545 do
5546   case "$ac_config_target" in
5547   # Handling of arguments.
5548   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
5549   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5550   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
5551   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5552 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5553    { (exit 1); exit 1; }; };;
5554   esac
5555 done
5556
5557 # If the user did not use the arguments to specify the items to instantiate,
5558 # then the envvar interface is used.  Set only those that are not.
5559 # We use the long form for the default assignment because of an extremely
5560 # bizarre bug on SunOS 4.1.3.
5561 if $ac_need_defaults; then
5562   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5563   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5564   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5565 fi
5566
5567 # Create a temporary directory, and hook for its removal unless debugging.
5568 $debug ||
5569 {
5570   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5571   trap '{ (exit 1); exit 1; }' 1 2 13 15
5572 }
5573
5574 # Create a (secure) tmp directory for tmp files.
5575 : ${TMPDIR=/tmp}
5576 {
5577   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5578   test -n "$tmp" && test -d "$tmp"
5579 }  ||
5580 {
5581   tmp=$TMPDIR/cs$$-$RANDOM
5582   (umask 077 && mkdir $tmp)
5583 } ||
5584 {
5585    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5586    { (exit 1); exit 1; }
5587 }
5588
5589 _ACEOF
5590
5591 cat >>$CONFIG_STATUS <<_ACEOF
5592
5593 #
5594 # CONFIG_FILES section.
5595 #
5596
5597 # No need to generate the scripts if there are no CONFIG_FILES.
5598 # This happens for instance when ./config.status config.h
5599 if test -n "\$CONFIG_FILES"; then
5600   # Protect against being on the right side of a sed subst in config.status.
5601   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5602    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5603 s,@SHELL@,$SHELL,;t t
5604 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5605 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5606 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5607 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5608 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5609 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5610 s,@exec_prefix@,$exec_prefix,;t t
5611 s,@prefix@,$prefix,;t t
5612 s,@program_transform_name@,$program_transform_name,;t t
5613 s,@bindir@,$bindir,;t t
5614 s,@sbindir@,$sbindir,;t t
5615 s,@libexecdir@,$libexecdir,;t t
5616 s,@datadir@,$datadir,;t t
5617 s,@sysconfdir@,$sysconfdir,;t t
5618 s,@sharedstatedir@,$sharedstatedir,;t t
5619 s,@localstatedir@,$localstatedir,;t t
5620 s,@libdir@,$libdir,;t t
5621 s,@includedir@,$includedir,;t t
5622 s,@oldincludedir@,$oldincludedir,;t t
5623 s,@infodir@,$infodir,;t t
5624 s,@mandir@,$mandir,;t t
5625 s,@build_alias@,$build_alias,;t t
5626 s,@host_alias@,$host_alias,;t t
5627 s,@target_alias@,$target_alias,;t t
5628 s,@DEFS@,$DEFS,;t t
5629 s,@ECHO_C@,$ECHO_C,;t t
5630 s,@ECHO_N@,$ECHO_N,;t t
5631 s,@ECHO_T@,$ECHO_T,;t t
5632 s,@LIBS@,$LIBS,;t t
5633 s,@CC@,$CC,;t t
5634 s,@CFLAGS@,$CFLAGS,;t t
5635 s,@LDFLAGS@,$LDFLAGS,;t t
5636 s,@CPPFLAGS@,$CPPFLAGS,;t t
5637 s,@ac_ct_CC@,$ac_ct_CC,;t t
5638 s,@EXEEXT@,$EXEEXT,;t t
5639 s,@OBJEXT@,$OBJEXT,;t t
5640 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
5641 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
5642 s,@CPP@,$CPP,;t t
5643 s,@EGREP@,$EGREP,;t t
5644 s,@warn_cflags@,$warn_cflags,;t t
5645 s,@SET_MAKE@,$SET_MAKE,;t t
5646 s,@LN@,$LN,;t t
5647 s,@LN_S@,$LN_S,;t t
5648 s,@RANLIB@,$RANLIB,;t t
5649 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5650 s,@INSTALL@,$INSTALL,;t t
5651 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5652 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5653 s,@have_mktemp_command@,$have_mktemp_command,;t t
5654 s,@STRIP@,$STRIP,;t t
5655 s,@manext@,$manext,;t t
5656 s,@objext@,$objext,;t t
5657 s,@PACKAGE@,$PACKAGE,;t t
5658 s,@VERSION@,$VERSION,;t t
5659 s,@MAINT@,$MAINT,;t t
5660 s,@build_canonical@,$build_canonical,;t t
5661 s,@host_canonical@,$host_canonical,;t t
5662 s,@target_subdir@,$target_subdir,;t t
5663 s,@objdir@,$objdir,;t t
5664 s,@all_stagestuff@,$all_stagestuff,;t t
5665 s,@build_exeext@,$build_exeext,;t t
5666 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
5667 s,@build_xm_file_list@,$build_xm_file_list,;t t
5668 s,@build_xm_file@,$build_xm_file,;t t
5669 s,@build_xm_defines@,$build_xm_defines,;t t
5670 s,@check_languages@,$check_languages,;t t
5671 s,@dep_host_xmake_file@,$dep_host_xmake_file,;t t
5672 s,@dep_tmake_file@,$dep_tmake_file,;t t
5673 s,@extra_c_flags@,$extra_c_flags,;t t
5674 s,@extra_headers_list@,$extra_headers_list,;t t
5675 s,@extra_objs@,$extra_objs,;t t
5676 s,@extra_parts@,$extra_parts,;t t
5677 s,@extra_passes@,$extra_passes,;t t
5678 s,@extra_programs@,$extra_programs,;t t
5679 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
5680 s,@gcc_version@,$gcc_version,;t t
5681 s,@gcc_version_full@,$gcc_version_full,;t t
5682 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
5683 s,@host_exeext@,$host_exeext,;t t
5684 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
5685 s,@install@,$install,;t t
5686 s,@lang_tree_files@,$lang_tree_files,;t t
5687 s,@local_prefix@,$local_prefix,;t t
5688 s,@md_file@,$md_file,;t t
5689 s,@out_file@,$out_file,;t t
5690 s,@out_object_file@,$out_object_file,;t t
5691 s,@symbolic_link@,$symbolic_link,;t t
5692 s,@thread_file@,$thread_file,;t t
5693 s,@c_target_objs@,$c_target_objs,;t t
5694 s,@LIBOBJS@,$LIBOBJS,;t t
5695 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5696 CEOF
5697
5698 _ACEOF
5699
5700   cat >>$CONFIG_STATUS <<\_ACEOF
5701   # Split the substitutions into bite-sized pieces for seds with
5702   # small command number limits, like on Digital OSF/1 and HP-UX.
5703   ac_max_sed_lines=48
5704   ac_sed_frag=1 # Number of current file.
5705   ac_beg=1 # First line for current file.
5706   ac_end=$ac_max_sed_lines # Line after last line for current file.
5707   ac_more_lines=:
5708   ac_sed_cmds=
5709   while $ac_more_lines; do
5710     if test $ac_beg -gt 1; then
5711       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5712     else
5713       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5714     fi
5715     if test ! -s $tmp/subs.frag; then
5716       ac_more_lines=false
5717     else
5718       # The purpose of the label and of the branching condition is to
5719       # speed up the sed processing (if there are no `@' at all, there
5720       # is no need to browse any of the substitutions).
5721       # These are the two extra sed commands mentioned above.
5722       (echo ':t
5723   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5724       if test -z "$ac_sed_cmds"; then
5725         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5726       else
5727         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5728       fi
5729       ac_sed_frag=`expr $ac_sed_frag + 1`
5730       ac_beg=$ac_end
5731       ac_end=`expr $ac_end + $ac_max_sed_lines`
5732     fi
5733   done
5734   if test -z "$ac_sed_cmds"; then
5735     ac_sed_cmds=cat
5736   fi
5737 fi # test -n "$CONFIG_FILES"
5738
5739 _ACEOF
5740 cat >>$CONFIG_STATUS <<\_ACEOF
5741 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5742   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5743   case $ac_file in
5744   - | *:- | *:-:* ) # input from stdin
5745         cat >$tmp/stdin
5746         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5747         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5748   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5749         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5750   * )   ac_file_in=$ac_file.in ;;
5751   esac
5752
5753   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5754   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5756          X"$ac_file" : 'X\(//\)[^/]' \| \
5757          X"$ac_file" : 'X\(//\)$' \| \
5758          X"$ac_file" : 'X\(/\)' \| \
5759          .     : '\(.\)' 2>/dev/null ||
5760 echo X"$ac_file" |
5761     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5762           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5763           /^X\(\/\/\)$/{ s//\1/; q; }
5764           /^X\(\/\).*/{ s//\1/; q; }
5765           s/.*/./; q'`
5766   { if $as_mkdir_p; then
5767     mkdir -p "$ac_dir"
5768   else
5769     as_dir="$ac_dir"
5770     as_dirs=
5771     while test ! -d "$as_dir"; do
5772       as_dirs="$as_dir $as_dirs"
5773       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5775          X"$as_dir" : 'X\(//\)[^/]' \| \
5776          X"$as_dir" : 'X\(//\)$' \| \
5777          X"$as_dir" : 'X\(/\)' \| \
5778          .     : '\(.\)' 2>/dev/null ||
5779 echo X"$as_dir" |
5780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5781           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5782           /^X\(\/\/\)$/{ s//\1/; q; }
5783           /^X\(\/\).*/{ s//\1/; q; }
5784           s/.*/./; q'`
5785     done
5786     test ! -n "$as_dirs" || mkdir $as_dirs
5787   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5788 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5789    { (exit 1); exit 1; }; }; }
5790
5791   ac_builddir=.
5792
5793 if test "$ac_dir" != .; then
5794   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5795   # A "../" for each directory in $ac_dir_suffix.
5796   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5797 else
5798   ac_dir_suffix= ac_top_builddir=
5799 fi
5800
5801 case $srcdir in
5802   .)  # No --srcdir option.  We are building in place.
5803     ac_srcdir=.
5804     if test -z "$ac_top_builddir"; then
5805        ac_top_srcdir=.
5806     else
5807        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5808     fi ;;
5809   [\\/]* | ?:[\\/]* )  # Absolute path.
5810     ac_srcdir=$srcdir$ac_dir_suffix;
5811     ac_top_srcdir=$srcdir ;;
5812   *) # Relative path.
5813     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5814     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5815 esac
5816 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5817 # absolute.
5818 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5819 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5820 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5821 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5822
5823
5824
5825   if test x"$ac_file" != x-; then
5826     { echo "$as_me:$LINENO: creating $ac_file" >&5
5827 echo "$as_me: creating $ac_file" >&6;}
5828     rm -f "$ac_file"
5829   fi
5830   # Let's still pretend it is `configure' which instantiates (i.e., don't
5831   # use $as_me), people would be surprised to read:
5832   #    /* config.h.  Generated by config.status.  */
5833   if test x"$ac_file" = x-; then
5834     configure_input=
5835   else
5836     configure_input="$ac_file.  "
5837   fi
5838   configure_input=$configure_input"Generated from `echo $ac_file_in |
5839                                      sed 's,.*/,,'` by configure."
5840
5841   # First look for the input files in the build tree, otherwise in the
5842   # src tree.
5843   ac_file_inputs=`IFS=:
5844     for f in $ac_file_in; do
5845       case $f in
5846       -) echo $tmp/stdin ;;
5847       [\\/$]*)
5848          # Absolute (can't be DOS-style, as IFS=:)
5849          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5850 echo "$as_me: error: cannot find input file: $f" >&2;}
5851    { (exit 1); exit 1; }; }
5852          echo $f;;
5853       *) # Relative
5854          if test -f "$f"; then
5855            # Build tree
5856            echo $f
5857          elif test -f "$srcdir/$f"; then
5858            # Source tree
5859            echo $srcdir/$f
5860          else
5861            # /dev/null tree
5862            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5863 echo "$as_me: error: cannot find input file: $f" >&2;}
5864    { (exit 1); exit 1; }; }
5865          fi;;
5866       esac
5867     done` || { (exit 1); exit 1; }
5868 _ACEOF
5869 cat >>$CONFIG_STATUS <<_ACEOF
5870   sed "$ac_vpsub
5871 $extrasub
5872 _ACEOF
5873 cat >>$CONFIG_STATUS <<\_ACEOF
5874 :t
5875 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5876 s,@configure_input@,$configure_input,;t t
5877 s,@srcdir@,$ac_srcdir,;t t
5878 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5879 s,@top_srcdir@,$ac_top_srcdir,;t t
5880 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5881 s,@builddir@,$ac_builddir,;t t
5882 s,@abs_builddir@,$ac_abs_builddir,;t t
5883 s,@top_builddir@,$ac_top_builddir,;t t
5884 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5885 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5886   rm -f $tmp/stdin
5887   if test x"$ac_file" != x-; then
5888     mv $tmp/out $ac_file
5889   else
5890     cat $tmp/out
5891     rm -f $tmp/out
5892   fi
5893
5894 done
5895 _ACEOF
5896 cat >>$CONFIG_STATUS <<\_ACEOF
5897
5898 #
5899 # CONFIG_HEADER section.
5900 #
5901
5902 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5903 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5904 #
5905 # ac_d sets the value in "#define NAME VALUE" lines.
5906 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5907 ac_dB='[        ].*$,\1#\2'
5908 ac_dC=' '
5909 ac_dD=',;t'
5910 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5911 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5912 ac_uB='$,\1#\2define\3'
5913 ac_uC=' '
5914 ac_uD=',;t'
5915
5916 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5917   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5918   case $ac_file in
5919   - | *:- | *:-:* ) # input from stdin
5920         cat >$tmp/stdin
5921         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5922         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5923   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5924         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5925   * )   ac_file_in=$ac_file.in ;;
5926   esac
5927
5928   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5929 echo "$as_me: creating $ac_file" >&6;}
5930
5931   # First look for the input files in the build tree, otherwise in the
5932   # src tree.
5933   ac_file_inputs=`IFS=:
5934     for f in $ac_file_in; do
5935       case $f in
5936       -) echo $tmp/stdin ;;
5937       [\\/$]*)
5938          # Absolute (can't be DOS-style, as IFS=:)
5939          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5940 echo "$as_me: error: cannot find input file: $f" >&2;}
5941    { (exit 1); exit 1; }; }
5942          echo $f;;
5943       *) # Relative
5944          if test -f "$f"; then
5945            # Build tree
5946            echo $f
5947          elif test -f "$srcdir/$f"; then
5948            # Source tree
5949            echo $srcdir/$f
5950          else
5951            # /dev/null tree
5952            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5953 echo "$as_me: error: cannot find input file: $f" >&2;}
5954    { (exit 1); exit 1; }; }
5955          fi;;
5956       esac
5957     done` || { (exit 1); exit 1; }
5958   # Remove the trailing spaces.
5959   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
5960
5961 _ACEOF
5962
5963 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5964 # `conftest.undefs', that substitutes the proper values into
5965 # config.h.in to produce config.h.  The first handles `#define'
5966 # templates, and the second `#undef' templates.
5967 # And first: Protect against being on the right side of a sed subst in
5968 # config.status.  Protect against being in an unquoted here document
5969 # in config.status.
5970 rm -f conftest.defines conftest.undefs
5971 # Using a here document instead of a string reduces the quoting nightmare.
5972 # Putting comments in sed scripts is not portable.
5973 #
5974 # `end' is used to avoid that the second main sed command (meant for
5975 # 0-ary CPP macros) applies to n-ary macro definitions.
5976 # See the Autoconf documentation for `clear'.
5977 cat >confdef2sed.sed <<\_ACEOF
5978 s/[\\&,]/\\&/g
5979 s,[\\$`],\\&,g
5980 t clear
5981 : clear
5982 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5983 t end
5984 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5985 : end
5986 _ACEOF
5987 # If some macros were called several times there might be several times
5988 # the same #defines, which is useless.  Nevertheless, we may not want to
5989 # sort them, since we want the *last* AC-DEFINE to be honored.
5990 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5991 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5992 rm -f confdef2sed.sed
5993
5994 # This sed command replaces #undef with comments.  This is necessary, for
5995 # example, in the case of _POSIX_SOURCE, which is predefined and required
5996 # on some systems where configure will not decide to define it.
5997 cat >>conftest.undefs <<\_ACEOF
5998 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5999 _ACEOF
6000
6001 # Break up conftest.defines because some shells have a limit on the size
6002 # of here documents, and old seds have small limits too (100 cmds).
6003 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6004 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6005 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6006 echo '  :' >>$CONFIG_STATUS
6007 rm -f conftest.tail
6008 while grep . conftest.defines >/dev/null
6009 do
6010   # Write a limited-size here document to $tmp/defines.sed.
6011   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6012   # Speed up: don't consider the non `#define' lines.
6013   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
6014   # Work around the forget-to-reset-the-flag bug.
6015   echo 't clr' >>$CONFIG_STATUS
6016   echo ': clr' >>$CONFIG_STATUS
6017   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6018   echo 'CEOF
6019   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6020   rm -f $tmp/in
6021   mv $tmp/out $tmp/in
6022 ' >>$CONFIG_STATUS
6023   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6024   rm -f conftest.defines
6025   mv conftest.tail conftest.defines
6026 done
6027 rm -f conftest.defines
6028 echo '  fi # grep' >>$CONFIG_STATUS
6029 echo >>$CONFIG_STATUS
6030
6031 # Break up conftest.undefs because some shells have a limit on the size
6032 # of here documents, and old seds have small limits too (100 cmds).
6033 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6034 rm -f conftest.tail
6035 while grep . conftest.undefs >/dev/null
6036 do
6037   # Write a limited-size here document to $tmp/undefs.sed.
6038   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6039   # Speed up: don't consider the non `#undef'
6040   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6041   # Work around the forget-to-reset-the-flag bug.
6042   echo 't clr' >>$CONFIG_STATUS
6043   echo ': clr' >>$CONFIG_STATUS
6044   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6045   echo 'CEOF
6046   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6047   rm -f $tmp/in
6048   mv $tmp/out $tmp/in
6049 ' >>$CONFIG_STATUS
6050   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6051   rm -f conftest.undefs
6052   mv conftest.tail conftest.undefs
6053 done
6054 rm -f conftest.undefs
6055
6056 cat >>$CONFIG_STATUS <<\_ACEOF
6057   # Let's still pretend it is `configure' which instantiates (i.e., don't
6058   # use $as_me), people would be surprised to read:
6059   #    /* config.h.  Generated by config.status.  */
6060   if test x"$ac_file" = x-; then
6061     echo "/* Generated by configure.  */" >$tmp/config.h
6062   else
6063     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6064   fi
6065   cat $tmp/in >>$tmp/config.h
6066   rm -f $tmp/in
6067   if test x"$ac_file" != x-; then
6068     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6069       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6070 echo "$as_me: $ac_file is unchanged" >&6;}
6071     else
6072       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6073 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6074          X"$ac_file" : 'X\(//\)[^/]' \| \
6075          X"$ac_file" : 'X\(//\)$' \| \
6076          X"$ac_file" : 'X\(/\)' \| \
6077          .     : '\(.\)' 2>/dev/null ||
6078 echo X"$ac_file" |
6079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6080           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6081           /^X\(\/\/\)$/{ s//\1/; q; }
6082           /^X\(\/\).*/{ s//\1/; q; }
6083           s/.*/./; q'`
6084       { if $as_mkdir_p; then
6085     mkdir -p "$ac_dir"
6086   else
6087     as_dir="$ac_dir"
6088     as_dirs=
6089     while test ! -d "$as_dir"; do
6090       as_dirs="$as_dir $as_dirs"
6091       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6093          X"$as_dir" : 'X\(//\)[^/]' \| \
6094          X"$as_dir" : 'X\(//\)$' \| \
6095          X"$as_dir" : 'X\(/\)' \| \
6096          .     : '\(.\)' 2>/dev/null ||
6097 echo X"$as_dir" |
6098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6099           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6100           /^X\(\/\/\)$/{ s//\1/; q; }
6101           /^X\(\/\).*/{ s//\1/; q; }
6102           s/.*/./; q'`
6103     done
6104     test ! -n "$as_dirs" || mkdir $as_dirs
6105   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6106 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6107    { (exit 1); exit 1; }; }; }
6108
6109       rm -f $ac_file
6110       mv $tmp/config.h $ac_file
6111     fi
6112   else
6113     cat $tmp/config.h
6114     rm -f $tmp/config.h
6115   fi
6116 done
6117 _ACEOF
6118 cat >>$CONFIG_STATUS <<\_ACEOF
6119
6120 #
6121 # CONFIG_COMMANDS section.
6122 #
6123 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6124   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6125   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6126   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6127 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6128          X"$ac_dest" : 'X\(//\)[^/]' \| \
6129          X"$ac_dest" : 'X\(//\)$' \| \
6130          X"$ac_dest" : 'X\(/\)' \| \
6131          .     : '\(.\)' 2>/dev/null ||
6132 echo X"$ac_dest" |
6133     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6134           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6135           /^X\(\/\/\)$/{ s//\1/; q; }
6136           /^X\(\/\).*/{ s//\1/; q; }
6137           s/.*/./; q'`
6138   ac_builddir=.
6139
6140 if test "$ac_dir" != .; then
6141   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6142   # A "../" for each directory in $ac_dir_suffix.
6143   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6144 else
6145   ac_dir_suffix= ac_top_builddir=
6146 fi
6147
6148 case $srcdir in
6149   .)  # No --srcdir option.  We are building in place.
6150     ac_srcdir=.
6151     if test -z "$ac_top_builddir"; then
6152        ac_top_srcdir=.
6153     else
6154        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6155     fi ;;
6156   [\\/]* | ?:[\\/]* )  # Absolute path.
6157     ac_srcdir=$srcdir$ac_dir_suffix;
6158     ac_top_srcdir=$srcdir ;;
6159   *) # Relative path.
6160     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6161     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6162 esac
6163 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6164 # absolute.
6165 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6166 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6167 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6168 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6169
6170
6171   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6172 echo "$as_me: executing $ac_dest commands" >&6;}
6173   case $ac_dest in
6174     default )
6175 case x$CONFIG_HEADERS in
6176 xauto-host.h:config.in)
6177 echo > cstamp-h ;;
6178 esac
6179
6180 # Avoid having to add intl to our include paths.
6181 if test -f intl/libintl.h; then
6182   echo creating libintl.h
6183   echo '#include "intl/libintl.h"' >libintl.h
6184 fi
6185  ;;
6186   esac
6187 done
6188 _ACEOF
6189
6190 cat >>$CONFIG_STATUS <<\_ACEOF
6191
6192 { (exit 0); exit 0; }
6193 _ACEOF
6194 chmod +x $CONFIG_STATUS
6195 ac_clean_files=$ac_clean_files_save
6196
6197
6198 # configure is writing to config.log, and then calls config.status.
6199 # config.status does its own redirection, appending to config.log.
6200 # Unfortunately, on DOS this fails, as config.log is still kept open
6201 # by configure, so config.status won't be able to write to it; its
6202 # output is simply discarded.  So we exec the FD to /dev/null,
6203 # effectively closing config.log, so it can be properly (re)opened and
6204 # appended to by config.status.  When coming back to configure, we
6205 # need to make the FD available again.
6206 if test "$no_create" != yes; then
6207   ac_cs_success=:
6208   exec 5>/dev/null
6209   $SHELL $CONFIG_STATUS || ac_cs_success=false
6210   exec 5>>config.log
6211   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6212   # would make configure fail if this is the last instruction.
6213   $ac_cs_success || { (exit 1); exit 1; }
6214 fi
6215