OSDN Git Service

bf26738eeafa8f867c879ab16d4a7099315fa173
[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"
2108                          || test ! -s conftest.err'
2109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110   (eval $ac_try) 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }; } &&
2114          { ac_try='test -s conftest.$ac_objext'
2115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116   (eval $ac_try) 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }; }; then
2120   ac_compiler_gnu=yes
2121 else
2122   echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2124
2125 ac_compiler_gnu=no
2126 fi
2127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2128 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2129
2130 fi
2131 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2132 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2133 GCC=`test $ac_compiler_gnu = yes && echo yes`
2134 ac_test_CFLAGS=${CFLAGS+set}
2135 ac_save_CFLAGS=$CFLAGS
2136 CFLAGS="-g"
2137 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2138 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2139 if test "${ac_cv_prog_cc_g+set}" = set; then
2140   echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142   cat >conftest.$ac_ext <<_ACEOF
2143 /* confdefs.h.  */
2144 _ACEOF
2145 cat confdefs.h >>conftest.$ac_ext
2146 cat >>conftest.$ac_ext <<_ACEOF
2147 /* end confdefs.h.  */
2148
2149 int
2150 main ()
2151 {
2152
2153   ;
2154   return 0;
2155 }
2156 _ACEOF
2157 rm -f conftest.$ac_objext
2158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2159   (eval $ac_compile) 2>conftest.er1
2160   ac_status=$?
2161   grep -v '^ *+' conftest.er1 >conftest.err
2162   rm -f conftest.er1
2163   cat conftest.err >&5
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); } &&
2166          { ac_try='test -z "$ac_c_werror_flag"
2167                          || test ! -s conftest.err'
2168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169   (eval $ac_try) 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }; } &&
2173          { ac_try='test -s conftest.$ac_objext'
2174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175   (eval $ac_try) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }; }; then
2179   ac_cv_prog_cc_g=yes
2180 else
2181   echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 ac_cv_prog_cc_g=no
2185 fi
2186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2187 fi
2188 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2189 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2190 if test "$ac_test_CFLAGS" = set; then
2191   CFLAGS=$ac_save_CFLAGS
2192 elif test $ac_cv_prog_cc_g = yes; then
2193   if test "$GCC" = yes; then
2194     CFLAGS="-g -O2"
2195   else
2196     CFLAGS="-g"
2197   fi
2198 else
2199   if test "$GCC" = yes; then
2200     CFLAGS="-O2"
2201   else
2202     CFLAGS=
2203   fi
2204 fi
2205 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2206 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2207 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2208   echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210   ac_cv_prog_cc_stdc=no
2211 ac_save_CC=$CC
2212 cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h.  */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h.  */
2218 #include <stdarg.h>
2219 #include <stdio.h>
2220 #include <sys/types.h>
2221 #include <sys/stat.h>
2222 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2223 struct buf { int x; };
2224 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2225 static char *e (p, i)
2226      char **p;
2227      int i;
2228 {
2229   return p[i];
2230 }
2231 static char *f (char * (*g) (char **, int), char **p, ...)
2232 {
2233   char *s;
2234   va_list v;
2235   va_start (v,p);
2236   s = g (p, va_arg (v,int));
2237   va_end (v);
2238   return s;
2239 }
2240
2241 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2242    function prototypes and stuff, but not '\xHH' hex character constants.
2243    These don't provoke an error unfortunately, instead are silently treated
2244    as 'x'.  The following induces an error, until -std1 is added to get
2245    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2246    array size at least.  It's necessary to write '\x00'==0 to get something
2247    that's true only with -std1.  */
2248 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2249
2250 int test (int i, double x);
2251 struct s1 {int (*f) (int a);};
2252 struct s2 {int (*f) (double a);};
2253 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2254 int argc;
2255 char **argv;
2256 int
2257 main ()
2258 {
2259 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 # Don't try gcc -ansi; that turns off useful extensions and
2265 # breaks some systems' header files.
2266 # AIX                   -qlanglvl=ansi
2267 # Ultrix and OSF/1      -std1
2268 # HP-UX 10.20 and later -Ae
2269 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2270 # SVR4                  -Xc -D__EXTENSIONS__
2271 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2272 do
2273   CC="$ac_save_CC $ac_arg"
2274   rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276   (eval $ac_compile) 2>conftest.er1
2277   ac_status=$?
2278   grep -v '^ *+' conftest.er1 >conftest.err
2279   rm -f conftest.er1
2280   cat conftest.err >&5
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); } &&
2283          { ac_try='test -z "$ac_c_werror_flag"
2284                          || test ! -s conftest.err'
2285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286   (eval $ac_try) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }; } &&
2290          { ac_try='test -s conftest.$ac_objext'
2291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292   (eval $ac_try) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }; }; then
2296   ac_cv_prog_cc_stdc=$ac_arg
2297 break
2298 else
2299   echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2301
2302 fi
2303 rm -f conftest.err conftest.$ac_objext
2304 done
2305 rm -f conftest.$ac_ext conftest.$ac_objext
2306 CC=$ac_save_CC
2307
2308 fi
2309
2310 case "x$ac_cv_prog_cc_stdc" in
2311   x|xno)
2312     echo "$as_me:$LINENO: result: none needed" >&5
2313 echo "${ECHO_T}none needed" >&6 ;;
2314   *)
2315     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2316 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2317     CC="$CC $ac_cv_prog_cc_stdc" ;;
2318 esac
2319
2320 # Some people use a C++ compiler to compile C.  Since we use `exit',
2321 # in C++ we need to declare it.  In case someone uses the same compiler
2322 # for both compiling C and C++ we need to have the C++ compiler decide
2323 # the declaration of exit, since it's the most demanding environment.
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #ifndef __cplusplus
2326   choke me
2327 #endif
2328 _ACEOF
2329 rm -f conftest.$ac_objext
2330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331   (eval $ac_compile) 2>conftest.er1
2332   ac_status=$?
2333   grep -v '^ *+' conftest.er1 >conftest.err
2334   rm -f conftest.er1
2335   cat conftest.err >&5
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); } &&
2338          { ac_try='test -z "$ac_c_werror_flag"
2339                          || test ! -s conftest.err'
2340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341   (eval $ac_try) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; } &&
2345          { ac_try='test -s conftest.$ac_objext'
2346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347   (eval $ac_try) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }; }; then
2351   for ac_declaration in \
2352    '' \
2353    'extern "C" void std::exit (int) throw (); using std::exit;' \
2354    'extern "C" void std::exit (int); using std::exit;' \
2355    'extern "C" void exit (int) throw ();' \
2356    'extern "C" void exit (int);' \
2357    'void exit (int);'
2358 do
2359   cat >conftest.$ac_ext <<_ACEOF
2360 /* confdefs.h.  */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h.  */
2365 $ac_declaration
2366 #include <stdlib.h>
2367 int
2368 main ()
2369 {
2370 exit (42);
2371   ;
2372   return 0;
2373 }
2374 _ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377   (eval $ac_compile) 2>conftest.er1
2378   ac_status=$?
2379   grep -v '^ *+' conftest.er1 >conftest.err
2380   rm -f conftest.er1
2381   cat conftest.err >&5
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); } &&
2384          { ac_try='test -z "$ac_c_werror_flag"
2385                          || test ! -s conftest.err'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; } &&
2391          { ac_try='test -s conftest.$ac_objext'
2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393   (eval $ac_try) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; }; then
2397   :
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 continue
2403 fi
2404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405   cat >conftest.$ac_ext <<_ACEOF
2406 /* confdefs.h.  */
2407 _ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h.  */
2411 $ac_declaration
2412 int
2413 main ()
2414 {
2415 exit (42);
2416   ;
2417   return 0;
2418 }
2419 _ACEOF
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422   (eval $ac_compile) 2>conftest.er1
2423   ac_status=$?
2424   grep -v '^ *+' conftest.er1 >conftest.err
2425   rm -f conftest.er1
2426   cat conftest.err >&5
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); } &&
2429          { ac_try='test -z "$ac_c_werror_flag"
2430                          || test ! -s conftest.err'
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); }; } &&
2436          { ac_try='test -s conftest.$ac_objext'
2437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438   (eval $ac_try) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }; }; then
2442   break
2443 else
2444   echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446
2447 fi
2448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449 done
2450 rm -f conftest*
2451 if test -n "$ac_declaration"; then
2452   echo '#ifdef __cplusplus' >>confdefs.h
2453   echo $ac_declaration      >>confdefs.h
2454   echo '#endif'             >>confdefs.h
2455 fi
2456
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 fi
2462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 ac_ext=c
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2468
2469 if test -n "$ac_tool_prefix"; then
2470   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_RANLIB+set}" = set; then
2475   echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477   if test -n "$RANLIB"; then
2478   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483   IFS=$as_save_IFS
2484   test -z "$as_dir" && as_dir=.
2485   for ac_exec_ext in '' $ac_executable_extensions; do
2486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489     break 2
2490   fi
2491 done
2492 done
2493
2494 fi
2495 fi
2496 RANLIB=$ac_cv_prog_RANLIB
2497 if test -n "$RANLIB"; then
2498   echo "$as_me:$LINENO: result: $RANLIB" >&5
2499 echo "${ECHO_T}$RANLIB" >&6
2500 else
2501   echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2503 fi
2504
2505 fi
2506 if test -z "$ac_cv_prog_RANLIB"; then
2507   ac_ct_RANLIB=$RANLIB
2508   # Extract the first word of "ranlib", so it can be a program name with args.
2509 set dummy ranlib; ac_word=$2
2510 echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2512 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2513   echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515   if test -n "$ac_ct_RANLIB"; then
2516   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521   IFS=$as_save_IFS
2522   test -z "$as_dir" && as_dir=.
2523   for ac_exec_ext in '' $ac_executable_extensions; do
2524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525     ac_cv_prog_ac_ct_RANLIB="ranlib"
2526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527     break 2
2528   fi
2529 done
2530 done
2531
2532   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2533 fi
2534 fi
2535 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2536 if test -n "$ac_ct_RANLIB"; then
2537   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2538 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2539 else
2540   echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6
2542 fi
2543
2544   RANLIB=$ac_ct_RANLIB
2545 else
2546   RANLIB="$ac_cv_prog_RANLIB"
2547 fi
2548
2549
2550 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2551 for ac_prog in aclocal
2552 do
2553   # Extract the first word of "$ac_prog", so it can be a program name with args.
2554 set dummy $ac_prog; ac_word=$2
2555 echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2557 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   if test -n "$ACLOCAL"; then
2561   ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566   IFS=$as_save_IFS
2567   test -z "$as_dir" && as_dir=.
2568   for ac_exec_ext in '' $ac_executable_extensions; do
2569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570     ac_cv_prog_ACLOCAL="$ac_prog"
2571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572     break 2
2573   fi
2574 done
2575 done
2576
2577 fi
2578 fi
2579 ACLOCAL=$ac_cv_prog_ACLOCAL
2580 if test -n "$ACLOCAL"; then
2581   echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2582 echo "${ECHO_T}$ACLOCAL" >&6
2583 else
2584   echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6
2586 fi
2587
2588   test -n "$ACLOCAL" && break
2589 done
2590 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2591
2592 for ac_prog in autoconf
2593 do
2594   # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   if test -n "$AUTOCONF"; then
2602   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609   for ac_exec_ext in '' $ac_executable_extensions; do
2610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611     ac_cv_prog_AUTOCONF="$ac_prog"
2612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616 done
2617
2618 fi
2619 fi
2620 AUTOCONF=$ac_cv_prog_AUTOCONF
2621 if test -n "$AUTOCONF"; then
2622   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2623 echo "${ECHO_T}$AUTOCONF" >&6
2624 else
2625   echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6
2627 fi
2628
2629   test -n "$AUTOCONF" && break
2630 done
2631 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2632
2633 for ac_prog in autoheader
2634 do
2635   # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   if test -n "$AUTOHEADER"; then
2643   ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650   for ac_exec_ext in '' $ac_executable_extensions; do
2651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652     ac_cv_prog_AUTOHEADER="$ac_prog"
2653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654     break 2
2655   fi
2656 done
2657 done
2658
2659 fi
2660 fi
2661 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2662 if test -n "$AUTOHEADER"; then
2663   echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2664 echo "${ECHO_T}$AUTOHEADER" >&6
2665 else
2666   echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6
2668 fi
2669
2670   test -n "$AUTOHEADER" && break
2671 done
2672 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2673
2674
2675 # Checks for header files.
2676
2677 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2678 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2679 if test "${ac_cv_header_time+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688 #include <sys/types.h>
2689 #include <sys/time.h>
2690 #include <time.h>
2691
2692 int
2693 main ()
2694 {
2695 if ((struct tm *) 0)
2696 return 0;
2697   ;
2698   return 0;
2699 }
2700 _ACEOF
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703   (eval $ac_compile) 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -z "$ac_c_werror_flag"
2711                          || test ! -s conftest.err'
2712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713   (eval $ac_try) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; } &&
2717          { ac_try='test -s conftest.$ac_objext'
2718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; }; then
2723   ac_cv_header_time=yes
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728 ac_cv_header_time=no
2729 fi
2730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 fi
2732 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
2733 echo "${ECHO_T}$ac_cv_header_time" >&6
2734 if test $ac_cv_header_time = yes; then
2735
2736 cat >>confdefs.h <<\_ACEOF
2737 #define TIME_WITH_SYS_TIME 1
2738 _ACEOF
2739
2740 fi
2741
2742 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
2743 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
2744 if test "${gcc_cv_header_string+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h.  */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h.  */
2753 #include <string.h>
2754 #include <strings.h>
2755 int
2756 main ()
2757 {
2758
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
2769   cat conftest.err >&5
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } &&
2772          { ac_try='test -z "$ac_c_werror_flag"
2773                          || test ! -s conftest.err'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; } &&
2779          { ac_try='test -s conftest.$ac_objext'
2780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785   gcc_cv_header_string=yes
2786 else
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 gcc_cv_header_string=no
2791 fi
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 fi
2794 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
2795 echo "${ECHO_T}$gcc_cv_header_string" >&6
2796 if test $gcc_cv_header_string = yes; then
2797
2798 cat >>confdefs.h <<\_ACEOF
2799 #define STRING_WITH_STRINGS 1
2800 _ACEOF
2801
2802 fi
2803
2804 ac_ext=c
2805 ac_cpp='$CPP $CPPFLAGS'
2806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2810 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2811 # On Suns, sometimes $CPP names a directory.
2812 if test -n "$CPP" && test -d "$CPP"; then
2813   CPP=
2814 fi
2815 if test -z "$CPP"; then
2816   if test "${ac_cv_prog_CPP+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819       # Double quotes because CPP needs to be expanded
2820     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2821     do
2822       ac_preproc_ok=false
2823 for ac_c_preproc_warn_flag in '' yes
2824 do
2825   # Use a header file that comes with gcc, so configuring glibc
2826   # with a fresh cross-compiler works.
2827   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2828   # <limits.h> exists even on freestanding compilers.
2829   # On the NeXT, cc -E runs the code through the compiler's parser,
2830   # not just through cpp. "Syntax error" is here to catch this case.
2831   cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837 #ifdef __STDC__
2838 # include <limits.h>
2839 #else
2840 # include <assert.h>
2841 #endif
2842                      Syntax error
2843 _ACEOF
2844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2846   ac_status=$?
2847   grep -v '^ *+' conftest.er1 >conftest.err
2848   rm -f conftest.er1
2849   cat conftest.err >&5
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); } >/dev/null; then
2852   if test -s conftest.err; then
2853     ac_cpp_err=$ac_c_preproc_warn_flag
2854     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2855   else
2856     ac_cpp_err=
2857   fi
2858 else
2859   ac_cpp_err=yes
2860 fi
2861 if test -z "$ac_cpp_err"; then
2862   :
2863 else
2864   echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867   # Broken: fails on valid input.
2868 continue
2869 fi
2870 rm -f conftest.err conftest.$ac_ext
2871
2872   # OK, works on sane cases.  Now check whether non-existent headers
2873   # can be detected and how.
2874   cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h.  */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h.  */
2880 #include <ac_nonexistent.h>
2881 _ACEOF
2882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2883   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2884   ac_status=$?
2885   grep -v '^ *+' conftest.er1 >conftest.err
2886   rm -f conftest.er1
2887   cat conftest.err >&5
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); } >/dev/null; then
2890   if test -s conftest.err; then
2891     ac_cpp_err=$ac_c_preproc_warn_flag
2892     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2893   else
2894     ac_cpp_err=
2895   fi
2896 else
2897   ac_cpp_err=yes
2898 fi
2899 if test -z "$ac_cpp_err"; then
2900   # Broken: success on invalid input.
2901 continue
2902 else
2903   echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906   # Passes both tests.
2907 ac_preproc_ok=:
2908 break
2909 fi
2910 rm -f conftest.err conftest.$ac_ext
2911
2912 done
2913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2914 rm -f conftest.err conftest.$ac_ext
2915 if $ac_preproc_ok; then
2916   break
2917 fi
2918
2919     done
2920     ac_cv_prog_CPP=$CPP
2921
2922 fi
2923   CPP=$ac_cv_prog_CPP
2924 else
2925   ac_cv_prog_CPP=$CPP
2926 fi
2927 echo "$as_me:$LINENO: result: $CPP" >&5
2928 echo "${ECHO_T}$CPP" >&6
2929 ac_preproc_ok=false
2930 for ac_c_preproc_warn_flag in '' yes
2931 do
2932   # Use a header file that comes with gcc, so configuring glibc
2933   # with a fresh cross-compiler works.
2934   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2935   # <limits.h> exists even on freestanding compilers.
2936   # On the NeXT, cc -E runs the code through the compiler's parser,
2937   # not just through cpp. "Syntax error" is here to catch this case.
2938   cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h.  */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h.  */
2944 #ifdef __STDC__
2945 # include <limits.h>
2946 #else
2947 # include <assert.h>
2948 #endif
2949                      Syntax error
2950 _ACEOF
2951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2953   ac_status=$?
2954   grep -v '^ *+' conftest.er1 >conftest.err
2955   rm -f conftest.er1
2956   cat conftest.err >&5
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); } >/dev/null; then
2959   if test -s conftest.err; then
2960     ac_cpp_err=$ac_c_preproc_warn_flag
2961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2962   else
2963     ac_cpp_err=
2964   fi
2965 else
2966   ac_cpp_err=yes
2967 fi
2968 if test -z "$ac_cpp_err"; then
2969   :
2970 else
2971   echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974   # Broken: fails on valid input.
2975 continue
2976 fi
2977 rm -f conftest.err conftest.$ac_ext
2978
2979   # OK, works on sane cases.  Now check whether non-existent headers
2980   # can be detected and how.
2981   cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h.  */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h.  */
2987 #include <ac_nonexistent.h>
2988 _ACEOF
2989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2991   ac_status=$?
2992   grep -v '^ *+' conftest.er1 >conftest.err
2993   rm -f conftest.er1
2994   cat conftest.err >&5
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); } >/dev/null; then
2997   if test -s conftest.err; then
2998     ac_cpp_err=$ac_c_preproc_warn_flag
2999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3000   else
3001     ac_cpp_err=
3002   fi
3003 else
3004   ac_cpp_err=yes
3005 fi
3006 if test -z "$ac_cpp_err"; then
3007   # Broken: success on invalid input.
3008 continue
3009 else
3010   echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013   # Passes both tests.
3014 ac_preproc_ok=:
3015 break
3016 fi
3017 rm -f conftest.err conftest.$ac_ext
3018
3019 done
3020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3021 rm -f conftest.err conftest.$ac_ext
3022 if $ac_preproc_ok; then
3023   :
3024 else
3025   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3026 See \`config.log' for more details." >&5
3027 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3028 See \`config.log' for more details." >&2;}
3029    { (exit 1); exit 1; }; }
3030 fi
3031
3032 ac_ext=c
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037
3038
3039 echo "$as_me:$LINENO: checking for egrep" >&5
3040 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3041 if test "${ac_cv_prog_egrep+set}" = set; then
3042   echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3045     then ac_cv_prog_egrep='grep -E'
3046     else ac_cv_prog_egrep='egrep'
3047     fi
3048 fi
3049 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3050 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3051  EGREP=$ac_cv_prog_egrep
3052
3053
3054 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3056 if test "${ac_cv_header_stdc+set}" = set; then
3057   echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059   cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065 #include <stdlib.h>
3066 #include <stdarg.h>
3067 #include <string.h>
3068 #include <float.h>
3069
3070 int
3071 main ()
3072 {
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080   (eval $ac_compile) 2>conftest.er1
3081   ac_status=$?
3082   grep -v '^ *+' conftest.er1 >conftest.err
3083   rm -f conftest.er1
3084   cat conftest.err >&5
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); } &&
3087          { ac_try='test -z "$ac_c_werror_flag"
3088                          || test ! -s conftest.err'
3089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090   (eval $ac_try) 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; } &&
3094          { ac_try='test -s conftest.$ac_objext'
3095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096   (eval $ac_try) 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; }; then
3100   ac_cv_header_stdc=yes
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_cv_header_stdc=no
3106 fi
3107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3108
3109 if test $ac_cv_header_stdc = yes; then
3110   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3111   cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117 #include <string.h>
3118
3119 _ACEOF
3120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3121   $EGREP "memchr" >/dev/null 2>&1; then
3122   :
3123 else
3124   ac_cv_header_stdc=no
3125 fi
3126 rm -f conftest*
3127
3128 fi
3129
3130 if test $ac_cv_header_stdc = yes; then
3131   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3132   cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h.  */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h.  */
3138 #include <stdlib.h>
3139
3140 _ACEOF
3141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142   $EGREP "free" >/dev/null 2>&1; then
3143   :
3144 else
3145   ac_cv_header_stdc=no
3146 fi
3147 rm -f conftest*
3148
3149 fi
3150
3151 if test $ac_cv_header_stdc = yes; then
3152   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3153   if test "$cross_compiling" = yes; then
3154   :
3155 else
3156   cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162 #include <ctype.h>
3163 #if ((' ' & 0x0FF) == 0x020)
3164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3166 #else
3167 # define ISLOWER(c) \
3168                    (('a' <= (c) && (c) <= 'i') \
3169                      || ('j' <= (c) && (c) <= 'r') \
3170                      || ('s' <= (c) && (c) <= 'z'))
3171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3172 #endif
3173
3174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3175 int
3176 main ()
3177 {
3178   int i;
3179   for (i = 0; i < 256; i++)
3180     if (XOR (islower (i), ISLOWER (i))
3181         || toupper (i) != TOUPPER (i))
3182       exit(2);
3183   exit (0);
3184 }
3185 _ACEOF
3186 rm -f conftest$ac_exeext
3187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3188   (eval $ac_link) 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193   (eval $ac_try) 2>&5
3194   ac_status=$?
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); }; }; then
3197   :
3198 else
3199   echo "$as_me: program exited with status $ac_status" >&5
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 ( exit $ac_status )
3204 ac_cv_header_stdc=no
3205 fi
3206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3207 fi
3208 fi
3209 fi
3210 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3211 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3212 if test $ac_cv_header_stdc = yes; then
3213
3214 cat >>confdefs.h <<\_ACEOF
3215 #define STDC_HEADERS 1
3216 _ACEOF
3217
3218 fi
3219
3220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3231                   inttypes.h stdint.h unistd.h
3232 do
3233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3234 echo "$as_me:$LINENO: checking for $ac_header" >&5
3235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3237   echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239   cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h.  */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h.  */
3245 $ac_includes_default
3246
3247 #include <$ac_header>
3248 _ACEOF
3249 rm -f conftest.$ac_objext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3251   (eval $ac_compile) 2>conftest.er1
3252   ac_status=$?
3253   grep -v '^ *+' conftest.er1 >conftest.err
3254   rm -f conftest.er1
3255   cat conftest.err >&5
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); } &&
3258          { ac_try='test -z "$ac_c_werror_flag"
3259                          || test ! -s conftest.err'
3260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261   (eval $ac_try) 2>&5
3262   ac_status=$?
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); }; } &&
3265          { ac_try='test -s conftest.$ac_objext'
3266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267   (eval $ac_try) 2>&5
3268   ac_status=$?
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); }; }; then
3271   eval "$as_ac_Header=yes"
3272 else
3273   echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 eval "$as_ac_Header=no"
3277 fi
3278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3279 fi
3280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3283   cat >>confdefs.h <<_ACEOF
3284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3285 _ACEOF
3286
3287 fi
3288
3289 done
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302 for ac_header in iconv.h locale.h fcntl.h limits.h stddef.h \
3303         stdlib.h strings.h string.h sys/file.h unistd.h
3304 do
3305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3307   echo "$as_me:$LINENO: checking for $ac_header" >&5
3308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3310   echo $ECHO_N "(cached) $ECHO_C" >&6
3311 fi
3312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3314 else
3315   # Is the header compilable?
3316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3318 cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h.  */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h.  */
3324 $ac_includes_default
3325 #include <$ac_header>
3326 _ACEOF
3327 rm -f conftest.$ac_objext
3328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3329   (eval $ac_compile) 2>conftest.er1
3330   ac_status=$?
3331   grep -v '^ *+' conftest.er1 >conftest.err
3332   rm -f conftest.er1
3333   cat conftest.err >&5
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); } &&
3336          { ac_try='test -z "$ac_c_werror_flag"
3337                          || test ! -s conftest.err'
3338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339   (eval $ac_try) 2>&5
3340   ac_status=$?
3341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); }; } &&
3343          { ac_try='test -s conftest.$ac_objext'
3344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345   (eval $ac_try) 2>&5
3346   ac_status=$?
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }; }; then
3349   ac_header_compiler=yes
3350 else
3351   echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354 ac_header_compiler=no
3355 fi
3356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3358 echo "${ECHO_T}$ac_header_compiler" >&6
3359
3360 # Is the header present?
3361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369 #include <$ac_header>
3370 _ACEOF
3371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373   ac_status=$?
3374   grep -v '^ *+' conftest.er1 >conftest.err
3375   rm -f conftest.er1
3376   cat conftest.err >&5
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); } >/dev/null; then
3379   if test -s conftest.err; then
3380     ac_cpp_err=$ac_c_preproc_warn_flag
3381     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3382   else
3383     ac_cpp_err=
3384   fi
3385 else
3386   ac_cpp_err=yes
3387 fi
3388 if test -z "$ac_cpp_err"; then
3389   ac_header_preproc=yes
3390 else
3391   echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394   ac_header_preproc=no
3395 fi
3396 rm -f conftest.err conftest.$ac_ext
3397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3398 echo "${ECHO_T}$ac_header_preproc" >&6
3399
3400 # So?  What about this header?
3401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3402   yes:no: )
3403     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3407     ac_header_preproc=yes
3408     ;;
3409   no:yes:* )
3410     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3412     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3413 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3414     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3416     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3417 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3420     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3422     (
3423       cat <<\_ASBOX
3424 ## ----------------------------------- ##
3425 ## Report this to gcc-bugs@gcc.gnu.org ##
3426 ## ----------------------------------- ##
3427 _ASBOX
3428     ) |
3429       sed "s/^/$as_me: WARNING:     /" >&2
3430     ;;
3431 esac
3432 echo "$as_me:$LINENO: checking for $ac_header" >&5
3433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   eval "$as_ac_Header=\$ac_header_preproc"
3438 fi
3439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3441
3442 fi
3443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3444   cat >>confdefs.h <<_ACEOF
3445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3446 _ACEOF
3447
3448 fi
3449
3450 done
3451
3452
3453 # Checks for typedefs, structures, and compiler characteristics.
3454 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3455 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3456 if test "${ac_cv_c_const+set}" = set; then
3457   echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459   cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h.  */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469 /* FIXME: Include the comments suggested by Paul. */
3470 #ifndef __cplusplus
3471   /* Ultrix mips cc rejects this.  */
3472   typedef int charset[2];
3473   const charset x;
3474   /* SunOS 4.1.1 cc rejects this.  */
3475   char const *const *ccp;
3476   char **p;
3477   /* NEC SVR4.0.2 mips cc rejects this.  */
3478   struct point {int x, y;};
3479   static struct point const zero = {0,0};
3480   /* AIX XL C 1.02.0.0 rejects this.
3481      It does not let you subtract one const X* pointer from another in
3482      an arm of an if-expression whose if-part is not a constant
3483      expression */
3484   const char *g = "string";
3485   ccp = &g + (g ? g-g : 0);
3486   /* HPUX 7.0 cc rejects these. */
3487   ++ccp;
3488   p = (char**) ccp;
3489   ccp = (char const *const *) p;
3490   { /* SCO 3.2v4 cc rejects this.  */
3491     char *t;
3492     char const *s = 0 ? (char *) 0 : (char const *) 0;
3493
3494     *t++ = 0;
3495   }
3496   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3497     int x[] = {25, 17};
3498     const int *foo = &x[0];
3499     ++foo;
3500   }
3501   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3502     typedef const int *iptr;
3503     iptr p = 0;
3504     ++p;
3505   }
3506   { /* AIX XL C 1.02.0.0 rejects this saying
3507        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3508     struct s { int j; const int *ap[3]; };
3509     struct s *b; b->j = 5;
3510   }
3511   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3512     const int foo = 10;
3513   }
3514 #endif
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3522   (eval $ac_compile) 2>conftest.er1
3523   ac_status=$?
3524   grep -v '^ *+' conftest.er1 >conftest.err
3525   rm -f conftest.er1
3526   cat conftest.err >&5
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); } &&
3529          { ac_try='test -z "$ac_c_werror_flag"
3530                          || test ! -s conftest.err'
3531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532   (eval $ac_try) 2>&5
3533   ac_status=$?
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); }; } &&
3536          { ac_try='test -s conftest.$ac_objext'
3537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538   (eval $ac_try) 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; }; then
3542   ac_cv_c_const=yes
3543 else
3544   echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 ac_cv_c_const=no
3548 fi
3549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3550 fi
3551 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3552 echo "${ECHO_T}$ac_cv_c_const" >&6
3553 if test $ac_cv_c_const = no; then
3554
3555 cat >>confdefs.h <<\_ACEOF
3556 #define const
3557 _ACEOF
3558
3559 fi
3560
3561 echo "$as_me:$LINENO: checking for inline" >&5
3562 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3563 if test "${ac_cv_c_inline+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   ac_cv_c_inline=no
3567 for ac_kw in inline __inline__ __inline; do
3568   cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h.  */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h.  */
3574 #ifndef __cplusplus
3575 typedef int foo_t;
3576 static $ac_kw foo_t static_foo () {return 0; }
3577 $ac_kw foo_t foo () {return 0; }
3578 #endif
3579
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583   (eval $ac_compile) 2>conftest.er1
3584   ac_status=$?
3585   grep -v '^ *+' conftest.er1 >conftest.err
3586   rm -f conftest.er1
3587   cat conftest.err >&5
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } &&
3590          { ac_try='test -z "$ac_c_werror_flag"
3591                          || test ! -s conftest.err'
3592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593   (eval $ac_try) 2>&5
3594   ac_status=$?
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); }; } &&
3597          { ac_try='test -s conftest.$ac_objext'
3598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599   (eval $ac_try) 2>&5
3600   ac_status=$?
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); }; }; then
3603   ac_cv_c_inline=$ac_kw; break
3604 else
3605   echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608 fi
3609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3610 done
3611
3612 fi
3613 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3614 echo "${ECHO_T}$ac_cv_c_inline" >&6
3615
3616
3617 case $ac_cv_c_inline in
3618   inline | yes) ;;
3619   *)
3620     case $ac_cv_c_inline in
3621       no) ac_val=;;
3622       *) ac_val=$ac_cv_c_inline;;
3623     esac
3624     cat >>confdefs.h <<_ACEOF
3625 #ifndef __cplusplus
3626 #define inline $ac_val
3627 #endif
3628 _ACEOF
3629     ;;
3630 esac
3631
3632 echo "$as_me:$LINENO: checking for obstacks" >&5
3633 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3634 if test "${ac_cv_func_obstack+set}" = set; then
3635   echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637   cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h.  */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h.  */
3643 #include "obstack.h"
3644 int
3645 main ()
3646 {
3647 struct obstack *mem; obstack_free(mem,(char *) 0)
3648   ;
3649   return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.$ac_objext conftest$ac_exeext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654   (eval $ac_link) 2>conftest.er1
3655   ac_status=$?
3656   grep -v '^ *+' conftest.er1 >conftest.err
3657   rm -f conftest.er1
3658   cat conftest.err >&5
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); } &&
3661          { ac_try='test -z "$ac_c_werror_flag"
3662                          || test ! -s conftest.err'
3663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664   (eval $ac_try) 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); }; } &&
3668          { ac_try='test -s conftest$ac_exeext'
3669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670   (eval $ac_try) 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); }; }; then
3674   ac_cv_func_obstack=yes
3675 else
3676   echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 ac_cv_func_obstack=no
3680 fi
3681 rm -f conftest.err conftest.$ac_objext \
3682       conftest$ac_exeext conftest.$ac_ext
3683 fi
3684 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
3685 echo "${ECHO_T}$ac_cv_func_obstack" >&6
3686 if test $ac_cv_func_obstack = yes; then
3687
3688 cat >>confdefs.h <<\_ACEOF
3689 #define HAVE_OBSTACK 1
3690 _ACEOF
3691
3692 else
3693   case $LIBOBJS in
3694     "obstack.$ac_objext"   | \
3695   *" obstack.$ac_objext"   | \
3696     "obstack.$ac_objext "* | \
3697   *" obstack.$ac_objext "* ) ;;
3698   *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
3699 esac
3700
3701 fi
3702
3703 echo "$as_me:$LINENO: checking for off_t" >&5
3704 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3705 if test "${ac_cv_type_off_t+set}" = set; then
3706   echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708   cat >conftest.$ac_ext <<_ACEOF
3709 /* confdefs.h.  */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h.  */
3714 $ac_includes_default
3715 int
3716 main ()
3717 {
3718 if ((off_t *) 0)
3719   return 0;
3720 if (sizeof (off_t))
3721   return 0;
3722   ;
3723   return 0;
3724 }
3725 _ACEOF
3726 rm -f conftest.$ac_objext
3727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728   (eval $ac_compile) 2>conftest.er1
3729   ac_status=$?
3730   grep -v '^ *+' conftest.er1 >conftest.err
3731   rm -f conftest.er1
3732   cat conftest.err >&5
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); } &&
3735          { ac_try='test -z "$ac_c_werror_flag"
3736                          || test ! -s conftest.err'
3737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738   (eval $ac_try) 2>&5
3739   ac_status=$?
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); }; } &&
3742          { ac_try='test -s conftest.$ac_objext'
3743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744   (eval $ac_try) 2>&5
3745   ac_status=$?
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); }; }; then
3748   ac_cv_type_off_t=yes
3749 else
3750   echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753 ac_cv_type_off_t=no
3754 fi
3755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3756 fi
3757 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3758 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3759 if test $ac_cv_type_off_t = yes; then
3760   :
3761 else
3762
3763 cat >>confdefs.h <<_ACEOF
3764 #define off_t long
3765 _ACEOF
3766
3767 fi
3768
3769 echo "$as_me:$LINENO: checking for size_t" >&5
3770 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3771 if test "${ac_cv_type_size_t+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h.  */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h.  */
3780 $ac_includes_default
3781 int
3782 main ()
3783 {
3784 if ((size_t *) 0)
3785   return 0;
3786 if (sizeof (size_t))
3787   return 0;
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 rm -f conftest.$ac_objext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794   (eval $ac_compile) 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } &&
3801          { ac_try='test -z "$ac_c_werror_flag"
3802                          || test ! -s conftest.err'
3803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804   (eval $ac_try) 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }; } &&
3808          { ac_try='test -s conftest.$ac_objext'
3809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810   (eval $ac_try) 2>&5
3811   ac_status=$?
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); }; }; then
3814   ac_cv_type_size_t=yes
3815 else
3816   echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 ac_cv_type_size_t=no
3820 fi
3821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3822 fi
3823 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3824 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3825 if test $ac_cv_type_size_t = yes; then
3826   :
3827 else
3828
3829 cat >>confdefs.h <<_ACEOF
3830 #define size_t unsigned
3831 _ACEOF
3832
3833 fi
3834
3835 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3836 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3837 if test "${ac_cv_struct_tm+set}" = set; then
3838   echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840   cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h.  */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h.  */
3846 #include <sys/types.h>
3847 #include <time.h>
3848
3849 int
3850 main ()
3851 {
3852 struct tm *tp; tp->tm_sec;
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3859   (eval $ac_compile) 2>conftest.er1
3860   ac_status=$?
3861   grep -v '^ *+' conftest.er1 >conftest.err
3862   rm -f conftest.er1
3863   cat conftest.err >&5
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); } &&
3866          { ac_try='test -z "$ac_c_werror_flag"
3867                          || test ! -s conftest.err'
3868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869   (eval $ac_try) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); }; } &&
3873          { ac_try='test -s conftest.$ac_objext'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   ac_cv_struct_tm=time.h
3880 else
3881   echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 ac_cv_struct_tm=sys/time.h
3885 fi
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 fi
3888 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3889 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3890 if test $ac_cv_struct_tm = sys/time.h; then
3891
3892 cat >>confdefs.h <<\_ACEOF
3893 #define TM_IN_SYS_TIME 1
3894 _ACEOF
3895
3896 fi
3897
3898 echo "$as_me:$LINENO: checking for int" >&5
3899 echo $ECHO_N "checking for int... $ECHO_C" >&6
3900 if test "${ac_cv_type_int+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909 $ac_includes_default
3910 int
3911 main ()
3912 {
3913 if ((int *) 0)
3914   return 0;
3915 if (sizeof (int))
3916   return 0;
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923   (eval $ac_compile) 2>conftest.er1
3924   ac_status=$?
3925   grep -v '^ *+' conftest.er1 >conftest.err
3926   rm -f conftest.er1
3927   cat conftest.err >&5
3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); } &&
3930          { ac_try='test -z "$ac_c_werror_flag"
3931                          || test ! -s conftest.err'
3932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933   (eval $ac_try) 2>&5
3934   ac_status=$?
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); }; } &&
3937          { ac_try='test -s conftest.$ac_objext'
3938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939   (eval $ac_try) 2>&5
3940   ac_status=$?
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); }; }; then
3943   ac_cv_type_int=yes
3944 else
3945   echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 ac_cv_type_int=no
3949 fi
3950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3951 fi
3952 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3953 echo "${ECHO_T}$ac_cv_type_int" >&6
3954
3955 echo "$as_me:$LINENO: checking size of int" >&5
3956 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3957 if test "${ac_cv_sizeof_int+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   if test "$ac_cv_type_int" = yes; then
3961   # The cast to unsigned long works around a bug in the HP C Compiler
3962   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3963   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3964   # This bug is HP SR number 8606223364.
3965   if test "$cross_compiling" = yes; then
3966   # Depending upon the size, compute the lo and hi bounds.
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h.  */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h.  */
3973 $ac_includes_default
3974 int
3975 main ()
3976 {
3977 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3978 test_array [0] = 0
3979
3980   ;
3981   return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986   (eval $ac_compile) 2>conftest.er1
3987   ac_status=$?
3988   grep -v '^ *+' conftest.er1 >conftest.err
3989   rm -f conftest.er1
3990   cat conftest.err >&5
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); } &&
3993          { ac_try='test -z "$ac_c_werror_flag"
3994                          || test ! -s conftest.err'
3995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996   (eval $ac_try) 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); }; } &&
4000          { ac_try='test -s conftest.$ac_objext'
4001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002   (eval $ac_try) 2>&5
4003   ac_status=$?
4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); }; }; then
4006   ac_lo=0 ac_mid=0
4007   while :; do
4008     cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h.  */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h.  */
4014 $ac_includes_default
4015 int
4016 main ()
4017 {
4018 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4019 test_array [0] = 0
4020
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 rm -f conftest.$ac_objext
4026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027   (eval $ac_compile) 2>conftest.er1
4028   ac_status=$?
4029   grep -v '^ *+' conftest.er1 >conftest.err
4030   rm -f conftest.er1
4031   cat conftest.err >&5
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); } &&
4034          { ac_try='test -z "$ac_c_werror_flag"
4035                          || test ! -s conftest.err'
4036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037   (eval $ac_try) 2>&5
4038   ac_status=$?
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); }; } &&
4041          { ac_try='test -s conftest.$ac_objext'
4042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043   (eval $ac_try) 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; }; then
4047   ac_hi=$ac_mid; break
4048 else
4049   echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4051
4052 ac_lo=`expr $ac_mid + 1`
4053                     if test $ac_lo -le $ac_mid; then
4054                       ac_lo= ac_hi=
4055                       break
4056                     fi
4057                     ac_mid=`expr 2 '*' $ac_mid + 1`
4058 fi
4059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060   done
4061 else
4062   echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h.  */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h.  */
4071 $ac_includes_default
4072 int
4073 main ()
4074 {
4075 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4076 test_array [0] = 0
4077
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 rm -f conftest.$ac_objext
4083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4084   (eval $ac_compile) 2>conftest.er1
4085   ac_status=$?
4086   grep -v '^ *+' conftest.er1 >conftest.err
4087   rm -f conftest.er1
4088   cat conftest.err >&5
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); } &&
4091          { ac_try='test -z "$ac_c_werror_flag"
4092                          || test ! -s conftest.err'
4093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094   (eval $ac_try) 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); }; } &&
4098          { ac_try='test -s conftest.$ac_objext'
4099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100   (eval $ac_try) 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); }; }; then
4104   ac_hi=-1 ac_mid=-1
4105   while :; do
4106     cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h.  */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h.  */
4112 $ac_includes_default
4113 int
4114 main ()
4115 {
4116 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4117 test_array [0] = 0
4118
4119   ;
4120   return 0;
4121 }
4122 _ACEOF
4123 rm -f conftest.$ac_objext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125   (eval $ac_compile) 2>conftest.er1
4126   ac_status=$?
4127   grep -v '^ *+' conftest.er1 >conftest.err
4128   rm -f conftest.er1
4129   cat conftest.err >&5
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); } &&
4132          { ac_try='test -z "$ac_c_werror_flag"
4133                          || test ! -s conftest.err'
4134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135   (eval $ac_try) 2>&5
4136   ac_status=$?
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); }; } &&
4139          { ac_try='test -s conftest.$ac_objext'
4140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141   (eval $ac_try) 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); }; }; then
4145   ac_lo=$ac_mid; break
4146 else
4147   echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150 ac_hi=`expr '(' $ac_mid ')' - 1`
4151                        if test $ac_mid -le $ac_hi; then
4152                          ac_lo= ac_hi=
4153                          break
4154                        fi
4155                        ac_mid=`expr 2 '*' $ac_mid`
4156 fi
4157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4158   done
4159 else
4160   echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4162
4163 ac_lo= ac_hi=
4164 fi
4165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4166 fi
4167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168 # Binary search between lo and hi bounds.
4169 while test "x$ac_lo" != "x$ac_hi"; do
4170   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4171   cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177 $ac_includes_default
4178 int
4179 main ()
4180 {
4181 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4182 test_array [0] = 0
4183
4184   ;
4185   return 0;
4186 }
4187 _ACEOF
4188 rm -f conftest.$ac_objext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190   (eval $ac_compile) 2>conftest.er1
4191   ac_status=$?
4192   grep -v '^ *+' conftest.er1 >conftest.err
4193   rm -f conftest.er1
4194   cat conftest.err >&5
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } &&
4197          { ac_try='test -z "$ac_c_werror_flag"
4198                          || test ! -s conftest.err'
4199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200   (eval $ac_try) 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }; } &&
4204          { ac_try='test -s conftest.$ac_objext'
4205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206   (eval $ac_try) 2>&5
4207   ac_status=$?
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); }; }; then
4210   ac_hi=$ac_mid
4211 else
4212   echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 ac_lo=`expr '(' $ac_mid ')' + 1`
4216 fi
4217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218 done
4219 case $ac_lo in
4220 ?*) ac_cv_sizeof_int=$ac_lo;;
4221 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4222 See \`config.log' for more details." >&5
4223 echo "$as_me: error: cannot compute sizeof (int), 77
4224 See \`config.log' for more details." >&2;}
4225    { (exit 1); exit 1; }; } ;;
4226 esac
4227 else
4228   if test "$cross_compiling" = yes; then
4229   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4230 See \`config.log' for more details." >&5
4231 echo "$as_me: error: cannot run test program while cross compiling
4232 See \`config.log' for more details." >&2;}
4233    { (exit 1); exit 1; }; }
4234 else
4235   cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h.  */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h.  */
4241 $ac_includes_default
4242 long longval () { return (long) (sizeof (int)); }
4243 unsigned long ulongval () { return (long) (sizeof (int)); }
4244 #include <stdio.h>
4245 #include <stdlib.h>
4246 int
4247 main ()
4248 {
4249
4250   FILE *f = fopen ("conftest.val", "w");
4251   if (! f)
4252     exit (1);
4253   if (((long) (sizeof (int))) < 0)
4254     {
4255       long i = longval ();
4256       if (i != ((long) (sizeof (int))))
4257         exit (1);
4258       fprintf (f, "%ld\n", i);
4259     }
4260   else
4261     {
4262       unsigned long i = ulongval ();
4263       if (i != ((long) (sizeof (int))))
4264         exit (1);
4265       fprintf (f, "%lu\n", i);
4266     }
4267   exit (ferror (f) || fclose (f) != 0);
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275   (eval $ac_link) 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280   (eval $ac_try) 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; }; then
4284   ac_cv_sizeof_int=`cat conftest.val`
4285 else
4286   echo "$as_me: program exited with status $ac_status" >&5
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290 ( exit $ac_status )
4291 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4292 See \`config.log' for more details." >&5
4293 echo "$as_me: error: cannot compute sizeof (int), 77
4294 See \`config.log' for more details." >&2;}
4295    { (exit 1); exit 1; }; }
4296 fi
4297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4298 fi
4299 fi
4300 rm -f conftest.val
4301 else
4302   ac_cv_sizeof_int=0
4303 fi
4304 fi
4305 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4306 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4307 cat >>confdefs.h <<_ACEOF
4308 #define SIZEOF_INT $ac_cv_sizeof_int
4309 _ACEOF
4310
4311
4312 echo "$as_me:$LINENO: checking for long" >&5
4313 echo $ECHO_N "checking for long... $ECHO_C" >&6
4314 if test "${ac_cv_type_long+set}" = set; then
4315   echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317   cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h.  */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h.  */
4323 $ac_includes_default
4324 int
4325 main ()
4326 {
4327 if ((long *) 0)
4328   return 0;
4329 if (sizeof (long))
4330   return 0;
4331   ;
4332   return 0;
4333 }
4334 _ACEOF
4335 rm -f conftest.$ac_objext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337   (eval $ac_compile) 2>conftest.er1
4338   ac_status=$?
4339   grep -v '^ *+' conftest.er1 >conftest.err
4340   rm -f conftest.er1
4341   cat conftest.err >&5
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } &&
4344          { ac_try='test -z "$ac_c_werror_flag"
4345                          || test ! -s conftest.err'
4346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347   (eval $ac_try) 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); }; } &&
4351          { ac_try='test -s conftest.$ac_objext'
4352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353   (eval $ac_try) 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }; }; then
4357   ac_cv_type_long=yes
4358 else
4359   echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 ac_cv_type_long=no
4363 fi
4364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4365 fi
4366 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4367 echo "${ECHO_T}$ac_cv_type_long" >&6
4368
4369 echo "$as_me:$LINENO: checking size of long" >&5
4370 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4371 if test "${ac_cv_sizeof_long+set}" = set; then
4372   echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374   if test "$ac_cv_type_long" = yes; then
4375   # The cast to unsigned long works around a bug in the HP C Compiler
4376   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4377   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4378   # This bug is HP SR number 8606223364.
4379   if test "$cross_compiling" = yes; then
4380   # Depending upon the size, compute the lo and hi bounds.
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h.  */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h.  */
4387 $ac_includes_default
4388 int
4389 main ()
4390 {
4391 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4392 test_array [0] = 0
4393
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400   (eval $ac_compile) 2>conftest.er1
4401   ac_status=$?
4402   grep -v '^ *+' conftest.er1 >conftest.err
4403   rm -f conftest.er1
4404   cat conftest.err >&5
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } &&
4407          { ac_try='test -z "$ac_c_werror_flag"
4408                          || test ! -s conftest.err'
4409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410   (eval $ac_try) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; } &&
4414          { ac_try='test -s conftest.$ac_objext'
4415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416   (eval $ac_try) 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }; }; then
4420   ac_lo=0 ac_mid=0
4421   while :; do
4422     cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h.  */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h.  */
4428 $ac_includes_default
4429 int
4430 main ()
4431 {
4432 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4433 test_array [0] = 0
4434
4435   ;
4436   return 0;
4437 }
4438 _ACEOF
4439 rm -f conftest.$ac_objext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441   (eval $ac_compile) 2>conftest.er1
4442   ac_status=$?
4443   grep -v '^ *+' conftest.er1 >conftest.err
4444   rm -f conftest.er1
4445   cat conftest.err >&5
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); } &&
4448          { ac_try='test -z "$ac_c_werror_flag"
4449                          || test ! -s conftest.err'
4450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451   (eval $ac_try) 2>&5
4452   ac_status=$?
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); }; } &&
4455          { ac_try='test -s conftest.$ac_objext'
4456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457   (eval $ac_try) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; }; then
4461   ac_hi=$ac_mid; break
4462 else
4463   echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4465
4466 ac_lo=`expr $ac_mid + 1`
4467                     if test $ac_lo -le $ac_mid; then
4468                       ac_lo= ac_hi=
4469                       break
4470                     fi
4471                     ac_mid=`expr 2 '*' $ac_mid + 1`
4472 fi
4473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4474   done
4475 else
4476   echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485 $ac_includes_default
4486 int
4487 main ()
4488 {
4489 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4490 test_array [0] = 0
4491
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 rm -f conftest.$ac_objext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498   (eval $ac_compile) 2>conftest.er1
4499   ac_status=$?
4500   grep -v '^ *+' conftest.er1 >conftest.err
4501   rm -f conftest.er1
4502   cat conftest.err >&5
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -z "$ac_c_werror_flag"
4506                          || test ! -s conftest.err'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; } &&
4512          { ac_try='test -s conftest.$ac_objext'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   ac_hi=-1 ac_mid=-1
4519   while :; do
4520     cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526 $ac_includes_default
4527 int
4528 main ()
4529 {
4530 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4531 test_array [0] = 0
4532
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539   (eval $ac_compile) 2>conftest.er1
4540   ac_status=$?
4541   grep -v '^ *+' conftest.er1 >conftest.err
4542   rm -f conftest.er1
4543   cat conftest.err >&5
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } &&
4546          { ac_try='test -z "$ac_c_werror_flag"
4547                          || test ! -s conftest.err'
4548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549   (eval $ac_try) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }; } &&
4553          { ac_try='test -s conftest.$ac_objext'
4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555   (eval $ac_try) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; }; then
4559   ac_lo=$ac_mid; break
4560 else
4561   echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564 ac_hi=`expr '(' $ac_mid ')' - 1`
4565                        if test $ac_mid -le $ac_hi; then
4566                          ac_lo= ac_hi=
4567                          break
4568                        fi
4569                        ac_mid=`expr 2 '*' $ac_mid`
4570 fi
4571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572   done
4573 else
4574   echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4576
4577 ac_lo= ac_hi=
4578 fi
4579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4580 fi
4581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4582 # Binary search between lo and hi bounds.
4583 while test "x$ac_lo" != "x$ac_hi"; do
4584   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4585   cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h.  */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h.  */
4591 $ac_includes_default
4592 int
4593 main ()
4594 {
4595 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4596 test_array [0] = 0
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604   (eval $ac_compile) 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -z "$ac_c_werror_flag"
4612                          || test ! -s conftest.err'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; } &&
4618          { ac_try='test -s conftest.$ac_objext'
4619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620   (eval $ac_try) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   ac_hi=$ac_mid
4625 else
4626   echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 ac_lo=`expr '(' $ac_mid ')' + 1`
4630 fi
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632 done
4633 case $ac_lo in
4634 ?*) ac_cv_sizeof_long=$ac_lo;;
4635 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4636 See \`config.log' for more details." >&5
4637 echo "$as_me: error: cannot compute sizeof (long), 77
4638 See \`config.log' for more details." >&2;}
4639    { (exit 1); exit 1; }; } ;;
4640 esac
4641 else
4642   if test "$cross_compiling" = yes; then
4643   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4644 See \`config.log' for more details." >&5
4645 echo "$as_me: error: cannot run test program while cross compiling
4646 See \`config.log' for more details." >&2;}
4647    { (exit 1); exit 1; }; }
4648 else
4649   cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h.  */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h.  */
4655 $ac_includes_default
4656 long longval () { return (long) (sizeof (long)); }
4657 unsigned long ulongval () { return (long) (sizeof (long)); }
4658 #include <stdio.h>
4659 #include <stdlib.h>
4660 int
4661 main ()
4662 {
4663
4664   FILE *f = fopen ("conftest.val", "w");
4665   if (! f)
4666     exit (1);
4667   if (((long) (sizeof (long))) < 0)
4668     {
4669       long i = longval ();
4670       if (i != ((long) (sizeof (long))))
4671         exit (1);
4672       fprintf (f, "%ld\n", i);
4673     }
4674   else
4675     {
4676       unsigned long i = ulongval ();
4677       if (i != ((long) (sizeof (long))))
4678         exit (1);
4679       fprintf (f, "%lu\n", i);
4680     }
4681   exit (ferror (f) || fclose (f) != 0);
4682
4683   ;
4684   return 0;
4685 }
4686 _ACEOF
4687 rm -f conftest$ac_exeext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4689   (eval $ac_link) 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694   (eval $ac_try) 2>&5
4695   ac_status=$?
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); }; }; then
4698   ac_cv_sizeof_long=`cat conftest.val`
4699 else
4700   echo "$as_me: program exited with status $ac_status" >&5
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 ( exit $ac_status )
4705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4706 See \`config.log' for more details." >&5
4707 echo "$as_me: error: cannot compute sizeof (long), 77
4708 See \`config.log' for more details." >&2;}
4709    { (exit 1); exit 1; }; }
4710 fi
4711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4712 fi
4713 fi
4714 rm -f conftest.val
4715 else
4716   ac_cv_sizeof_long=0
4717 fi
4718 fi
4719 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4720 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4721 cat >>confdefs.h <<_ACEOF
4722 #define SIZEOF_LONG $ac_cv_sizeof_long
4723 _ACEOF
4724
4725
4726
4727
4728
4729
4730
4731 for ac_func in putc_unlocked fputc_unlocked fputs_unlocked \
4732         fwrite_unlocked fprintf_unlocked
4733 do
4734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4735 echo "$as_me:$LINENO: checking for $ac_func" >&5
4736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4737 if eval "test \"\${$as_ac_var+set}\" = set"; then
4738   echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740   cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h.  */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h.  */
4746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4748 #define $ac_func innocuous_$ac_func
4749
4750 /* System header to define __stub macros and hopefully few prototypes,
4751     which can conflict with char $ac_func (); below.
4752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4753     <limits.h> exists even on freestanding compilers.  */
4754
4755 #ifdef __STDC__
4756 # include <limits.h>
4757 #else
4758 # include <assert.h>
4759 #endif
4760
4761 #undef $ac_func
4762
4763 /* Override any gcc2 internal prototype to avoid an error.  */
4764 #ifdef __cplusplus
4765 extern "C"
4766 {
4767 #endif
4768 /* We use char because int might match the return type of a gcc2
4769    builtin and then its argument prototype would still apply.  */
4770 char $ac_func ();
4771 /* The GNU C library defines this for functions which it implements
4772     to always fail with ENOSYS.  Some functions are actually named
4773     something starting with __ and the normal name is an alias.  */
4774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4775 choke me
4776 #else
4777 char (*f) () = $ac_func;
4778 #endif
4779 #ifdef __cplusplus
4780 }
4781 #endif
4782
4783 int
4784 main ()
4785 {
4786 return f != $ac_func;
4787   ;
4788   return 0;
4789 }
4790 _ACEOF
4791 rm -f conftest.$ac_objext conftest$ac_exeext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4793   (eval $ac_link) 2>conftest.er1
4794   ac_status=$?
4795   grep -v '^ *+' conftest.er1 >conftest.err
4796   rm -f conftest.er1
4797   cat conftest.err >&5
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); } &&
4800          { ac_try='test -z "$ac_c_werror_flag"
4801                          || test ! -s conftest.err'
4802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803   (eval $ac_try) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }; } &&
4807          { ac_try='test -s conftest$ac_exeext'
4808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809   (eval $ac_try) 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); }; }; then
4813   eval "$as_ac_var=yes"
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4817
4818 eval "$as_ac_var=no"
4819 fi
4820 rm -f conftest.err conftest.$ac_objext \
4821       conftest$ac_exeext conftest.$ac_ext
4822 fi
4823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4825 if test `eval echo '${'$as_ac_var'}'` = yes; then
4826   cat >>confdefs.h <<_ACEOF
4827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4828 _ACEOF
4829
4830 fi
4831 done
4832
4833 echo "$as_me:$LINENO: checking whether abort is declared" >&5
4834 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
4835 if test "${ac_cv_have_decl_abort+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h.  */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h.  */
4844 $ac_includes_default
4845 int
4846 main ()
4847 {
4848 #ifndef abort
4849   char *p = (char *) abort;
4850 #endif
4851
4852   ;
4853   return 0;
4854 }
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858   (eval $ac_compile) 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } &&
4865          { ac_try='test -z "$ac_c_werror_flag"
4866                          || test ! -s conftest.err'
4867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; } &&
4872          { ac_try='test -s conftest.$ac_objext'
4873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874   (eval $ac_try) 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; }; then
4878   ac_cv_have_decl_abort=yes
4879 else
4880   echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 ac_cv_have_decl_abort=no
4884 fi
4885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886 fi
4887 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
4888 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
4889 if test $ac_cv_have_decl_abort = yes; then
4890
4891 cat >>confdefs.h <<_ACEOF
4892 #define HAVE_DECL_ABORT 1
4893 _ACEOF
4894
4895
4896 else
4897   cat >>confdefs.h <<_ACEOF
4898 #define HAVE_DECL_ABORT 0
4899 _ACEOF
4900
4901
4902 fi
4903 echo "$as_me:$LINENO: checking whether errno is declared" >&5
4904 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
4905 if test "${ac_cv_have_decl_errno+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h.  */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h.  */
4914 $ac_includes_default
4915 int
4916 main ()
4917 {
4918 #ifndef errno
4919   char *p = (char *) errno;
4920 #endif
4921
4922   ;
4923   return 0;
4924 }
4925 _ACEOF
4926 rm -f conftest.$ac_objext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928   (eval $ac_compile) 2>conftest.er1
4929   ac_status=$?
4930   grep -v '^ *+' conftest.er1 >conftest.err
4931   rm -f conftest.er1
4932   cat conftest.err >&5
4933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934   (exit $ac_status); } &&
4935          { ac_try='test -z "$ac_c_werror_flag"
4936                          || test ! -s conftest.err'
4937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938   (eval $ac_try) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); }; } &&
4942          { ac_try='test -s conftest.$ac_objext'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; }; then
4948   ac_cv_have_decl_errno=yes
4949 else
4950   echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 ac_cv_have_decl_errno=no
4954 fi
4955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4956 fi
4957 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
4958 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
4959 if test $ac_cv_have_decl_errno = yes; then
4960
4961 cat >>confdefs.h <<_ACEOF
4962 #define HAVE_DECL_ERRNO 1
4963 _ACEOF
4964
4965
4966 else
4967   cat >>confdefs.h <<_ACEOF
4968 #define HAVE_DECL_ERRNO 0
4969 _ACEOF
4970
4971
4972 fi
4973 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
4974 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
4975 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
4976   echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978   cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h.  */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h.  */
4984 $ac_includes_default
4985 int
4986 main ()
4987 {
4988 #ifndef putc_unlocked
4989   char *p = (char *) putc_unlocked;
4990 #endif
4991
4992   ;
4993   return 0;
4994 }
4995 _ACEOF
4996 rm -f conftest.$ac_objext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998   (eval $ac_compile) 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } &&
5005          { ac_try='test -z "$ac_c_werror_flag"
5006                          || test ! -s conftest.err'
5007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008   (eval $ac_try) 2>&5
5009   ac_status=$?
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); }; } &&
5012          { ac_try='test -s conftest.$ac_objext'
5013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014   (eval $ac_try) 2>&5
5015   ac_status=$?
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); }; }; then
5018   ac_cv_have_decl_putc_unlocked=yes
5019 else
5020   echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5022
5023 ac_cv_have_decl_putc_unlocked=no
5024 fi
5025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5026 fi
5027 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
5028 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
5029 if test $ac_cv_have_decl_putc_unlocked = yes; then
5030
5031 cat >>confdefs.h <<_ACEOF
5032 #define HAVE_DECL_PUTC_UNLOCKED 1
5033 _ACEOF
5034
5035
5036 else
5037   cat >>confdefs.h <<_ACEOF
5038 #define HAVE_DECL_PUTC_UNLOCKED 0
5039 _ACEOF
5040
5041
5042 fi
5043 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
5044 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
5045 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
5046   echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048   cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h.  */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h.  */
5054 $ac_includes_default
5055 int
5056 main ()
5057 {
5058 #ifndef fputc_unlocked
5059   char *p = (char *) fputc_unlocked;
5060 #endif
5061
5062   ;
5063   return 0;
5064 }
5065 _ACEOF
5066 rm -f conftest.$ac_objext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068   (eval $ac_compile) 2>conftest.er1
5069   ac_status=$?
5070   grep -v '^ *+' conftest.er1 >conftest.err
5071   rm -f conftest.er1
5072   cat conftest.err >&5
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); } &&
5075          { ac_try='test -z "$ac_c_werror_flag"
5076                          || test ! -s conftest.err'
5077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078   (eval $ac_try) 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); }; } &&
5082          { ac_try='test -s conftest.$ac_objext'
5083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084   (eval $ac_try) 2>&5
5085   ac_status=$?
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); }; }; then
5088   ac_cv_have_decl_fputc_unlocked=yes
5089 else
5090   echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 ac_cv_have_decl_fputc_unlocked=no
5094 fi
5095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 fi
5097 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
5098 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
5099 if test $ac_cv_have_decl_fputc_unlocked = yes; then
5100
5101 cat >>confdefs.h <<_ACEOF
5102 #define HAVE_DECL_FPUTC_UNLOCKED 1
5103 _ACEOF
5104
5105
5106 else
5107   cat >>confdefs.h <<_ACEOF
5108 #define HAVE_DECL_FPUTC_UNLOCKED 0
5109 _ACEOF
5110
5111
5112 fi
5113 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
5114 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
5115 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
5116   echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118   cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h.  */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h.  */
5124 $ac_includes_default
5125 int
5126 main ()
5127 {
5128 #ifndef fputs_unlocked
5129   char *p = (char *) fputs_unlocked;
5130 #endif
5131
5132   ;
5133   return 0;
5134 }
5135 _ACEOF
5136 rm -f conftest.$ac_objext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5138   (eval $ac_compile) 2>conftest.er1
5139   ac_status=$?
5140   grep -v '^ *+' conftest.er1 >conftest.err
5141   rm -f conftest.er1
5142   cat conftest.err >&5
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); } &&
5145          { ac_try='test -z "$ac_c_werror_flag"
5146                          || test ! -s conftest.err'
5147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148   (eval $ac_try) 2>&5
5149   ac_status=$?
5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151   (exit $ac_status); }; } &&
5152          { ac_try='test -s conftest.$ac_objext'
5153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154   (eval $ac_try) 2>&5
5155   ac_status=$?
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); }; }; then
5158   ac_cv_have_decl_fputs_unlocked=yes
5159 else
5160   echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5162
5163 ac_cv_have_decl_fputs_unlocked=no
5164 fi
5165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5166 fi
5167 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
5168 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
5169 if test $ac_cv_have_decl_fputs_unlocked = yes; then
5170
5171 cat >>confdefs.h <<_ACEOF
5172 #define HAVE_DECL_FPUTS_UNLOCKED 1
5173 _ACEOF
5174
5175
5176 else
5177   cat >>confdefs.h <<_ACEOF
5178 #define HAVE_DECL_FPUTS_UNLOCKED 0
5179 _ACEOF
5180
5181
5182 fi
5183 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
5184 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
5185 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188   cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h.  */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h.  */
5194 $ac_includes_default
5195 int
5196 main ()
5197 {
5198 #ifndef fwrite_unlocked
5199   char *p = (char *) fwrite_unlocked;
5200 #endif
5201
5202   ;
5203   return 0;
5204 }
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208   (eval $ac_compile) 2>conftest.er1
5209   ac_status=$?
5210   grep -v '^ *+' conftest.er1 >conftest.err
5211   rm -f conftest.er1
5212   cat conftest.err >&5
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); } &&
5215          { ac_try='test -z "$ac_c_werror_flag"
5216                          || test ! -s conftest.err'
5217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218   (eval $ac_try) 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); }; } &&
5222          { ac_try='test -s conftest.$ac_objext'
5223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224   (eval $ac_try) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; }; then
5228   ac_cv_have_decl_fwrite_unlocked=yes
5229 else
5230   echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5232
5233 ac_cv_have_decl_fwrite_unlocked=no
5234 fi
5235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5236 fi
5237 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
5238 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
5239 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
5240
5241 cat >>confdefs.h <<_ACEOF
5242 #define HAVE_DECL_FWRITE_UNLOCKED 1
5243 _ACEOF
5244
5245
5246 else
5247   cat >>confdefs.h <<_ACEOF
5248 #define HAVE_DECL_FWRITE_UNLOCKED 0
5249 _ACEOF
5250
5251
5252 fi
5253 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
5254 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
5255 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258   cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h.  */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h.  */
5264 $ac_includes_default
5265 int
5266 main ()
5267 {
5268 #ifndef fprintf_unlocked
5269   char *p = (char *) fprintf_unlocked;
5270 #endif
5271
5272   ;
5273   return 0;
5274 }
5275 _ACEOF
5276 rm -f conftest.$ac_objext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5278   (eval $ac_compile) 2>conftest.er1
5279   ac_status=$?
5280   grep -v '^ *+' conftest.er1 >conftest.err
5281   rm -f conftest.er1
5282   cat conftest.err >&5
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); } &&
5285          { ac_try='test -z "$ac_c_werror_flag"
5286                          || test ! -s conftest.err'
5287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288   (eval $ac_try) 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); }; } &&
5292          { ac_try='test -s conftest.$ac_objext'
5293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294   (eval $ac_try) 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }; }; then
5298   ac_cv_have_decl_fprintf_unlocked=yes
5299 else
5300   echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5302
5303 ac_cv_have_decl_fprintf_unlocked=no
5304 fi
5305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5306 fi
5307 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
5308 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
5309 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
5310
5311 cat >>confdefs.h <<_ACEOF
5312 #define HAVE_DECL_FPRINTF_UNLOCKED 1
5313 _ACEOF
5314
5315
5316 else
5317   cat >>confdefs.h <<_ACEOF
5318 #define HAVE_DECL_FPRINTF_UNLOCKED 0
5319 _ACEOF
5320
5321
5322 fi
5323
5324
5325
5326 # Checks for library functions.
5327 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5328 # for constant arguments.  Useless!
5329 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5330 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5331 if test "${ac_cv_working_alloca_h+set}" = set; then
5332   echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334   cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h.  */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h.  */
5340 #include <alloca.h>
5341 int
5342 main ()
5343 {
5344 char *p = (char *) alloca (2 * sizeof (int));
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349 rm -f conftest.$ac_objext conftest$ac_exeext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5351   (eval $ac_link) 2>conftest.er1
5352   ac_status=$?
5353   grep -v '^ *+' conftest.er1 >conftest.err
5354   rm -f conftest.er1
5355   cat conftest.err >&5
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); } &&
5358          { ac_try='test -z "$ac_c_werror_flag"
5359                          || test ! -s conftest.err'
5360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361   (eval $ac_try) 2>&5
5362   ac_status=$?
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); }; } &&
5365          { ac_try='test -s conftest$ac_exeext'
5366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367   (eval $ac_try) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }; }; then
5371   ac_cv_working_alloca_h=yes
5372 else
5373   echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 ac_cv_working_alloca_h=no
5377 fi
5378 rm -f conftest.err conftest.$ac_objext \
5379       conftest$ac_exeext conftest.$ac_ext
5380 fi
5381 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5382 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5383 if test $ac_cv_working_alloca_h = yes; then
5384
5385 cat >>confdefs.h <<\_ACEOF
5386 #define HAVE_ALLOCA_H 1
5387 _ACEOF
5388
5389 fi
5390
5391 echo "$as_me:$LINENO: checking for alloca" >&5
5392 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5393 if test "${ac_cv_func_alloca_works+set}" = set; then
5394   echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396   cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h.  */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h.  */
5402 #ifdef __GNUC__
5403 # define alloca __builtin_alloca
5404 #else
5405 # ifdef _MSC_VER
5406 #  include <malloc.h>
5407 #  define alloca _alloca
5408 # else
5409 #  if HAVE_ALLOCA_H
5410 #   include <alloca.h>
5411 #  else
5412 #   ifdef _AIX
5413  #pragma alloca
5414 #   else
5415 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5416 char *alloca ();
5417 #    endif
5418 #   endif
5419 #  endif
5420 # endif
5421 #endif
5422
5423 int
5424 main ()
5425 {
5426 char *p = (char *) alloca (1);
5427   ;
5428   return 0;
5429 }
5430 _ACEOF
5431 rm -f conftest.$ac_objext conftest$ac_exeext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5433   (eval $ac_link) 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } &&
5440          { ac_try='test -z "$ac_c_werror_flag"
5441                          || test ! -s conftest.err'
5442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443   (eval $ac_try) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }; } &&
5447          { ac_try='test -s conftest$ac_exeext'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; }; then
5453   ac_cv_func_alloca_works=yes
5454 else
5455   echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_cv_func_alloca_works=no
5459 fi
5460 rm -f conftest.err conftest.$ac_objext \
5461       conftest$ac_exeext conftest.$ac_ext
5462 fi
5463 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5464 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5465
5466 if test $ac_cv_func_alloca_works = yes; then
5467
5468 cat >>confdefs.h <<\_ACEOF
5469 #define HAVE_ALLOCA 1
5470 _ACEOF
5471
5472 else
5473   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5474 # that cause trouble.  Some versions do not even contain alloca or
5475 # contain a buggy version.  If you still want to use their alloca,
5476 # use ar to extract alloca.o from them instead of compiling alloca.c.
5477
5478 ALLOCA=alloca.$ac_objext
5479
5480 cat >>confdefs.h <<\_ACEOF
5481 #define C_ALLOCA 1
5482 _ACEOF
5483
5484
5485 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5486 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5487 if test "${ac_cv_os_cray+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h.  */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h.  */
5496 #if defined(CRAY) && ! defined(CRAY2)
5497 webecray
5498 #else
5499 wenotbecray
5500 #endif
5501
5502 _ACEOF
5503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5504   $EGREP "webecray" >/dev/null 2>&1; then
5505   ac_cv_os_cray=yes
5506 else
5507   ac_cv_os_cray=no
5508 fi
5509 rm -f conftest*
5510
5511 fi
5512 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5513 echo "${ECHO_T}$ac_cv_os_cray" >&6
5514 if test $ac_cv_os_cray = yes; then
5515   for ac_func in _getb67 GETB67 getb67; do
5516     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5517 echo "$as_me:$LINENO: checking for $ac_func" >&5
5518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5519 if eval "test \"\${$as_ac_var+set}\" = set"; then
5520   echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522   cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h.  */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h.  */
5528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5530 #define $ac_func innocuous_$ac_func
5531
5532 /* System header to define __stub macros and hopefully few prototypes,
5533     which can conflict with char $ac_func (); below.
5534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535     <limits.h> exists even on freestanding compilers.  */
5536
5537 #ifdef __STDC__
5538 # include <limits.h>
5539 #else
5540 # include <assert.h>
5541 #endif
5542
5543 #undef $ac_func
5544
5545 /* Override any gcc2 internal prototype to avoid an error.  */
5546 #ifdef __cplusplus
5547 extern "C"
5548 {
5549 #endif
5550 /* We use char because int might match the return type of a gcc2
5551    builtin and then its argument prototype would still apply.  */
5552 char $ac_func ();
5553 /* The GNU C library defines this for functions which it implements
5554     to always fail with ENOSYS.  Some functions are actually named
5555     something starting with __ and the normal name is an alias.  */
5556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5557 choke me
5558 #else
5559 char (*f) () = $ac_func;
5560 #endif
5561 #ifdef __cplusplus
5562 }
5563 #endif
5564
5565 int
5566 main ()
5567 {
5568 return f != $ac_func;
5569   ;
5570   return 0;
5571 }
5572 _ACEOF
5573 rm -f conftest.$ac_objext conftest$ac_exeext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5575   (eval $ac_link) 2>conftest.er1
5576   ac_status=$?
5577   grep -v '^ *+' conftest.er1 >conftest.err
5578   rm -f conftest.er1
5579   cat conftest.err >&5
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } &&
5582          { ac_try='test -z "$ac_c_werror_flag"
5583                          || test ! -s conftest.err'
5584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585   (eval $ac_try) 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }; } &&
5589          { ac_try='test -s conftest$ac_exeext'
5590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591   (eval $ac_try) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); }; }; then
5595   eval "$as_ac_var=yes"
5596 else
5597   echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600 eval "$as_ac_var=no"
5601 fi
5602 rm -f conftest.err conftest.$ac_objext \
5603       conftest$ac_exeext conftest.$ac_ext
5604 fi
5605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5607 if test `eval echo '${'$as_ac_var'}'` = yes; then
5608
5609 cat >>confdefs.h <<_ACEOF
5610 #define CRAY_STACKSEG_END $ac_func
5611 _ACEOF
5612
5613     break
5614 fi
5615
5616   done
5617 fi
5618
5619 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5620 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5621 if test "${ac_cv_c_stack_direction+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   if test "$cross_compiling" = yes; then
5625   ac_cv_c_stack_direction=0
5626 else
5627   cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h.  */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h.  */
5633 int
5634 find_stack_direction ()
5635 {
5636   static char *addr = 0;
5637   auto char dummy;
5638   if (addr == 0)
5639     {
5640       addr = &dummy;
5641       return find_stack_direction ();
5642     }
5643   else
5644     return (&dummy > addr) ? 1 : -1;
5645 }
5646
5647 int
5648 main ()
5649 {
5650   exit (find_stack_direction () < 0);
5651 }
5652 _ACEOF
5653 rm -f conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655   (eval $ac_link) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660   (eval $ac_try) 2>&5
5661   ac_status=$?
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); }; }; then
5664   ac_cv_c_stack_direction=1
5665 else
5666   echo "$as_me: program exited with status $ac_status" >&5
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5669
5670 ( exit $ac_status )
5671 ac_cv_c_stack_direction=-1
5672 fi
5673 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5674 fi
5675 fi
5676 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5677 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5678
5679 cat >>confdefs.h <<_ACEOF
5680 #define STACK_DIRECTION $ac_cv_c_stack_direction
5681 _ACEOF
5682
5683
5684 fi
5685
5686 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5687 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5688 if test "${ac_cv_header_stdc+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h.  */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h.  */
5697 #include <stdlib.h>
5698 #include <stdarg.h>
5699 #include <string.h>
5700 #include <float.h>
5701
5702 int
5703 main ()
5704 {
5705
5706   ;
5707   return 0;
5708 }
5709 _ACEOF
5710 rm -f conftest.$ac_objext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712   (eval $ac_compile) 2>conftest.er1
5713   ac_status=$?
5714   grep -v '^ *+' conftest.er1 >conftest.err
5715   rm -f conftest.er1
5716   cat conftest.err >&5
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); } &&
5719          { ac_try='test -z "$ac_c_werror_flag"
5720                          || test ! -s conftest.err'
5721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722   (eval $ac_try) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); }; } &&
5726          { ac_try='test -s conftest.$ac_objext'
5727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728   (eval $ac_try) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; }; then
5732   ac_cv_header_stdc=yes
5733 else
5734   echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 ac_cv_header_stdc=no
5738 fi
5739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5740
5741 if test $ac_cv_header_stdc = yes; then
5742   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
5750
5751 _ACEOF
5752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5753   $EGREP "memchr" >/dev/null 2>&1; then
5754   :
5755 else
5756   ac_cv_header_stdc=no
5757 fi
5758 rm -f conftest*
5759
5760 fi
5761
5762 if test $ac_cv_header_stdc = yes; then
5763   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5764   cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h.  */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h.  */
5770 #include <stdlib.h>
5771
5772 _ACEOF
5773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5774   $EGREP "free" >/dev/null 2>&1; then
5775   :
5776 else
5777   ac_cv_header_stdc=no
5778 fi
5779 rm -f conftest*
5780
5781 fi
5782
5783 if test $ac_cv_header_stdc = yes; then
5784   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5785   if test "$cross_compiling" = yes; then
5786   :
5787 else
5788   cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h.  */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h.  */
5794 #include <ctype.h>
5795 #if ((' ' & 0x0FF) == 0x020)
5796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5798 #else
5799 # define ISLOWER(c) \
5800                    (('a' <= (c) && (c) <= 'i') \
5801                      || ('j' <= (c) && (c) <= 'r') \
5802                      || ('s' <= (c) && (c) <= 'z'))
5803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5804 #endif
5805
5806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5807 int
5808 main ()
5809 {
5810   int i;
5811   for (i = 0; i < 256; i++)
5812     if (XOR (islower (i), ISLOWER (i))
5813         || toupper (i) != TOUPPER (i))
5814       exit(2);
5815   exit (0);
5816 }
5817 _ACEOF
5818 rm -f conftest$ac_exeext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5820   (eval $ac_link) 2>&5
5821   ac_status=$?
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825   (eval $ac_try) 2>&5
5826   ac_status=$?
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); }; }; then
5829   :
5830 else
5831   echo "$as_me: program exited with status $ac_status" >&5
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835 ( exit $ac_status )
5836 ac_cv_header_stdc=no
5837 fi
5838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5839 fi
5840 fi
5841 fi
5842 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5843 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5844 if test $ac_cv_header_stdc = yes; then
5845
5846 cat >>confdefs.h <<\_ACEOF
5847 #define STDC_HEADERS 1
5848 _ACEOF
5849
5850 fi
5851
5852
5853   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
5854 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
5855 if test "${am_cv_langinfo_codeset+set}" = set; then
5856   echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858   cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h.  */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h.  */
5864 #include <langinfo.h>
5865 int
5866 main ()
5867 {
5868 char* cs = nl_langinfo(CODESET);
5869   ;
5870   return 0;
5871 }
5872 _ACEOF
5873 rm -f conftest.$ac_objext conftest$ac_exeext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5875   (eval $ac_link) 2>conftest.er1
5876   ac_status=$?
5877   grep -v '^ *+' conftest.er1 >conftest.err
5878   rm -f conftest.er1
5879   cat conftest.err >&5
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); } &&
5882          { ac_try='test -z "$ac_c_werror_flag"
5883                          || test ! -s conftest.err'
5884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885   (eval $ac_try) 2>&5
5886   ac_status=$?
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); }; } &&
5889          { ac_try='test -s conftest$ac_exeext'
5890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891   (eval $ac_try) 2>&5
5892   ac_status=$?
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); }; }; then
5895   am_cv_langinfo_codeset=yes
5896 else
5897   echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5899
5900 am_cv_langinfo_codeset=no
5901 fi
5902 rm -f conftest.err conftest.$ac_objext \
5903       conftest$ac_exeext conftest.$ac_ext
5904
5905 fi
5906 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
5907 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
5908   if test $am_cv_langinfo_codeset = yes; then
5909
5910 cat >>confdefs.h <<\_ACEOF
5911 #define HAVE_LANGINFO_CODESET 1
5912 _ACEOF
5913
5914   fi
5915
5916 # If we haven't got the data from the intl directory,
5917 # assume NLS is disabled.
5918 USE_NLS=no
5919 LIBINTL=
5920 LIBINTL_DEP=
5921 INCINTL=
5922 XGETTEXT=
5923 GMSGFMT=
5924 POSUB=
5925 if test -f ../intl/config.intl; then
5926   . ../intl/config.intl
5927 fi
5928 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5929 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5930 if test x"$USE_NLS" != xyes; then
5931   echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6
5933 else
5934   echo "$as_me:$LINENO: result: yes" >&5
5935 echo "${ECHO_T}yes" >&6
5936
5937 cat >>confdefs.h <<\_ACEOF
5938 #define ENABLE_NLS 1
5939 _ACEOF
5940
5941
5942   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5943 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5944   # Look for .po and .gmo files in the source directory.
5945   CATALOGS=
5946   XLINGUAS=
5947   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5948     # If there aren't any .gmo files the shell will give us the
5949     # literal string "../path/to/srcdir/po/*.gmo" which has to be
5950     # weeded out.
5951     case "$cat" in *\**)
5952       continue;;
5953     esac
5954     # The quadruple backslash is collapsed to a double backslash
5955     # by the backticks, then collapsed again by the double quotes,
5956     # leaving us with one backslash in the sed expression (right
5957     # before the dot that mustn't act as a wildcard).
5958     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5959     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5960     # The user is allowed to set LINGUAS to a list of languages to
5961     # install catalogs for.  If it's empty that means "all of them."
5962     if test "x$LINGUAS" = x; then
5963       CATALOGS="$CATALOGS $cat"
5964       XLINGUAS="$XLINGUAS $lang"
5965     else
5966       case "$LINGUAS" in *$lang*)
5967         CATALOGS="$CATALOGS $cat"
5968         XLINGUAS="$XLINGUAS $lang"
5969         ;;
5970       esac
5971     fi
5972   done
5973   LINGUAS="$XLINGUAS"
5974   echo "$as_me:$LINENO: result: $LINGUAS" >&5
5975 echo "${ECHO_T}$LINGUAS" >&6
5976 fi
5977
5978 echo "$as_me:$LINENO: checking for uchar" >&5
5979 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
5980 if test "${gcc_cv_type_uchar+set}" = set; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983   cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h.  */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h.  */
5989
5990 #include "ansidecl.h"
5991 #include "system.h"
5992
5993 int
5994 main ()
5995 {
5996 if ((uchar *)0) return 0;
5997  if (sizeof(uchar)) return 0;
5998   ;
5999   return 0;
6000 }
6001 _ACEOF
6002 rm -f conftest.$ac_objext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004   (eval $ac_compile) 2>conftest.er1
6005   ac_status=$?
6006   grep -v '^ *+' conftest.er1 >conftest.err
6007   rm -f conftest.er1
6008   cat conftest.err >&5
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); } &&
6011          { ac_try='test -z "$ac_c_werror_flag"
6012                          || test ! -s conftest.err'
6013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014   (eval $ac_try) 2>&5
6015   ac_status=$?
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); }; } &&
6018          { ac_try='test -s conftest.$ac_objext'
6019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020   (eval $ac_try) 2>&5
6021   ac_status=$?
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); }; }; then
6024   ac_cv_type_uchar=yes
6025 else
6026   echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029 ac_cv_type_uchar=no
6030 fi
6031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6032 fi
6033 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
6034 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
6035 if test $ac_cv_type_uchar = yes; then
6036
6037 cat >>confdefs.h <<\_ACEOF
6038 #define HAVE_UCHAR 1
6039 _ACEOF
6040
6041 fi
6042
6043
6044       if test "X$prefix" = "XNONE"; then
6045     acl_final_prefix="$ac_default_prefix"
6046   else
6047     acl_final_prefix="$prefix"
6048   fi
6049   if test "X$exec_prefix" = "XNONE"; then
6050     acl_final_exec_prefix='${prefix}'
6051   else
6052     acl_final_exec_prefix="$exec_prefix"
6053   fi
6054   acl_save_prefix="$prefix"
6055   prefix="$acl_final_prefix"
6056   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6057   prefix="$acl_save_prefix"
6058
6059
6060 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6061 if test "${with_gnu_ld+set}" = set; then
6062   withval="$with_gnu_ld"
6063   test "$withval" = no || with_gnu_ld=yes
6064 else
6065   with_gnu_ld=no
6066 fi;
6067 # Prepare PATH_SEPARATOR.
6068 # The user is always right.
6069 if test "${PATH_SEPARATOR+set}" != set; then
6070   echo "#! /bin/sh" >conf$$.sh
6071   echo  "exit 0"   >>conf$$.sh
6072   chmod +x conf$$.sh
6073   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6074     PATH_SEPARATOR=';'
6075   else
6076     PATH_SEPARATOR=:
6077   fi
6078   rm -f conf$$.sh
6079 fi
6080 ac_prog=ld
6081 if test "$GCC" = yes; then
6082   # Check if gcc -print-prog-name=ld gives a path.
6083   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6084 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6085   case $host in
6086   *-*-mingw*)
6087     # gcc leaves a trailing carriage return which upsets mingw
6088     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6089   *)
6090     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6091   esac
6092   case $ac_prog in
6093     # Accept absolute paths.
6094     [\\/]* | [A-Za-z]:[\\/]*)
6095       re_direlt='/[^/][^/]*/\.\./'
6096       # Canonicalize the path of ld
6097       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6098       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6099         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6100       done
6101       test -z "$LD" && LD="$ac_prog"
6102       ;;
6103   "")
6104     # If it fails, then pretend we aren't using GCC.
6105     ac_prog=ld
6106     ;;
6107   *)
6108     # If it is relative, then search for the first ld in PATH.
6109     with_gnu_ld=unknown
6110     ;;
6111   esac
6112 elif test "$with_gnu_ld" = yes; then
6113   echo "$as_me:$LINENO: checking for GNU ld" >&5
6114 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6115 else
6116   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6117 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6118 fi
6119 if test "${acl_cv_path_LD+set}" = set; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   if test -z "$LD"; then
6123   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6124   for ac_dir in $PATH; do
6125     test -z "$ac_dir" && ac_dir=.
6126     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6127       acl_cv_path_LD="$ac_dir/$ac_prog"
6128       # Check to see if the program is GNU ld.  I'd rather use --version,
6129       # but apparently some GNU ld's only accept -v.
6130       # Break only if it was the GNU/non-GNU ld that we prefer.
6131       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6132       *GNU* | *'with BFD'*)
6133         test "$with_gnu_ld" != no && break ;;
6134       *)
6135         test "$with_gnu_ld" != yes && break ;;
6136       esac
6137     fi
6138   done
6139   IFS="$ac_save_ifs"
6140 else
6141   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6142 fi
6143 fi
6144
6145 LD="$acl_cv_path_LD"
6146 if test -n "$LD"; then
6147   echo "$as_me:$LINENO: result: $LD" >&5
6148 echo "${ECHO_T}$LD" >&6
6149 else
6150   echo "$as_me:$LINENO: result: no" >&5
6151 echo "${ECHO_T}no" >&6
6152 fi
6153 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6154 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6155    { (exit 1); exit 1; }; }
6156 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6157 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6158 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6162 case `$LD -v 2>&1 </dev/null` in
6163 *GNU* | *'with BFD'*)
6164   acl_cv_prog_gnu_ld=yes ;;
6165 *)
6166   acl_cv_prog_gnu_ld=no ;;
6167 esac
6168 fi
6169 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6170 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6171 with_gnu_ld=$acl_cv_prog_gnu_ld
6172
6173
6174
6175                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6176 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6177 if test "${acl_cv_rpath+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180
6181     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6182     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6183     . ./conftest.sh
6184     rm -f ./conftest.sh
6185     acl_cv_rpath=done
6186
6187 fi
6188 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6189 echo "${ECHO_T}$acl_cv_rpath" >&6
6190   wl="$acl_cv_wl"
6191   libext="$acl_cv_libext"
6192   shlibext="$acl_cv_shlibext"
6193   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6194   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6195   hardcode_direct="$acl_cv_hardcode_direct"
6196   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6197     # Check whether --enable-rpath or --disable-rpath was given.
6198 if test "${enable_rpath+set}" = set; then
6199   enableval="$enable_rpath"
6200   :
6201 else
6202   enable_rpath=yes
6203 fi;
6204
6205
6206
6207
6208
6209
6210
6211     use_additional=yes
6212
6213   acl_save_prefix="$prefix"
6214   prefix="$acl_final_prefix"
6215   acl_save_exec_prefix="$exec_prefix"
6216   exec_prefix="$acl_final_exec_prefix"
6217
6218     eval additional_includedir=\"$includedir\"
6219     eval additional_libdir=\"$libdir\"
6220
6221   exec_prefix="$acl_save_exec_prefix"
6222   prefix="$acl_save_prefix"
6223
6224
6225 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6226 if test "${with_libiconv_prefix+set}" = set; then
6227   withval="$with_libiconv_prefix"
6228
6229     if test "X$withval" = "Xno"; then
6230       use_additional=no
6231     else
6232       if test "X$withval" = "X"; then
6233
6234   acl_save_prefix="$prefix"
6235   prefix="$acl_final_prefix"
6236   acl_save_exec_prefix="$exec_prefix"
6237   exec_prefix="$acl_final_exec_prefix"
6238
6239           eval additional_includedir=\"$includedir\"
6240           eval additional_libdir=\"$libdir\"
6241
6242   exec_prefix="$acl_save_exec_prefix"
6243   prefix="$acl_save_prefix"
6244
6245       else
6246         additional_includedir="$withval/include"
6247         additional_libdir="$withval/lib"
6248       fi
6249     fi
6250
6251 fi;
6252       LIBICONV=
6253   LTLIBICONV=
6254   INCICONV=
6255   rpathdirs=
6256   ltrpathdirs=
6257   names_already_handled=
6258   names_next_round='iconv '
6259   while test -n "$names_next_round"; do
6260     names_this_round="$names_next_round"
6261     names_next_round=
6262     for name in $names_this_round; do
6263       already_handled=
6264       for n in $names_already_handled; do
6265         if test "$n" = "$name"; then
6266           already_handled=yes
6267           break
6268         fi
6269       done
6270       if test -z "$already_handled"; then
6271         names_already_handled="$names_already_handled $name"
6272                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6273         eval value=\"\$HAVE_LIB$uppername\"
6274         if test -n "$value"; then
6275           if test "$value" = yes; then
6276             eval value=\"\$LIB$uppername\"
6277             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6278             eval value=\"\$LTLIB$uppername\"
6279             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6280           else
6281                                     :
6282           fi
6283         else
6284                               found_dir=
6285           found_la=
6286           found_so=
6287           found_a=
6288           if test $use_additional = yes; then
6289             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6290               found_dir="$additional_libdir"
6291               found_so="$additional_libdir/lib$name.$shlibext"
6292               if test -f "$additional_libdir/lib$name.la"; then
6293                 found_la="$additional_libdir/lib$name.la"
6294               fi
6295             else
6296               if test -f "$additional_libdir/lib$name.$libext"; then
6297                 found_dir="$additional_libdir"
6298                 found_a="$additional_libdir/lib$name.$libext"
6299                 if test -f "$additional_libdir/lib$name.la"; then
6300                   found_la="$additional_libdir/lib$name.la"
6301                 fi
6302               fi
6303             fi
6304           fi
6305           if test "X$found_dir" = "X"; then
6306             for x in $LDFLAGS $LTLIBICONV; do
6307
6308   acl_save_prefix="$prefix"
6309   prefix="$acl_final_prefix"
6310   acl_save_exec_prefix="$exec_prefix"
6311   exec_prefix="$acl_final_exec_prefix"
6312   eval x=\"$x\"
6313   exec_prefix="$acl_save_exec_prefix"
6314   prefix="$acl_save_prefix"
6315
6316               case "$x" in
6317                 -L*)
6318                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6319                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6320                     found_dir="$dir"
6321                     found_so="$dir/lib$name.$shlibext"
6322                     if test -f "$dir/lib$name.la"; then
6323                       found_la="$dir/lib$name.la"
6324                     fi
6325                   else
6326                     if test -f "$dir/lib$name.$libext"; then
6327                       found_dir="$dir"
6328                       found_a="$dir/lib$name.$libext"
6329                       if test -f "$dir/lib$name.la"; then
6330                         found_la="$dir/lib$name.la"
6331                       fi
6332                     fi
6333                   fi
6334                   ;;
6335               esac
6336               if test "X$found_dir" != "X"; then
6337                 break
6338               fi
6339             done
6340           fi
6341           if test "X$found_dir" != "X"; then
6342                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6343             if test "X$found_so" != "X"; then
6344                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6345                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6346               else
6347                                                                                 haveit=
6348                 for x in $ltrpathdirs; do
6349                   if test "X$x" = "X$found_dir"; then
6350                     haveit=yes
6351                     break
6352                   fi
6353                 done
6354                 if test -z "$haveit"; then
6355                   ltrpathdirs="$ltrpathdirs $found_dir"
6356                 fi
6357                                 if test "$hardcode_direct" = yes; then
6358                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6359                 else
6360                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6361                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6362                                                             haveit=
6363                     for x in $rpathdirs; do
6364                       if test "X$x" = "X$found_dir"; then
6365                         haveit=yes
6366                         break
6367                       fi
6368                     done
6369                     if test -z "$haveit"; then
6370                       rpathdirs="$rpathdirs $found_dir"
6371                     fi
6372                   else
6373                                                                                 haveit=
6374                     for x in $LDFLAGS $LIBICONV; do
6375
6376   acl_save_prefix="$prefix"
6377   prefix="$acl_final_prefix"
6378   acl_save_exec_prefix="$exec_prefix"
6379   exec_prefix="$acl_final_exec_prefix"
6380   eval x=\"$x\"
6381   exec_prefix="$acl_save_exec_prefix"
6382   prefix="$acl_save_prefix"
6383
6384                       if test "X$x" = "X-L$found_dir"; then
6385                         haveit=yes
6386                         break
6387                       fi
6388                     done
6389                     if test -z "$haveit"; then
6390                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6391                     fi
6392                     if test "$hardcode_minus_L" != no; then
6393                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6394                     else
6395                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6396                     fi
6397                   fi
6398                 fi
6399               fi
6400             else
6401               if test "X$found_a" != "X"; then
6402                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6403               else
6404                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6405               fi
6406             fi
6407                         additional_includedir=
6408             case "$found_dir" in
6409               */lib | */lib/)
6410                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6411                 additional_includedir="$basedir/include"
6412                 ;;
6413             esac
6414             if test "X$additional_includedir" != "X"; then
6415                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6416                 haveit=
6417                 if test "X$additional_includedir" = "X/usr/local/include"; then
6418                   if test -n "$GCC"; then
6419                     case $host_os in
6420                       linux*) haveit=yes;;
6421                     esac
6422                   fi
6423                 fi
6424                 if test -z "$haveit"; then
6425                   for x in $CPPFLAGS $INCICONV; do
6426
6427   acl_save_prefix="$prefix"
6428   prefix="$acl_final_prefix"
6429   acl_save_exec_prefix="$exec_prefix"
6430   exec_prefix="$acl_final_exec_prefix"
6431   eval x=\"$x\"
6432   exec_prefix="$acl_save_exec_prefix"
6433   prefix="$acl_save_prefix"
6434
6435                     if test "X$x" = "X-I$additional_includedir"; then
6436                       haveit=yes
6437                       break
6438                     fi
6439                   done
6440                   if test -z "$haveit"; then
6441                     if test -d "$additional_includedir"; then
6442                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6443                     fi
6444                   fi
6445                 fi
6446               fi
6447             fi
6448                         if test -n "$found_la"; then
6449                                                         save_libdir="$libdir"
6450               case "$found_la" in
6451                 */* | *\\*) . "$found_la" ;;
6452                 *) . "./$found_la" ;;
6453               esac
6454               libdir="$save_libdir"
6455                             for dep in $dependency_libs; do
6456                 case "$dep" in
6457                   -L*)
6458                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6459                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6460                       haveit=
6461                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6462                         if test -n "$GCC"; then
6463                           case $host_os in
6464                             linux*) haveit=yes;;
6465                           esac
6466                         fi
6467                       fi
6468                       if test -z "$haveit"; then
6469                         haveit=
6470                         for x in $LDFLAGS $LIBICONV; do
6471
6472   acl_save_prefix="$prefix"
6473   prefix="$acl_final_prefix"
6474   acl_save_exec_prefix="$exec_prefix"
6475   exec_prefix="$acl_final_exec_prefix"
6476   eval x=\"$x\"
6477   exec_prefix="$acl_save_exec_prefix"
6478   prefix="$acl_save_prefix"
6479
6480                           if test "X$x" = "X-L$additional_libdir"; then
6481                             haveit=yes
6482                             break
6483                           fi
6484                         done
6485                         if test -z "$haveit"; then
6486                           if test -d "$additional_libdir"; then
6487                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6488                           fi
6489                         fi
6490                         haveit=
6491                         for x in $LDFLAGS $LTLIBICONV; do
6492
6493   acl_save_prefix="$prefix"
6494   prefix="$acl_final_prefix"
6495   acl_save_exec_prefix="$exec_prefix"
6496   exec_prefix="$acl_final_exec_prefix"
6497   eval x=\"$x\"
6498   exec_prefix="$acl_save_exec_prefix"
6499   prefix="$acl_save_prefix"
6500
6501                           if test "X$x" = "X-L$additional_libdir"; then
6502                             haveit=yes
6503                             break
6504                           fi
6505                         done
6506                         if test -z "$haveit"; then
6507                           if test -d "$additional_libdir"; then
6508                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6509                           fi
6510                         fi
6511                       fi
6512                     fi
6513                     ;;
6514                   -R*)
6515                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6516                     if test "$enable_rpath" != no; then
6517                                                                   haveit=
6518                       for x in $rpathdirs; do
6519                         if test "X$x" = "X$dir"; then
6520                           haveit=yes
6521                           break
6522                         fi
6523                       done
6524                       if test -z "$haveit"; then
6525                         rpathdirs="$rpathdirs $dir"
6526                       fi
6527                                                                   haveit=
6528                       for x in $ltrpathdirs; do
6529                         if test "X$x" = "X$dir"; then
6530                           haveit=yes
6531                           break
6532                         fi
6533                       done
6534                       if test -z "$haveit"; then
6535                         ltrpathdirs="$ltrpathdirs $dir"
6536                       fi
6537                     fi
6538                     ;;
6539                   -l*)
6540                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6541                     ;;
6542                   *.la)
6543                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6544                     ;;
6545                   *)
6546                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6547                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6548                     ;;
6549                 esac
6550               done
6551             fi
6552           else
6553                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6554             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6555           fi
6556         fi
6557       fi
6558     done
6559   done
6560   if test "X$rpathdirs" != "X"; then
6561     if test -n "$hardcode_libdir_separator"; then
6562                         alldirs=
6563       for found_dir in $rpathdirs; do
6564         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6565       done
6566             acl_save_libdir="$libdir"
6567       libdir="$alldirs"
6568       eval flag=\"$hardcode_libdir_flag_spec\"
6569       libdir="$acl_save_libdir"
6570       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6571     else
6572             for found_dir in $rpathdirs; do
6573         acl_save_libdir="$libdir"
6574         libdir="$found_dir"
6575         eval flag=\"$hardcode_libdir_flag_spec\"
6576         libdir="$acl_save_libdir"
6577         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6578       done
6579     fi
6580   fi
6581   if test "X$ltrpathdirs" != "X"; then
6582             for found_dir in $ltrpathdirs; do
6583       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6584     done
6585   fi
6586
6587
6588
6589
6590
6591
6592
6593           am_save_CPPFLAGS="$CPPFLAGS"
6594
6595   for element in $INCICONV; do
6596     haveit=
6597     for x in $CPPFLAGS; do
6598
6599   acl_save_prefix="$prefix"
6600   prefix="$acl_final_prefix"
6601   acl_save_exec_prefix="$exec_prefix"
6602   exec_prefix="$acl_final_exec_prefix"
6603   eval x=\"$x\"
6604   exec_prefix="$acl_save_exec_prefix"
6605   prefix="$acl_save_prefix"
6606
6607       if test "X$x" = "X$element"; then
6608         haveit=yes
6609         break
6610       fi
6611     done
6612     if test -z "$haveit"; then
6613       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6614     fi
6615   done
6616
6617
6618   echo "$as_me:$LINENO: checking for iconv" >&5
6619 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6620 if test "${am_cv_func_iconv+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623
6624     am_cv_func_iconv="no, consider installing GNU libiconv"
6625     am_cv_lib_iconv=no
6626     cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h.  */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h.  */
6632 #include <stdlib.h>
6633 #include <iconv.h>
6634 int
6635 main ()
6636 {
6637 iconv_t cd = iconv_open("","");
6638        iconv(cd,NULL,NULL,NULL,NULL);
6639        iconv_close(cd);
6640   ;
6641   return 0;
6642 }
6643 _ACEOF
6644 rm -f conftest.$ac_objext conftest$ac_exeext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6646   (eval $ac_link) 2>conftest.er1
6647   ac_status=$?
6648   grep -v '^ *+' conftest.er1 >conftest.err
6649   rm -f conftest.er1
6650   cat conftest.err >&5
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); } &&
6653          { ac_try='test -z "$ac_c_werror_flag"
6654                          || test ! -s conftest.err'
6655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656   (eval $ac_try) 2>&5
6657   ac_status=$?
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); }; } &&
6660          { ac_try='test -s conftest$ac_exeext'
6661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662   (eval $ac_try) 2>&5
6663   ac_status=$?
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); }; }; then
6666   am_cv_func_iconv=yes
6667 else
6668   echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671 fi
6672 rm -f conftest.err conftest.$ac_objext \
6673       conftest$ac_exeext conftest.$ac_ext
6674     if test "$am_cv_func_iconv" != yes; then
6675       am_save_LIBS="$LIBS"
6676       LIBS="$LIBS $LIBICONV"
6677       cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h.  */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h.  */
6683 #include <stdlib.h>
6684 #include <iconv.h>
6685 int
6686 main ()
6687 {
6688 iconv_t cd = iconv_open("","");
6689          iconv(cd,NULL,NULL,NULL,NULL);
6690          iconv_close(cd);
6691   ;
6692   return 0;
6693 }
6694 _ACEOF
6695 rm -f conftest.$ac_objext conftest$ac_exeext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6697   (eval $ac_link) 2>conftest.er1
6698   ac_status=$?
6699   grep -v '^ *+' conftest.er1 >conftest.err
6700   rm -f conftest.er1
6701   cat conftest.err >&5
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); } &&
6704          { ac_try='test -z "$ac_c_werror_flag"
6705                          || test ! -s conftest.err'
6706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707   (eval $ac_try) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; } &&
6711          { ac_try='test -s conftest$ac_exeext'
6712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713   (eval $ac_try) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); }; }; then
6717   am_cv_lib_iconv=yes
6718         am_cv_func_iconv=yes
6719 else
6720   echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6722
6723 fi
6724 rm -f conftest.err conftest.$ac_objext \
6725       conftest$ac_exeext conftest.$ac_ext
6726       LIBS="$am_save_LIBS"
6727     fi
6728
6729 fi
6730 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6731 echo "${ECHO_T}$am_cv_func_iconv" >&6
6732   if test "$am_cv_func_iconv" = yes; then
6733
6734 cat >>confdefs.h <<\_ACEOF
6735 #define HAVE_ICONV 1
6736 _ACEOF
6737
6738   fi
6739   if test "$am_cv_lib_iconv" = yes; then
6740     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6741 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6742     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6743 echo "${ECHO_T}$LIBICONV" >&6
6744   else
6745             CPPFLAGS="$am_save_CPPFLAGS"
6746     LIBICONV=
6747     LTLIBICONV=
6748   fi
6749
6750
6751
6752   if test "$am_cv_func_iconv" = yes; then
6753     echo "$as_me:$LINENO: checking for iconv declaration" >&5
6754 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6755     if test "${am_cv_proto_iconv+set}" = set; then
6756   echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758
6759       cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h.  */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h.  */
6765
6766 #include <stdlib.h>
6767 #include <iconv.h>
6768 extern
6769 #ifdef __cplusplus
6770 "C"
6771 #endif
6772 #if defined(__STDC__) || defined(__cplusplus)
6773 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6774 #else
6775 size_t iconv();
6776 #endif
6777
6778 int
6779 main ()
6780 {
6781
6782   ;
6783   return 0;
6784 }
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788   (eval $ac_compile) 2>conftest.er1
6789   ac_status=$?
6790   grep -v '^ *+' conftest.er1 >conftest.err
6791   rm -f conftest.er1
6792   cat conftest.err >&5
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); } &&
6795          { ac_try='test -z "$ac_c_werror_flag"
6796                          || test ! -s conftest.err'
6797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798   (eval $ac_try) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); }; } &&
6802          { ac_try='test -s conftest.$ac_objext'
6803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804   (eval $ac_try) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; }; then
6808   am_cv_proto_iconv_arg1=""
6809 else
6810   echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6812
6813 am_cv_proto_iconv_arg1="const"
6814 fi
6815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6816       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);"
6817 fi
6818
6819     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6820     echo "$as_me:$LINENO: result: ${ac_t:-
6821          }$am_cv_proto_iconv" >&5
6822 echo "${ECHO_T}${ac_t:-
6823          }$am_cv_proto_iconv" >&6
6824
6825 cat >>confdefs.h <<_ACEOF
6826 #define ICONV_CONST $am_cv_proto_iconv_arg1
6827 _ACEOF
6828
6829   fi
6830
6831
6832 # More defines and substitutions.
6833 PACKAGE="$PACKAGE_TARNAME"
6834
6835 cat >>confdefs.h <<_ACEOF
6836 #define PACKAGE "$PACKAGE"
6837 _ACEOF
6838
6839
6840
6841 if test "x$enable_nls" != xno; then
6842   USED_CATALOGS='$(CATALOGS)'
6843 else
6844   USED_CATALOGS=
6845 fi
6846
6847
6848 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6849 if test "${enable_maintainer_mode+set}" = set; then
6850   enableval="$enable_maintainer_mode"
6851
6852 else
6853   enable_maintainer_mode=no
6854 fi;
6855
6856 if test "x$enable_maintainer_mode" = xno; then
6857   MAINT='#'
6858 else
6859   MAINT=
6860 fi
6861
6862
6863 # Check whether --enable-checking or --disable-checking was given.
6864 if test "${enable_checking+set}" = set; then
6865   enableval="$enable_checking"
6866
6867 else
6868   enable_checking=no
6869 fi;
6870
6871 if test $enable_checking != no ; then
6872
6873 cat >>confdefs.h <<\_ACEOF
6874 #define ENABLE_CHECKING 1
6875 _ACEOF
6876
6877 fi
6878
6879
6880 case $target in
6881         alpha*-*-* | \
6882         arm*-*-eabi* | \
6883         arm*-*-symbianelf* | \
6884         x86_64-*-* | \
6885         ia64-*-* | \
6886         hppa*64*-*-* | parisc*64*-*-* | \
6887         mips*-*-* | \
6888         mmix-*-* | \
6889         powerpc*-*-* | \
6890         rs6000*-*-* | \
6891         s390*-*-* | \
6892         sparc64*-*-* | ultrasparc-*-freebsd* | \
6893         sparcv9-*-solaris2* | \
6894         sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9] | \
6895         sh[123456789l]*-*-*)
6896                 need_64bit_hwint=yes ;;
6897         *)
6898                 need_64bit_hwint=no ;;
6899 esac
6900
6901 case $need_64bit_hwint:$ac_cv_sizeof_long in
6902         *:8 | no:*) host_wide_int=long ;;
6903         *) host_wide_int='long long' ;;
6904 esac
6905
6906
6907
6908 cat >>confdefs.h <<_ACEOF
6909 #define HOST_WIDE_INT $host_wide_int
6910 _ACEOF
6911
6912
6913 # Output.
6914
6915           ac_config_headers="$ac_config_headers config.h:config.in"
6916
6917           ac_config_files="$ac_config_files Makefile"
6918
6919 cat >confcache <<\_ACEOF
6920 # This file is a shell script that caches the results of configure
6921 # tests run on this system so they can be shared between configure
6922 # scripts and configure runs, see configure's option --config-cache.
6923 # It is not useful on other systems.  If it contains results you don't
6924 # want to keep, you may remove or edit it.
6925 #
6926 # config.status only pays attention to the cache file if you give it
6927 # the --recheck option to rerun configure.
6928 #
6929 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6930 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6931 # following values.
6932
6933 _ACEOF
6934
6935 # The following way of writing the cache mishandles newlines in values,
6936 # but we know of no workaround that is simple, portable, and efficient.
6937 # So, don't put newlines in cache variables' values.
6938 # Ultrix sh set writes to stderr and can't be redirected directly,
6939 # and sets the high bit in the cache file unless we assign to the vars.
6940 {
6941   (set) 2>&1 |
6942     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6943     *ac_space=\ *)
6944       # `set' does not quote correctly, so add quotes (double-quote
6945       # substitution turns \\\\ into \\, and sed turns \\ into \).
6946       sed -n \
6947         "s/'/'\\\\''/g;
6948           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6949       ;;
6950     *)
6951       # `set' quotes correctly as required by POSIX, so do not add quotes.
6952       sed -n \
6953         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6954       ;;
6955     esac;
6956 } |
6957   sed '
6958      t clear
6959      : clear
6960      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6961      t end
6962      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6963      : end' >>confcache
6964 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6965   if test -w $cache_file; then
6966     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6967     cat confcache >$cache_file
6968   else
6969     echo "not updating unwritable cache $cache_file"
6970   fi
6971 fi
6972 rm -f confcache
6973
6974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6975 # Let make expand exec_prefix.
6976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6977
6978 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6979 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6980 # trailing colons and then remove the whole line if VPATH becomes empty
6981 # (actually we leave an empty line to preserve line numbers).
6982 if test "x$srcdir" = x.; then
6983   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6984 s/:*\$(srcdir):*/:/;
6985 s/:*\${srcdir}:*/:/;
6986 s/:*@srcdir@:*/:/;
6987 s/^\([^=]*=[     ]*\):*/\1/;
6988 s/:*$//;
6989 s/^[^=]*=[       ]*$//;
6990 }'
6991 fi
6992
6993 DEFS=-DHAVE_CONFIG_H
6994
6995 ac_libobjs=
6996 ac_ltlibobjs=
6997 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6998   # 1. Remove the extension, and $U if already installed.
6999   ac_i=`echo "$ac_i" |
7000          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7001   # 2. Add them.
7002   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7003   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7004 done
7005 LIBOBJS=$ac_libobjs
7006
7007 LTLIBOBJS=$ac_ltlibobjs
7008
7009
7010
7011 : ${CONFIG_STATUS=./config.status}
7012 ac_clean_files_save=$ac_clean_files
7013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7014 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7015 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7016 cat >$CONFIG_STATUS <<_ACEOF
7017 #! $SHELL
7018 # Generated by $as_me.
7019 # Run this file to recreate the current configuration.
7020 # Compiler output produced by configure, useful for debugging
7021 # configure, is in config.log if it exists.
7022
7023 debug=false
7024 ac_cs_recheck=false
7025 ac_cs_silent=false
7026 SHELL=\${CONFIG_SHELL-$SHELL}
7027 _ACEOF
7028
7029 cat >>$CONFIG_STATUS <<\_ACEOF
7030 ## --------------------- ##
7031 ## M4sh Initialization.  ##
7032 ## --------------------- ##
7033
7034 # Be Bourne compatible
7035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7036   emulate sh
7037   NULLCMD=:
7038   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7039   # is contrary to our usage.  Disable this feature.
7040   alias -g '${1+"$@"}'='"$@"'
7041 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7042   set -o posix
7043 fi
7044 DUALCASE=1; export DUALCASE # for MKS sh
7045
7046 # Support unset when possible.
7047 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7048   as_unset=unset
7049 else
7050   as_unset=false
7051 fi
7052
7053
7054 # Work around bugs in pre-3.0 UWIN ksh.
7055 $as_unset ENV MAIL MAILPATH
7056 PS1='$ '
7057 PS2='> '
7058 PS4='+ '
7059
7060 # NLS nuisances.
7061 for as_var in \
7062   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7063   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7064   LC_TELEPHONE LC_TIME
7065 do
7066   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7067     eval $as_var=C; export $as_var
7068   else
7069     $as_unset $as_var
7070   fi
7071 done
7072
7073 # Required to use basename.
7074 if expr a : '\(a\)' >/dev/null 2>&1; then
7075   as_expr=expr
7076 else
7077   as_expr=false
7078 fi
7079
7080 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7081   as_basename=basename
7082 else
7083   as_basename=false
7084 fi
7085
7086
7087 # Name of the executable.
7088 as_me=`$as_basename "$0" ||
7089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7090          X"$0" : 'X\(//\)$' \| \
7091          X"$0" : 'X\(/\)$' \| \
7092          .     : '\(.\)' 2>/dev/null ||
7093 echo X/"$0" |
7094     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7095           /^X\/\(\/\/\)$/{ s//\1/; q; }
7096           /^X\/\(\/\).*/{ s//\1/; q; }
7097           s/.*/./; q'`
7098
7099
7100 # PATH needs CR, and LINENO needs CR and PATH.
7101 # Avoid depending upon Character Ranges.
7102 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7103 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7104 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7105 as_cr_digits='0123456789'
7106 as_cr_alnum=$as_cr_Letters$as_cr_digits
7107
7108 # The user is always right.
7109 if test "${PATH_SEPARATOR+set}" != set; then
7110   echo "#! /bin/sh" >conf$$.sh
7111   echo  "exit 0"   >>conf$$.sh
7112   chmod +x conf$$.sh
7113   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7114     PATH_SEPARATOR=';'
7115   else
7116     PATH_SEPARATOR=:
7117   fi
7118   rm -f conf$$.sh
7119 fi
7120
7121
7122   as_lineno_1=$LINENO
7123   as_lineno_2=$LINENO
7124   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7125   test "x$as_lineno_1" != "x$as_lineno_2" &&
7126   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7127   # Find who we are.  Look in the path if we contain no path at all
7128   # relative or not.
7129   case $0 in
7130     *[\\/]* ) as_myself=$0 ;;
7131     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134   IFS=$as_save_IFS
7135   test -z "$as_dir" && as_dir=.
7136   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7137 done
7138
7139        ;;
7140   esac
7141   # We did not find ourselves, most probably we were run as `sh COMMAND'
7142   # in which case we are not to be found in the path.
7143   if test "x$as_myself" = x; then
7144     as_myself=$0
7145   fi
7146   if test ! -f "$as_myself"; then
7147     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7148 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7149    { (exit 1); exit 1; }; }
7150   fi
7151   case $CONFIG_SHELL in
7152   '')
7153     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7155 do
7156   IFS=$as_save_IFS
7157   test -z "$as_dir" && as_dir=.
7158   for as_base in sh bash ksh sh5; do
7159          case $as_dir in
7160          /*)
7161            if ("$as_dir/$as_base" -c '
7162   as_lineno_1=$LINENO
7163   as_lineno_2=$LINENO
7164   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7165   test "x$as_lineno_1" != "x$as_lineno_2" &&
7166   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7167              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7168              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7169              CONFIG_SHELL=$as_dir/$as_base
7170              export CONFIG_SHELL
7171              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7172            fi;;
7173          esac
7174        done
7175 done
7176 ;;
7177   esac
7178
7179   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7180   # uniformly replaced by the line number.  The first 'sed' inserts a
7181   # line-number line before each line; the second 'sed' does the real
7182   # work.  The second script uses 'N' to pair each line-number line
7183   # with the numbered line, and appends trailing '-' during
7184   # substitution so that $LINENO is not a special case at line end.
7185   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7186   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7187   sed '=' <$as_myself |
7188     sed '
7189       N
7190       s,$,-,
7191       : loop
7192       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7193       t loop
7194       s,-$,,
7195       s,^['$as_cr_digits']*\n,,
7196     ' >$as_me.lineno &&
7197   chmod +x $as_me.lineno ||
7198     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7199 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7200    { (exit 1); exit 1; }; }
7201
7202   # Don't try to exec as it changes $[0], causing all sort of problems
7203   # (the dirname of $[0] is not the place where we might find the
7204   # original and so on.  Autoconf is especially sensible to this).
7205   . ./$as_me.lineno
7206   # Exit status is that of the last command.
7207   exit
7208 }
7209
7210
7211 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7212   *c*,-n*) ECHO_N= ECHO_C='
7213 ' ECHO_T='      ' ;;
7214   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7215   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7216 esac
7217
7218 if expr a : '\(a\)' >/dev/null 2>&1; then
7219   as_expr=expr
7220 else
7221   as_expr=false
7222 fi
7223
7224 rm -f conf$$ conf$$.exe conf$$.file
7225 echo >conf$$.file
7226 if ln -s conf$$.file conf$$ 2>/dev/null; then
7227   # We could just check for DJGPP; but this test a) works b) is more generic
7228   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7229   if test -f conf$$.exe; then
7230     # Don't use ln at all; we don't have any links
7231     as_ln_s='cp -p'
7232   else
7233     as_ln_s='ln -s'
7234   fi
7235 elif ln conf$$.file conf$$ 2>/dev/null; then
7236   as_ln_s=ln
7237 else
7238   as_ln_s='cp -p'
7239 fi
7240 rm -f conf$$ conf$$.exe conf$$.file
7241
7242 if mkdir -p . 2>/dev/null; then
7243   as_mkdir_p=:
7244 else
7245   test -d ./-p && rmdir ./-p
7246   as_mkdir_p=false
7247 fi
7248
7249 as_executable_p="test -f"
7250
7251 # Sed expression to map a string onto a valid CPP name.
7252 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7253
7254 # Sed expression to map a string onto a valid variable name.
7255 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7256
7257
7258 # IFS
7259 # We need space, tab and new line, in precisely that order.
7260 as_nl='
7261 '
7262 IFS="   $as_nl"
7263
7264 # CDPATH.
7265 $as_unset CDPATH
7266
7267 exec 6>&1
7268
7269 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7270 # report actual input values of CONFIG_FILES etc. instead of their
7271 # values after options handling.  Logging --version etc. is OK.
7272 exec 5>>config.log
7273 {
7274   echo
7275   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7276 ## Running $as_me. ##
7277 _ASBOX
7278 } >&5
7279 cat >&5 <<_CSEOF
7280
7281 This file was extended by cpplib $as_me  , which was
7282 generated by GNU Autoconf 2.59.  Invocation command line was
7283
7284   CONFIG_FILES    = $CONFIG_FILES
7285   CONFIG_HEADERS  = $CONFIG_HEADERS
7286   CONFIG_LINKS    = $CONFIG_LINKS
7287   CONFIG_COMMANDS = $CONFIG_COMMANDS
7288   $ $0 $@
7289
7290 _CSEOF
7291 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7292 echo >&5
7293 _ACEOF
7294
7295 # Files that config.status was made for.
7296 if test -n "$ac_config_files"; then
7297   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7298 fi
7299
7300 if test -n "$ac_config_headers"; then
7301   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7302 fi
7303
7304 if test -n "$ac_config_links"; then
7305   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7306 fi
7307
7308 if test -n "$ac_config_commands"; then
7309   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7310 fi
7311
7312 cat >>$CONFIG_STATUS <<\_ACEOF
7313
7314 ac_cs_usage="\
7315 \`$as_me' instantiates files from templates according to the
7316 current configuration.
7317
7318 Usage: $0 [OPTIONS] [FILE]...
7319
7320   -h, --help       print this help, then exit
7321   -V, --version    print version number, then exit
7322   -q, --quiet      do not print progress messages
7323   -d, --debug      don't remove temporary files
7324       --recheck    update $as_me by reconfiguring in the same conditions
7325   --file=FILE[:TEMPLATE]
7326                    instantiate the configuration file FILE
7327   --header=FILE[:TEMPLATE]
7328                    instantiate the configuration header FILE
7329
7330 Configuration files:
7331 $config_files
7332
7333 Configuration headers:
7334 $config_headers
7335
7336 Report bugs to <bug-autoconf@gnu.org>."
7337 _ACEOF
7338
7339 cat >>$CONFIG_STATUS <<_ACEOF
7340 ac_cs_version="\\
7341 cpplib config.status
7342 configured by $0, generated by GNU Autoconf 2.59,
7343   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7344
7345 Copyright (C) 2003 Free Software Foundation, Inc.
7346 This config.status script is free software; the Free Software Foundation
7347 gives unlimited permission to copy, distribute and modify it."
7348 srcdir=$srcdir
7349 INSTALL="$INSTALL"
7350 _ACEOF
7351
7352 cat >>$CONFIG_STATUS <<\_ACEOF
7353 # If no file are specified by the user, then we need to provide default
7354 # value.  By we need to know if files were specified by the user.
7355 ac_need_defaults=:
7356 while test $# != 0
7357 do
7358   case $1 in
7359   --*=*)
7360     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7361     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7362     ac_shift=:
7363     ;;
7364   -*)
7365     ac_option=$1
7366     ac_optarg=$2
7367     ac_shift=shift
7368     ;;
7369   *) # This is not an option, so the user has probably given explicit
7370      # arguments.
7371      ac_option=$1
7372      ac_need_defaults=false;;
7373   esac
7374
7375   case $ac_option in
7376   # Handling of the options.
7377 _ACEOF
7378 cat >>$CONFIG_STATUS <<\_ACEOF
7379   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7380     ac_cs_recheck=: ;;
7381   --version | --vers* | -V )
7382     echo "$ac_cs_version"; exit 0 ;;
7383   --he | --h)
7384     # Conflict between --help and --header
7385     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7386 Try \`$0 --help' for more information." >&5
7387 echo "$as_me: error: ambiguous option: $1
7388 Try \`$0 --help' for more information." >&2;}
7389    { (exit 1); exit 1; }; };;
7390   --help | --hel | -h )
7391     echo "$ac_cs_usage"; exit 0 ;;
7392   --debug | --d* | -d )
7393     debug=: ;;
7394   --file | --fil | --fi | --f )
7395     $ac_shift
7396     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7397     ac_need_defaults=false;;
7398   --header | --heade | --head | --hea )
7399     $ac_shift
7400     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7401     ac_need_defaults=false;;
7402   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7403   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7404     ac_cs_silent=: ;;
7405
7406   # This is an error.
7407   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7408 Try \`$0 --help' for more information." >&5
7409 echo "$as_me: error: unrecognized option: $1
7410 Try \`$0 --help' for more information." >&2;}
7411    { (exit 1); exit 1; }; } ;;
7412
7413   *) ac_config_targets="$ac_config_targets $1" ;;
7414
7415   esac
7416   shift
7417 done
7418
7419 ac_configure_extra_args=
7420
7421 if $ac_cs_silent; then
7422   exec 6>/dev/null
7423   ac_configure_extra_args="$ac_configure_extra_args --silent"
7424 fi
7425
7426 _ACEOF
7427 cat >>$CONFIG_STATUS <<_ACEOF
7428 if \$ac_cs_recheck; then
7429   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7430   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7431 fi
7432
7433 _ACEOF
7434
7435
7436
7437
7438
7439 cat >>$CONFIG_STATUS <<\_ACEOF
7440 for ac_config_target in $ac_config_targets
7441 do
7442   case "$ac_config_target" in
7443   # Handling of arguments.
7444   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7445   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7446   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7447 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7448    { (exit 1); exit 1; }; };;
7449   esac
7450 done
7451
7452 # If the user did not use the arguments to specify the items to instantiate,
7453 # then the envvar interface is used.  Set only those that are not.
7454 # We use the long form for the default assignment because of an extremely
7455 # bizarre bug on SunOS 4.1.3.
7456 if $ac_need_defaults; then
7457   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7458   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7459 fi
7460
7461 # Have a temporary directory for convenience.  Make it in the build tree
7462 # simply because there is no reason to put it here, and in addition,
7463 # creating and moving files from /tmp can sometimes cause problems.
7464 # Create a temporary directory, and hook for its removal unless debugging.
7465 $debug ||
7466 {
7467   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7468   trap '{ (exit 1); exit 1; }' 1 2 13 15
7469 }
7470
7471 # Create a (secure) tmp directory for tmp files.
7472
7473 {
7474   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7475   test -n "$tmp" && test -d "$tmp"
7476 }  ||
7477 {
7478   tmp=./confstat$$-$RANDOM
7479   (umask 077 && mkdir $tmp)
7480 } ||
7481 {
7482    echo "$me: cannot create a temporary directory in ." >&2
7483    { (exit 1); exit 1; }
7484 }
7485
7486 _ACEOF
7487
7488 cat >>$CONFIG_STATUS <<_ACEOF
7489
7490 #
7491 # CONFIG_FILES section.
7492 #
7493
7494 # No need to generate the scripts if there are no CONFIG_FILES.
7495 # This happens for instance when ./config.status config.h
7496 if test -n "\$CONFIG_FILES"; then
7497   # Protect against being on the right side of a sed subst in config.status.
7498   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7499    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7500 s,@SHELL@,$SHELL,;t t
7501 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7502 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7503 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7504 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7505 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7506 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7507 s,@exec_prefix@,$exec_prefix,;t t
7508 s,@prefix@,$prefix,;t t
7509 s,@program_transform_name@,$program_transform_name,;t t
7510 s,@bindir@,$bindir,;t t
7511 s,@sbindir@,$sbindir,;t t
7512 s,@libexecdir@,$libexecdir,;t t
7513 s,@datadir@,$datadir,;t t
7514 s,@sysconfdir@,$sysconfdir,;t t
7515 s,@sharedstatedir@,$sharedstatedir,;t t
7516 s,@localstatedir@,$localstatedir,;t t
7517 s,@libdir@,$libdir,;t t
7518 s,@includedir@,$includedir,;t t
7519 s,@oldincludedir@,$oldincludedir,;t t
7520 s,@infodir@,$infodir,;t t
7521 s,@mandir@,$mandir,;t t
7522 s,@build_alias@,$build_alias,;t t
7523 s,@host_alias@,$host_alias,;t t
7524 s,@target_alias@,$target_alias,;t t
7525 s,@DEFS@,$DEFS,;t t
7526 s,@ECHO_C@,$ECHO_C,;t t
7527 s,@ECHO_N@,$ECHO_N,;t t
7528 s,@ECHO_T@,$ECHO_T,;t t
7529 s,@LIBS@,$LIBS,;t t
7530 s,@build@,$build,;t t
7531 s,@build_cpu@,$build_cpu,;t t
7532 s,@build_vendor@,$build_vendor,;t t
7533 s,@build_os@,$build_os,;t t
7534 s,@host@,$host,;t t
7535 s,@host_cpu@,$host_cpu,;t t
7536 s,@host_vendor@,$host_vendor,;t t
7537 s,@host_os@,$host_os,;t t
7538 s,@target@,$target,;t t
7539 s,@target_cpu@,$target_cpu,;t t
7540 s,@target_vendor@,$target_vendor,;t t
7541 s,@target_os@,$target_os,;t t
7542 s,@SET_MAKE@,$SET_MAKE,;t t
7543 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7544 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7545 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7546 s,@CC@,$CC,;t t
7547 s,@CFLAGS@,$CFLAGS,;t t
7548 s,@LDFLAGS@,$LDFLAGS,;t t
7549 s,@CPPFLAGS@,$CPPFLAGS,;t t
7550 s,@ac_ct_CC@,$ac_ct_CC,;t t
7551 s,@EXEEXT@,$EXEEXT,;t t
7552 s,@OBJEXT@,$OBJEXT,;t t
7553 s,@RANLIB@,$RANLIB,;t t
7554 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7555 s,@ACLOCAL@,$ACLOCAL,;t t
7556 s,@AUTOCONF@,$AUTOCONF,;t t
7557 s,@AUTOHEADER@,$AUTOHEADER,;t t
7558 s,@CPP@,$CPP,;t t
7559 s,@EGREP@,$EGREP,;t t
7560 s,@LIBOBJS@,$LIBOBJS,;t t
7561 s,@ALLOCA@,$ALLOCA,;t t
7562 s,@USE_NLS@,$USE_NLS,;t t
7563 s,@LIBINTL@,$LIBINTL,;t t
7564 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7565 s,@INCINTL@,$INCINTL,;t t
7566 s,@XGETTEXT@,$XGETTEXT,;t t
7567 s,@GMSGFMT@,$GMSGFMT,;t t
7568 s,@POSUB@,$POSUB,;t t
7569 s,@CATALOGS@,$CATALOGS,;t t
7570 s,@LIBICONV@,$LIBICONV,;t t
7571 s,@LTLIBICONV@,$LTLIBICONV,;t t
7572 s,@PACKAGE@,$PACKAGE,;t t
7573 s,@USED_CATALOGS@,$USED_CATALOGS,;t t
7574 s,@MAINT@,$MAINT,;t t
7575 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7576 CEOF
7577
7578 _ACEOF
7579
7580   cat >>$CONFIG_STATUS <<\_ACEOF
7581   # Split the substitutions into bite-sized pieces for seds with
7582   # small command number limits, like on Digital OSF/1 and HP-UX.
7583   ac_max_sed_lines=48
7584   ac_sed_frag=1 # Number of current file.
7585   ac_beg=1 # First line for current file.
7586   ac_end=$ac_max_sed_lines # Line after last line for current file.
7587   ac_more_lines=:
7588   ac_sed_cmds=
7589   while $ac_more_lines; do
7590     if test $ac_beg -gt 1; then
7591       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7592     else
7593       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7594     fi
7595     if test ! -s $tmp/subs.frag; then
7596       ac_more_lines=false
7597     else
7598       # The purpose of the label and of the branching condition is to
7599       # speed up the sed processing (if there are no `@' at all, there
7600       # is no need to browse any of the substitutions).
7601       # These are the two extra sed commands mentioned above.
7602       (echo ':t
7603   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7604       if test -z "$ac_sed_cmds"; then
7605         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7606       else
7607         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7608       fi
7609       ac_sed_frag=`expr $ac_sed_frag + 1`
7610       ac_beg=$ac_end
7611       ac_end=`expr $ac_end + $ac_max_sed_lines`
7612     fi
7613   done
7614   if test -z "$ac_sed_cmds"; then
7615     ac_sed_cmds=cat
7616   fi
7617 fi # test -n "$CONFIG_FILES"
7618
7619 _ACEOF
7620 cat >>$CONFIG_STATUS <<\_ACEOF
7621 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7622   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7623   case $ac_file in
7624   - | *:- | *:-:* ) # input from stdin
7625         cat >$tmp/stdin
7626         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7627         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7628   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7629         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7630   * )   ac_file_in=$ac_file.in ;;
7631   esac
7632
7633   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7634   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7636          X"$ac_file" : 'X\(//\)[^/]' \| \
7637          X"$ac_file" : 'X\(//\)$' \| \
7638          X"$ac_file" : 'X\(/\)' \| \
7639          .     : '\(.\)' 2>/dev/null ||
7640 echo X"$ac_file" |
7641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7642           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7643           /^X\(\/\/\)$/{ s//\1/; q; }
7644           /^X\(\/\).*/{ s//\1/; q; }
7645           s/.*/./; q'`
7646   { if $as_mkdir_p; then
7647     mkdir -p "$ac_dir"
7648   else
7649     as_dir="$ac_dir"
7650     as_dirs=
7651     while test ! -d "$as_dir"; do
7652       as_dirs="$as_dir $as_dirs"
7653       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7655          X"$as_dir" : 'X\(//\)[^/]' \| \
7656          X"$as_dir" : 'X\(//\)$' \| \
7657          X"$as_dir" : 'X\(/\)' \| \
7658          .     : '\(.\)' 2>/dev/null ||
7659 echo X"$as_dir" |
7660     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7661           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7662           /^X\(\/\/\)$/{ s//\1/; q; }
7663           /^X\(\/\).*/{ s//\1/; q; }
7664           s/.*/./; q'`
7665     done
7666     test ! -n "$as_dirs" || mkdir $as_dirs
7667   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7668 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7669    { (exit 1); exit 1; }; }; }
7670
7671   ac_builddir=.
7672
7673 if test "$ac_dir" != .; then
7674   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7675   # A "../" for each directory in $ac_dir_suffix.
7676   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7677 else
7678   ac_dir_suffix= ac_top_builddir=
7679 fi
7680
7681 case $srcdir in
7682   .)  # No --srcdir option.  We are building in place.
7683     ac_srcdir=.
7684     if test -z "$ac_top_builddir"; then
7685        ac_top_srcdir=.
7686     else
7687        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7688     fi ;;
7689   [\\/]* | ?:[\\/]* )  # Absolute path.
7690     ac_srcdir=$srcdir$ac_dir_suffix;
7691     ac_top_srcdir=$srcdir ;;
7692   *) # Relative path.
7693     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7694     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7695 esac
7696
7697 # Do not use `cd foo && pwd` to compute absolute paths, because
7698 # the directories may not exist.
7699 case `pwd` in
7700 .) ac_abs_builddir="$ac_dir";;
7701 *)
7702   case "$ac_dir" in
7703   .) ac_abs_builddir=`pwd`;;
7704   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7705   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7706   esac;;
7707 esac
7708 case $ac_abs_builddir in
7709 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7710 *)
7711   case ${ac_top_builddir}. in
7712   .) ac_abs_top_builddir=$ac_abs_builddir;;
7713   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7714   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7715   esac;;
7716 esac
7717 case $ac_abs_builddir in
7718 .) ac_abs_srcdir=$ac_srcdir;;
7719 *)
7720   case $ac_srcdir in
7721   .) ac_abs_srcdir=$ac_abs_builddir;;
7722   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7723   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7724   esac;;
7725 esac
7726 case $ac_abs_builddir in
7727 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7728 *)
7729   case $ac_top_srcdir in
7730   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7731   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7732   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7733   esac;;
7734 esac
7735
7736
7737   case $INSTALL in
7738   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7739   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7740   esac
7741
7742   if test x"$ac_file" != x-; then
7743     { echo "$as_me:$LINENO: creating $ac_file" >&5
7744 echo "$as_me: creating $ac_file" >&6;}
7745     rm -f "$ac_file"
7746   fi
7747   # Let's still pretend it is `configure' which instantiates (i.e., don't
7748   # use $as_me), people would be surprised to read:
7749   #    /* config.h.  Generated by config.status.  */
7750   if test x"$ac_file" = x-; then
7751     configure_input=
7752   else
7753     configure_input="$ac_file.  "
7754   fi
7755   configure_input=$configure_input"Generated from `echo $ac_file_in |
7756                                      sed 's,.*/,,'` by configure."
7757
7758   # First look for the input files in the build tree, otherwise in the
7759   # src tree.
7760   ac_file_inputs=`IFS=:
7761     for f in $ac_file_in; do
7762       case $f in
7763       -) echo $tmp/stdin ;;
7764       [\\/$]*)
7765          # Absolute (can't be DOS-style, as IFS=:)
7766          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7767 echo "$as_me: error: cannot find input file: $f" >&2;}
7768    { (exit 1); exit 1; }; }
7769          echo "$f";;
7770       *) # Relative
7771          if test -f "$f"; then
7772            # Build tree
7773            echo "$f"
7774          elif test -f "$srcdir/$f"; then
7775            # Source tree
7776            echo "$srcdir/$f"
7777          else
7778            # /dev/null tree
7779            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7780 echo "$as_me: error: cannot find input file: $f" >&2;}
7781    { (exit 1); exit 1; }; }
7782          fi;;
7783       esac
7784     done` || { (exit 1); exit 1; }
7785 _ACEOF
7786 cat >>$CONFIG_STATUS <<_ACEOF
7787   sed "$ac_vpsub
7788 $extrasub
7789 _ACEOF
7790 cat >>$CONFIG_STATUS <<\_ACEOF
7791 :t
7792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7793 s,@configure_input@,$configure_input,;t t
7794 s,@srcdir@,$ac_srcdir,;t t
7795 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7796 s,@top_srcdir@,$ac_top_srcdir,;t t
7797 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7798 s,@builddir@,$ac_builddir,;t t
7799 s,@abs_builddir@,$ac_abs_builddir,;t t
7800 s,@top_builddir@,$ac_top_builddir,;t t
7801 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7802 s,@INSTALL@,$ac_INSTALL,;t t
7803 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7804   rm -f $tmp/stdin
7805   if test x"$ac_file" != x-; then
7806     mv $tmp/out $ac_file
7807   else
7808     cat $tmp/out
7809     rm -f $tmp/out
7810   fi
7811
7812 done
7813 _ACEOF
7814 cat >>$CONFIG_STATUS <<\_ACEOF
7815
7816 #
7817 # CONFIG_HEADER section.
7818 #
7819
7820 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7821 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7822 #
7823 # ac_d sets the value in "#define NAME VALUE" lines.
7824 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7825 ac_dB='[         ].*$,\1#\2'
7826 ac_dC=' '
7827 ac_dD=',;t'
7828 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7829 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7830 ac_uB='$,\1#\2define\3'
7831 ac_uC=' '
7832 ac_uD=',;t'
7833
7834 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7835   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7836   case $ac_file in
7837   - | *:- | *:-:* ) # input from stdin
7838         cat >$tmp/stdin
7839         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7840         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7841   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7842         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7843   * )   ac_file_in=$ac_file.in ;;
7844   esac
7845
7846   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7847 echo "$as_me: creating $ac_file" >&6;}
7848
7849   # First look for the input files in the build tree, otherwise in the
7850   # src tree.
7851   ac_file_inputs=`IFS=:
7852     for f in $ac_file_in; do
7853       case $f in
7854       -) echo $tmp/stdin ;;
7855       [\\/$]*)
7856          # Absolute (can't be DOS-style, as IFS=:)
7857          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7858 echo "$as_me: error: cannot find input file: $f" >&2;}
7859    { (exit 1); exit 1; }; }
7860          # Do quote $f, to prevent DOS paths from being IFS'd.
7861          echo "$f";;
7862       *) # Relative
7863          if test -f "$f"; then
7864            # Build tree
7865            echo "$f"
7866          elif test -f "$srcdir/$f"; then
7867            # Source tree
7868            echo "$srcdir/$f"
7869          else
7870            # /dev/null tree
7871            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7872 echo "$as_me: error: cannot find input file: $f" >&2;}
7873    { (exit 1); exit 1; }; }
7874          fi;;
7875       esac
7876     done` || { (exit 1); exit 1; }
7877   # Remove the trailing spaces.
7878   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7879
7880 _ACEOF
7881
7882 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7883 # `conftest.undefs', that substitutes the proper values into
7884 # config.h.in to produce config.h.  The first handles `#define'
7885 # templates, and the second `#undef' templates.
7886 # And first: Protect against being on the right side of a sed subst in
7887 # config.status.  Protect against being in an unquoted here document
7888 # in config.status.
7889 rm -f conftest.defines conftest.undefs
7890 # Using a here document instead of a string reduces the quoting nightmare.
7891 # Putting comments in sed scripts is not portable.
7892 #
7893 # `end' is used to avoid that the second main sed command (meant for
7894 # 0-ary CPP macros) applies to n-ary macro definitions.
7895 # See the Autoconf documentation for `clear'.
7896 cat >confdef2sed.sed <<\_ACEOF
7897 s/[\\&,]/\\&/g
7898 s,[\\$`],\\&,g
7899 t clear
7900 : clear
7901 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7902 t end
7903 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7904 : end
7905 _ACEOF
7906 # If some macros were called several times there might be several times
7907 # the same #defines, which is useless.  Nevertheless, we may not want to
7908 # sort them, since we want the *last* AC-DEFINE to be honored.
7909 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7910 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7911 rm -f confdef2sed.sed
7912
7913 # This sed command replaces #undef with comments.  This is necessary, for
7914 # example, in the case of _POSIX_SOURCE, which is predefined and required
7915 # on some systems where configure will not decide to define it.
7916 cat >>conftest.undefs <<\_ACEOF
7917 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7918 _ACEOF
7919
7920 # Break up conftest.defines because some shells have a limit on the size
7921 # of here documents, and old seds have small limits too (100 cmds).
7922 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7923 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7924 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7925 echo '  :' >>$CONFIG_STATUS
7926 rm -f conftest.tail
7927 while grep . conftest.defines >/dev/null
7928 do
7929   # Write a limited-size here document to $tmp/defines.sed.
7930   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7931   # Speed up: don't consider the non `#define' lines.
7932   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
7933   # Work around the forget-to-reset-the-flag bug.
7934   echo 't clr' >>$CONFIG_STATUS
7935   echo ': clr' >>$CONFIG_STATUS
7936   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7937   echo 'CEOF
7938   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7939   rm -f $tmp/in
7940   mv $tmp/out $tmp/in
7941 ' >>$CONFIG_STATUS
7942   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7943   rm -f conftest.defines
7944   mv conftest.tail conftest.defines
7945 done
7946 rm -f conftest.defines
7947 echo '  fi # grep' >>$CONFIG_STATUS
7948 echo >>$CONFIG_STATUS
7949
7950 # Break up conftest.undefs because some shells have a limit on the size
7951 # of here documents, and old seds have small limits too (100 cmds).
7952 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7953 rm -f conftest.tail
7954 while grep . conftest.undefs >/dev/null
7955 do
7956   # Write a limited-size here document to $tmp/undefs.sed.
7957   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7958   # Speed up: don't consider the non `#undef'
7959   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7960   # Work around the forget-to-reset-the-flag bug.
7961   echo 't clr' >>$CONFIG_STATUS
7962   echo ': clr' >>$CONFIG_STATUS
7963   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7964   echo 'CEOF
7965   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7966   rm -f $tmp/in
7967   mv $tmp/out $tmp/in
7968 ' >>$CONFIG_STATUS
7969   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7970   rm -f conftest.undefs
7971   mv conftest.tail conftest.undefs
7972 done
7973 rm -f conftest.undefs
7974
7975 cat >>$CONFIG_STATUS <<\_ACEOF
7976   # Let's still pretend it is `configure' which instantiates (i.e., don't
7977   # use $as_me), people would be surprised to read:
7978   #    /* config.h.  Generated by config.status.  */
7979   if test x"$ac_file" = x-; then
7980     echo "/* Generated by configure.  */" >$tmp/config.h
7981   else
7982     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7983   fi
7984   cat $tmp/in >>$tmp/config.h
7985   rm -f $tmp/in
7986   if test x"$ac_file" != x-; then
7987     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7988       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7989 echo "$as_me: $ac_file is unchanged" >&6;}
7990     else
7991       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7993          X"$ac_file" : 'X\(//\)[^/]' \| \
7994          X"$ac_file" : 'X\(//\)$' \| \
7995          X"$ac_file" : 'X\(/\)' \| \
7996          .     : '\(.\)' 2>/dev/null ||
7997 echo X"$ac_file" |
7998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7999           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8000           /^X\(\/\/\)$/{ s//\1/; q; }
8001           /^X\(\/\).*/{ s//\1/; q; }
8002           s/.*/./; q'`
8003       { if $as_mkdir_p; then
8004     mkdir -p "$ac_dir"
8005   else
8006     as_dir="$ac_dir"
8007     as_dirs=
8008     while test ! -d "$as_dir"; do
8009       as_dirs="$as_dir $as_dirs"
8010       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8012          X"$as_dir" : 'X\(//\)[^/]' \| \
8013          X"$as_dir" : 'X\(//\)$' \| \
8014          X"$as_dir" : 'X\(/\)' \| \
8015          .     : '\(.\)' 2>/dev/null ||
8016 echo X"$as_dir" |
8017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8018           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8019           /^X\(\/\/\)$/{ s//\1/; q; }
8020           /^X\(\/\).*/{ s//\1/; q; }
8021           s/.*/./; q'`
8022     done
8023     test ! -n "$as_dirs" || mkdir $as_dirs
8024   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8026    { (exit 1); exit 1; }; }; }
8027
8028       rm -f $ac_file
8029       mv $tmp/config.h $ac_file
8030     fi
8031   else
8032     cat $tmp/config.h
8033     rm -f $tmp/config.h
8034   fi
8035   # Run the commands associated with the file.
8036   case $ac_file in
8037     config.h ) echo timestamp > stamp-h1 ;;
8038   esac
8039 done
8040 _ACEOF
8041
8042 cat >>$CONFIG_STATUS <<\_ACEOF
8043
8044 { (exit 0); exit 0; }
8045 _ACEOF
8046 chmod +x $CONFIG_STATUS
8047 ac_clean_files=$ac_clean_files_save
8048
8049
8050 # configure is writing to config.log, and then calls config.status.
8051 # config.status does its own redirection, appending to config.log.
8052 # Unfortunately, on DOS this fails, as config.log is still kept open
8053 # by configure, so config.status won't be able to write to it; its
8054 # output is simply discarded.  So we exec the FD to /dev/null,
8055 # effectively closing config.log, so it can be properly (re)opened and
8056 # appended to by config.status.  When coming back to configure, we
8057 # need to make the FD available again.
8058 if test "$no_create" != yes; then
8059   ac_cs_success=:
8060   ac_config_status_args=
8061   test "$silent" = yes &&
8062     ac_config_status_args="$ac_config_status_args --quiet"
8063   exec 5>/dev/null
8064   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8065   exec 5>>config.log
8066   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8067   # would make configure fail if this is the last instruction.
8068   $ac_cs_success || { (exit 1); exit 1; }
8069 fi
8070