OSDN Git Service

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