OSDN Git Service

Rewrite PIC support to more closely model actual instructions.
[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 WARN_CFLAGS WARN_PEDANTIC WERROR am__leading_dot DEPDIR CCDEPMODE 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   --enable-werror-always  enable -Werror despite compiler version
853   --disable-rpath         do not hardcode runtime library paths
854   --enable-maintainer-mode enable rules only needed by maintainers
855   --enable-checking      enable expensive run-time checks
856
857 Optional Packages:
858   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
859   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
860   --with-gnu-ld           assume the C compiler uses GNU ld default=no
861   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
862   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
863
864 Some influential environment variables:
865   CC          C compiler command
866   CFLAGS      C compiler flags
867   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
868               nonstandard directory <lib dir>
869   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
870               headers in a nonstandard directory <include dir>
871   CPP         C preprocessor
872
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
875
876 Report bugs to <gcc-bugs@gcc.gnu.org>.
877 _ACEOF
878 fi
879
880 if test "$ac_init_help" = "recursive"; then
881   # If there are subdirs, report their specific --help.
882   ac_popdir=`pwd`
883   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884     test -d $ac_dir || continue
885     ac_builddir=.
886
887 if test "$ac_dir" != .; then
888   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889   # A "../" for each directory in $ac_dir_suffix.
890   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 else
892   ac_dir_suffix= ac_top_builddir=
893 fi
894
895 case $srcdir in
896   .)  # No --srcdir option.  We are building in place.
897     ac_srcdir=.
898     if test -z "$ac_top_builddir"; then
899        ac_top_srcdir=.
900     else
901        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902     fi ;;
903   [\\/]* | ?:[\\/]* )  # Absolute path.
904     ac_srcdir=$srcdir$ac_dir_suffix;
905     ac_top_srcdir=$srcdir ;;
906   *) # Relative path.
907     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908     ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 esac
910
911 # Do not use `cd foo && pwd` to compute absolute paths, because
912 # the directories may not exist.
913 case `pwd` in
914 .) ac_abs_builddir="$ac_dir";;
915 *)
916   case "$ac_dir" in
917   .) ac_abs_builddir=`pwd`;;
918   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
919   *) ac_abs_builddir=`pwd`/"$ac_dir";;
920   esac;;
921 esac
922 case $ac_abs_builddir in
923 .) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *)
925   case ${ac_top_builddir}. in
926   .) ac_abs_top_builddir=$ac_abs_builddir;;
927   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
928   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
929   esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_srcdir=$ac_srcdir;;
933 *)
934   case $ac_srcdir in
935   .) ac_abs_srcdir=$ac_abs_builddir;;
936   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
937   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
938   esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *)
943   case $ac_top_srcdir in
944   .) ac_abs_top_srcdir=$ac_abs_builddir;;
945   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
946   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947   esac;;
948 esac
949
950     cd $ac_dir
951     # Check for guested configure; otherwise get Cygnus style configure.
952     if test -f $ac_srcdir/configure.gnu; then
953       echo
954       $SHELL $ac_srcdir/configure.gnu  --help=recursive
955     elif test -f $ac_srcdir/configure; then
956       echo
957       $SHELL $ac_srcdir/configure  --help=recursive
958     elif test -f $ac_srcdir/configure.ac ||
959            test -f $ac_srcdir/configure.in; then
960       echo
961       $ac_configure --help
962     else
963       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964     fi
965     cd $ac_popdir
966   done
967 fi
968
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
971   cat <<\_ACEOF
972 cpplib configure
973 generated by GNU Autoconf 2.59
974
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978 _ACEOF
979   exit 0
980 fi
981 exec 5>config.log
982 cat >&5 <<_ACEOF
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
985
986 It was created by cpplib $as_me  , which was
987 generated by GNU Autoconf 2.59.  Invocation command line was
988
989   $ $0 $@
990
991 _ACEOF
992 {
993 cat <<_ASUNAME
994 ## --------- ##
995 ## Platform. ##
996 ## --------- ##
997
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1006
1007 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1008 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1011 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1012 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1013 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1014
1015 _ASUNAME
1016
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 for as_dir in $PATH
1019 do
1020   IFS=$as_save_IFS
1021   test -z "$as_dir" && as_dir=.
1022   echo "PATH: $as_dir"
1023 done
1024
1025 } >&5
1026
1027 cat >&5 <<_ACEOF
1028
1029
1030 ## ----------- ##
1031 ## Core tests. ##
1032 ## ----------- ##
1033
1034 _ACEOF
1035
1036
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_configure_args=
1043 ac_configure_args0=
1044 ac_configure_args1=
1045 ac_sep=
1046 ac_must_keep_next=false
1047 for ac_pass in 1 2
1048 do
1049   for ac_arg
1050   do
1051     case $ac_arg in
1052     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054     | -silent | --silent | --silen | --sile | --sil)
1055       continue ;;
1056     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058     esac
1059     case $ac_pass in
1060     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061     2)
1062       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063       if test $ac_must_keep_next = true; then
1064         ac_must_keep_next=false # Got value, back to normal.
1065       else
1066         case $ac_arg in
1067           *=* | --config-cache | -C | -disable-* | --disable-* \
1068           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070           | -with-* | --with-* | -without-* | --without-* | --x)
1071             case "$ac_configure_args0 " in
1072               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073             esac
1074             ;;
1075           -* ) ac_must_keep_next=true ;;
1076         esac
1077       fi
1078       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079       # Get rid of the leading space.
1080       ac_sep=" "
1081       ;;
1082     esac
1083   done
1084 done
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log.  We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094   # Save into config.log some information that might help in debugging.
1095   {
1096     echo
1097
1098     cat <<\_ASBOX
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1102 _ASBOX
1103     echo
1104     # The following way of writing the cache mishandles newlines in values,
1105 {
1106   (set) 2>&1 |
1107     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108     *ac_space=\ *)
1109       sed -n \
1110         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1112       ;;
1113     *)
1114       sed -n \
1115         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116       ;;
1117     esac;
1118 }
1119     echo
1120
1121     cat <<\_ASBOX
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1125 _ASBOX
1126     echo
1127     for ac_var in $ac_subst_vars
1128     do
1129       eval ac_val=$`echo $ac_var`
1130       echo "$ac_var='"'"'$ac_val'"'"'"
1131     done | sort
1132     echo
1133
1134     if test -n "$ac_subst_files"; then
1135       cat <<\_ASBOX
1136 ## ------------- ##
1137 ## Output files. ##
1138 ## ------------- ##
1139 _ASBOX
1140       echo
1141       for ac_var in $ac_subst_files
1142       do
1143         eval ac_val=$`echo $ac_var`
1144         echo "$ac_var='"'"'$ac_val'"'"'"
1145       done | sort
1146       echo
1147     fi
1148
1149     if test -s confdefs.h; then
1150       cat <<\_ASBOX
1151 ## ----------- ##
1152 ## confdefs.h. ##
1153 ## ----------- ##
1154 _ASBOX
1155       echo
1156       sed "/^$/d" confdefs.h | sort
1157       echo
1158     fi
1159     test "$ac_signal" != 0 &&
1160       echo "$as_me: caught signal $ac_signal"
1161     echo "$as_me: exit $exit_status"
1162   } >&5
1163   rm -f core *.core &&
1164   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165     exit $exit_status
1166      ' 0
1167 for ac_signal in 1 2 13 15; do
1168   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169 done
1170 ac_signal=0
1171
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 echo >confdefs.h
1176
1177 # Predefined preprocessor variables.
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201 _ACEOF
1202
1203
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207   if test "x$prefix" != xNONE; then
1208     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209   else
1210     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211   fi
1212 fi
1213 for ac_site_file in $CONFIG_SITE; do
1214   if test -r "$ac_site_file"; then
1215     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217     sed 's/^/| /' "$ac_site_file" >&5
1218     . "$ac_site_file"
1219   fi
1220 done
1221
1222 if test -r "$cache_file"; then
1223   # Some versions of bash will fail to source /dev/null (special
1224   # files actually), so we avoid doing that.
1225   if test -f "$cache_file"; then
1226     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1228     case $cache_file in
1229       [\\/]* | ?:[\\/]* ) . $cache_file;;
1230       *)                      . ./$cache_file;;
1231     esac
1232   fi
1233 else
1234   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1236   >$cache_file
1237 fi
1238
1239 # Check that the precious variables saved in the cache have kept the same
1240 # value.
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245   eval ac_new_set=\$ac_env_${ac_var}_set
1246   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247   eval ac_new_val="\$ac_env_${ac_var}_value"
1248   case $ac_old_set,$ac_new_set in
1249     set,)
1250       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252       ac_cache_corrupted=: ;;
1253     ,set)
1254       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256       ac_cache_corrupted=: ;;
1257     ,);;
1258     *)
1259       if test "x$ac_old_val" != "x$ac_new_val"; then
1260         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1263 echo "$as_me:   former value:  $ac_old_val" >&2;}
1264         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1265 echo "$as_me:   current value: $ac_new_val" >&2;}
1266         ac_cache_corrupted=:
1267       fi;;
1268   esac
1269   # Pass precious variables to config.status.
1270   if test "$ac_new_set" = set; then
1271     case $ac_new_val in
1272     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274     *) ac_arg=$ac_var=$ac_new_val ;;
1275     esac
1276     case " $ac_configure_args " in
1277       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1278       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279     esac
1280   fi
1281 done
1282 if $ac_cache_corrupted; then
1283   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287    { (exit 1); exit 1; }; }
1288 fi
1289
1290 ac_ext=c
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1323 case ../config in
1324   [\\/]* | ?:[\\/]* ) ac_macro_dir=../config         ;;
1325   *)                      ac_macro_dir=$srcdir/../config ;;
1326 esac
1327 if test -d "$ac_macro_dir"; then :
1328 else
1329   { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1330 echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1331    { (exit 1); exit 1; }; }
1332 fi
1333
1334 ac_aux_dir=
1335 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1336   if test -f $ac_dir/install-sh; then
1337     ac_aux_dir=$ac_dir
1338     ac_install_sh="$ac_aux_dir/install-sh -c"
1339     break
1340   elif test -f $ac_dir/install.sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install.sh -c"
1343     break
1344   elif test -f $ac_dir/shtool; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/shtool install -c"
1347     break
1348   fi
1349 done
1350 if test -z "$ac_aux_dir"; then
1351   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1352 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1353    { (exit 1); exit 1; }; }
1354 fi
1355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358
1359 # Make sure we can run config.sub.
1360 $ac_config_sub sun4 >/dev/null 2>&1 ||
1361   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1362 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1363    { (exit 1); exit 1; }; }
1364
1365 echo "$as_me:$LINENO: checking build system type" >&5
1366 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1367 if test "${ac_cv_build+set}" = set; then
1368   echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370   ac_cv_build_alias=$build_alias
1371 test -z "$ac_cv_build_alias" &&
1372   ac_cv_build_alias=`$ac_config_guess`
1373 test -z "$ac_cv_build_alias" &&
1374   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1375 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1376    { (exit 1); exit 1; }; }
1377 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1378   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1379 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1380    { (exit 1); exit 1; }; }
1381
1382 fi
1383 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1384 echo "${ECHO_T}$ac_cv_build" >&6
1385 build=$ac_cv_build
1386 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1387 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1388 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1389
1390
1391 echo "$as_me:$LINENO: checking host system type" >&5
1392 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1393 if test "${ac_cv_host+set}" = set; then
1394   echo $ECHO_N "(cached) $ECHO_C" >&6
1395 else
1396   ac_cv_host_alias=$host_alias
1397 test -z "$ac_cv_host_alias" &&
1398   ac_cv_host_alias=$ac_cv_build_alias
1399 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1400   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1401 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1402    { (exit 1); exit 1; }; }
1403
1404 fi
1405 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1406 echo "${ECHO_T}$ac_cv_host" >&6
1407 host=$ac_cv_host
1408 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1411
1412
1413 echo "$as_me:$LINENO: checking target system type" >&5
1414 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1415 if test "${ac_cv_target+set}" = set; then
1416   echo $ECHO_N "(cached) $ECHO_C" >&6
1417 else
1418   ac_cv_target_alias=$target_alias
1419 test "x$ac_cv_target_alias" = "x" &&
1420   ac_cv_target_alias=$ac_cv_host_alias
1421 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1422   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1424    { (exit 1); exit 1; }; }
1425
1426 fi
1427 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1428 echo "${ECHO_T}$ac_cv_target" >&6
1429 target=$ac_cv_target
1430 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433
1434
1435 # The aliases save the names the user supplied, while $host etc.
1436 # will get canonicalized.
1437 test -n "$target_alias" &&
1438   test "$program_prefix$program_suffix$program_transform_name" = \
1439     NONENONEs,x,x, &&
1440   program_prefix=${target_alias}-
1441
1442 # Checks for programs.
1443 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1444 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1445 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1446 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1447   echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449   cat >conftest.make <<\_ACEOF
1450 all:
1451         @echo 'ac_maketemp="$(MAKE)"'
1452 _ACEOF
1453 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1454 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1455 if test -n "$ac_maketemp"; then
1456   eval ac_cv_prog_make_${ac_make}_set=yes
1457 else
1458   eval ac_cv_prog_make_${ac_make}_set=no
1459 fi
1460 rm -f conftest.make
1461 fi
1462 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1463   echo "$as_me:$LINENO: result: yes" >&5
1464 echo "${ECHO_T}yes" >&6
1465   SET_MAKE=
1466 else
1467   echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469   SET_MAKE="MAKE=${MAKE-make}"
1470 fi
1471
1472 # Find a good install program.  We prefer a C program (faster),
1473 # so one script is as good as another.  But avoid the broken or
1474 # incompatible versions:
1475 # SysV /etc/install, /usr/sbin/install
1476 # SunOS /usr/etc/install
1477 # IRIX /sbin/install
1478 # AIX /bin/install
1479 # AmigaOS /C/install, which installs bootblocks on floppy discs
1480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1483 # OS/2's system install, which has a completely different semantic
1484 # ./install, which can be erroneously created by make from ./install.sh.
1485 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1486 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1487 if test -z "$INSTALL"; then
1488 if test "${ac_cv_path_install+set}" = set; then
1489   echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494   IFS=$as_save_IFS
1495   test -z "$as_dir" && as_dir=.
1496   # Account for people who put trailing slashes in PATH elements.
1497 case $as_dir/ in
1498   ./ | .// | /cC/* | \
1499   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1500   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1501   /usr/ucb/* ) ;;
1502   *)
1503     # OSF1 and SCO ODT 3.0 have their own names for install.
1504     # Don't use installbsd from OSF since it installs stuff as root
1505     # by default.
1506     for ac_prog in ginstall scoinst install; do
1507       for ac_exec_ext in '' $ac_executable_extensions; do
1508         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1509           if test $ac_prog = install &&
1510             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1511             # AIX install.  It has an incompatible calling convention.
1512             :
1513           elif test $ac_prog = install &&
1514             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1515             # program-specific install script used by HP pwplus--don't use.
1516             :
1517           else
1518             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1519             break 3
1520           fi
1521         fi
1522       done
1523     done
1524     ;;
1525 esac
1526 done
1527
1528
1529 fi
1530   if test "${ac_cv_path_install+set}" = set; then
1531     INSTALL=$ac_cv_path_install
1532   else
1533     # As a last resort, use the slow shell script.  We don't cache a
1534     # path for INSTALL within a source directory, because that will
1535     # break other packages using the cache if that directory is
1536     # removed, or if the path is relative.
1537     INSTALL=$ac_install_sh
1538   fi
1539 fi
1540 echo "$as_me:$LINENO: result: $INSTALL" >&5
1541 echo "${ECHO_T}$INSTALL" >&6
1542
1543 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1544 # It thinks the first close brace ends the variable substitution.
1545 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1546
1547 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1548
1549 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1550
1551 ac_ext=c
1552 ac_cpp='$CPP $CPPFLAGS'
1553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1556 if test -n "$ac_tool_prefix"; then
1557   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1558 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_CC+set}" = set; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   if test -n "$CC"; then
1565   ac_cv_prog_CC="$CC" # Let the user override the test.
1566 else
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1569 do
1570   IFS=$as_save_IFS
1571   test -z "$as_dir" && as_dir=.
1572   for ac_exec_ext in '' $ac_executable_extensions; do
1573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576     break 2
1577   fi
1578 done
1579 done
1580
1581 fi
1582 fi
1583 CC=$ac_cv_prog_CC
1584 if test -n "$CC"; then
1585   echo "$as_me:$LINENO: result: $CC" >&5
1586 echo "${ECHO_T}$CC" >&6
1587 else
1588   echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1590 fi
1591
1592 fi
1593 if test -z "$ac_cv_prog_CC"; then
1594   ac_ct_CC=$CC
1595   # Extract the first word of "gcc", so it can be a program name with args.
1596 set dummy gcc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   if test -n "$ac_ct_CC"; then
1603   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1604 else
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608   IFS=$as_save_IFS
1609   test -z "$as_dir" && as_dir=.
1610   for ac_exec_ext in '' $ac_executable_extensions; do
1611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612     ac_cv_prog_ac_ct_CC="gcc"
1613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614     break 2
1615   fi
1616 done
1617 done
1618
1619 fi
1620 fi
1621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1622 if test -n "$ac_ct_CC"; then
1623   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1624 echo "${ECHO_T}$ac_ct_CC" >&6
1625 else
1626   echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628 fi
1629
1630   CC=$ac_ct_CC
1631 else
1632   CC="$ac_cv_prog_CC"
1633 fi
1634
1635 if test -z "$CC"; then
1636   if test -n "$ac_tool_prefix"; then
1637   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1638 set dummy ${ac_tool_prefix}cc; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_CC+set}" = set; then
1642   echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644   if test -n "$CC"; then
1645   ac_cv_prog_CC="$CC" # Let the user override the test.
1646 else
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1649 do
1650   IFS=$as_save_IFS
1651   test -z "$as_dir" && as_dir=.
1652   for ac_exec_ext in '' $ac_executable_extensions; do
1653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654     ac_cv_prog_CC="${ac_tool_prefix}cc"
1655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656     break 2
1657   fi
1658 done
1659 done
1660
1661 fi
1662 fi
1663 CC=$ac_cv_prog_CC
1664 if test -n "$CC"; then
1665   echo "$as_me:$LINENO: result: $CC" >&5
1666 echo "${ECHO_T}$CC" >&6
1667 else
1668   echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1670 fi
1671
1672 fi
1673 if test -z "$ac_cv_prog_CC"; then
1674   ac_ct_CC=$CC
1675   # Extract the first word of "cc", so it can be a program name with args.
1676 set dummy cc; ac_word=$2
1677 echo "$as_me:$LINENO: checking for $ac_word" >&5
1678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1680   echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682   if test -n "$ac_ct_CC"; then
1683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1684 else
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1687 do
1688   IFS=$as_save_IFS
1689   test -z "$as_dir" && as_dir=.
1690   for ac_exec_ext in '' $ac_executable_extensions; do
1691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692     ac_cv_prog_ac_ct_CC="cc"
1693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694     break 2
1695   fi
1696 done
1697 done
1698
1699 fi
1700 fi
1701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1702 if test -n "$ac_ct_CC"; then
1703   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1704 echo "${ECHO_T}$ac_ct_CC" >&6
1705 else
1706   echo "$as_me:$LINENO: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1708 fi
1709
1710   CC=$ac_ct_CC
1711 else
1712   CC="$ac_cv_prog_CC"
1713 fi
1714
1715 fi
1716 if test -z "$CC"; then
1717   # Extract the first word of "cc", so it can be a program name with args.
1718 set dummy cc; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_CC+set}" = set; then
1722   echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724   if test -n "$CC"; then
1725   ac_cv_prog_CC="$CC" # Let the user override the test.
1726 else
1727   ac_prog_rejected=no
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1730 do
1731   IFS=$as_save_IFS
1732   test -z "$as_dir" && as_dir=.
1733   for ac_exec_ext in '' $ac_executable_extensions; do
1734   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1736        ac_prog_rejected=yes
1737        continue
1738      fi
1739     ac_cv_prog_CC="cc"
1740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741     break 2
1742   fi
1743 done
1744 done
1745
1746 if test $ac_prog_rejected = yes; then
1747   # We found a bogon in the path, so make sure we never use it.
1748   set dummy $ac_cv_prog_CC
1749   shift
1750   if test $# != 0; then
1751     # We chose a different compiler from the bogus one.
1752     # However, it has the same basename, so the bogon will be chosen
1753     # first if we set CC to just the basename; use the full file name.
1754     shift
1755     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1756   fi
1757 fi
1758 fi
1759 fi
1760 CC=$ac_cv_prog_CC
1761 if test -n "$CC"; then
1762   echo "$as_me:$LINENO: result: $CC" >&5
1763 echo "${ECHO_T}$CC" >&6
1764 else
1765   echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 fi
1768
1769 fi
1770 if test -z "$CC"; then
1771   if test -n "$ac_tool_prefix"; then
1772   for ac_prog in cl
1773   do
1774     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_CC+set}" = set; then
1779   echo $ECHO_N "(cached) $ECHO_C" >&6
1780 else
1781   if test -n "$CC"; then
1782   ac_cv_prog_CC="$CC" # Let the user override the test.
1783 else
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1786 do
1787   IFS=$as_save_IFS
1788   test -z "$as_dir" && as_dir=.
1789   for ac_exec_ext in '' $ac_executable_extensions; do
1790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793     break 2
1794   fi
1795 done
1796 done
1797
1798 fi
1799 fi
1800 CC=$ac_cv_prog_CC
1801 if test -n "$CC"; then
1802   echo "$as_me:$LINENO: result: $CC" >&5
1803 echo "${ECHO_T}$CC" >&6
1804 else
1805   echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1807 fi
1808
1809     test -n "$CC" && break
1810   done
1811 fi
1812 if test -z "$CC"; then
1813   ac_ct_CC=$CC
1814   for ac_prog in cl
1815 do
1816   # Extract the first word of "$ac_prog", so it can be a program name with args.
1817 set dummy $ac_prog; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   if test -n "$ac_ct_CC"; then
1824   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829   IFS=$as_save_IFS
1830   test -z "$as_dir" && as_dir=.
1831   for ac_exec_ext in '' $ac_executable_extensions; do
1832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833     ac_cv_prog_ac_ct_CC="$ac_prog"
1834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835     break 2
1836   fi
1837 done
1838 done
1839
1840 fi
1841 fi
1842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1843 if test -n "$ac_ct_CC"; then
1844   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1845 echo "${ECHO_T}$ac_ct_CC" >&6
1846 else
1847   echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1849 fi
1850
1851   test -n "$ac_ct_CC" && break
1852 done
1853
1854   CC=$ac_ct_CC
1855 fi
1856
1857 fi
1858
1859
1860 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: no acceptable C compiler found in \$PATH
1863 See \`config.log' for more details." >&2;}
1864    { (exit 1); exit 1; }; }
1865
1866 # Provide some information about the compiler.
1867 echo "$as_me:$LINENO:" \
1868      "checking for C compiler version" >&5
1869 ac_compiler=`set X $ac_compile; echo $2`
1870 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1871   (eval $ac_compiler --version </dev/null >&5) 2>&5
1872   ac_status=$?
1873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874   (exit $ac_status); }
1875 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1876   (eval $ac_compiler -v </dev/null >&5) 2>&5
1877   ac_status=$?
1878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879   (exit $ac_status); }
1880 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1881   (eval $ac_compiler -V </dev/null >&5) 2>&5
1882   ac_status=$?
1883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884   (exit $ac_status); }
1885
1886 cat >conftest.$ac_ext <<_ACEOF
1887 /* confdefs.h.  */
1888 _ACEOF
1889 cat confdefs.h >>conftest.$ac_ext
1890 cat >>conftest.$ac_ext <<_ACEOF
1891 /* end confdefs.h.  */
1892
1893 int
1894 main ()
1895 {
1896
1897   ;
1898   return 0;
1899 }
1900 _ACEOF
1901 ac_clean_files_save=$ac_clean_files
1902 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1903 # Try to create an executable without -o first, disregard a.out.
1904 # It will help us diagnose broken compilers, and finding out an intuition
1905 # of exeext.
1906 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1907 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1908 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1909 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1910   (eval $ac_link_default) 2>&5
1911   ac_status=$?
1912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913   (exit $ac_status); }; then
1914   # Find the output, starting from the most likely.  This scheme is
1915 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1916 # resort.
1917
1918 # Be careful to initialize this variable, since it used to be cached.
1919 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1920 ac_cv_exeext=
1921 # b.out is created by i960 compilers.
1922 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1923 do
1924   test -f "$ac_file" || continue
1925   case $ac_file in
1926     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1927         ;;
1928     conftest.$ac_ext )
1929         # This is the source file.
1930         ;;
1931     [ab].out )
1932         # We found the default executable, but exeext='' is most
1933         # certainly right.
1934         break;;
1935     *.* )
1936         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1937         # FIXME: I believe we export ac_cv_exeext for Libtool,
1938         # but it would be cool to find out if it's true.  Does anybody
1939         # maintain Libtool? --akim.
1940         export ac_cv_exeext
1941         break;;
1942     * )
1943         break;;
1944   esac
1945 done
1946 else
1947   echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: C compiler cannot create executables
1953 See \`config.log' for more details." >&2;}
1954    { (exit 77); exit 77; }; }
1955 fi
1956
1957 ac_exeext=$ac_cv_exeext
1958 echo "$as_me:$LINENO: result: $ac_file" >&5
1959 echo "${ECHO_T}$ac_file" >&6
1960
1961 # Check the compiler produces executables we can run.  If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1964 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1965 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1966 # If not cross compiling, check that we can run a simple program.
1967 if test "$cross_compiling" != yes; then
1968   if { ac_try='./$ac_file'
1969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1970   (eval $ac_try) 2>&5
1971   ac_status=$?
1972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973   (exit $ac_status); }; }; then
1974     cross_compiling=no
1975   else
1976     if test "$cross_compiling" = maybe; then
1977         cross_compiling=yes
1978     else
1979         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1980 If you meant to cross compile, use \`--host'.
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: cannot run C compiled programs.
1983 If you meant to cross compile, use \`--host'.
1984 See \`config.log' for more details." >&2;}
1985    { (exit 1); exit 1; }; }
1986     fi
1987   fi
1988 fi
1989 echo "$as_me:$LINENO: result: yes" >&5
1990 echo "${ECHO_T}yes" >&6
1991
1992 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1993 ac_clean_files=$ac_clean_files_save
1994 # Check the compiler produces executables we can run.  If not, either
1995 # the compiler is broken, or we cross compile.
1996 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1997 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1998 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1999 echo "${ECHO_T}$cross_compiling" >&6
2000
2001 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2002 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2004   (eval $ac_link) 2>&5
2005   ac_status=$?
2006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007   (exit $ac_status); }; then
2008   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2009 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2010 # work properly (i.e., refer to `conftest.exe'), while it won't with
2011 # `rm'.
2012 for ac_file in conftest.exe conftest conftest.*; do
2013   test -f "$ac_file" || continue
2014   case $ac_file in
2015     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2016     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2017           export ac_cv_exeext
2018           break;;
2019     * ) break;;
2020   esac
2021 done
2022 else
2023   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2024 See \`config.log' for more details." >&5
2025 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2026 See \`config.log' for more details." >&2;}
2027    { (exit 1); exit 1; }; }
2028 fi
2029
2030 rm -f conftest$ac_cv_exeext
2031 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2032 echo "${ECHO_T}$ac_cv_exeext" >&6
2033
2034 rm -f conftest.$ac_ext
2035 EXEEXT=$ac_cv_exeext
2036 ac_exeext=$EXEEXT
2037 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2038 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2039 if test "${ac_cv_objext+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   cat >conftest.$ac_ext <<_ACEOF
2043 /* confdefs.h.  */
2044 _ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h.  */
2048
2049 int
2050 main ()
2051 {
2052
2053   ;
2054   return 0;
2055 }
2056 _ACEOF
2057 rm -f conftest.o conftest.obj
2058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2059   (eval $ac_compile) 2>&5
2060   ac_status=$?
2061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062   (exit $ac_status); }; then
2063   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2064   case $ac_file in
2065     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2066     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2067        break;;
2068   esac
2069 done
2070 else
2071   echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2077 See \`config.log' for more details." >&2;}
2078    { (exit 1); exit 1; }; }
2079 fi
2080
2081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2082 fi
2083 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2084 echo "${ECHO_T}$ac_cv_objext" >&6
2085 OBJEXT=$ac_cv_objext
2086 ac_objext=$OBJEXT
2087 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2088 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2089 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2090   echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092   cat >conftest.$ac_ext <<_ACEOF
2093 /* confdefs.h.  */
2094 _ACEOF
2095 cat confdefs.h >>conftest.$ac_ext
2096 cat >>conftest.$ac_ext <<_ACEOF
2097 /* end confdefs.h.  */
2098
2099 int
2100 main ()
2101 {
2102 #ifndef __GNUC__
2103        choke me
2104 #endif
2105
2106   ;
2107   return 0;
2108 }
2109 _ACEOF
2110 rm -f conftest.$ac_objext
2111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2112   (eval $ac_compile) 2>conftest.er1
2113   ac_status=$?
2114   grep -v '^ *+' conftest.er1 >conftest.err
2115   rm -f conftest.er1
2116   cat conftest.err >&5
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); } &&
2119          { ac_try='test -z "$ac_c_werror_flag"
2120                          || test ! -s conftest.err'
2121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122   (eval $ac_try) 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }; } &&
2126          { ac_try='test -s conftest.$ac_objext'
2127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2128   (eval $ac_try) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }; }; then
2132   ac_compiler_gnu=yes
2133 else
2134   echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.$ac_ext >&5
2136
2137 ac_compiler_gnu=no
2138 fi
2139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2141
2142 fi
2143 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2144 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2145 GCC=`test $ac_compiler_gnu = yes && echo yes`
2146 ac_test_CFLAGS=${CFLAGS+set}
2147 ac_save_CFLAGS=$CFLAGS
2148 CFLAGS="-g"
2149 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2150 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2151 if test "${ac_cv_prog_cc_g+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h.  */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h.  */
2160
2161 int
2162 main ()
2163 {
2164
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171   (eval $ac_compile) 2>conftest.er1
2172   ac_status=$?
2173   grep -v '^ *+' conftest.er1 >conftest.err
2174   rm -f conftest.er1
2175   cat conftest.err >&5
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); } &&
2178          { ac_try='test -z "$ac_c_werror_flag"
2179                          || test ! -s conftest.err'
2180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181   (eval $ac_try) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); }; } &&
2185          { ac_try='test -s conftest.$ac_objext'
2186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187   (eval $ac_try) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }; }; then
2191   ac_cv_prog_cc_g=yes
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 ac_cv_prog_cc_g=no
2197 fi
2198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199 fi
2200 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2201 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2202 if test "$ac_test_CFLAGS" = set; then
2203   CFLAGS=$ac_save_CFLAGS
2204 elif test $ac_cv_prog_cc_g = yes; then
2205   if test "$GCC" = yes; then
2206     CFLAGS="-g -O2"
2207   else
2208     CFLAGS="-g"
2209   fi
2210 else
2211   if test "$GCC" = yes; then
2212     CFLAGS="-O2"
2213   else
2214     CFLAGS=
2215   fi
2216 fi
2217 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2218 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2219 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2220   echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222   ac_cv_prog_cc_stdc=no
2223 ac_save_CC=$CC
2224 cat >conftest.$ac_ext <<_ACEOF
2225 /* confdefs.h.  */
2226 _ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h.  */
2230 #include <stdarg.h>
2231 #include <stdio.h>
2232 #include <sys/types.h>
2233 #include <sys/stat.h>
2234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2235 struct buf { int x; };
2236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2237 static char *e (p, i)
2238      char **p;
2239      int i;
2240 {
2241   return p[i];
2242 }
2243 static char *f (char * (*g) (char **, int), char **p, ...)
2244 {
2245   char *s;
2246   va_list v;
2247   va_start (v,p);
2248   s = g (p, va_arg (v,int));
2249   va_end (v);
2250   return s;
2251 }
2252
2253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2254    function prototypes and stuff, but not '\xHH' hex character constants.
2255    These don't provoke an error unfortunately, instead are silently treated
2256    as 'x'.  The following induces an error, until -std1 is added to get
2257    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2258    array size at least.  It's necessary to write '\x00'==0 to get something
2259    that's true only with -std1.  */
2260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2261
2262 int test (int i, double x);
2263 struct s1 {int (*f) (int a);};
2264 struct s2 {int (*f) (double a);};
2265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2266 int argc;
2267 char **argv;
2268 int
2269 main ()
2270 {
2271 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2272   ;
2273   return 0;
2274 }
2275 _ACEOF
2276 # Don't try gcc -ansi; that turns off useful extensions and
2277 # breaks some systems' header files.
2278 # AIX                   -qlanglvl=ansi
2279 # Ultrix and OSF/1      -std1
2280 # HP-UX 10.20 and later -Ae
2281 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2282 # SVR4                  -Xc -D__EXTENSIONS__
2283 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2284 do
2285   CC="$ac_save_CC $ac_arg"
2286   rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288   (eval $ac_compile) 2>conftest.er1
2289   ac_status=$?
2290   grep -v '^ *+' conftest.er1 >conftest.err
2291   rm -f conftest.er1
2292   cat conftest.err >&5
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); } &&
2295          { ac_try='test -z "$ac_c_werror_flag"
2296                          || test ! -s conftest.err'
2297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298   (eval $ac_try) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); }; } &&
2302          { ac_try='test -s conftest.$ac_objext'
2303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304   (eval $ac_try) 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; }; then
2308   ac_cv_prog_cc_stdc=$ac_arg
2309 break
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 fi
2315 rm -f conftest.err conftest.$ac_objext
2316 done
2317 rm -f conftest.$ac_ext conftest.$ac_objext
2318 CC=$ac_save_CC
2319
2320 fi
2321
2322 case "x$ac_cv_prog_cc_stdc" in
2323   x|xno)
2324     echo "$as_me:$LINENO: result: none needed" >&5
2325 echo "${ECHO_T}none needed" >&6 ;;
2326   *)
2327     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2328 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2329     CC="$CC $ac_cv_prog_cc_stdc" ;;
2330 esac
2331
2332 # Some people use a C++ compiler to compile C.  Since we use `exit',
2333 # in C++ we need to declare it.  In case someone uses the same compiler
2334 # for both compiling C and C++ we need to have the C++ compiler decide
2335 # the declaration of exit, since it's the most demanding environment.
2336 cat >conftest.$ac_ext <<_ACEOF
2337 #ifndef __cplusplus
2338   choke me
2339 #endif
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343   (eval $ac_compile) 2>conftest.er1
2344   ac_status=$?
2345   grep -v '^ *+' conftest.er1 >conftest.err
2346   rm -f conftest.er1
2347   cat conftest.err >&5
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); } &&
2350          { ac_try='test -z "$ac_c_werror_flag"
2351                          || test ! -s conftest.err'
2352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353   (eval $ac_try) 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; } &&
2357          { ac_try='test -s conftest.$ac_objext'
2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359   (eval $ac_try) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; }; then
2363   for ac_declaration in \
2364    '' \
2365    'extern "C" void std::exit (int) throw (); using std::exit;' \
2366    'extern "C" void std::exit (int); using std::exit;' \
2367    'extern "C" void exit (int) throw ();' \
2368    'extern "C" void exit (int);' \
2369    'void exit (int);'
2370 do
2371   cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377 $ac_declaration
2378 #include <stdlib.h>
2379 int
2380 main ()
2381 {
2382 exit (42);
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389   (eval $ac_compile) 2>conftest.er1
2390   ac_status=$?
2391   grep -v '^ *+' conftest.er1 >conftest.err
2392   rm -f conftest.er1
2393   cat conftest.err >&5
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); } &&
2396          { ac_try='test -z "$ac_c_werror_flag"
2397                          || test ! -s conftest.err'
2398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399   (eval $ac_try) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; } &&
2403          { ac_try='test -s conftest.$ac_objext'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; }; then
2409   :
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 continue
2415 fi
2416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2417   cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h.  */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h.  */
2423 $ac_declaration
2424 int
2425 main ()
2426 {
2427 exit (42);
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434   (eval $ac_compile) 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -z "$ac_c_werror_flag"
2442                          || test ! -s conftest.err'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; } &&
2448          { ac_try='test -s conftest.$ac_objext'
2449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450   (eval $ac_try) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; }; then
2454   break
2455 else
2456   echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 fi
2460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461 done
2462 rm -f conftest*
2463 if test -n "$ac_declaration"; then
2464   echo '#ifdef __cplusplus' >>confdefs.h
2465   echo $ac_declaration      >>confdefs.h
2466   echo '#endif'             >>confdefs.h
2467 fi
2468
2469 else
2470   echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2472
2473 fi
2474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475 ac_ext=c
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2480
2481 if test -n "$ac_tool_prefix"; then
2482   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2484 echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_RANLIB+set}" = set; then
2487   echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489   if test -n "$RANLIB"; then
2490   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497   for ac_exec_ext in '' $ac_executable_extensions; do
2498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501     break 2
2502   fi
2503 done
2504 done
2505
2506 fi
2507 fi
2508 RANLIB=$ac_cv_prog_RANLIB
2509 if test -n "$RANLIB"; then
2510   echo "$as_me:$LINENO: result: $RANLIB" >&5
2511 echo "${ECHO_T}$RANLIB" >&6
2512 else
2513   echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6
2515 fi
2516
2517 fi
2518 if test -z "$ac_cv_prog_RANLIB"; then
2519   ac_ct_RANLIB=$RANLIB
2520   # Extract the first word of "ranlib", so it can be a program name with args.
2521 set dummy ranlib; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$ac_ct_RANLIB"; then
2528   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537     ac_cv_prog_ac_ct_RANLIB="ranlib"
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543
2544   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2545 fi
2546 fi
2547 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2548 if test -n "$ac_ct_RANLIB"; then
2549   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2550 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2551 else
2552   echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2554 fi
2555
2556   RANLIB=$ac_ct_RANLIB
2557 else
2558   RANLIB="$ac_cv_prog_RANLIB"
2559 fi
2560
2561
2562 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2563 for ac_prog in aclocal
2564 do
2565   # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2569 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2570   echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572   if test -n "$ACLOCAL"; then
2573   ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578   IFS=$as_save_IFS
2579   test -z "$as_dir" && as_dir=.
2580   for ac_exec_ext in '' $ac_executable_extensions; do
2581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582     ac_cv_prog_ACLOCAL="$ac_prog"
2583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584     break 2
2585   fi
2586 done
2587 done
2588
2589 fi
2590 fi
2591 ACLOCAL=$ac_cv_prog_ACLOCAL
2592 if test -n "$ACLOCAL"; then
2593   echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2594 echo "${ECHO_T}$ACLOCAL" >&6
2595 else
2596   echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6
2598 fi
2599
2600   test -n "$ACLOCAL" && break
2601 done
2602 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2603
2604 for ac_prog in autoconf
2605 do
2606   # Extract the first word of "$ac_prog", so it can be a program name with args.
2607 set dummy $ac_prog; ac_word=$2
2608 echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2610 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   if test -n "$AUTOCONF"; then
2614   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619   IFS=$as_save_IFS
2620   test -z "$as_dir" && as_dir=.
2621   for ac_exec_ext in '' $ac_executable_extensions; do
2622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623     ac_cv_prog_AUTOCONF="$ac_prog"
2624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625     break 2
2626   fi
2627 done
2628 done
2629
2630 fi
2631 fi
2632 AUTOCONF=$ac_cv_prog_AUTOCONF
2633 if test -n "$AUTOCONF"; then
2634   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2635 echo "${ECHO_T}$AUTOCONF" >&6
2636 else
2637   echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6
2639 fi
2640
2641   test -n "$AUTOCONF" && break
2642 done
2643 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2644
2645 for ac_prog in autoheader
2646 do
2647   # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   if test -n "$AUTOHEADER"; then
2655   ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662   for ac_exec_ext in '' $ac_executable_extensions; do
2663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664     ac_cv_prog_AUTOHEADER="$ac_prog"
2665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666     break 2
2667   fi
2668 done
2669 done
2670
2671 fi
2672 fi
2673 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2674 if test -n "$AUTOHEADER"; then
2675   echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2676 echo "${ECHO_T}$AUTOHEADER" >&6
2677 else
2678   echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2680 fi
2681
2682   test -n "$AUTOHEADER" && break
2683 done
2684 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2685
2686
2687 # Figure out what compiler warnings we can enable.
2688 # See config/warnings.m4 for details.
2689
2690
2691 WARN_CFLAGS=
2692 save_CFLAGS="$CFLAGS"
2693 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2694                           -Wmissing-prototypes -Wold-style-definition; do
2695   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2696
2697   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2698 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2699 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2700   echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702   CFLAGS="$option"
2703     cat >conftest.$ac_ext <<_ACEOF
2704 /* confdefs.h.  */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h.  */
2709
2710 int
2711 main ()
2712 {
2713
2714   ;
2715   return 0;
2716 }
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720   (eval $ac_compile) 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } &&
2727          { ac_try='test -z "$ac_c_werror_flag"
2728                          || test ! -s conftest.err'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; }; then
2740   eval "$as_acx_Woption=yes"
2741 else
2742   echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745 eval "$as_acx_Woption=no"
2746 fi
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748
2749 fi
2750 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2751 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2752   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2753   WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2754 fi
2755
2756   done
2757 CFLAGS="$save_CFLAGS"
2758
2759 WARN_PEDANTIC=
2760 if test "$GCC" = yes; then
2761   echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2762 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2763 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766   save_CFLAGS="$CFLAGS"
2767 CFLAGS="-pedantic -Wno-long-long"
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774
2775 int
2776 main ()
2777 {
2778
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_c_werror_flag"
2793                          || test ! -s conftest.err'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; } &&
2799          { ac_try='test -s conftest.$ac_objext'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; }; then
2805   acx_cv_prog_cc_pedantic__Wno_long_long=yes
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810 acx_cv_prog_cc_pedantic__Wno_long_long=no
2811 fi
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 CFLAGS="$save_CFLAGS"
2814 fi
2815 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2816 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2817 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2818   WARN_PEDANTIC="-pedantic -Wno-long-long"
2819 fi
2820
2821
2822 fi
2823
2824
2825
2826 # Only enable with --enable-werror-always until existing warnings are
2827 # corrected.
2828 WERROR=
2829 # Check whether --enable-werror-always or --disable-werror-always was given.
2830 if test "${enable_werror_always+set}" = set; then
2831   enableval="$enable_werror_always"
2832
2833 else
2834   enable_werror_always=no
2835 fi;
2836 if test $enable_werror_always = yes; then
2837   WERROR=-Werror
2838 fi
2839
2840
2841
2842 # Dependency checking.
2843 rm -rf .tst 2>/dev/null
2844 mkdir .tst 2>/dev/null
2845 if test -d .tst; then
2846   am__leading_dot=.
2847 else
2848   am__leading_dot=_
2849 fi
2850 rmdir .tst 2>/dev/null
2851
2852 DEPDIR="${am__leading_dot}deps"
2853
2854           ac_config_commands="$ac_config_commands depdir"
2855
2856
2857 depcc="$CC"   am_compiler_list=
2858
2859 am_depcomp=$ac_aux_dir/depcomp
2860 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2861 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2862 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2863   echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865   if test -f "$am_depcomp"; then
2866   # We make a subdir and do the tests there.  Otherwise we can end up
2867   # making bogus files that we don't know about and never remove.  For
2868   # instance it was reported that on HP-UX the gcc test will end up
2869   # making a dummy file named `D' -- because `-MD' means `put the output
2870   # in D'.
2871   mkdir conftest.dir
2872   # Copy depcomp to subdir because otherwise we won't find it if we're
2873   # using a relative directory.
2874   cp "$am_depcomp" conftest.dir
2875   cd conftest.dir
2876   # We will build objects and dependencies in a subdirectory because
2877   # it helps to detect inapplicable dependency modes.  For instance
2878   # both Tru64's cc and ICC support -MD to output dependencies as a
2879   # side effect of compilation, but ICC will put the dependencies in
2880   # the current directory while Tru64 will put them in the object
2881   # directory.
2882   mkdir sub
2883
2884   am_cv_CC_dependencies_compiler_type=none
2885   if test "$am_compiler_list" = ""; then
2886      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2887   fi
2888   for depmode in $am_compiler_list; do
2889     if test $depmode = none; then break; fi
2890
2891     echo "$as_me:$LINENO: trying $depmode" >&5
2892     # Setup a source with many dependencies, because some compilers
2893     # like to wrap large dependency lists on column 80 (with \), and
2894     # we should not choose a depcomp mode which is confused by this.
2895     #
2896     # We need to recreate these files for each test, as the compiler may
2897     # overwrite some of them when testing with obscure command lines.
2898     # This happens at least with the AIX C compiler.
2899     : > sub/conftest.c
2900     for i in 1 2 3 4 5 6; do
2901       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2902       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2903       # Solaris 8's {/usr,}/bin/sh.
2904       touch sub/conftst$i.h
2905     done
2906     echo "include sub/conftest.Po" > confmf
2907
2908     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2909     # mode.  It turns out that the SunPro C++ compiler does not properly
2910     # handle `-M -o', and we need to detect this.
2911     depcmd="depmode=$depmode \
2912        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2913        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2914        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
2915     echo "| $depcmd" | sed -e 's/  */ /g' >&5
2916     if env $depcmd > conftest.err 2>&1 &&
2917        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
2918        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
2919        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
2920       # icc doesn't choke on unknown options, it will just issue warnings
2921       # or remarks (even with -Werror).  So we grep stderr for any message
2922       # that says an option was ignored or not supported.
2923       # When given -MP, icc 7.0 and 7.1 complain thusly:
2924       #   icc: Command line warning: ignoring option '-M'; no argument required
2925       # The diagnosis changed in icc 8.0:
2926       #   icc: Command line remark: option '-MP' not supported
2927       if (grep 'ignoring option' conftest.err ||
2928           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2929         am_cv_CC_dependencies_compiler_type=$depmode
2930         echo "$as_me:$LINENO: success" >&5
2931         break
2932       fi
2933     fi
2934     echo "$as_me:$LINENO: failure, diagnostics are:" >&5
2935     sed -e 's/^/| /' < conftest.err >&5
2936   done
2937
2938   cd ..
2939   rm -rf conftest.dir
2940 else
2941   am_cv_CC_dependencies_compiler_type=none
2942 fi
2943
2944 fi
2945 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2946 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2947 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
2948 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
2949 echo "$as_me: error: no usable dependency style found" >&2;}
2950    { (exit 1); exit 1; }; }
2951 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2952
2953 fi
2954
2955
2956 # Checks for header files.
2957 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2958 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2959 if test "${ac_cv_header_time+set}" = set; then
2960   echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962   cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h.  */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h.  */
2968 #include <sys/types.h>
2969 #include <sys/time.h>
2970 #include <time.h>
2971
2972 int
2973 main ()
2974 {
2975 if ((struct tm *) 0)
2976 return 0;
2977   ;
2978   return 0;
2979 }
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983   (eval $ac_compile) 2>conftest.er1
2984   ac_status=$?
2985   grep -v '^ *+' conftest.er1 >conftest.err
2986   rm -f conftest.er1
2987   cat conftest.err >&5
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } &&
2990          { ac_try='test -z "$ac_c_werror_flag"
2991                          || test ! -s conftest.err'
2992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993   (eval $ac_try) 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; } &&
2997          { ac_try='test -s conftest.$ac_objext'
2998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999   (eval $ac_try) 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   ac_cv_header_time=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 ac_cv_header_time=no
3009 fi
3010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3011 fi
3012 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3013 echo "${ECHO_T}$ac_cv_header_time" >&6
3014 if test $ac_cv_header_time = yes; then
3015
3016 cat >>confdefs.h <<\_ACEOF
3017 #define TIME_WITH_SYS_TIME 1
3018 _ACEOF
3019
3020 fi
3021
3022 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
3023 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
3024 if test "${gcc_cv_header_string+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033 #include <string.h>
3034 #include <strings.h>
3035 int
3036 main ()
3037 {
3038
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3045   (eval $ac_compile) 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } &&
3052          { ac_try='test -z "$ac_c_werror_flag"
3053                          || test ! -s conftest.err'
3054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055   (eval $ac_try) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061   (eval $ac_try) 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }; }; then
3065   gcc_cv_header_string=yes
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 gcc_cv_header_string=no
3071 fi
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073 fi
3074 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
3075 echo "${ECHO_T}$gcc_cv_header_string" >&6
3076 if test $gcc_cv_header_string = yes; then
3077
3078 cat >>confdefs.h <<\_ACEOF
3079 #define STRING_WITH_STRINGS 1
3080 _ACEOF
3081
3082 fi
3083
3084 ac_ext=c
3085 ac_cpp='$CPP $CPPFLAGS'
3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3090 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3091 # On Suns, sometimes $CPP names a directory.
3092 if test -n "$CPP" && test -d "$CPP"; then
3093   CPP=
3094 fi
3095 if test -z "$CPP"; then
3096   if test "${ac_cv_prog_CPP+set}" = set; then
3097   echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099       # Double quotes because CPP needs to be expanded
3100     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3101     do
3102       ac_preproc_ok=false
3103 for ac_c_preproc_warn_flag in '' yes
3104 do
3105   # Use a header file that comes with gcc, so configuring glibc
3106   # with a fresh cross-compiler works.
3107   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3108   # <limits.h> exists even on freestanding compilers.
3109   # On the NeXT, cc -E runs the code through the compiler's parser,
3110   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
3118 # include <limits.h>
3119 #else
3120 # include <assert.h>
3121 #endif
3122                      Syntax error
3123 _ACEOF
3124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
3129   cat conftest.err >&5
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } >/dev/null; then
3132   if test -s conftest.err; then
3133     ac_cpp_err=$ac_c_preproc_warn_flag
3134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135   else
3136     ac_cpp_err=
3137   fi
3138 else
3139   ac_cpp_err=yes
3140 fi
3141 if test -z "$ac_cpp_err"; then
3142   :
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147   # Broken: fails on valid input.
3148 continue
3149 fi
3150 rm -f conftest.err conftest.$ac_ext
3151
3152   # OK, works on sane cases.  Now check whether non-existent headers
3153   # can be detected and how.
3154   cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h.  */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h.  */
3160 #include <ac_nonexistent.h>
3161 _ACEOF
3162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3164   ac_status=$?
3165   grep -v '^ *+' conftest.er1 >conftest.err
3166   rm -f conftest.er1
3167   cat conftest.err >&5
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); } >/dev/null; then
3170   if test -s conftest.err; then
3171     ac_cpp_err=$ac_c_preproc_warn_flag
3172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3173   else
3174     ac_cpp_err=
3175   fi
3176 else
3177   ac_cpp_err=yes
3178 fi
3179 if test -z "$ac_cpp_err"; then
3180   # Broken: success on invalid input.
3181 continue
3182 else
3183   echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186   # Passes both tests.
3187 ac_preproc_ok=:
3188 break
3189 fi
3190 rm -f conftest.err conftest.$ac_ext
3191
3192 done
3193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3194 rm -f conftest.err conftest.$ac_ext
3195 if $ac_preproc_ok; then
3196   break
3197 fi
3198
3199     done
3200     ac_cv_prog_CPP=$CPP
3201
3202 fi
3203   CPP=$ac_cv_prog_CPP
3204 else
3205   ac_cv_prog_CPP=$CPP
3206 fi
3207 echo "$as_me:$LINENO: result: $CPP" >&5
3208 echo "${ECHO_T}$CPP" >&6
3209 ac_preproc_ok=false
3210 for ac_c_preproc_warn_flag in '' yes
3211 do
3212   # Use a header file that comes with gcc, so configuring glibc
3213   # with a fresh cross-compiler works.
3214   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3215   # <limits.h> exists even on freestanding compilers.
3216   # On the NeXT, cc -E runs the code through the compiler's parser,
3217   # not just through cpp. "Syntax error" is here to catch this case.
3218   cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h.  */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h.  */
3224 #ifdef __STDC__
3225 # include <limits.h>
3226 #else
3227 # include <assert.h>
3228 #endif
3229                      Syntax error
3230 _ACEOF
3231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } >/dev/null; then
3239   if test -s conftest.err; then
3240     ac_cpp_err=$ac_c_preproc_warn_flag
3241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242   else
3243     ac_cpp_err=
3244   fi
3245 else
3246   ac_cpp_err=yes
3247 fi
3248 if test -z "$ac_cpp_err"; then
3249   :
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254   # Broken: fails on valid input.
3255 continue
3256 fi
3257 rm -f conftest.err conftest.$ac_ext
3258
3259   # OK, works on sane cases.  Now check whether non-existent headers
3260   # can be detected and how.
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #include <ac_nonexistent.h>
3268 _ACEOF
3269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3271   ac_status=$?
3272   grep -v '^ *+' conftest.er1 >conftest.err
3273   rm -f conftest.er1
3274   cat conftest.err >&5
3275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276   (exit $ac_status); } >/dev/null; then
3277   if test -s conftest.err; then
3278     ac_cpp_err=$ac_c_preproc_warn_flag
3279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3280   else
3281     ac_cpp_err=
3282   fi
3283 else
3284   ac_cpp_err=yes
3285 fi
3286 if test -z "$ac_cpp_err"; then
3287   # Broken: success on invalid input.
3288 continue
3289 else
3290   echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293   # Passes both tests.
3294 ac_preproc_ok=:
3295 break
3296 fi
3297 rm -f conftest.err conftest.$ac_ext
3298
3299 done
3300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3301 rm -f conftest.err conftest.$ac_ext
3302 if $ac_preproc_ok; then
3303   :
3304 else
3305   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3306 See \`config.log' for more details." >&5
3307 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3308 See \`config.log' for more details." >&2;}
3309    { (exit 1); exit 1; }; }
3310 fi
3311
3312 ac_ext=c
3313 ac_cpp='$CPP $CPPFLAGS'
3314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317
3318
3319 echo "$as_me:$LINENO: checking for egrep" >&5
3320 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3321 if test "${ac_cv_prog_egrep+set}" = set; then
3322   echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3325     then ac_cv_prog_egrep='grep -E'
3326     else ac_cv_prog_egrep='egrep'
3327     fi
3328 fi
3329 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3330 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3331  EGREP=$ac_cv_prog_egrep
3332
3333
3334 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3335 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3336 if test "${ac_cv_header_stdc+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339   cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h.  */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h.  */
3345 #include <stdlib.h>
3346 #include <stdarg.h>
3347 #include <string.h>
3348 #include <float.h>
3349
3350 int
3351 main ()
3352 {
3353
3354   ;
3355   return 0;
3356 }
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360   (eval $ac_compile) 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } &&
3367          { ac_try='test -z "$ac_c_werror_flag"
3368                          || test ! -s conftest.err'
3369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370   (eval $ac_try) 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); }; } &&
3374          { ac_try='test -s conftest.$ac_objext'
3375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376   (eval $ac_try) 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }; }; then
3380   ac_cv_header_stdc=yes
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385 ac_cv_header_stdc=no
3386 fi
3387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3388
3389 if test $ac_cv_header_stdc = yes; then
3390   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3391   cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h.  */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h.  */
3397 #include <string.h>
3398
3399 _ACEOF
3400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3401   $EGREP "memchr" >/dev/null 2>&1; then
3402   :
3403 else
3404   ac_cv_header_stdc=no
3405 fi
3406 rm -f conftest*
3407
3408 fi
3409
3410 if test $ac_cv_header_stdc = yes; then
3411   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3412   cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 #include <stdlib.h>
3419
3420 _ACEOF
3421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422   $EGREP "free" >/dev/null 2>&1; then
3423   :
3424 else
3425   ac_cv_header_stdc=no
3426 fi
3427 rm -f conftest*
3428
3429 fi
3430
3431 if test $ac_cv_header_stdc = yes; then
3432   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3433   if test "$cross_compiling" = yes; then
3434   :
3435 else
3436   cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h.  */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h.  */
3442 #include <ctype.h>
3443 #if ((' ' & 0x0FF) == 0x020)
3444 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3445 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3446 #else
3447 # define ISLOWER(c) \
3448                    (('a' <= (c) && (c) <= 'i') \
3449                      || ('j' <= (c) && (c) <= 'r') \
3450                      || ('s' <= (c) && (c) <= 'z'))
3451 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3452 #endif
3453
3454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3455 int
3456 main ()
3457 {
3458   int i;
3459   for (i = 0; i < 256; i++)
3460     if (XOR (islower (i), ISLOWER (i))
3461         || toupper (i) != TOUPPER (i))
3462       exit(2);
3463   exit (0);
3464 }
3465 _ACEOF
3466 rm -f conftest$ac_exeext
3467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3468   (eval $ac_link) 2>&5
3469   ac_status=$?
3470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473   (eval $ac_try) 2>&5
3474   ac_status=$?
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); }; }; then
3477   :
3478 else
3479   echo "$as_me: program exited with status $ac_status" >&5
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483 ( exit $ac_status )
3484 ac_cv_header_stdc=no
3485 fi
3486 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3487 fi
3488 fi
3489 fi
3490 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3491 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3492 if test $ac_cv_header_stdc = yes; then
3493
3494 cat >>confdefs.h <<\_ACEOF
3495 #define STDC_HEADERS 1
3496 _ACEOF
3497
3498 fi
3499
3500 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3511                   inttypes.h stdint.h unistd.h
3512 do
3513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3514 echo "$as_me:$LINENO: checking for $ac_header" >&5
3515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h.  */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h.  */
3525 $ac_includes_default
3526
3527 #include <$ac_header>
3528 _ACEOF
3529 rm -f conftest.$ac_objext
3530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531   (eval $ac_compile) 2>conftest.er1
3532   ac_status=$?
3533   grep -v '^ *+' conftest.er1 >conftest.err
3534   rm -f conftest.er1
3535   cat conftest.err >&5
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); } &&
3538          { ac_try='test -z "$ac_c_werror_flag"
3539                          || test ! -s conftest.err'
3540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541   (eval $ac_try) 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }; } &&
3545          { ac_try='test -s conftest.$ac_objext'
3546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547   (eval $ac_try) 2>&5
3548   ac_status=$?
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); }; }; then
3551   eval "$as_ac_Header=yes"
3552 else
3553   echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 eval "$as_ac_Header=no"
3557 fi
3558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3559 fi
3560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3563   cat >>confdefs.h <<_ACEOF
3564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3565 _ACEOF
3566
3567 fi
3568
3569 done
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582 for ac_header in iconv.h locale.h fcntl.h limits.h stddef.h \
3583         stdlib.h strings.h string.h sys/file.h unistd.h
3584 do
3585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3587   echo "$as_me:$LINENO: checking for $ac_header" >&5
3588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 fi
3592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3594 else
3595   # Is the header compilable?
3596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604 $ac_includes_default
3605 #include <$ac_header>
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609   (eval $ac_compile) 2>conftest.er1
3610   ac_status=$?
3611   grep -v '^ *+' conftest.er1 >conftest.err
3612   rm -f conftest.er1
3613   cat conftest.err >&5
3614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615   (exit $ac_status); } &&
3616          { ac_try='test -z "$ac_c_werror_flag"
3617                          || test ! -s conftest.err'
3618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619   (eval $ac_try) 2>&5
3620   ac_status=$?
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); }; } &&
3623          { ac_try='test -s conftest.$ac_objext'
3624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625   (eval $ac_try) 2>&5
3626   ac_status=$?
3627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628   (exit $ac_status); }; }; then
3629   ac_header_compiler=yes
3630 else
3631   echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634 ac_header_compiler=no
3635 fi
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3638 echo "${ECHO_T}$ac_header_compiler" >&6
3639
3640 # Is the header present?
3641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h.  */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h.  */
3649 #include <$ac_header>
3650 _ACEOF
3651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3653   ac_status=$?
3654   grep -v '^ *+' conftest.er1 >conftest.err
3655   rm -f conftest.er1
3656   cat conftest.err >&5
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); } >/dev/null; then
3659   if test -s conftest.err; then
3660     ac_cpp_err=$ac_c_preproc_warn_flag
3661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3662   else
3663     ac_cpp_err=
3664   fi
3665 else
3666   ac_cpp_err=yes
3667 fi
3668 if test -z "$ac_cpp_err"; then
3669   ac_header_preproc=yes
3670 else
3671   echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3673
3674   ac_header_preproc=no
3675 fi
3676 rm -f conftest.err conftest.$ac_ext
3677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3678 echo "${ECHO_T}$ac_header_preproc" >&6
3679
3680 # So?  What about this header?
3681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3682   yes:no: )
3683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3687     ac_header_preproc=yes
3688     ;;
3689   no:yes:* )
3690     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3692     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3693 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3694     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3696     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3697 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3700     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3702     (
3703       cat <<\_ASBOX
3704 ## ----------------------------------- ##
3705 ## Report this to gcc-bugs@gcc.gnu.org ##
3706 ## ----------------------------------- ##
3707 _ASBOX
3708     ) |
3709       sed "s/^/$as_me: WARNING:     /" >&2
3710     ;;
3711 esac
3712 echo "$as_me:$LINENO: checking for $ac_header" >&5
3713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   eval "$as_ac_Header=\$ac_header_preproc"
3718 fi
3719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3721
3722 fi
3723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3724   cat >>confdefs.h <<_ACEOF
3725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3726 _ACEOF
3727
3728 fi
3729
3730 done
3731
3732
3733 # Checks for typedefs, structures, and compiler characteristics.
3734 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3735 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3736 if test "${ac_cv_c_const+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h.  */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h.  */
3745
3746 int
3747 main ()
3748 {
3749 /* FIXME: Include the comments suggested by Paul. */
3750 #ifndef __cplusplus
3751   /* Ultrix mips cc rejects this.  */
3752   typedef int charset[2];
3753   const charset x;
3754   /* SunOS 4.1.1 cc rejects this.  */
3755   char const *const *ccp;
3756   char **p;
3757   /* NEC SVR4.0.2 mips cc rejects this.  */
3758   struct point {int x, y;};
3759   static struct point const zero = {0,0};
3760   /* AIX XL C 1.02.0.0 rejects this.
3761      It does not let you subtract one const X* pointer from another in
3762      an arm of an if-expression whose if-part is not a constant
3763      expression */
3764   const char *g = "string";
3765   ccp = &g + (g ? g-g : 0);
3766   /* HPUX 7.0 cc rejects these. */
3767   ++ccp;
3768   p = (char**) ccp;
3769   ccp = (char const *const *) p;
3770   { /* SCO 3.2v4 cc rejects this.  */
3771     char *t;
3772     char const *s = 0 ? (char *) 0 : (char const *) 0;
3773
3774     *t++ = 0;
3775   }
3776   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3777     int x[] = {25, 17};
3778     const int *foo = &x[0];
3779     ++foo;
3780   }
3781   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3782     typedef const int *iptr;
3783     iptr p = 0;
3784     ++p;
3785   }
3786   { /* AIX XL C 1.02.0.0 rejects this saying
3787        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3788     struct s { int j; const int *ap[3]; };
3789     struct s *b; b->j = 5;
3790   }
3791   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3792     const int foo = 10;
3793   }
3794 #endif
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802   (eval $ac_compile) 2>conftest.er1
3803   ac_status=$?
3804   grep -v '^ *+' conftest.er1 >conftest.err
3805   rm -f conftest.er1
3806   cat conftest.err >&5
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); } &&
3809          { ac_try='test -z "$ac_c_werror_flag"
3810                          || test ! -s conftest.err'
3811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); }; } &&
3816          { ac_try='test -s conftest.$ac_objext'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822   ac_cv_c_const=yes
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 ac_cv_c_const=no
3828 fi
3829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 fi
3831 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3832 echo "${ECHO_T}$ac_cv_c_const" >&6
3833 if test $ac_cv_c_const = no; then
3834
3835 cat >>confdefs.h <<\_ACEOF
3836 #define const
3837 _ACEOF
3838
3839 fi
3840
3841 echo "$as_me:$LINENO: checking for inline" >&5
3842 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3843 if test "${ac_cv_c_inline+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846   ac_cv_c_inline=no
3847 for ac_kw in inline __inline__ __inline; do
3848   cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854 #ifndef __cplusplus
3855 typedef int foo_t;
3856 static $ac_kw foo_t static_foo () {return 0; }
3857 $ac_kw foo_t foo () {return 0; }
3858 #endif
3859
3860 _ACEOF
3861 rm -f conftest.$ac_objext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863   (eval $ac_compile) 2>conftest.er1
3864   ac_status=$?
3865   grep -v '^ *+' conftest.er1 >conftest.err
3866   rm -f conftest.er1
3867   cat conftest.err >&5
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } &&
3870          { ac_try='test -z "$ac_c_werror_flag"
3871                          || test ! -s conftest.err'
3872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873   (eval $ac_try) 2>&5
3874   ac_status=$?
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); }; } &&
3877          { ac_try='test -s conftest.$ac_objext'
3878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879   (eval $ac_try) 2>&5
3880   ac_status=$?
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); }; }; then
3883   ac_cv_c_inline=$ac_kw; break
3884 else
3885   echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888 fi
3889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3890 done
3891
3892 fi
3893 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3894 echo "${ECHO_T}$ac_cv_c_inline" >&6
3895
3896
3897 case $ac_cv_c_inline in
3898   inline | yes) ;;
3899   *)
3900     case $ac_cv_c_inline in
3901       no) ac_val=;;
3902       *) ac_val=$ac_cv_c_inline;;
3903     esac
3904     cat >>confdefs.h <<_ACEOF
3905 #ifndef __cplusplus
3906 #define inline $ac_val
3907 #endif
3908 _ACEOF
3909     ;;
3910 esac
3911
3912 echo "$as_me:$LINENO: checking for obstacks" >&5
3913 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3914 if test "${ac_cv_func_obstack+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h.  */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h.  */
3923 #include "obstack.h"
3924 int
3925 main ()
3926 {
3927 struct obstack *mem; obstack_free(mem,(char *) 0)
3928   ;
3929   return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.$ac_objext conftest$ac_exeext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934   (eval $ac_link) 2>conftest.er1
3935   ac_status=$?
3936   grep -v '^ *+' conftest.er1 >conftest.err
3937   rm -f conftest.er1
3938   cat conftest.err >&5
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); } &&
3941          { ac_try='test -z "$ac_c_werror_flag"
3942                          || test ! -s conftest.err'
3943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944   (eval $ac_try) 2>&5
3945   ac_status=$?
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); }; } &&
3948          { ac_try='test -s conftest$ac_exeext'
3949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950   (eval $ac_try) 2>&5
3951   ac_status=$?
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); }; }; then
3954   ac_cv_func_obstack=yes
3955 else
3956   echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959 ac_cv_func_obstack=no
3960 fi
3961 rm -f conftest.err conftest.$ac_objext \
3962       conftest$ac_exeext conftest.$ac_ext
3963 fi
3964 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
3965 echo "${ECHO_T}$ac_cv_func_obstack" >&6
3966 if test $ac_cv_func_obstack = yes; then
3967
3968 cat >>confdefs.h <<\_ACEOF
3969 #define HAVE_OBSTACK 1
3970 _ACEOF
3971
3972 else
3973   case $LIBOBJS in
3974     "obstack.$ac_objext"   | \
3975   *" obstack.$ac_objext"   | \
3976     "obstack.$ac_objext "* | \
3977   *" obstack.$ac_objext "* ) ;;
3978   *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
3979 esac
3980
3981 fi
3982
3983 echo "$as_me:$LINENO: checking for off_t" >&5
3984 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3985 if test "${ac_cv_type_off_t+set}" = set; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h.  */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h.  */
3994 $ac_includes_default
3995 int
3996 main ()
3997 {
3998 if ((off_t *) 0)
3999   return 0;
4000 if (sizeof (off_t))
4001   return 0;
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.$ac_objext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008   (eval $ac_compile) 2>conftest.er1
4009   ac_status=$?
4010   grep -v '^ *+' conftest.er1 >conftest.err
4011   rm -f conftest.er1
4012   cat conftest.err >&5
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } &&
4015          { ac_try='test -z "$ac_c_werror_flag"
4016                          || test ! -s conftest.err'
4017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018   (eval $ac_try) 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); }; } &&
4022          { ac_try='test -s conftest.$ac_objext'
4023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024   (eval $ac_try) 2>&5
4025   ac_status=$?
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); }; }; then
4028   ac_cv_type_off_t=yes
4029 else
4030   echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 ac_cv_type_off_t=no
4034 fi
4035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4036 fi
4037 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4038 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4039 if test $ac_cv_type_off_t = yes; then
4040   :
4041 else
4042
4043 cat >>confdefs.h <<_ACEOF
4044 #define off_t long
4045 _ACEOF
4046
4047 fi
4048
4049 echo "$as_me:$LINENO: checking for size_t" >&5
4050 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4051 if test "${ac_cv_type_size_t+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h.  */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h.  */
4060 $ac_includes_default
4061 int
4062 main ()
4063 {
4064 if ((size_t *) 0)
4065   return 0;
4066 if (sizeof (size_t))
4067   return 0;
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074   (eval $ac_compile) 2>conftest.er1
4075   ac_status=$?
4076   grep -v '^ *+' conftest.er1 >conftest.err
4077   rm -f conftest.er1
4078   cat conftest.err >&5
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); } &&
4081          { ac_try='test -z "$ac_c_werror_flag"
4082                          || test ! -s conftest.err'
4083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084   (eval $ac_try) 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; } &&
4088          { ac_try='test -s conftest.$ac_objext'
4089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090   (eval $ac_try) 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); }; }; then
4094   ac_cv_type_size_t=yes
4095 else
4096   echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099 ac_cv_type_size_t=no
4100 fi
4101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4102 fi
4103 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4104 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4105 if test $ac_cv_type_size_t = yes; then
4106   :
4107 else
4108
4109 cat >>confdefs.h <<_ACEOF
4110 #define size_t unsigned
4111 _ACEOF
4112
4113 fi
4114
4115 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4116 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4117 if test "${ac_cv_struct_tm+set}" = set; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h.  */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h.  */
4126 #include <sys/types.h>
4127 #include <time.h>
4128
4129 int
4130 main ()
4131 {
4132 struct tm *tp; tp->tm_sec;
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 rm -f conftest.$ac_objext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4139   (eval $ac_compile) 2>conftest.er1
4140   ac_status=$?
4141   grep -v '^ *+' conftest.er1 >conftest.err
4142   rm -f conftest.er1
4143   cat conftest.err >&5
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); } &&
4146          { ac_try='test -z "$ac_c_werror_flag"
4147                          || test ! -s conftest.err'
4148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149   (eval $ac_try) 2>&5
4150   ac_status=$?
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); }; } &&
4153          { ac_try='test -s conftest.$ac_objext'
4154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155   (eval $ac_try) 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); }; }; then
4159   ac_cv_struct_tm=time.h
4160 else
4161   echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164 ac_cv_struct_tm=sys/time.h
4165 fi
4166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4167 fi
4168 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4169 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4170 if test $ac_cv_struct_tm = sys/time.h; then
4171
4172 cat >>confdefs.h <<\_ACEOF
4173 #define TM_IN_SYS_TIME 1
4174 _ACEOF
4175
4176 fi
4177
4178 echo "$as_me:$LINENO: checking for int" >&5
4179 echo $ECHO_N "checking for int... $ECHO_C" >&6
4180 if test "${ac_cv_type_int+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h.  */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h.  */
4189 $ac_includes_default
4190 int
4191 main ()
4192 {
4193 if ((int *) 0)
4194   return 0;
4195 if (sizeof (int))
4196   return 0;
4197   ;
4198   return 0;
4199 }
4200 _ACEOF
4201 rm -f conftest.$ac_objext
4202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203   (eval $ac_compile) 2>conftest.er1
4204   ac_status=$?
4205   grep -v '^ *+' conftest.er1 >conftest.err
4206   rm -f conftest.er1
4207   cat conftest.err >&5
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); } &&
4210          { ac_try='test -z "$ac_c_werror_flag"
4211                          || test ! -s conftest.err'
4212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213   (eval $ac_try) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; } &&
4217          { ac_try='test -s conftest.$ac_objext'
4218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219   (eval $ac_try) 2>&5
4220   ac_status=$?
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); }; }; then
4223   ac_cv_type_int=yes
4224 else
4225   echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 ac_cv_type_int=no
4229 fi
4230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4231 fi
4232 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4233 echo "${ECHO_T}$ac_cv_type_int" >&6
4234
4235 echo "$as_me:$LINENO: checking size of int" >&5
4236 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4237 if test "${ac_cv_sizeof_int+set}" = set; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   if test "$ac_cv_type_int" = yes; then
4241   # The cast to unsigned long works around a bug in the HP C Compiler
4242   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4243   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4244   # This bug is HP SR number 8606223364.
4245   if test "$cross_compiling" = yes; then
4246   # Depending upon the size, compute the lo and hi bounds.
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 $ac_includes_default
4254 int
4255 main ()
4256 {
4257 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4258 test_array [0] = 0
4259
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 rm -f conftest.$ac_objext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4266   (eval $ac_compile) 2>conftest.er1
4267   ac_status=$?
4268   grep -v '^ *+' conftest.er1 >conftest.err
4269   rm -f conftest.er1
4270   cat conftest.err >&5
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); } &&
4273          { ac_try='test -z "$ac_c_werror_flag"
4274                          || test ! -s conftest.err'
4275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276   (eval $ac_try) 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }; } &&
4280          { ac_try='test -s conftest.$ac_objext'
4281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282   (eval $ac_try) 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); }; }; then
4286   ac_lo=0 ac_mid=0
4287   while :; do
4288     cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h.  */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h.  */
4294 $ac_includes_default
4295 int
4296 main ()
4297 {
4298 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4299 test_array [0] = 0
4300
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307   (eval $ac_compile) 2>conftest.er1
4308   ac_status=$?
4309   grep -v '^ *+' conftest.er1 >conftest.err
4310   rm -f conftest.er1
4311   cat conftest.err >&5
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } &&
4314          { ac_try='test -z "$ac_c_werror_flag"
4315                          || test ! -s conftest.err'
4316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317   (eval $ac_try) 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); }; } &&
4321          { ac_try='test -s conftest.$ac_objext'
4322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323   (eval $ac_try) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; }; then
4327   ac_hi=$ac_mid; break
4328 else
4329   echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 ac_lo=`expr $ac_mid + 1`
4333                     if test $ac_lo -le $ac_mid; then
4334                       ac_lo= ac_hi=
4335                       break
4336                     fi
4337                     ac_mid=`expr 2 '*' $ac_mid + 1`
4338 fi
4339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4340   done
4341 else
4342   echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h.  */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h.  */
4351 $ac_includes_default
4352 int
4353 main ()
4354 {
4355 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4356 test_array [0] = 0
4357
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364   (eval $ac_compile) 2>conftest.er1
4365   ac_status=$?
4366   grep -v '^ *+' conftest.er1 >conftest.err
4367   rm -f conftest.er1
4368   cat conftest.err >&5
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } &&
4371          { ac_try='test -z "$ac_c_werror_flag"
4372                          || test ! -s conftest.err'
4373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374   (eval $ac_try) 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; } &&
4378          { ac_try='test -s conftest.$ac_objext'
4379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380   (eval $ac_try) 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); }; }; then
4384   ac_hi=-1 ac_mid=-1
4385   while :; do
4386     cat >conftest.$ac_ext <<_ACEOF
4387 /* confdefs.h.  */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h.  */
4392 $ac_includes_default
4393 int
4394 main ()
4395 {
4396 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4397 test_array [0] = 0
4398
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.$ac_objext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405   (eval $ac_compile) 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } &&
4412          { ac_try='test -z "$ac_c_werror_flag"
4413                          || test ! -s conftest.err'
4414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415   (eval $ac_try) 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); }; } &&
4419          { ac_try='test -s conftest.$ac_objext'
4420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421   (eval $ac_try) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }; }; then
4425   ac_lo=$ac_mid; break
4426 else
4427   echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 ac_hi=`expr '(' $ac_mid ')' - 1`
4431                        if test $ac_mid -le $ac_hi; then
4432                          ac_lo= ac_hi=
4433                          break
4434                        fi
4435                        ac_mid=`expr 2 '*' $ac_mid`
4436 fi
4437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4438   done
4439 else
4440   echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443 ac_lo= ac_hi=
4444 fi
4445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4446 fi
4447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448 # Binary search between lo and hi bounds.
4449 while test "x$ac_lo" != "x$ac_hi"; do
4450   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4451   cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h.  */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h.  */
4457 $ac_includes_default
4458 int
4459 main ()
4460 {
4461 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4462 test_array [0] = 0
4463
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470   (eval $ac_compile) 2>conftest.er1
4471   ac_status=$?
4472   grep -v '^ *+' conftest.er1 >conftest.err
4473   rm -f conftest.er1
4474   cat conftest.err >&5
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); } &&
4477          { ac_try='test -z "$ac_c_werror_flag"
4478                          || test ! -s conftest.err'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; } &&
4484          { ac_try='test -s conftest.$ac_objext'
4485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486   (eval $ac_try) 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }; }; then
4490   ac_hi=$ac_mid
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 ac_lo=`expr '(' $ac_mid ')' + 1`
4496 fi
4497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4498 done
4499 case $ac_lo in
4500 ?*) ac_cv_sizeof_int=$ac_lo;;
4501 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4502 See \`config.log' for more details." >&5
4503 echo "$as_me: error: cannot compute sizeof (int), 77
4504 See \`config.log' for more details." >&2;}
4505    { (exit 1); exit 1; }; } ;;
4506 esac
4507 else
4508   if test "$cross_compiling" = yes; then
4509   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4510 See \`config.log' for more details." >&5
4511 echo "$as_me: error: cannot run test program while cross compiling
4512 See \`config.log' for more details." >&2;}
4513    { (exit 1); exit 1; }; }
4514 else
4515   cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h.  */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h.  */
4521 $ac_includes_default
4522 long longval () { return (long) (sizeof (int)); }
4523 unsigned long ulongval () { return (long) (sizeof (int)); }
4524 #include <stdio.h>
4525 #include <stdlib.h>
4526 int
4527 main ()
4528 {
4529
4530   FILE *f = fopen ("conftest.val", "w");
4531   if (! f)
4532     exit (1);
4533   if (((long) (sizeof (int))) < 0)
4534     {
4535       long i = longval ();
4536       if (i != ((long) (sizeof (int))))
4537         exit (1);
4538       fprintf (f, "%ld\n", i);
4539     }
4540   else
4541     {
4542       unsigned long i = ulongval ();
4543       if (i != ((long) (sizeof (int))))
4544         exit (1);
4545       fprintf (f, "%lu\n", i);
4546     }
4547   exit (ferror (f) || fclose (f) != 0);
4548
4549   ;
4550   return 0;
4551 }
4552 _ACEOF
4553 rm -f conftest$ac_exeext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4555   (eval $ac_link) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560   (eval $ac_try) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; }; then
4564   ac_cv_sizeof_int=`cat conftest.val`
4565 else
4566   echo "$as_me: program exited with status $ac_status" >&5
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 ( exit $ac_status )
4571 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4572 See \`config.log' for more details." >&5
4573 echo "$as_me: error: cannot compute sizeof (int), 77
4574 See \`config.log' for more details." >&2;}
4575    { (exit 1); exit 1; }; }
4576 fi
4577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4578 fi
4579 fi
4580 rm -f conftest.val
4581 else
4582   ac_cv_sizeof_int=0
4583 fi
4584 fi
4585 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4586 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4587 cat >>confdefs.h <<_ACEOF
4588 #define SIZEOF_INT $ac_cv_sizeof_int
4589 _ACEOF
4590
4591
4592 echo "$as_me:$LINENO: checking for long" >&5
4593 echo $ECHO_N "checking for long... $ECHO_C" >&6
4594 if test "${ac_cv_type_long+set}" = set; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597   cat >conftest.$ac_ext <<_ACEOF
4598 /* confdefs.h.  */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h.  */
4603 $ac_includes_default
4604 int
4605 main ()
4606 {
4607 if ((long *) 0)
4608   return 0;
4609 if (sizeof (long))
4610   return 0;
4611   ;
4612   return 0;
4613 }
4614 _ACEOF
4615 rm -f conftest.$ac_objext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617   (eval $ac_compile) 2>conftest.er1
4618   ac_status=$?
4619   grep -v '^ *+' conftest.er1 >conftest.err
4620   rm -f conftest.er1
4621   cat conftest.err >&5
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); } &&
4624          { ac_try='test -z "$ac_c_werror_flag"
4625                          || test ! -s conftest.err'
4626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627   (eval $ac_try) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; } &&
4631          { ac_try='test -s conftest.$ac_objext'
4632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633   (eval $ac_try) 2>&5
4634   ac_status=$?
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); }; }; then
4637   ac_cv_type_long=yes
4638 else
4639   echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 ac_cv_type_long=no
4643 fi
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645 fi
4646 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4647 echo "${ECHO_T}$ac_cv_type_long" >&6
4648
4649 echo "$as_me:$LINENO: checking size of long" >&5
4650 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4651 if test "${ac_cv_sizeof_long+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   if test "$ac_cv_type_long" = yes; then
4655   # The cast to unsigned long works around a bug in the HP C Compiler
4656   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4657   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4658   # This bug is HP SR number 8606223364.
4659   if test "$cross_compiling" = yes; then
4660   # Depending upon the size, compute the lo and hi bounds.
4661 cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h.  */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h.  */
4667 $ac_includes_default
4668 int
4669 main ()
4670 {
4671 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4672 test_array [0] = 0
4673
4674   ;
4675   return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest.$ac_objext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680   (eval $ac_compile) 2>conftest.er1
4681   ac_status=$?
4682   grep -v '^ *+' conftest.er1 >conftest.err
4683   rm -f conftest.er1
4684   cat conftest.err >&5
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); } &&
4687          { ac_try='test -z "$ac_c_werror_flag"
4688                          || test ! -s conftest.err'
4689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690   (eval $ac_try) 2>&5
4691   ac_status=$?
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); }; } &&
4694          { ac_try='test -s conftest.$ac_objext'
4695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696   (eval $ac_try) 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }; }; then
4700   ac_lo=0 ac_mid=0
4701   while :; do
4702     cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h.  */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h.  */
4708 $ac_includes_default
4709 int
4710 main ()
4711 {
4712 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4713 test_array [0] = 0
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721   (eval $ac_compile) 2>conftest.er1
4722   ac_status=$?
4723   grep -v '^ *+' conftest.er1 >conftest.err
4724   rm -f conftest.er1
4725   cat conftest.err >&5
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); } &&
4728          { ac_try='test -z "$ac_c_werror_flag"
4729                          || test ! -s conftest.err'
4730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731   (eval $ac_try) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; } &&
4735          { ac_try='test -s conftest.$ac_objext'
4736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737   (eval $ac_try) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; }; then
4741   ac_hi=$ac_mid; break
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746 ac_lo=`expr $ac_mid + 1`
4747                     if test $ac_lo -le $ac_mid; then
4748                       ac_lo= ac_hi=
4749                       break
4750                     fi
4751                     ac_mid=`expr 2 '*' $ac_mid + 1`
4752 fi
4753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754   done
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759 cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h.  */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h.  */
4765 $ac_includes_default
4766 int
4767 main ()
4768 {
4769 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4770 test_array [0] = 0
4771
4772   ;
4773   return 0;
4774 }
4775 _ACEOF
4776 rm -f conftest.$ac_objext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778   (eval $ac_compile) 2>conftest.er1
4779   ac_status=$?
4780   grep -v '^ *+' conftest.er1 >conftest.err
4781   rm -f conftest.er1
4782   cat conftest.err >&5
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); } &&
4785          { ac_try='test -z "$ac_c_werror_flag"
4786                          || test ! -s conftest.err'
4787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788   (eval $ac_try) 2>&5
4789   ac_status=$?
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); }; } &&
4792          { ac_try='test -s conftest.$ac_objext'
4793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794   (eval $ac_try) 2>&5
4795   ac_status=$?
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); }; }; then
4798   ac_hi=-1 ac_mid=-1
4799   while :; do
4800     cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h.  */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h.  */
4806 $ac_includes_default
4807 int
4808 main ()
4809 {
4810 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4811 test_array [0] = 0
4812
4813   ;
4814   return 0;
4815 }
4816 _ACEOF
4817 rm -f conftest.$ac_objext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819   (eval $ac_compile) 2>conftest.er1
4820   ac_status=$?
4821   grep -v '^ *+' conftest.er1 >conftest.err
4822   rm -f conftest.er1
4823   cat conftest.err >&5
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); } &&
4826          { ac_try='test -z "$ac_c_werror_flag"
4827                          || test ! -s conftest.err'
4828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829   (eval $ac_try) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); }; } &&
4833          { ac_try='test -s conftest.$ac_objext'
4834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835   (eval $ac_try) 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); }; }; then
4839   ac_lo=$ac_mid; break
4840 else
4841   echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4843
4844 ac_hi=`expr '(' $ac_mid ')' - 1`
4845                        if test $ac_mid -le $ac_hi; then
4846                          ac_lo= ac_hi=
4847                          break
4848                        fi
4849                        ac_mid=`expr 2 '*' $ac_mid`
4850 fi
4851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4852   done
4853 else
4854   echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4856
4857 ac_lo= ac_hi=
4858 fi
4859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4860 fi
4861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 # Binary search between lo and hi bounds.
4863 while test "x$ac_lo" != "x$ac_hi"; do
4864   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4865   cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h.  */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h.  */
4871 $ac_includes_default
4872 int
4873 main ()
4874 {
4875 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4876 test_array [0] = 0
4877
4878   ;
4879   return 0;
4880 }
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884   (eval $ac_compile) 2>conftest.er1
4885   ac_status=$?
4886   grep -v '^ *+' conftest.er1 >conftest.err
4887   rm -f conftest.er1
4888   cat conftest.err >&5
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); } &&
4891          { ac_try='test -z "$ac_c_werror_flag"
4892                          || test ! -s conftest.err'
4893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894   (eval $ac_try) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }; } &&
4898          { ac_try='test -s conftest.$ac_objext'
4899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900   (eval $ac_try) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }; }; then
4904   ac_hi=$ac_mid
4905 else
4906   echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 ac_lo=`expr '(' $ac_mid ')' + 1`
4910 fi
4911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 done
4913 case $ac_lo in
4914 ?*) ac_cv_sizeof_long=$ac_lo;;
4915 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4916 See \`config.log' for more details." >&5
4917 echo "$as_me: error: cannot compute sizeof (long), 77
4918 See \`config.log' for more details." >&2;}
4919    { (exit 1); exit 1; }; } ;;
4920 esac
4921 else
4922   if test "$cross_compiling" = yes; then
4923   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4924 See \`config.log' for more details." >&5
4925 echo "$as_me: error: cannot run test program while cross compiling
4926 See \`config.log' for more details." >&2;}
4927    { (exit 1); exit 1; }; }
4928 else
4929   cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935 $ac_includes_default
4936 long longval () { return (long) (sizeof (long)); }
4937 unsigned long ulongval () { return (long) (sizeof (long)); }
4938 #include <stdio.h>
4939 #include <stdlib.h>
4940 int
4941 main ()
4942 {
4943
4944   FILE *f = fopen ("conftest.val", "w");
4945   if (! f)
4946     exit (1);
4947   if (((long) (sizeof (long))) < 0)
4948     {
4949       long i = longval ();
4950       if (i != ((long) (sizeof (long))))
4951         exit (1);
4952       fprintf (f, "%ld\n", i);
4953     }
4954   else
4955     {
4956       unsigned long i = ulongval ();
4957       if (i != ((long) (sizeof (long))))
4958         exit (1);
4959       fprintf (f, "%lu\n", i);
4960     }
4961   exit (ferror (f) || fclose (f) != 0);
4962
4963   ;
4964   return 0;
4965 }
4966 _ACEOF
4967 rm -f conftest$ac_exeext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4969   (eval $ac_link) 2>&5
4970   ac_status=$?
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974   (eval $ac_try) 2>&5
4975   ac_status=$?
4976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977   (exit $ac_status); }; }; then
4978   ac_cv_sizeof_long=`cat conftest.val`
4979 else
4980   echo "$as_me: program exited with status $ac_status" >&5
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984 ( exit $ac_status )
4985 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4986 See \`config.log' for more details." >&5
4987 echo "$as_me: error: cannot compute sizeof (long), 77
4988 See \`config.log' for more details." >&2;}
4989    { (exit 1); exit 1; }; }
4990 fi
4991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4992 fi
4993 fi
4994 rm -f conftest.val
4995 else
4996   ac_cv_sizeof_long=0
4997 fi
4998 fi
4999 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5000 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5001 cat >>confdefs.h <<_ACEOF
5002 #define SIZEOF_LONG $ac_cv_sizeof_long
5003 _ACEOF
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023 for ac_func in clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
5024 do
5025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5026 echo "$as_me:$LINENO: checking for $ac_func" >&5
5027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5028 if eval "test \"\${$as_ac_var+set}\" = set"; then
5029   echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031   cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h.  */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h.  */
5037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5039 #define $ac_func innocuous_$ac_func
5040
5041 /* System header to define __stub macros and hopefully few prototypes,
5042     which can conflict with char $ac_func (); below.
5043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044     <limits.h> exists even on freestanding compilers.  */
5045
5046 #ifdef __STDC__
5047 # include <limits.h>
5048 #else
5049 # include <assert.h>
5050 #endif
5051
5052 #undef $ac_func
5053
5054 /* Override any gcc2 internal prototype to avoid an error.  */
5055 #ifdef __cplusplus
5056 extern "C"
5057 {
5058 #endif
5059 /* We use char because int might match the return type of a gcc2
5060    builtin and then its argument prototype would still apply.  */
5061 char $ac_func ();
5062 /* The GNU C library defines this for functions which it implements
5063     to always fail with ENOSYS.  Some functions are actually named
5064     something starting with __ and the normal name is an alias.  */
5065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5066 choke me
5067 #else
5068 char (*f) () = $ac_func;
5069 #endif
5070 #ifdef __cplusplus
5071 }
5072 #endif
5073
5074 int
5075 main ()
5076 {
5077 return f != $ac_func;
5078   ;
5079   return 0;
5080 }
5081 _ACEOF
5082 rm -f conftest.$ac_objext conftest$ac_exeext
5083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5084   (eval $ac_link) 2>conftest.er1
5085   ac_status=$?
5086   grep -v '^ *+' conftest.er1 >conftest.err
5087   rm -f conftest.er1
5088   cat conftest.err >&5
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); } &&
5091          { ac_try='test -z "$ac_c_werror_flag"
5092                          || test ! -s conftest.err'
5093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094   (eval $ac_try) 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); }; } &&
5098          { ac_try='test -s conftest$ac_exeext'
5099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100   (eval $ac_try) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); }; }; then
5104   eval "$as_ac_var=yes"
5105 else
5106   echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5108
5109 eval "$as_ac_var=no"
5110 fi
5111 rm -f conftest.err conftest.$ac_objext \
5112       conftest$ac_exeext conftest.$ac_ext
5113 fi
5114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5116 if test `eval echo '${'$as_ac_var'}'` = yes; then
5117   cat >>confdefs.h <<_ACEOF
5118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5119 _ACEOF
5120
5121 fi
5122 done
5123
5124 echo "$as_me:$LINENO: checking whether abort is declared" >&5
5125 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
5126 if test "${ac_cv_have_decl_abort+set}" = set; then
5127   echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129   cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h.  */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h.  */
5135 $ac_includes_default
5136 int
5137 main ()
5138 {
5139 #ifndef abort
5140   char *p = (char *) abort;
5141 #endif
5142
5143   ;
5144   return 0;
5145 }
5146 _ACEOF
5147 rm -f conftest.$ac_objext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149   (eval $ac_compile) 2>conftest.er1
5150   ac_status=$?
5151   grep -v '^ *+' conftest.er1 >conftest.err
5152   rm -f conftest.er1
5153   cat conftest.err >&5
5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155   (exit $ac_status); } &&
5156          { ac_try='test -z "$ac_c_werror_flag"
5157                          || test ! -s conftest.err'
5158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159   (eval $ac_try) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); }; } &&
5163          { ac_try='test -s conftest.$ac_objext'
5164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165   (eval $ac_try) 2>&5
5166   ac_status=$?
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); }; }; then
5169   ac_cv_have_decl_abort=yes
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 ac_cv_have_decl_abort=no
5175 fi
5176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177 fi
5178 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
5179 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
5180 if test $ac_cv_have_decl_abort = yes; then
5181
5182 cat >>confdefs.h <<_ACEOF
5183 #define HAVE_DECL_ABORT 1
5184 _ACEOF
5185
5186
5187 else
5188   cat >>confdefs.h <<_ACEOF
5189 #define HAVE_DECL_ABORT 0
5190 _ACEOF
5191
5192
5193 fi
5194 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5195 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5196 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5197   echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199   cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h.  */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h.  */
5205 $ac_includes_default
5206 int
5207 main ()
5208 {
5209 #ifndef asprintf
5210   char *p = (char *) asprintf;
5211 #endif
5212
5213   ;
5214   return 0;
5215 }
5216 _ACEOF
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219   (eval $ac_compile) 2>conftest.er1
5220   ac_status=$?
5221   grep -v '^ *+' conftest.er1 >conftest.err
5222   rm -f conftest.er1
5223   cat conftest.err >&5
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); } &&
5226          { ac_try='test -z "$ac_c_werror_flag"
5227                          || test ! -s conftest.err'
5228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229   (eval $ac_try) 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); }; } &&
5233          { ac_try='test -s conftest.$ac_objext'
5234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235   (eval $ac_try) 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); }; }; then
5239   ac_cv_have_decl_asprintf=yes
5240 else
5241   echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5243
5244 ac_cv_have_decl_asprintf=no
5245 fi
5246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 fi
5248 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5249 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5250 if test $ac_cv_have_decl_asprintf = yes; then
5251
5252 cat >>confdefs.h <<_ACEOF
5253 #define HAVE_DECL_ASPRINTF 1
5254 _ACEOF
5255
5256
5257 else
5258   cat >>confdefs.h <<_ACEOF
5259 #define HAVE_DECL_ASPRINTF 0
5260 _ACEOF
5261
5262
5263 fi
5264 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5265 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5266 if test "${ac_cv_have_decl_basename+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275 $ac_includes_default
5276 int
5277 main ()
5278 {
5279 #ifndef basename
5280   char *p = (char *) basename;
5281 #endif
5282
5283   ;
5284   return 0;
5285 }
5286 _ACEOF
5287 rm -f conftest.$ac_objext
5288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5289   (eval $ac_compile) 2>conftest.er1
5290   ac_status=$?
5291   grep -v '^ *+' conftest.er1 >conftest.err
5292   rm -f conftest.er1
5293   cat conftest.err >&5
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); } &&
5296          { ac_try='test -z "$ac_c_werror_flag"
5297                          || test ! -s conftest.err'
5298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299   (eval $ac_try) 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }; } &&
5303          { ac_try='test -s conftest.$ac_objext'
5304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305   (eval $ac_try) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); }; }; then
5309   ac_cv_have_decl_basename=yes
5310 else
5311   echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5313
5314 ac_cv_have_decl_basename=no
5315 fi
5316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5317 fi
5318 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5319 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5320 if test $ac_cv_have_decl_basename = yes; then
5321
5322 cat >>confdefs.h <<_ACEOF
5323 #define HAVE_DECL_BASENAME 1
5324 _ACEOF
5325
5326
5327 else
5328   cat >>confdefs.h <<_ACEOF
5329 #define HAVE_DECL_BASENAME 0
5330 _ACEOF
5331
5332
5333 fi
5334 echo "$as_me:$LINENO: checking whether errno is declared" >&5
5335 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
5336 if test "${ac_cv_have_decl_errno+set}" = set; then
5337   echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339   cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h.  */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h.  */
5345 $ac_includes_default
5346 int
5347 main ()
5348 {
5349 #ifndef errno
5350   char *p = (char *) errno;
5351 #endif
5352
5353   ;
5354   return 0;
5355 }
5356 _ACEOF
5357 rm -f conftest.$ac_objext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359   (eval $ac_compile) 2>conftest.er1
5360   ac_status=$?
5361   grep -v '^ *+' conftest.er1 >conftest.err
5362   rm -f conftest.er1
5363   cat conftest.err >&5
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); } &&
5366          { ac_try='test -z "$ac_c_werror_flag"
5367                          || test ! -s conftest.err'
5368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369   (eval $ac_try) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; } &&
5373          { ac_try='test -s conftest.$ac_objext'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_cv_have_decl_errno=yes
5380 else
5381   echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 ac_cv_have_decl_errno=no
5385 fi
5386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5387 fi
5388 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
5389 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
5390 if test $ac_cv_have_decl_errno = yes; then
5391
5392 cat >>confdefs.h <<_ACEOF
5393 #define HAVE_DECL_ERRNO 1
5394 _ACEOF
5395
5396
5397 else
5398   cat >>confdefs.h <<_ACEOF
5399 #define HAVE_DECL_ERRNO 0
5400 _ACEOF
5401
5402
5403 fi
5404 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
5405 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
5406 if test "${ac_cv_have_decl_getopt+set}" = set; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409   cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h.  */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h.  */
5415 $ac_includes_default
5416 int
5417 main ()
5418 {
5419 #ifndef getopt
5420   char *p = (char *) getopt;
5421 #endif
5422
5423   ;
5424   return 0;
5425 }
5426 _ACEOF
5427 rm -f conftest.$ac_objext
5428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5429   (eval $ac_compile) 2>conftest.er1
5430   ac_status=$?
5431   grep -v '^ *+' conftest.er1 >conftest.err
5432   rm -f conftest.er1
5433   cat conftest.err >&5
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); } &&
5436          { ac_try='test -z "$ac_c_werror_flag"
5437                          || test ! -s conftest.err'
5438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439   (eval $ac_try) 2>&5
5440   ac_status=$?
5441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442   (exit $ac_status); }; } &&
5443          { ac_try='test -s conftest.$ac_objext'
5444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445   (eval $ac_try) 2>&5
5446   ac_status=$?
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); }; }; then
5449   ac_cv_have_decl_getopt=yes
5450 else
5451   echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 ac_cv_have_decl_getopt=no
5455 fi
5456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5457 fi
5458 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
5459 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
5460 if test $ac_cv_have_decl_getopt = yes; then
5461
5462 cat >>confdefs.h <<_ACEOF
5463 #define HAVE_DECL_GETOPT 1
5464 _ACEOF
5465
5466
5467 else
5468   cat >>confdefs.h <<_ACEOF
5469 #define HAVE_DECL_GETOPT 0
5470 _ACEOF
5471
5472
5473 fi
5474 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
5475 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
5476 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479   cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h.  */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h.  */
5485 $ac_includes_default
5486 int
5487 main ()
5488 {
5489 #ifndef clearerr_unlocked
5490   char *p = (char *) clearerr_unlocked;
5491 #endif
5492
5493   ;
5494   return 0;
5495 }
5496 _ACEOF
5497 rm -f conftest.$ac_objext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5499   (eval $ac_compile) 2>conftest.er1
5500   ac_status=$?
5501   grep -v '^ *+' conftest.er1 >conftest.err
5502   rm -f conftest.er1
5503   cat conftest.err >&5
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } &&
5506          { ac_try='test -z "$ac_c_werror_flag"
5507                          || test ! -s conftest.err'
5508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509   (eval $ac_try) 2>&5
5510   ac_status=$?
5511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512   (exit $ac_status); }; } &&
5513          { ac_try='test -s conftest.$ac_objext'
5514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515   (eval $ac_try) 2>&5
5516   ac_status=$?
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); }; }; then
5519   ac_cv_have_decl_clearerr_unlocked=yes
5520 else
5521   echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524 ac_cv_have_decl_clearerr_unlocked=no
5525 fi
5526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5527 fi
5528 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
5529 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
5530 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
5531
5532 cat >>confdefs.h <<_ACEOF
5533 #define HAVE_DECL_CLEARERR_UNLOCKED 1
5534 _ACEOF
5535
5536
5537 else
5538   cat >>confdefs.h <<_ACEOF
5539 #define HAVE_DECL_CLEARERR_UNLOCKED 0
5540 _ACEOF
5541
5542
5543 fi
5544 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
5545 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
5546 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 $ac_includes_default
5556 int
5557 main ()
5558 {
5559 #ifndef feof_unlocked
5560   char *p = (char *) feof_unlocked;
5561 #endif
5562
5563   ;
5564   return 0;
5565 }
5566 _ACEOF
5567 rm -f conftest.$ac_objext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569   (eval $ac_compile) 2>conftest.er1
5570   ac_status=$?
5571   grep -v '^ *+' conftest.er1 >conftest.err
5572   rm -f conftest.er1
5573   cat conftest.err >&5
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); } &&
5576          { ac_try='test -z "$ac_c_werror_flag"
5577                          || test ! -s conftest.err'
5578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579   (eval $ac_try) 2>&5
5580   ac_status=$?
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); }; } &&
5583          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5589   ac_cv_have_decl_feof_unlocked=yes
5590 else
5591   echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594 ac_cv_have_decl_feof_unlocked=no
5595 fi
5596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5597 fi
5598 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
5599 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
5600 if test $ac_cv_have_decl_feof_unlocked = yes; then
5601
5602 cat >>confdefs.h <<_ACEOF
5603 #define HAVE_DECL_FEOF_UNLOCKED 1
5604 _ACEOF
5605
5606
5607 else
5608   cat >>confdefs.h <<_ACEOF
5609 #define HAVE_DECL_FEOF_UNLOCKED 0
5610 _ACEOF
5611
5612
5613 fi
5614 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
5615 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
5616 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
5617   echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619   cat >conftest.$ac_ext <<_ACEOF
5620 /* confdefs.h.  */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h.  */
5625 $ac_includes_default
5626 int
5627 main ()
5628 {
5629 #ifndef ferror_unlocked
5630   char *p = (char *) ferror_unlocked;
5631 #endif
5632
5633   ;
5634   return 0;
5635 }
5636 _ACEOF
5637 rm -f conftest.$ac_objext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5639   (eval $ac_compile) 2>conftest.er1
5640   ac_status=$?
5641   grep -v '^ *+' conftest.er1 >conftest.err
5642   rm -f conftest.er1
5643   cat conftest.err >&5
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); } &&
5646          { ac_try='test -z "$ac_c_werror_flag"
5647                          || test ! -s conftest.err'
5648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649   (eval $ac_try) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }; } &&
5653          { ac_try='test -s conftest.$ac_objext'
5654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655   (eval $ac_try) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; }; then
5659   ac_cv_have_decl_ferror_unlocked=yes
5660 else
5661   echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5663
5664 ac_cv_have_decl_ferror_unlocked=no
5665 fi
5666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5667 fi
5668 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
5669 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
5670 if test $ac_cv_have_decl_ferror_unlocked = yes; then
5671
5672 cat >>confdefs.h <<_ACEOF
5673 #define HAVE_DECL_FERROR_UNLOCKED 1
5674 _ACEOF
5675
5676
5677 else
5678   cat >>confdefs.h <<_ACEOF
5679 #define HAVE_DECL_FERROR_UNLOCKED 0
5680 _ACEOF
5681
5682
5683 fi
5684 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
5685 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
5686 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689   cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h.  */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h.  */
5695 $ac_includes_default
5696 int
5697 main ()
5698 {
5699 #ifndef fflush_unlocked
5700   char *p = (char *) fflush_unlocked;
5701 #endif
5702
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709   (eval $ac_compile) 2>conftest.er1
5710   ac_status=$?
5711   grep -v '^ *+' conftest.er1 >conftest.err
5712   rm -f conftest.er1
5713   cat conftest.err >&5
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); } &&
5716          { ac_try='test -z "$ac_c_werror_flag"
5717                          || test ! -s conftest.err'
5718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719   (eval $ac_try) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }; } &&
5723          { ac_try='test -s conftest.$ac_objext'
5724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725   (eval $ac_try) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; }; then
5729   ac_cv_have_decl_fflush_unlocked=yes
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 ac_cv_have_decl_fflush_unlocked=no
5735 fi
5736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5737 fi
5738 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
5739 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
5740 if test $ac_cv_have_decl_fflush_unlocked = yes; then
5741
5742 cat >>confdefs.h <<_ACEOF
5743 #define HAVE_DECL_FFLUSH_UNLOCKED 1
5744 _ACEOF
5745
5746
5747 else
5748   cat >>confdefs.h <<_ACEOF
5749 #define HAVE_DECL_FFLUSH_UNLOCKED 0
5750 _ACEOF
5751
5752
5753 fi
5754 echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
5755 echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6
5756 if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h.  */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h.  */
5765 $ac_includes_default
5766 int
5767 main ()
5768 {
5769 #ifndef fgetc_unlocked
5770   char *p = (char *) fgetc_unlocked;
5771 #endif
5772
5773   ;
5774   return 0;
5775 }
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779   (eval $ac_compile) 2>conftest.er1
5780   ac_status=$?
5781   grep -v '^ *+' conftest.er1 >conftest.err
5782   rm -f conftest.er1
5783   cat conftest.err >&5
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } &&
5786          { ac_try='test -z "$ac_c_werror_flag"
5787                          || test ! -s conftest.err'
5788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789   (eval $ac_try) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; } &&
5793          { ac_try='test -s conftest.$ac_objext'
5794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795   (eval $ac_try) 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }; }; then
5799   ac_cv_have_decl_fgetc_unlocked=yes
5800 else
5801   echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ac_cv_have_decl_fgetc_unlocked=no
5805 fi
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
5809 echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6
5810 if test $ac_cv_have_decl_fgetc_unlocked = yes; then
5811
5812 cat >>confdefs.h <<_ACEOF
5813 #define HAVE_DECL_FGETC_UNLOCKED 1
5814 _ACEOF
5815
5816
5817 else
5818   cat >>confdefs.h <<_ACEOF
5819 #define HAVE_DECL_FGETC_UNLOCKED 0
5820 _ACEOF
5821
5822
5823 fi
5824 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
5825 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
5826 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h.  */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h.  */
5835 $ac_includes_default
5836 int
5837 main ()
5838 {
5839 #ifndef fgets_unlocked
5840   char *p = (char *) fgets_unlocked;
5841 #endif
5842
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849   (eval $ac_compile) 2>conftest.er1
5850   ac_status=$?
5851   grep -v '^ *+' conftest.er1 >conftest.err
5852   rm -f conftest.er1
5853   cat conftest.err >&5
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } &&
5856          { ac_try='test -z "$ac_c_werror_flag"
5857                          || test ! -s conftest.err'
5858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859   (eval $ac_try) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; } &&
5863          { ac_try='test -s conftest.$ac_objext'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; }; then
5869   ac_cv_have_decl_fgets_unlocked=yes
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 ac_cv_have_decl_fgets_unlocked=no
5875 fi
5876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5877 fi
5878 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
5879 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
5880 if test $ac_cv_have_decl_fgets_unlocked = yes; then
5881
5882 cat >>confdefs.h <<_ACEOF
5883 #define HAVE_DECL_FGETS_UNLOCKED 1
5884 _ACEOF
5885
5886
5887 else
5888   cat >>confdefs.h <<_ACEOF
5889 #define HAVE_DECL_FGETS_UNLOCKED 0
5890 _ACEOF
5891
5892
5893 fi
5894 echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
5895 echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6
5896 if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
5897   echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899   cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h.  */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h.  */
5905 $ac_includes_default
5906 int
5907 main ()
5908 {
5909 #ifndef fileno_unlocked
5910   char *p = (char *) fileno_unlocked;
5911 #endif
5912
5913   ;
5914   return 0;
5915 }
5916 _ACEOF
5917 rm -f conftest.$ac_objext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919   (eval $ac_compile) 2>conftest.er1
5920   ac_status=$?
5921   grep -v '^ *+' conftest.er1 >conftest.err
5922   rm -f conftest.er1
5923   cat conftest.err >&5
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); } &&
5926          { ac_try='test -z "$ac_c_werror_flag"
5927                          || test ! -s conftest.err'
5928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929   (eval $ac_try) 2>&5
5930   ac_status=$?
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); }; } &&
5933          { ac_try='test -s conftest.$ac_objext'
5934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935   (eval $ac_try) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); }; }; then
5939   ac_cv_have_decl_fileno_unlocked=yes
5940 else
5941   echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5943
5944 ac_cv_have_decl_fileno_unlocked=no
5945 fi
5946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5947 fi
5948 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
5949 echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6
5950 if test $ac_cv_have_decl_fileno_unlocked = yes; then
5951
5952 cat >>confdefs.h <<_ACEOF
5953 #define HAVE_DECL_FILENO_UNLOCKED 1
5954 _ACEOF
5955
5956
5957 else
5958   cat >>confdefs.h <<_ACEOF
5959 #define HAVE_DECL_FILENO_UNLOCKED 0
5960 _ACEOF
5961
5962
5963 fi
5964 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
5965 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
5966 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h.  */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h.  */
5975 $ac_includes_default
5976 int
5977 main ()
5978 {
5979 #ifndef fprintf_unlocked
5980   char *p = (char *) fprintf_unlocked;
5981 #endif
5982
5983   ;
5984   return 0;
5985 }
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989   (eval $ac_compile) 2>conftest.er1
5990   ac_status=$?
5991   grep -v '^ *+' conftest.er1 >conftest.err
5992   rm -f conftest.er1
5993   cat conftest.err >&5
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); } &&
5996          { ac_try='test -z "$ac_c_werror_flag"
5997                          || test ! -s conftest.err'
5998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999   (eval $ac_try) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; } &&
6003          { ac_try='test -s conftest.$ac_objext'
6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005   (eval $ac_try) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   ac_cv_have_decl_fprintf_unlocked=yes
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 ac_cv_have_decl_fprintf_unlocked=no
6015 fi
6016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017 fi
6018 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
6019 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
6020 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
6021
6022 cat >>confdefs.h <<_ACEOF
6023 #define HAVE_DECL_FPRINTF_UNLOCKED 1
6024 _ACEOF
6025
6026
6027 else
6028   cat >>confdefs.h <<_ACEOF
6029 #define HAVE_DECL_FPRINTF_UNLOCKED 0
6030 _ACEOF
6031
6032
6033 fi
6034 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
6035 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
6036 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h.  */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h.  */
6045 $ac_includes_default
6046 int
6047 main ()
6048 {
6049 #ifndef fputc_unlocked
6050   char *p = (char *) fputc_unlocked;
6051 #endif
6052
6053   ;
6054   return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059   (eval $ac_compile) 2>conftest.er1
6060   ac_status=$?
6061   grep -v '^ *+' conftest.er1 >conftest.err
6062   rm -f conftest.er1
6063   cat conftest.err >&5
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); } &&
6066          { ac_try='test -z "$ac_c_werror_flag"
6067                          || test ! -s conftest.err'
6068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069   (eval $ac_try) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); }; } &&
6073          { ac_try='test -s conftest.$ac_objext'
6074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075   (eval $ac_try) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; }; then
6079   ac_cv_have_decl_fputc_unlocked=yes
6080 else
6081   echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 ac_cv_have_decl_fputc_unlocked=no
6085 fi
6086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6087 fi
6088 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
6089 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
6090 if test $ac_cv_have_decl_fputc_unlocked = yes; then
6091
6092 cat >>confdefs.h <<_ACEOF
6093 #define HAVE_DECL_FPUTC_UNLOCKED 1
6094 _ACEOF
6095
6096
6097 else
6098   cat >>confdefs.h <<_ACEOF
6099 #define HAVE_DECL_FPUTC_UNLOCKED 0
6100 _ACEOF
6101
6102
6103 fi
6104 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
6105 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
6106 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h.  */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h.  */
6115 $ac_includes_default
6116 int
6117 main ()
6118 {
6119 #ifndef fputs_unlocked
6120   char *p = (char *) fputs_unlocked;
6121 #endif
6122
6123   ;
6124   return 0;
6125 }
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129   (eval $ac_compile) 2>conftest.er1
6130   ac_status=$?
6131   grep -v '^ *+' conftest.er1 >conftest.err
6132   rm -f conftest.er1
6133   cat conftest.err >&5
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); } &&
6136          { ac_try='test -z "$ac_c_werror_flag"
6137                          || test ! -s conftest.err'
6138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139   (eval $ac_try) 2>&5
6140   ac_status=$?
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); }; } &&
6143          { ac_try='test -s conftest.$ac_objext'
6144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145   (eval $ac_try) 2>&5
6146   ac_status=$?
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); }; }; then
6149   ac_cv_have_decl_fputs_unlocked=yes
6150 else
6151   echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_cv_have_decl_fputs_unlocked=no
6155 fi
6156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6157 fi
6158 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
6159 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
6160 if test $ac_cv_have_decl_fputs_unlocked = yes; then
6161
6162 cat >>confdefs.h <<_ACEOF
6163 #define HAVE_DECL_FPUTS_UNLOCKED 1
6164 _ACEOF
6165
6166
6167 else
6168   cat >>confdefs.h <<_ACEOF
6169 #define HAVE_DECL_FPUTS_UNLOCKED 0
6170 _ACEOF
6171
6172
6173 fi
6174 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
6175 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
6176 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h.  */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h.  */
6185 $ac_includes_default
6186 int
6187 main ()
6188 {
6189 #ifndef fread_unlocked
6190   char *p = (char *) fread_unlocked;
6191 #endif
6192
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 rm -f conftest.$ac_objext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6199   (eval $ac_compile) 2>conftest.er1
6200   ac_status=$?
6201   grep -v '^ *+' conftest.er1 >conftest.err
6202   rm -f conftest.er1
6203   cat conftest.err >&5
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); } &&
6206          { ac_try='test -z "$ac_c_werror_flag"
6207                          || test ! -s conftest.err'
6208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209   (eval $ac_try) 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); }; } &&
6213          { ac_try='test -s conftest.$ac_objext'
6214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215   (eval $ac_try) 2>&5
6216   ac_status=$?
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); }; }; then
6219   ac_cv_have_decl_fread_unlocked=yes
6220 else
6221   echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224 ac_cv_have_decl_fread_unlocked=no
6225 fi
6226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6227 fi
6228 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
6229 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
6230 if test $ac_cv_have_decl_fread_unlocked = yes; then
6231
6232 cat >>confdefs.h <<_ACEOF
6233 #define HAVE_DECL_FREAD_UNLOCKED 1
6234 _ACEOF
6235
6236
6237 else
6238   cat >>confdefs.h <<_ACEOF
6239 #define HAVE_DECL_FREAD_UNLOCKED 0
6240 _ACEOF
6241
6242
6243 fi
6244 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
6245 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
6246 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
6247   echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249   cat >conftest.$ac_ext <<_ACEOF
6250 /* confdefs.h.  */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h.  */
6255 $ac_includes_default
6256 int
6257 main ()
6258 {
6259 #ifndef fwrite_unlocked
6260   char *p = (char *) fwrite_unlocked;
6261 #endif
6262
6263   ;
6264   return 0;
6265 }
6266 _ACEOF
6267 rm -f conftest.$ac_objext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269   (eval $ac_compile) 2>conftest.er1
6270   ac_status=$?
6271   grep -v '^ *+' conftest.er1 >conftest.err
6272   rm -f conftest.er1
6273   cat conftest.err >&5
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); } &&
6276          { ac_try='test -z "$ac_c_werror_flag"
6277                          || test ! -s conftest.err'
6278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279   (eval $ac_try) 2>&5
6280   ac_status=$?
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); }; } &&
6283          { ac_try='test -s conftest.$ac_objext'
6284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285   (eval $ac_try) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); }; }; then
6289   ac_cv_have_decl_fwrite_unlocked=yes
6290 else
6291   echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294 ac_cv_have_decl_fwrite_unlocked=no
6295 fi
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297 fi
6298 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
6299 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
6300 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
6301
6302 cat >>confdefs.h <<_ACEOF
6303 #define HAVE_DECL_FWRITE_UNLOCKED 1
6304 _ACEOF
6305
6306
6307 else
6308   cat >>confdefs.h <<_ACEOF
6309 #define HAVE_DECL_FWRITE_UNLOCKED 0
6310 _ACEOF
6311
6312
6313 fi
6314 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
6315 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
6316 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325 $ac_includes_default
6326 int
6327 main ()
6328 {
6329 #ifndef getchar_unlocked
6330   char *p = (char *) getchar_unlocked;
6331 #endif
6332
6333   ;
6334   return 0;
6335 }
6336 _ACEOF
6337 rm -f conftest.$ac_objext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6339   (eval $ac_compile) 2>conftest.er1
6340   ac_status=$?
6341   grep -v '^ *+' conftest.er1 >conftest.err
6342   rm -f conftest.er1
6343   cat conftest.err >&5
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); } &&
6346          { ac_try='test -z "$ac_c_werror_flag"
6347                          || test ! -s conftest.err'
6348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349   (eval $ac_try) 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }; } &&
6353          { ac_try='test -s conftest.$ac_objext'
6354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355   (eval $ac_try) 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); }; }; then
6359   ac_cv_have_decl_getchar_unlocked=yes
6360 else
6361   echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6363
6364 ac_cv_have_decl_getchar_unlocked=no
6365 fi
6366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 fi
6368 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
6369 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
6370 if test $ac_cv_have_decl_getchar_unlocked = yes; then
6371
6372 cat >>confdefs.h <<_ACEOF
6373 #define HAVE_DECL_GETCHAR_UNLOCKED 1
6374 _ACEOF
6375
6376
6377 else
6378   cat >>confdefs.h <<_ACEOF
6379 #define HAVE_DECL_GETCHAR_UNLOCKED 0
6380 _ACEOF
6381
6382
6383 fi
6384 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
6385 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
6386 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389   cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h.  */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h.  */
6395 $ac_includes_default
6396 int
6397 main ()
6398 {
6399 #ifndef getc_unlocked
6400   char *p = (char *) getc_unlocked;
6401 #endif
6402
6403   ;
6404   return 0;
6405 }
6406 _ACEOF
6407 rm -f conftest.$ac_objext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409   (eval $ac_compile) 2>conftest.er1
6410   ac_status=$?
6411   grep -v '^ *+' conftest.er1 >conftest.err
6412   rm -f conftest.er1
6413   cat conftest.err >&5
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); } &&
6416          { ac_try='test -z "$ac_c_werror_flag"
6417                          || test ! -s conftest.err'
6418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419   (eval $ac_try) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; } &&
6423          { ac_try='test -s conftest.$ac_objext'
6424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425   (eval $ac_try) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); }; }; then
6429   ac_cv_have_decl_getc_unlocked=yes
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 ac_cv_have_decl_getc_unlocked=no
6435 fi
6436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6437 fi
6438 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
6439 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
6440 if test $ac_cv_have_decl_getc_unlocked = yes; then
6441
6442 cat >>confdefs.h <<_ACEOF
6443 #define HAVE_DECL_GETC_UNLOCKED 1
6444 _ACEOF
6445
6446
6447 else
6448   cat >>confdefs.h <<_ACEOF
6449 #define HAVE_DECL_GETC_UNLOCKED 0
6450 _ACEOF
6451
6452
6453 fi
6454 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
6455 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
6456 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   cat >conftest.$ac_ext <<_ACEOF
6460 /* confdefs.h.  */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h.  */
6465 $ac_includes_default
6466 int
6467 main ()
6468 {
6469 #ifndef putchar_unlocked
6470   char *p = (char *) putchar_unlocked;
6471 #endif
6472
6473   ;
6474   return 0;
6475 }
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479   (eval $ac_compile) 2>conftest.er1
6480   ac_status=$?
6481   grep -v '^ *+' conftest.er1 >conftest.err
6482   rm -f conftest.er1
6483   cat conftest.err >&5
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); } &&
6486          { ac_try='test -z "$ac_c_werror_flag"
6487                          || test ! -s conftest.err'
6488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489   (eval $ac_try) 2>&5
6490   ac_status=$?
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); }; } &&
6493          { ac_try='test -s conftest.$ac_objext'
6494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495   (eval $ac_try) 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); }; }; then
6499   ac_cv_have_decl_putchar_unlocked=yes
6500 else
6501   echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6503
6504 ac_cv_have_decl_putchar_unlocked=no
6505 fi
6506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6507 fi
6508 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
6509 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
6510 if test $ac_cv_have_decl_putchar_unlocked = yes; then
6511
6512 cat >>confdefs.h <<_ACEOF
6513 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
6514 _ACEOF
6515
6516
6517 else
6518   cat >>confdefs.h <<_ACEOF
6519 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
6520 _ACEOF
6521
6522
6523 fi
6524 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
6525 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
6526 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
6527   echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529   cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h.  */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h.  */
6535 $ac_includes_default
6536 int
6537 main ()
6538 {
6539 #ifndef putc_unlocked
6540   char *p = (char *) putc_unlocked;
6541 #endif
6542
6543   ;
6544   return 0;
6545 }
6546 _ACEOF
6547 rm -f conftest.$ac_objext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6549   (eval $ac_compile) 2>conftest.er1
6550   ac_status=$?
6551   grep -v '^ *+' conftest.er1 >conftest.err
6552   rm -f conftest.er1
6553   cat conftest.err >&5
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); } &&
6556          { ac_try='test -z "$ac_c_werror_flag"
6557                          || test ! -s conftest.err'
6558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559   (eval $ac_try) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); }; } &&
6563          { ac_try='test -s conftest.$ac_objext'
6564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565   (eval $ac_try) 2>&5
6566   ac_status=$?
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); }; }; then
6569   ac_cv_have_decl_putc_unlocked=yes
6570 else
6571   echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574 ac_cv_have_decl_putc_unlocked=no
6575 fi
6576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6577 fi
6578 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
6579 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
6580 if test $ac_cv_have_decl_putc_unlocked = yes; then
6581
6582 cat >>confdefs.h <<_ACEOF
6583 #define HAVE_DECL_PUTC_UNLOCKED 1
6584 _ACEOF
6585
6586
6587 else
6588   cat >>confdefs.h <<_ACEOF
6589 #define HAVE_DECL_PUTC_UNLOCKED 0
6590 _ACEOF
6591
6592
6593 fi
6594 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
6595 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
6596 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
6597   echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599   cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h.  */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h.  */
6605 $ac_includes_default
6606 int
6607 main ()
6608 {
6609 #ifndef vasprintf
6610   char *p = (char *) vasprintf;
6611 #endif
6612
6613   ;
6614   return 0;
6615 }
6616 _ACEOF
6617 rm -f conftest.$ac_objext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619   (eval $ac_compile) 2>conftest.er1
6620   ac_status=$?
6621   grep -v '^ *+' conftest.er1 >conftest.err
6622   rm -f conftest.er1
6623   cat conftest.err >&5
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); } &&
6626          { ac_try='test -z "$ac_c_werror_flag"
6627                          || test ! -s conftest.err'
6628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629   (eval $ac_try) 2>&5
6630   ac_status=$?
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); }; } &&
6633          { ac_try='test -s conftest.$ac_objext'
6634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635   (eval $ac_try) 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); }; }; then
6639   ac_cv_have_decl_vasprintf=yes
6640 else
6641   echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644 ac_cv_have_decl_vasprintf=no
6645 fi
6646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6647 fi
6648 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
6649 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
6650 if test $ac_cv_have_decl_vasprintf = yes; then
6651
6652 cat >>confdefs.h <<_ACEOF
6653 #define HAVE_DECL_VASPRINTF 1
6654 _ACEOF
6655
6656
6657 else
6658   cat >>confdefs.h <<_ACEOF
6659 #define HAVE_DECL_VASPRINTF 0
6660 _ACEOF
6661
6662
6663 fi
6664
6665
6666
6667 # Checks for library functions.
6668 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6669 # for constant arguments.  Useless!
6670 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6671 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6672 if test "${ac_cv_working_alloca_h+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h.  */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h.  */
6681 #include <alloca.h>
6682 int
6683 main ()
6684 {
6685 char *p = (char *) alloca (2 * sizeof (int));
6686   ;
6687   return 0;
6688 }
6689 _ACEOF
6690 rm -f conftest.$ac_objext conftest$ac_exeext
6691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6692   (eval $ac_link) 2>conftest.er1
6693   ac_status=$?
6694   grep -v '^ *+' conftest.er1 >conftest.err
6695   rm -f conftest.er1
6696   cat conftest.err >&5
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); } &&
6699          { ac_try='test -z "$ac_c_werror_flag"
6700                          || test ! -s conftest.err'
6701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702   (eval $ac_try) 2>&5
6703   ac_status=$?
6704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705   (exit $ac_status); }; } &&
6706          { ac_try='test -s conftest$ac_exeext'
6707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708   (eval $ac_try) 2>&5
6709   ac_status=$?
6710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711   (exit $ac_status); }; }; then
6712   ac_cv_working_alloca_h=yes
6713 else
6714   echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6716
6717 ac_cv_working_alloca_h=no
6718 fi
6719 rm -f conftest.err conftest.$ac_objext \
6720       conftest$ac_exeext conftest.$ac_ext
6721 fi
6722 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6723 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6724 if test $ac_cv_working_alloca_h = yes; then
6725
6726 cat >>confdefs.h <<\_ACEOF
6727 #define HAVE_ALLOCA_H 1
6728 _ACEOF
6729
6730 fi
6731
6732 echo "$as_me:$LINENO: checking for alloca" >&5
6733 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6734 if test "${ac_cv_func_alloca_works+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h.  */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h.  */
6743 #ifdef __GNUC__
6744 # define alloca __builtin_alloca
6745 #else
6746 # ifdef _MSC_VER
6747 #  include <malloc.h>
6748 #  define alloca _alloca
6749 # else
6750 #  if HAVE_ALLOCA_H
6751 #   include <alloca.h>
6752 #  else
6753 #   ifdef _AIX
6754  #pragma alloca
6755 #   else
6756 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6757 char *alloca ();
6758 #    endif
6759 #   endif
6760 #  endif
6761 # endif
6762 #endif
6763
6764 int
6765 main ()
6766 {
6767 char *p = (char *) alloca (1);
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 rm -f conftest.$ac_objext conftest$ac_exeext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774   (eval $ac_link) 2>conftest.er1
6775   ac_status=$?
6776   grep -v '^ *+' conftest.er1 >conftest.err
6777   rm -f conftest.er1
6778   cat conftest.err >&5
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); } &&
6781          { ac_try='test -z "$ac_c_werror_flag"
6782                          || test ! -s conftest.err'
6783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784   (eval $ac_try) 2>&5
6785   ac_status=$?
6786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787   (exit $ac_status); }; } &&
6788          { ac_try='test -s conftest$ac_exeext'
6789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790   (eval $ac_try) 2>&5
6791   ac_status=$?
6792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793   (exit $ac_status); }; }; then
6794   ac_cv_func_alloca_works=yes
6795 else
6796   echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6798
6799 ac_cv_func_alloca_works=no
6800 fi
6801 rm -f conftest.err conftest.$ac_objext \
6802       conftest$ac_exeext conftest.$ac_ext
6803 fi
6804 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6805 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6806
6807 if test $ac_cv_func_alloca_works = yes; then
6808
6809 cat >>confdefs.h <<\_ACEOF
6810 #define HAVE_ALLOCA 1
6811 _ACEOF
6812
6813 else
6814   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6815 # that cause trouble.  Some versions do not even contain alloca or
6816 # contain a buggy version.  If you still want to use their alloca,
6817 # use ar to extract alloca.o from them instead of compiling alloca.c.
6818
6819 ALLOCA=alloca.$ac_objext
6820
6821 cat >>confdefs.h <<\_ACEOF
6822 #define C_ALLOCA 1
6823 _ACEOF
6824
6825
6826 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6827 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6828 if test "${ac_cv_os_cray+set}" = set; then
6829   echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831   cat >conftest.$ac_ext <<_ACEOF
6832 /* confdefs.h.  */
6833 _ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h.  */
6837 #if defined(CRAY) && ! defined(CRAY2)
6838 webecray
6839 #else
6840 wenotbecray
6841 #endif
6842
6843 _ACEOF
6844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6845   $EGREP "webecray" >/dev/null 2>&1; then
6846   ac_cv_os_cray=yes
6847 else
6848   ac_cv_os_cray=no
6849 fi
6850 rm -f conftest*
6851
6852 fi
6853 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6854 echo "${ECHO_T}$ac_cv_os_cray" >&6
6855 if test $ac_cv_os_cray = yes; then
6856   for ac_func in _getb67 GETB67 getb67; do
6857     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6858 echo "$as_me:$LINENO: checking for $ac_func" >&5
6859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6860 if eval "test \"\${$as_ac_var+set}\" = set"; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863   cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h.  */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h.  */
6869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6871 #define $ac_func innocuous_$ac_func
6872
6873 /* System header to define __stub macros and hopefully few prototypes,
6874     which can conflict with char $ac_func (); below.
6875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6876     <limits.h> exists even on freestanding compilers.  */
6877
6878 #ifdef __STDC__
6879 # include <limits.h>
6880 #else
6881 # include <assert.h>
6882 #endif
6883
6884 #undef $ac_func
6885
6886 /* Override any gcc2 internal prototype to avoid an error.  */
6887 #ifdef __cplusplus
6888 extern "C"
6889 {
6890 #endif
6891 /* We use char because int might match the return type of a gcc2
6892    builtin and then its argument prototype would still apply.  */
6893 char $ac_func ();
6894 /* The GNU C library defines this for functions which it implements
6895     to always fail with ENOSYS.  Some functions are actually named
6896     something starting with __ and the normal name is an alias.  */
6897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6898 choke me
6899 #else
6900 char (*f) () = $ac_func;
6901 #endif
6902 #ifdef __cplusplus
6903 }
6904 #endif
6905
6906 int
6907 main ()
6908 {
6909 return f != $ac_func;
6910   ;
6911   return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916   (eval $ac_link) 2>conftest.er1
6917   ac_status=$?
6918   grep -v '^ *+' conftest.er1 >conftest.err
6919   rm -f conftest.er1
6920   cat conftest.err >&5
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); } &&
6923          { ac_try='test -z "$ac_c_werror_flag"
6924                          || test ! -s conftest.err'
6925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926   (eval $ac_try) 2>&5
6927   ac_status=$?
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); }; } &&
6930          { ac_try='test -s conftest$ac_exeext'
6931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932   (eval $ac_try) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); }; }; then
6936   eval "$as_ac_var=yes"
6937 else
6938   echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6940
6941 eval "$as_ac_var=no"
6942 fi
6943 rm -f conftest.err conftest.$ac_objext \
6944       conftest$ac_exeext conftest.$ac_ext
6945 fi
6946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6948 if test `eval echo '${'$as_ac_var'}'` = yes; then
6949
6950 cat >>confdefs.h <<_ACEOF
6951 #define CRAY_STACKSEG_END $ac_func
6952 _ACEOF
6953
6954     break
6955 fi
6956
6957   done
6958 fi
6959
6960 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6961 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6962 if test "${ac_cv_c_stack_direction+set}" = set; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   if test "$cross_compiling" = yes; then
6966   ac_cv_c_stack_direction=0
6967 else
6968   cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h.  */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h.  */
6974 int
6975 find_stack_direction ()
6976 {
6977   static char *addr = 0;
6978   auto char dummy;
6979   if (addr == 0)
6980     {
6981       addr = &dummy;
6982       return find_stack_direction ();
6983     }
6984   else
6985     return (&dummy > addr) ? 1 : -1;
6986 }
6987
6988 int
6989 main ()
6990 {
6991   exit (find_stack_direction () < 0);
6992 }
6993 _ACEOF
6994 rm -f conftest$ac_exeext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996   (eval $ac_link) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001   (eval $ac_try) 2>&5
7002   ac_status=$?
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); }; }; then
7005   ac_cv_c_stack_direction=1
7006 else
7007   echo "$as_me: program exited with status $ac_status" >&5
7008 echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 ( exit $ac_status )
7012 ac_cv_c_stack_direction=-1
7013 fi
7014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7015 fi
7016 fi
7017 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7018 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7019
7020 cat >>confdefs.h <<_ACEOF
7021 #define STACK_DIRECTION $ac_cv_c_stack_direction
7022 _ACEOF
7023
7024
7025 fi
7026
7027 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7028 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7029 if test "${ac_cv_header_stdc+set}" = set; then
7030   echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032   cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h.  */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h.  */
7038 #include <stdlib.h>
7039 #include <stdarg.h>
7040 #include <string.h>
7041 #include <float.h>
7042
7043 int
7044 main ()
7045 {
7046
7047   ;
7048   return 0;
7049 }
7050 _ACEOF
7051 rm -f conftest.$ac_objext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7053   (eval $ac_compile) 2>conftest.er1
7054   ac_status=$?
7055   grep -v '^ *+' conftest.er1 >conftest.err
7056   rm -f conftest.er1
7057   cat conftest.err >&5
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); } &&
7060          { ac_try='test -z "$ac_c_werror_flag"
7061                          || test ! -s conftest.err'
7062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063   (eval $ac_try) 2>&5
7064   ac_status=$?
7065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066   (exit $ac_status); }; } &&
7067          { ac_try='test -s conftest.$ac_objext'
7068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069   (eval $ac_try) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; }; then
7073   ac_cv_header_stdc=yes
7074 else
7075   echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7077
7078 ac_cv_header_stdc=no
7079 fi
7080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7081
7082 if test $ac_cv_header_stdc = yes; then
7083   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7084   cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h.  */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h.  */
7090 #include <string.h>
7091
7092 _ACEOF
7093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7094   $EGREP "memchr" >/dev/null 2>&1; then
7095   :
7096 else
7097   ac_cv_header_stdc=no
7098 fi
7099 rm -f conftest*
7100
7101 fi
7102
7103 if test $ac_cv_header_stdc = yes; then
7104   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7105   cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h.  */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h.  */
7111 #include <stdlib.h>
7112
7113 _ACEOF
7114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7115   $EGREP "free" >/dev/null 2>&1; then
7116   :
7117 else
7118   ac_cv_header_stdc=no
7119 fi
7120 rm -f conftest*
7121
7122 fi
7123
7124 if test $ac_cv_header_stdc = yes; then
7125   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7126   if test "$cross_compiling" = yes; then
7127   :
7128 else
7129   cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h.  */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h.  */
7135 #include <ctype.h>
7136 #if ((' ' & 0x0FF) == 0x020)
7137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7139 #else
7140 # define ISLOWER(c) \
7141                    (('a' <= (c) && (c) <= 'i') \
7142                      || ('j' <= (c) && (c) <= 'r') \
7143                      || ('s' <= (c) && (c) <= 'z'))
7144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7145 #endif
7146
7147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7148 int
7149 main ()
7150 {
7151   int i;
7152   for (i = 0; i < 256; i++)
7153     if (XOR (islower (i), ISLOWER (i))
7154         || toupper (i) != TOUPPER (i))
7155       exit(2);
7156   exit (0);
7157 }
7158 _ACEOF
7159 rm -f conftest$ac_exeext
7160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7161   (eval $ac_link) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166   (eval $ac_try) 2>&5
7167   ac_status=$?
7168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169   (exit $ac_status); }; }; then
7170   :
7171 else
7172   echo "$as_me: program exited with status $ac_status" >&5
7173 echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7175
7176 ( exit $ac_status )
7177 ac_cv_header_stdc=no
7178 fi
7179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7180 fi
7181 fi
7182 fi
7183 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7184 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7185 if test $ac_cv_header_stdc = yes; then
7186
7187 cat >>confdefs.h <<\_ACEOF
7188 #define STDC_HEADERS 1
7189 _ACEOF
7190
7191 fi
7192
7193
7194   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7195 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7196 if test "${am_cv_langinfo_codeset+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   cat >conftest.$ac_ext <<_ACEOF
7200 /* confdefs.h.  */
7201 _ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h.  */
7205 #include <langinfo.h>
7206 int
7207 main ()
7208 {
7209 char* cs = nl_langinfo(CODESET);
7210   ;
7211   return 0;
7212 }
7213 _ACEOF
7214 rm -f conftest.$ac_objext conftest$ac_exeext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7216   (eval $ac_link) 2>conftest.er1
7217   ac_status=$?
7218   grep -v '^ *+' conftest.er1 >conftest.err
7219   rm -f conftest.er1
7220   cat conftest.err >&5
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); } &&
7223          { ac_try='test -z "$ac_c_werror_flag"
7224                          || test ! -s conftest.err'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; } &&
7230          { ac_try='test -s conftest$ac_exeext'
7231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232   (eval $ac_try) 2>&5
7233   ac_status=$?
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); }; }; then
7236   am_cv_langinfo_codeset=yes
7237 else
7238   echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7240
7241 am_cv_langinfo_codeset=no
7242 fi
7243 rm -f conftest.err conftest.$ac_objext \
7244       conftest$ac_exeext conftest.$ac_ext
7245
7246 fi
7247 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7248 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7249   if test $am_cv_langinfo_codeset = yes; then
7250
7251 cat >>confdefs.h <<\_ACEOF
7252 #define HAVE_LANGINFO_CODESET 1
7253 _ACEOF
7254
7255   fi
7256
7257 # If we haven't got the data from the intl directory,
7258 # assume NLS is disabled.
7259 USE_NLS=no
7260 LIBINTL=
7261 LIBINTL_DEP=
7262 INCINTL=
7263 XGETTEXT=
7264 GMSGFMT=
7265 POSUB=
7266 if test -f ../intl/config.intl; then
7267   . ../intl/config.intl
7268 fi
7269 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7270 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7271 if test x"$USE_NLS" != xyes; then
7272   echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6
7274 else
7275   echo "$as_me:$LINENO: result: yes" >&5
7276 echo "${ECHO_T}yes" >&6
7277
7278 cat >>confdefs.h <<\_ACEOF
7279 #define ENABLE_NLS 1
7280 _ACEOF
7281
7282
7283   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7284 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7285   # Look for .po and .gmo files in the source directory.
7286   CATALOGS=
7287   XLINGUAS=
7288   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7289     # If there aren't any .gmo files the shell will give us the
7290     # literal string "../path/to/srcdir/po/*.gmo" which has to be
7291     # weeded out.
7292     case "$cat" in *\**)
7293       continue;;
7294     esac
7295     # The quadruple backslash is collapsed to a double backslash
7296     # by the backticks, then collapsed again by the double quotes,
7297     # leaving us with one backslash in the sed expression (right
7298     # before the dot that mustn't act as a wildcard).
7299     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
7300     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
7301     # The user is allowed to set LINGUAS to a list of languages to
7302     # install catalogs for.  If it's empty that means "all of them."
7303     if test "x$LINGUAS" = x; then
7304       CATALOGS="$CATALOGS $cat"
7305       XLINGUAS="$XLINGUAS $lang"
7306     else
7307       case "$LINGUAS" in *$lang*)
7308         CATALOGS="$CATALOGS $cat"
7309         XLINGUAS="$XLINGUAS $lang"
7310         ;;
7311       esac
7312     fi
7313   done
7314   LINGUAS="$XLINGUAS"
7315   echo "$as_me:$LINENO: result: $LINGUAS" >&5
7316 echo "${ECHO_T}$LINGUAS" >&6
7317 fi
7318
7319 echo "$as_me:$LINENO: checking for uchar" >&5
7320 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
7321 if test "${gcc_cv_type_uchar+set}" = set; then
7322   echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324   cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h.  */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h.  */
7330
7331 #include <sys/types.h>
7332
7333 int
7334 main ()
7335 {
7336 if ((uchar *)0) return 0;
7337  if (sizeof(uchar)) return 0;
7338   ;
7339   return 0;
7340 }
7341 _ACEOF
7342 rm -f conftest.$ac_objext
7343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7344   (eval $ac_compile) 2>conftest.er1
7345   ac_status=$?
7346   grep -v '^ *+' conftest.er1 >conftest.err
7347   rm -f conftest.er1
7348   cat conftest.err >&5
7349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350   (exit $ac_status); } &&
7351          { ac_try='test -z "$ac_c_werror_flag"
7352                          || test ! -s conftest.err'
7353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354   (eval $ac_try) 2>&5
7355   ac_status=$?
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); }; } &&
7358          { ac_try='test -s conftest.$ac_objext'
7359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360   (eval $ac_try) 2>&5
7361   ac_status=$?
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); }; }; then
7364   ac_cv_type_uchar=yes
7365 else
7366   echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7368
7369 ac_cv_type_uchar=no
7370 fi
7371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7372 fi
7373 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
7374 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
7375 if test $ac_cv_type_uchar = yes; then
7376
7377 cat >>confdefs.h <<\_ACEOF
7378 #define HAVE_UCHAR 1
7379 _ACEOF
7380
7381 fi
7382
7383
7384       if test "X$prefix" = "XNONE"; then
7385     acl_final_prefix="$ac_default_prefix"
7386   else
7387     acl_final_prefix="$prefix"
7388   fi
7389   if test "X$exec_prefix" = "XNONE"; then
7390     acl_final_exec_prefix='${prefix}'
7391   else
7392     acl_final_exec_prefix="$exec_prefix"
7393   fi
7394   acl_save_prefix="$prefix"
7395   prefix="$acl_final_prefix"
7396   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7397   prefix="$acl_save_prefix"
7398
7399
7400 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7401 if test "${with_gnu_ld+set}" = set; then
7402   withval="$with_gnu_ld"
7403   test "$withval" = no || with_gnu_ld=yes
7404 else
7405   with_gnu_ld=no
7406 fi;
7407 # Prepare PATH_SEPARATOR.
7408 # The user is always right.
7409 if test "${PATH_SEPARATOR+set}" != set; then
7410   echo "#! /bin/sh" >conf$$.sh
7411   echo  "exit 0"   >>conf$$.sh
7412   chmod +x conf$$.sh
7413   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7414     PATH_SEPARATOR=';'
7415   else
7416     PATH_SEPARATOR=:
7417   fi
7418   rm -f conf$$.sh
7419 fi
7420 ac_prog=ld
7421 if test "$GCC" = yes; then
7422   # Check if gcc -print-prog-name=ld gives a path.
7423   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7424 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7425   case $host in
7426   *-*-mingw*)
7427     # gcc leaves a trailing carriage return which upsets mingw
7428     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7429   *)
7430     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7431   esac
7432   case $ac_prog in
7433     # Accept absolute paths.
7434     [\\/]* | [A-Za-z]:[\\/]*)
7435       re_direlt='/[^/][^/]*/\.\./'
7436       # Canonicalize the path of ld
7437       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7438       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7439         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7440       done
7441       test -z "$LD" && LD="$ac_prog"
7442       ;;
7443   "")
7444     # If it fails, then pretend we aren't using GCC.
7445     ac_prog=ld
7446     ;;
7447   *)
7448     # If it is relative, then search for the first ld in PATH.
7449     with_gnu_ld=unknown
7450     ;;
7451   esac
7452 elif test "$with_gnu_ld" = yes; then
7453   echo "$as_me:$LINENO: checking for GNU ld" >&5
7454 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7455 else
7456   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7457 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7458 fi
7459 if test "${acl_cv_path_LD+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462   if test -z "$LD"; then
7463   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7464   for ac_dir in $PATH; do
7465     test -z "$ac_dir" && ac_dir=.
7466     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7467       acl_cv_path_LD="$ac_dir/$ac_prog"
7468       # Check to see if the program is GNU ld.  I'd rather use --version,
7469       # but apparently some GNU ld's only accept -v.
7470       # Break only if it was the GNU/non-GNU ld that we prefer.
7471       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7472         test "$with_gnu_ld" != no && break
7473       else
7474         test "$with_gnu_ld" != yes && break
7475       fi
7476     fi
7477   done
7478   IFS="$ac_save_ifs"
7479 else
7480   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7481 fi
7482 fi
7483
7484 LD="$acl_cv_path_LD"
7485 if test -n "$LD"; then
7486   echo "$as_me:$LINENO: result: $LD" >&5
7487 echo "${ECHO_T}$LD" >&6
7488 else
7489   echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6
7491 fi
7492 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7493 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7494    { (exit 1); exit 1; }; }
7495 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7496 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7497 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7501 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7502   acl_cv_prog_gnu_ld=yes
7503 else
7504   acl_cv_prog_gnu_ld=no
7505 fi
7506 fi
7507 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7508 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7509 with_gnu_ld=$acl_cv_prog_gnu_ld
7510
7511
7512
7513                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7514 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7515 if test "${acl_cv_rpath+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518
7519     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7520     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7521     . ./conftest.sh
7522     rm -f ./conftest.sh
7523     acl_cv_rpath=done
7524
7525 fi
7526 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7527 echo "${ECHO_T}$acl_cv_rpath" >&6
7528   wl="$acl_cv_wl"
7529   libext="$acl_cv_libext"
7530   shlibext="$acl_cv_shlibext"
7531   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7532   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7533   hardcode_direct="$acl_cv_hardcode_direct"
7534   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7535     # Check whether --enable-rpath or --disable-rpath was given.
7536 if test "${enable_rpath+set}" = set; then
7537   enableval="$enable_rpath"
7538   :
7539 else
7540   enable_rpath=yes
7541 fi;
7542
7543
7544
7545
7546
7547
7548
7549     use_additional=yes
7550
7551   acl_save_prefix="$prefix"
7552   prefix="$acl_final_prefix"
7553   acl_save_exec_prefix="$exec_prefix"
7554   exec_prefix="$acl_final_exec_prefix"
7555
7556     eval additional_includedir=\"$includedir\"
7557     eval additional_libdir=\"$libdir\"
7558
7559   exec_prefix="$acl_save_exec_prefix"
7560   prefix="$acl_save_prefix"
7561
7562
7563 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7564 if test "${with_libiconv_prefix+set}" = set; then
7565   withval="$with_libiconv_prefix"
7566
7567     if test "X$withval" = "Xno"; then
7568       use_additional=no
7569     else
7570       if test "X$withval" = "X"; then
7571
7572   acl_save_prefix="$prefix"
7573   prefix="$acl_final_prefix"
7574   acl_save_exec_prefix="$exec_prefix"
7575   exec_prefix="$acl_final_exec_prefix"
7576
7577           eval additional_includedir=\"$includedir\"
7578           eval additional_libdir=\"$libdir\"
7579
7580   exec_prefix="$acl_save_exec_prefix"
7581   prefix="$acl_save_prefix"
7582
7583       else
7584         additional_includedir="$withval/include"
7585         additional_libdir="$withval/lib"
7586       fi
7587     fi
7588
7589 fi;
7590       LIBICONV=
7591   LTLIBICONV=
7592   INCICONV=
7593   rpathdirs=
7594   ltrpathdirs=
7595   names_already_handled=
7596   names_next_round='iconv '
7597   while test -n "$names_next_round"; do
7598     names_this_round="$names_next_round"
7599     names_next_round=
7600     for name in $names_this_round; do
7601       already_handled=
7602       for n in $names_already_handled; do
7603         if test "$n" = "$name"; then
7604           already_handled=yes
7605           break
7606         fi
7607       done
7608       if test -z "$already_handled"; then
7609         names_already_handled="$names_already_handled $name"
7610                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7611         eval value=\"\$HAVE_LIB$uppername\"
7612         if test -n "$value"; then
7613           if test "$value" = yes; then
7614             eval value=\"\$LIB$uppername\"
7615             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7616             eval value=\"\$LTLIB$uppername\"
7617             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7618           else
7619                                     :
7620           fi
7621         else
7622                               found_dir=
7623           found_la=
7624           found_so=
7625           found_a=
7626           if test $use_additional = yes; then
7627             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7628               found_dir="$additional_libdir"
7629               found_so="$additional_libdir/lib$name.$shlibext"
7630               if test -f "$additional_libdir/lib$name.la"; then
7631                 found_la="$additional_libdir/lib$name.la"
7632               fi
7633             else
7634               if test -f "$additional_libdir/lib$name.$libext"; then
7635                 found_dir="$additional_libdir"
7636                 found_a="$additional_libdir/lib$name.$libext"
7637                 if test -f "$additional_libdir/lib$name.la"; then
7638                   found_la="$additional_libdir/lib$name.la"
7639                 fi
7640               fi
7641             fi
7642           fi
7643           if test "X$found_dir" = "X"; then
7644             for x in $LDFLAGS $LTLIBICONV; do
7645
7646   acl_save_prefix="$prefix"
7647   prefix="$acl_final_prefix"
7648   acl_save_exec_prefix="$exec_prefix"
7649   exec_prefix="$acl_final_exec_prefix"
7650   eval x=\"$x\"
7651   exec_prefix="$acl_save_exec_prefix"
7652   prefix="$acl_save_prefix"
7653
7654               case "$x" in
7655                 -L*)
7656                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7657                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7658                     found_dir="$dir"
7659                     found_so="$dir/lib$name.$shlibext"
7660                     if test -f "$dir/lib$name.la"; then
7661                       found_la="$dir/lib$name.la"
7662                     fi
7663                   else
7664                     if test -f "$dir/lib$name.$libext"; then
7665                       found_dir="$dir"
7666                       found_a="$dir/lib$name.$libext"
7667                       if test -f "$dir/lib$name.la"; then
7668                         found_la="$dir/lib$name.la"
7669                       fi
7670                     fi
7671                   fi
7672                   ;;
7673               esac
7674               if test "X$found_dir" != "X"; then
7675                 break
7676               fi
7677             done
7678           fi
7679           if test "X$found_dir" != "X"; then
7680                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7681             if test "X$found_so" != "X"; then
7682                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7683                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7684               else
7685                                                                                 haveit=
7686                 for x in $ltrpathdirs; do
7687                   if test "X$x" = "X$found_dir"; then
7688                     haveit=yes
7689                     break
7690                   fi
7691                 done
7692                 if test -z "$haveit"; then
7693                   ltrpathdirs="$ltrpathdirs $found_dir"
7694                 fi
7695                                 if test "$hardcode_direct" = yes; then
7696                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7697                 else
7698                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7699                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7700                                                             haveit=
7701                     for x in $rpathdirs; do
7702                       if test "X$x" = "X$found_dir"; then
7703                         haveit=yes
7704                         break
7705                       fi
7706                     done
7707                     if test -z "$haveit"; then
7708                       rpathdirs="$rpathdirs $found_dir"
7709                     fi
7710                   else
7711                                                                                 haveit=
7712                     for x in $LDFLAGS $LIBICONV; do
7713
7714   acl_save_prefix="$prefix"
7715   prefix="$acl_final_prefix"
7716   acl_save_exec_prefix="$exec_prefix"
7717   exec_prefix="$acl_final_exec_prefix"
7718   eval x=\"$x\"
7719   exec_prefix="$acl_save_exec_prefix"
7720   prefix="$acl_save_prefix"
7721
7722                       if test "X$x" = "X-L$found_dir"; then
7723                         haveit=yes
7724                         break
7725                       fi
7726                     done
7727                     if test -z "$haveit"; then
7728                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7729                     fi
7730                     if test "$hardcode_minus_L" != no; then
7731                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7732                     else
7733                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7734                     fi
7735                   fi
7736                 fi
7737               fi
7738             else
7739               if test "X$found_a" != "X"; then
7740                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7741               else
7742                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7743               fi
7744             fi
7745                         additional_includedir=
7746             case "$found_dir" in
7747               */lib | */lib/)
7748                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7749                 additional_includedir="$basedir/include"
7750                 ;;
7751             esac
7752             if test "X$additional_includedir" != "X"; then
7753                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7754                 haveit=
7755                 if test "X$additional_includedir" = "X/usr/local/include"; then
7756                   if test -n "$GCC"; then
7757                     case $host_os in
7758                       linux*) haveit=yes;;
7759                     esac
7760                   fi
7761                 fi
7762                 if test -z "$haveit"; then
7763                   for x in $CPPFLAGS $INCICONV; do
7764
7765   acl_save_prefix="$prefix"
7766   prefix="$acl_final_prefix"
7767   acl_save_exec_prefix="$exec_prefix"
7768   exec_prefix="$acl_final_exec_prefix"
7769   eval x=\"$x\"
7770   exec_prefix="$acl_save_exec_prefix"
7771   prefix="$acl_save_prefix"
7772
7773                     if test "X$x" = "X-I$additional_includedir"; then
7774                       haveit=yes
7775                       break
7776                     fi
7777                   done
7778                   if test -z "$haveit"; then
7779                     if test -d "$additional_includedir"; then
7780                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7781                     fi
7782                   fi
7783                 fi
7784               fi
7785             fi
7786                         if test -n "$found_la"; then
7787                                                         save_libdir="$libdir"
7788               case "$found_la" in
7789                 */* | *\\*) . "$found_la" ;;
7790                 *) . "./$found_la" ;;
7791               esac
7792               libdir="$save_libdir"
7793                             for dep in $dependency_libs; do
7794                 case "$dep" in
7795                   -L*)
7796                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7797                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7798                       haveit=
7799                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7800                         if test -n "$GCC"; then
7801                           case $host_os in
7802                             linux*) haveit=yes;;
7803                           esac
7804                         fi
7805                       fi
7806                       if test -z "$haveit"; then
7807                         haveit=
7808                         for x in $LDFLAGS $LIBICONV; do
7809
7810   acl_save_prefix="$prefix"
7811   prefix="$acl_final_prefix"
7812   acl_save_exec_prefix="$exec_prefix"
7813   exec_prefix="$acl_final_exec_prefix"
7814   eval x=\"$x\"
7815   exec_prefix="$acl_save_exec_prefix"
7816   prefix="$acl_save_prefix"
7817
7818                           if test "X$x" = "X-L$additional_libdir"; then
7819                             haveit=yes
7820                             break
7821                           fi
7822                         done
7823                         if test -z "$haveit"; then
7824                           if test -d "$additional_libdir"; then
7825                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7826                           fi
7827                         fi
7828                         haveit=
7829                         for x in $LDFLAGS $LTLIBICONV; do
7830
7831   acl_save_prefix="$prefix"
7832   prefix="$acl_final_prefix"
7833   acl_save_exec_prefix="$exec_prefix"
7834   exec_prefix="$acl_final_exec_prefix"
7835   eval x=\"$x\"
7836   exec_prefix="$acl_save_exec_prefix"
7837   prefix="$acl_save_prefix"
7838
7839                           if test "X$x" = "X-L$additional_libdir"; then
7840                             haveit=yes
7841                             break
7842                           fi
7843                         done
7844                         if test -z "$haveit"; then
7845                           if test -d "$additional_libdir"; then
7846                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7847                           fi
7848                         fi
7849                       fi
7850                     fi
7851                     ;;
7852                   -R*)
7853                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7854                     if test "$enable_rpath" != no; then
7855                                                                   haveit=
7856                       for x in $rpathdirs; do
7857                         if test "X$x" = "X$dir"; then
7858                           haveit=yes
7859                           break
7860                         fi
7861                       done
7862                       if test -z "$haveit"; then
7863                         rpathdirs="$rpathdirs $dir"
7864                       fi
7865                                                                   haveit=
7866                       for x in $ltrpathdirs; do
7867                         if test "X$x" = "X$dir"; then
7868                           haveit=yes
7869                           break
7870                         fi
7871                       done
7872                       if test -z "$haveit"; then
7873                         ltrpathdirs="$ltrpathdirs $dir"
7874                       fi
7875                     fi
7876                     ;;
7877                   -l*)
7878                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7879                     ;;
7880                   *.la)
7881                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7882                     ;;
7883                   *)
7884                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7885                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7886                     ;;
7887                 esac
7888               done
7889             fi
7890           else
7891                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7892             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7893           fi
7894         fi
7895       fi
7896     done
7897   done
7898   if test "X$rpathdirs" != "X"; then
7899     if test -n "$hardcode_libdir_separator"; then
7900                         alldirs=
7901       for found_dir in $rpathdirs; do
7902         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7903       done
7904             acl_save_libdir="$libdir"
7905       libdir="$alldirs"
7906       eval flag=\"$hardcode_libdir_flag_spec\"
7907       libdir="$acl_save_libdir"
7908       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7909     else
7910             for found_dir in $rpathdirs; do
7911         acl_save_libdir="$libdir"
7912         libdir="$found_dir"
7913         eval flag=\"$hardcode_libdir_flag_spec\"
7914         libdir="$acl_save_libdir"
7915         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7916       done
7917     fi
7918   fi
7919   if test "X$ltrpathdirs" != "X"; then
7920             for found_dir in $ltrpathdirs; do
7921       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7922     done
7923   fi
7924
7925
7926
7927
7928
7929
7930
7931           am_save_CPPFLAGS="$CPPFLAGS"
7932
7933   for element in $INCICONV; do
7934     haveit=
7935     for x in $CPPFLAGS; do
7936
7937   acl_save_prefix="$prefix"
7938   prefix="$acl_final_prefix"
7939   acl_save_exec_prefix="$exec_prefix"
7940   exec_prefix="$acl_final_exec_prefix"
7941   eval x=\"$x\"
7942   exec_prefix="$acl_save_exec_prefix"
7943   prefix="$acl_save_prefix"
7944
7945       if test "X$x" = "X$element"; then
7946         haveit=yes
7947         break
7948       fi
7949     done
7950     if test -z "$haveit"; then
7951       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7952     fi
7953   done
7954
7955
7956   echo "$as_me:$LINENO: checking for iconv" >&5
7957 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7958 if test "${am_cv_func_iconv+set}" = set; then
7959   echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961
7962     am_cv_func_iconv="no, consider installing GNU libiconv"
7963     am_cv_lib_iconv=no
7964     cat >conftest.$ac_ext <<_ACEOF
7965 /* confdefs.h.  */
7966 _ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h.  */
7970 #include <stdlib.h>
7971 #include <iconv.h>
7972 int
7973 main ()
7974 {
7975 iconv_t cd = iconv_open("","");
7976        iconv(cd,NULL,NULL,NULL,NULL);
7977        iconv_close(cd);
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984   (eval $ac_link) 2>conftest.er1
7985   ac_status=$?
7986   grep -v '^ *+' conftest.er1 >conftest.err
7987   rm -f conftest.er1
7988   cat conftest.err >&5
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); } &&
7991          { ac_try='test -z "$ac_c_werror_flag"
7992                          || test ! -s conftest.err'
7993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994   (eval $ac_try) 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); }; } &&
7998          { ac_try='test -s conftest$ac_exeext'
7999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000   (eval $ac_try) 2>&5
8001   ac_status=$?
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); }; }; then
8004   am_cv_func_iconv=yes
8005 else
8006   echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009 fi
8010 rm -f conftest.err conftest.$ac_objext \
8011       conftest$ac_exeext conftest.$ac_ext
8012     if test "$am_cv_func_iconv" != yes; then
8013       am_save_LIBS="$LIBS"
8014       LIBS="$LIBS $LIBICONV"
8015       cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h.  */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h.  */
8021 #include <stdlib.h>
8022 #include <iconv.h>
8023 int
8024 main ()
8025 {
8026 iconv_t cd = iconv_open("","");
8027          iconv(cd,NULL,NULL,NULL,NULL);
8028          iconv_close(cd);
8029   ;
8030   return 0;
8031 }
8032 _ACEOF
8033 rm -f conftest.$ac_objext conftest$ac_exeext
8034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8035   (eval $ac_link) 2>conftest.er1
8036   ac_status=$?
8037   grep -v '^ *+' conftest.er1 >conftest.err
8038   rm -f conftest.er1
8039   cat conftest.err >&5
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); } &&
8042          { ac_try='test -z "$ac_c_werror_flag"
8043                          || test ! -s conftest.err'
8044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045   (eval $ac_try) 2>&5
8046   ac_status=$?
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); }; } &&
8049          { ac_try='test -s conftest$ac_exeext'
8050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051   (eval $ac_try) 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; }; then
8055   am_cv_lib_iconv=yes
8056         am_cv_func_iconv=yes
8057 else
8058   echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8060
8061 fi
8062 rm -f conftest.err conftest.$ac_objext \
8063       conftest$ac_exeext conftest.$ac_ext
8064       LIBS="$am_save_LIBS"
8065     fi
8066
8067 fi
8068 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8069 echo "${ECHO_T}$am_cv_func_iconv" >&6
8070   if test "$am_cv_func_iconv" = yes; then
8071
8072 cat >>confdefs.h <<\_ACEOF
8073 #define HAVE_ICONV 1
8074 _ACEOF
8075
8076   fi
8077   if test "$am_cv_lib_iconv" = yes; then
8078     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8079 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8080     echo "$as_me:$LINENO: result: $LIBICONV" >&5
8081 echo "${ECHO_T}$LIBICONV" >&6
8082   else
8083             CPPFLAGS="$am_save_CPPFLAGS"
8084     LIBICONV=
8085     LTLIBICONV=
8086   fi
8087
8088
8089
8090   if test "$am_cv_func_iconv" = yes; then
8091     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8092 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8093     if test "${am_cv_proto_iconv+set}" = set; then
8094   echo $ECHO_N "(cached) $ECHO_C" >&6
8095 else
8096
8097       cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103
8104 #include <stdlib.h>
8105 #include <iconv.h>
8106 extern
8107 #ifdef __cplusplus
8108 "C"
8109 #endif
8110 #if defined(__STDC__) || defined(__cplusplus)
8111 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8112 #else
8113 size_t iconv();
8114 #endif
8115
8116 int
8117 main ()
8118 {
8119
8120   ;
8121   return 0;
8122 }
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126   (eval $ac_compile) 2>conftest.er1
8127   ac_status=$?
8128   grep -v '^ *+' conftest.er1 >conftest.err
8129   rm -f conftest.er1
8130   cat conftest.err >&5
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } &&
8133          { ac_try='test -z "$ac_c_werror_flag"
8134                          || test ! -s conftest.err'
8135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136   (eval $ac_try) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; } &&
8140          { ac_try='test -s conftest.$ac_objext'
8141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142   (eval $ac_try) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); }; }; then
8146   am_cv_proto_iconv_arg1=""
8147 else
8148   echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 am_cv_proto_iconv_arg1="const"
8152 fi
8153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154       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);"
8155 fi
8156
8157     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8158     echo "$as_me:$LINENO: result: ${ac_t:-
8159          }$am_cv_proto_iconv" >&5
8160 echo "${ECHO_T}${ac_t:-
8161          }$am_cv_proto_iconv" >&6
8162
8163 cat >>confdefs.h <<_ACEOF
8164 #define ICONV_CONST $am_cv_proto_iconv_arg1
8165 _ACEOF
8166
8167   fi
8168
8169
8170 # More defines and substitutions.
8171 PACKAGE="$PACKAGE_TARNAME"
8172
8173 cat >>confdefs.h <<_ACEOF
8174 #define PACKAGE "$PACKAGE"
8175 _ACEOF
8176
8177
8178
8179 if test "x$enable_nls" != xno; then
8180   USED_CATALOGS='$(CATALOGS)'
8181 else
8182   USED_CATALOGS=
8183 fi
8184
8185
8186 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8187 if test "${enable_maintainer_mode+set}" = set; then
8188   enableval="$enable_maintainer_mode"
8189
8190 else
8191   enable_maintainer_mode=no
8192 fi;
8193
8194 if test "x$enable_maintainer_mode" = xno; then
8195   MAINT='#'
8196 else
8197   MAINT=
8198 fi
8199
8200
8201 # Check whether --enable-checking or --disable-checking was given.
8202 if test "${enable_checking+set}" = set; then
8203   enableval="$enable_checking"
8204
8205 else
8206   enable_checking=no
8207 fi;
8208
8209 if test $enable_checking != no ; then
8210
8211 cat >>confdefs.h <<\_ACEOF
8212 #define ENABLE_CHECKING 1
8213 _ACEOF
8214
8215 fi
8216
8217
8218 case $target in
8219         alpha*-*-* | \
8220         arm*-*-eabi* | \
8221         arm*-*-symbianelf* | \
8222         x86_64-*-* | \
8223         ia64-*-* | \
8224         hppa*64*-*-* | parisc*64*-*-* | \
8225         i[34567]86-*-solaris2.1[0-9]* | \
8226         mips*-*-* | \
8227         mmix-*-* | \
8228         powerpc*-*-* | \
8229         rs6000*-*-* | \
8230         s390*-*-* | \
8231         sparc64*-*-* | ultrasparc-*-freebsd* | \
8232         sparcv9-*-solaris2* | \
8233         sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9]* | \
8234         sh[123456789l]*-*-*)
8235                 need_64bit_hwint=yes ;;
8236         *)
8237                 need_64bit_hwint=no ;;
8238 esac
8239
8240 case $need_64bit_hwint:$ac_cv_sizeof_long in
8241         *:8 | no:*) host_wide_int=long ;;
8242         *) host_wide_int='long long' ;;
8243 esac
8244
8245
8246
8247 cat >>confdefs.h <<_ACEOF
8248 #define HOST_WIDE_INT $host_wide_int
8249 _ACEOF
8250
8251
8252 # Output.
8253
8254           ac_config_headers="$ac_config_headers config.h:config.in"
8255
8256           ac_config_files="$ac_config_files Makefile"
8257
8258 cat >confcache <<\_ACEOF
8259 # This file is a shell script that caches the results of configure
8260 # tests run on this system so they can be shared between configure
8261 # scripts and configure runs, see configure's option --config-cache.
8262 # It is not useful on other systems.  If it contains results you don't
8263 # want to keep, you may remove or edit it.
8264 #
8265 # config.status only pays attention to the cache file if you give it
8266 # the --recheck option to rerun configure.
8267 #
8268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8270 # following values.
8271
8272 _ACEOF
8273
8274 # The following way of writing the cache mishandles newlines in values,
8275 # but we know of no workaround that is simple, portable, and efficient.
8276 # So, don't put newlines in cache variables' values.
8277 # Ultrix sh set writes to stderr and can't be redirected directly,
8278 # and sets the high bit in the cache file unless we assign to the vars.
8279 {
8280   (set) 2>&1 |
8281     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8282     *ac_space=\ *)
8283       # `set' does not quote correctly, so add quotes (double-quote
8284       # substitution turns \\\\ into \\, and sed turns \\ into \).
8285       sed -n \
8286         "s/'/'\\\\''/g;
8287           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8288       ;;
8289     *)
8290       # `set' quotes correctly as required by POSIX, so do not add quotes.
8291       sed -n \
8292         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8293       ;;
8294     esac;
8295 } |
8296   sed '
8297      t clear
8298      : clear
8299      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8300      t end
8301      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8302      : end' >>confcache
8303 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8304   if test -w $cache_file; then
8305     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8306     cat confcache >$cache_file
8307   else
8308     echo "not updating unwritable cache $cache_file"
8309   fi
8310 fi
8311 rm -f confcache
8312
8313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8314 # Let make expand exec_prefix.
8315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8316
8317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8319 # trailing colons and then remove the whole line if VPATH becomes empty
8320 # (actually we leave an empty line to preserve line numbers).
8321 if test "x$srcdir" = x.; then
8322   ac_vpsub='/^[  ]*VPATH[        ]*=/{
8323 s/:*\$(srcdir):*/:/;
8324 s/:*\${srcdir}:*/:/;
8325 s/:*@srcdir@:*/:/;
8326 s/^\([^=]*=[     ]*\):*/\1/;
8327 s/:*$//;
8328 s/^[^=]*=[       ]*$//;
8329 }'
8330 fi
8331
8332 DEFS=-DHAVE_CONFIG_H
8333
8334 ac_libobjs=
8335 ac_ltlibobjs=
8336 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8337   # 1. Remove the extension, and $U if already installed.
8338   ac_i=`echo "$ac_i" |
8339          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8340   # 2. Add them.
8341   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8342   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8343 done
8344 LIBOBJS=$ac_libobjs
8345
8346 LTLIBOBJS=$ac_ltlibobjs
8347
8348
8349
8350 : ${CONFIG_STATUS=./config.status}
8351 ac_clean_files_save=$ac_clean_files
8352 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8353 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8354 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8355 cat >$CONFIG_STATUS <<_ACEOF
8356 #! $SHELL
8357 # Generated by $as_me.
8358 # Run this file to recreate the current configuration.
8359 # Compiler output produced by configure, useful for debugging
8360 # configure, is in config.log if it exists.
8361
8362 debug=false
8363 ac_cs_recheck=false
8364 ac_cs_silent=false
8365 SHELL=\${CONFIG_SHELL-$SHELL}
8366 _ACEOF
8367
8368 cat >>$CONFIG_STATUS <<\_ACEOF
8369 ## --------------------- ##
8370 ## M4sh Initialization.  ##
8371 ## --------------------- ##
8372
8373 # Be Bourne compatible
8374 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8375   emulate sh
8376   NULLCMD=:
8377   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8378   # is contrary to our usage.  Disable this feature.
8379   alias -g '${1+"$@"}'='"$@"'
8380 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8381   set -o posix
8382 fi
8383 DUALCASE=1; export DUALCASE # for MKS sh
8384
8385 # Support unset when possible.
8386 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8387   as_unset=unset
8388 else
8389   as_unset=false
8390 fi
8391
8392
8393 # Work around bugs in pre-3.0 UWIN ksh.
8394 $as_unset ENV MAIL MAILPATH
8395 PS1='$ '
8396 PS2='> '
8397 PS4='+ '
8398
8399 # NLS nuisances.
8400 for as_var in \
8401   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8402   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8403   LC_TELEPHONE LC_TIME
8404 do
8405   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8406     eval $as_var=C; export $as_var
8407   else
8408     $as_unset $as_var
8409   fi
8410 done
8411
8412 # Required to use basename.
8413 if expr a : '\(a\)' >/dev/null 2>&1; then
8414   as_expr=expr
8415 else
8416   as_expr=false
8417 fi
8418
8419 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8420   as_basename=basename
8421 else
8422   as_basename=false
8423 fi
8424
8425
8426 # Name of the executable.
8427 as_me=`$as_basename "$0" ||
8428 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8429          X"$0" : 'X\(//\)$' \| \
8430          X"$0" : 'X\(/\)$' \| \
8431          .     : '\(.\)' 2>/dev/null ||
8432 echo X/"$0" |
8433     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8434           /^X\/\(\/\/\)$/{ s//\1/; q; }
8435           /^X\/\(\/\).*/{ s//\1/; q; }
8436           s/.*/./; q'`
8437
8438
8439 # PATH needs CR, and LINENO needs CR and PATH.
8440 # Avoid depending upon Character Ranges.
8441 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8442 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8443 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8444 as_cr_digits='0123456789'
8445 as_cr_alnum=$as_cr_Letters$as_cr_digits
8446
8447 # The user is always right.
8448 if test "${PATH_SEPARATOR+set}" != set; then
8449   echo "#! /bin/sh" >conf$$.sh
8450   echo  "exit 0"   >>conf$$.sh
8451   chmod +x conf$$.sh
8452   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8453     PATH_SEPARATOR=';'
8454   else
8455     PATH_SEPARATOR=:
8456   fi
8457   rm -f conf$$.sh
8458 fi
8459
8460
8461   as_lineno_1=$LINENO
8462   as_lineno_2=$LINENO
8463   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8464   test "x$as_lineno_1" != "x$as_lineno_2" &&
8465   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8466   # Find who we are.  Look in the path if we contain no path at all
8467   # relative or not.
8468   case $0 in
8469     *[\\/]* ) as_myself=$0 ;;
8470     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473   IFS=$as_save_IFS
8474   test -z "$as_dir" && as_dir=.
8475   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8476 done
8477
8478        ;;
8479   esac
8480   # We did not find ourselves, most probably we were run as `sh COMMAND'
8481   # in which case we are not to be found in the path.
8482   if test "x$as_myself" = x; then
8483     as_myself=$0
8484   fi
8485   if test ! -f "$as_myself"; then
8486     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8487 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8488    { (exit 1); exit 1; }; }
8489   fi
8490   case $CONFIG_SHELL in
8491   '')
8492     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8494 do
8495   IFS=$as_save_IFS
8496   test -z "$as_dir" && as_dir=.
8497   for as_base in sh bash ksh sh5; do
8498          case $as_dir in
8499          /*)
8500            if ("$as_dir/$as_base" -c '
8501   as_lineno_1=$LINENO
8502   as_lineno_2=$LINENO
8503   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8504   test "x$as_lineno_1" != "x$as_lineno_2" &&
8505   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8506              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8507              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8508              CONFIG_SHELL=$as_dir/$as_base
8509              export CONFIG_SHELL
8510              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8511            fi;;
8512          esac
8513        done
8514 done
8515 ;;
8516   esac
8517
8518   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8519   # uniformly replaced by the line number.  The first 'sed' inserts a
8520   # line-number line before each line; the second 'sed' does the real
8521   # work.  The second script uses 'N' to pair each line-number line
8522   # with the numbered line, and appends trailing '-' during
8523   # substitution so that $LINENO is not a special case at line end.
8524   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8525   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8526   sed '=' <$as_myself |
8527     sed '
8528       N
8529       s,$,-,
8530       : loop
8531       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8532       t loop
8533       s,-$,,
8534       s,^['$as_cr_digits']*\n,,
8535     ' >$as_me.lineno &&
8536   chmod +x $as_me.lineno ||
8537     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8538 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8539    { (exit 1); exit 1; }; }
8540
8541   # Don't try to exec as it changes $[0], causing all sort of problems
8542   # (the dirname of $[0] is not the place where we might find the
8543   # original and so on.  Autoconf is especially sensible to this).
8544   . ./$as_me.lineno
8545   # Exit status is that of the last command.
8546   exit
8547 }
8548
8549
8550 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8551   *c*,-n*) ECHO_N= ECHO_C='
8552 ' ECHO_T='      ' ;;
8553   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8554   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8555 esac
8556
8557 if expr a : '\(a\)' >/dev/null 2>&1; then
8558   as_expr=expr
8559 else
8560   as_expr=false
8561 fi
8562
8563 rm -f conf$$ conf$$.exe conf$$.file
8564 echo >conf$$.file
8565 if ln -s conf$$.file conf$$ 2>/dev/null; then
8566   # We could just check for DJGPP; but this test a) works b) is more generic
8567   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8568   if test -f conf$$.exe; then
8569     # Don't use ln at all; we don't have any links
8570     as_ln_s='cp -p'
8571   else
8572     as_ln_s='ln -s'
8573   fi
8574 elif ln conf$$.file conf$$ 2>/dev/null; then
8575   as_ln_s=ln
8576 else
8577   as_ln_s='cp -p'
8578 fi
8579 rm -f conf$$ conf$$.exe conf$$.file
8580
8581 if mkdir -p . 2>/dev/null; then
8582   as_mkdir_p=:
8583 else
8584   test -d ./-p && rmdir ./-p
8585   as_mkdir_p=false
8586 fi
8587
8588 as_executable_p="test -f"
8589
8590 # Sed expression to map a string onto a valid CPP name.
8591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8592
8593 # Sed expression to map a string onto a valid variable name.
8594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8595
8596
8597 # IFS
8598 # We need space, tab and new line, in precisely that order.
8599 as_nl='
8600 '
8601 IFS="   $as_nl"
8602
8603 # CDPATH.
8604 $as_unset CDPATH
8605
8606 exec 6>&1
8607
8608 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8609 # report actual input values of CONFIG_FILES etc. instead of their
8610 # values after options handling.  Logging --version etc. is OK.
8611 exec 5>>config.log
8612 {
8613   echo
8614   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8615 ## Running $as_me. ##
8616 _ASBOX
8617 } >&5
8618 cat >&5 <<_CSEOF
8619
8620 This file was extended by cpplib $as_me  , which was
8621 generated by GNU Autoconf 2.59.  Invocation command line was
8622
8623   CONFIG_FILES    = $CONFIG_FILES
8624   CONFIG_HEADERS  = $CONFIG_HEADERS
8625   CONFIG_LINKS    = $CONFIG_LINKS
8626   CONFIG_COMMANDS = $CONFIG_COMMANDS
8627   $ $0 $@
8628
8629 _CSEOF
8630 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8631 echo >&5
8632 _ACEOF
8633
8634 # Files that config.status was made for.
8635 if test -n "$ac_config_files"; then
8636   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8637 fi
8638
8639 if test -n "$ac_config_headers"; then
8640   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8641 fi
8642
8643 if test -n "$ac_config_links"; then
8644   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8645 fi
8646
8647 if test -n "$ac_config_commands"; then
8648   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8649 fi
8650
8651 cat >>$CONFIG_STATUS <<\_ACEOF
8652
8653 ac_cs_usage="\
8654 \`$as_me' instantiates files from templates according to the
8655 current configuration.
8656
8657 Usage: $0 [OPTIONS] [FILE]...
8658
8659   -h, --help       print this help, then exit
8660   -V, --version    print version number, then exit
8661   -q, --quiet      do not print progress messages
8662   -d, --debug      don't remove temporary files
8663       --recheck    update $as_me by reconfiguring in the same conditions
8664   --file=FILE[:TEMPLATE]
8665                    instantiate the configuration file FILE
8666   --header=FILE[:TEMPLATE]
8667                    instantiate the configuration header FILE
8668
8669 Configuration files:
8670 $config_files
8671
8672 Configuration headers:
8673 $config_headers
8674
8675 Configuration commands:
8676 $config_commands
8677
8678 Report bugs to <bug-autoconf@gnu.org>."
8679 _ACEOF
8680
8681 cat >>$CONFIG_STATUS <<_ACEOF
8682 ac_cs_version="\\
8683 cpplib config.status
8684 configured by $0, generated by GNU Autoconf 2.59,
8685   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8686
8687 Copyright (C) 2003 Free Software Foundation, Inc.
8688 This config.status script is free software; the Free Software Foundation
8689 gives unlimited permission to copy, distribute and modify it."
8690 srcdir=$srcdir
8691 INSTALL="$INSTALL"
8692 _ACEOF
8693
8694 cat >>$CONFIG_STATUS <<\_ACEOF
8695 # If no file are specified by the user, then we need to provide default
8696 # value.  By we need to know if files were specified by the user.
8697 ac_need_defaults=:
8698 while test $# != 0
8699 do
8700   case $1 in
8701   --*=*)
8702     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8703     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8704     ac_shift=:
8705     ;;
8706   -*)
8707     ac_option=$1
8708     ac_optarg=$2
8709     ac_shift=shift
8710     ;;
8711   *) # This is not an option, so the user has probably given explicit
8712      # arguments.
8713      ac_option=$1
8714      ac_need_defaults=false;;
8715   esac
8716
8717   case $ac_option in
8718   # Handling of the options.
8719 _ACEOF
8720 cat >>$CONFIG_STATUS <<\_ACEOF
8721   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8722     ac_cs_recheck=: ;;
8723   --version | --vers* | -V )
8724     echo "$ac_cs_version"; exit 0 ;;
8725   --he | --h)
8726     # Conflict between --help and --header
8727     { { echo "$as_me:$LINENO: error: ambiguous option: $1
8728 Try \`$0 --help' for more information." >&5
8729 echo "$as_me: error: ambiguous option: $1
8730 Try \`$0 --help' for more information." >&2;}
8731    { (exit 1); exit 1; }; };;
8732   --help | --hel | -h )
8733     echo "$ac_cs_usage"; exit 0 ;;
8734   --debug | --d* | -d )
8735     debug=: ;;
8736   --file | --fil | --fi | --f )
8737     $ac_shift
8738     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8739     ac_need_defaults=false;;
8740   --header | --heade | --head | --hea )
8741     $ac_shift
8742     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8743     ac_need_defaults=false;;
8744   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8745   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8746     ac_cs_silent=: ;;
8747
8748   # This is an error.
8749   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8750 Try \`$0 --help' for more information." >&5
8751 echo "$as_me: error: unrecognized option: $1
8752 Try \`$0 --help' for more information." >&2;}
8753    { (exit 1); exit 1; }; } ;;
8754
8755   *) ac_config_targets="$ac_config_targets $1" ;;
8756
8757   esac
8758   shift
8759 done
8760
8761 ac_configure_extra_args=
8762
8763 if $ac_cs_silent; then
8764   exec 6>/dev/null
8765   ac_configure_extra_args="$ac_configure_extra_args --silent"
8766 fi
8767
8768 _ACEOF
8769 cat >>$CONFIG_STATUS <<_ACEOF
8770 if \$ac_cs_recheck; then
8771   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8772   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8773 fi
8774
8775 _ACEOF
8776
8777 cat >>$CONFIG_STATUS <<_ACEOF
8778 #
8779 # INIT-COMMANDS section.
8780 #
8781
8782 DEPDIR=$DEPDIR
8783
8784 _ACEOF
8785
8786
8787
8788 cat >>$CONFIG_STATUS <<\_ACEOF
8789 for ac_config_target in $ac_config_targets
8790 do
8791   case "$ac_config_target" in
8792   # Handling of arguments.
8793   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8794   "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
8795   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8796   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8797 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8798    { (exit 1); exit 1; }; };;
8799   esac
8800 done
8801
8802 # If the user did not use the arguments to specify the items to instantiate,
8803 # then the envvar interface is used.  Set only those that are not.
8804 # We use the long form for the default assignment because of an extremely
8805 # bizarre bug on SunOS 4.1.3.
8806 if $ac_need_defaults; then
8807   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8808   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8809   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8810 fi
8811
8812 # Have a temporary directory for convenience.  Make it in the build tree
8813 # simply because there is no reason to put it here, and in addition,
8814 # creating and moving files from /tmp can sometimes cause problems.
8815 # Create a temporary directory, and hook for its removal unless debugging.
8816 $debug ||
8817 {
8818   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8819   trap '{ (exit 1); exit 1; }' 1 2 13 15
8820 }
8821
8822 # Create a (secure) tmp directory for tmp files.
8823
8824 {
8825   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8826   test -n "$tmp" && test -d "$tmp"
8827 }  ||
8828 {
8829   tmp=./confstat$$-$RANDOM
8830   (umask 077 && mkdir $tmp)
8831 } ||
8832 {
8833    echo "$me: cannot create a temporary directory in ." >&2
8834    { (exit 1); exit 1; }
8835 }
8836
8837 _ACEOF
8838
8839 cat >>$CONFIG_STATUS <<_ACEOF
8840
8841 #
8842 # CONFIG_FILES section.
8843 #
8844
8845 # No need to generate the scripts if there are no CONFIG_FILES.
8846 # This happens for instance when ./config.status config.h
8847 if test -n "\$CONFIG_FILES"; then
8848   # Protect against being on the right side of a sed subst in config.status.
8849   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8850    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8851 s,@SHELL@,$SHELL,;t t
8852 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8853 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8854 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8855 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8856 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8857 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8858 s,@exec_prefix@,$exec_prefix,;t t
8859 s,@prefix@,$prefix,;t t
8860 s,@program_transform_name@,$program_transform_name,;t t
8861 s,@bindir@,$bindir,;t t
8862 s,@sbindir@,$sbindir,;t t
8863 s,@libexecdir@,$libexecdir,;t t
8864 s,@datadir@,$datadir,;t t
8865 s,@sysconfdir@,$sysconfdir,;t t
8866 s,@sharedstatedir@,$sharedstatedir,;t t
8867 s,@localstatedir@,$localstatedir,;t t
8868 s,@libdir@,$libdir,;t t
8869 s,@includedir@,$includedir,;t t
8870 s,@oldincludedir@,$oldincludedir,;t t
8871 s,@infodir@,$infodir,;t t
8872 s,@mandir@,$mandir,;t t
8873 s,@build_alias@,$build_alias,;t t
8874 s,@host_alias@,$host_alias,;t t
8875 s,@target_alias@,$target_alias,;t t
8876 s,@DEFS@,$DEFS,;t t
8877 s,@ECHO_C@,$ECHO_C,;t t
8878 s,@ECHO_N@,$ECHO_N,;t t
8879 s,@ECHO_T@,$ECHO_T,;t t
8880 s,@LIBS@,$LIBS,;t t
8881 s,@build@,$build,;t t
8882 s,@build_cpu@,$build_cpu,;t t
8883 s,@build_vendor@,$build_vendor,;t t
8884 s,@build_os@,$build_os,;t t
8885 s,@host@,$host,;t t
8886 s,@host_cpu@,$host_cpu,;t t
8887 s,@host_vendor@,$host_vendor,;t t
8888 s,@host_os@,$host_os,;t t
8889 s,@target@,$target,;t t
8890 s,@target_cpu@,$target_cpu,;t t
8891 s,@target_vendor@,$target_vendor,;t t
8892 s,@target_os@,$target_os,;t t
8893 s,@SET_MAKE@,$SET_MAKE,;t t
8894 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8895 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8896 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8897 s,@CC@,$CC,;t t
8898 s,@CFLAGS@,$CFLAGS,;t t
8899 s,@LDFLAGS@,$LDFLAGS,;t t
8900 s,@CPPFLAGS@,$CPPFLAGS,;t t
8901 s,@ac_ct_CC@,$ac_ct_CC,;t t
8902 s,@EXEEXT@,$EXEEXT,;t t
8903 s,@OBJEXT@,$OBJEXT,;t t
8904 s,@RANLIB@,$RANLIB,;t t
8905 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8906 s,@ACLOCAL@,$ACLOCAL,;t t
8907 s,@AUTOCONF@,$AUTOCONF,;t t
8908 s,@AUTOHEADER@,$AUTOHEADER,;t t
8909 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8910 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
8911 s,@WERROR@,$WERROR,;t t
8912 s,@am__leading_dot@,$am__leading_dot,;t t
8913 s,@DEPDIR@,$DEPDIR,;t t
8914 s,@CCDEPMODE@,$CCDEPMODE,;t t
8915 s,@CPP@,$CPP,;t t
8916 s,@EGREP@,$EGREP,;t t
8917 s,@LIBOBJS@,$LIBOBJS,;t t
8918 s,@ALLOCA@,$ALLOCA,;t t
8919 s,@USE_NLS@,$USE_NLS,;t t
8920 s,@LIBINTL@,$LIBINTL,;t t
8921 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
8922 s,@INCINTL@,$INCINTL,;t t
8923 s,@XGETTEXT@,$XGETTEXT,;t t
8924 s,@GMSGFMT@,$GMSGFMT,;t t
8925 s,@POSUB@,$POSUB,;t t
8926 s,@CATALOGS@,$CATALOGS,;t t
8927 s,@LIBICONV@,$LIBICONV,;t t
8928 s,@LTLIBICONV@,$LTLIBICONV,;t t
8929 s,@PACKAGE@,$PACKAGE,;t t
8930 s,@USED_CATALOGS@,$USED_CATALOGS,;t t
8931 s,@MAINT@,$MAINT,;t t
8932 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8933 CEOF
8934
8935 _ACEOF
8936
8937   cat >>$CONFIG_STATUS <<\_ACEOF
8938   # Split the substitutions into bite-sized pieces for seds with
8939   # small command number limits, like on Digital OSF/1 and HP-UX.
8940   ac_max_sed_lines=48
8941   ac_sed_frag=1 # Number of current file.
8942   ac_beg=1 # First line for current file.
8943   ac_end=$ac_max_sed_lines # Line after last line for current file.
8944   ac_more_lines=:
8945   ac_sed_cmds=
8946   while $ac_more_lines; do
8947     if test $ac_beg -gt 1; then
8948       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8949     else
8950       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8951     fi
8952     if test ! -s $tmp/subs.frag; then
8953       ac_more_lines=false
8954     else
8955       # The purpose of the label and of the branching condition is to
8956       # speed up the sed processing (if there are no `@' at all, there
8957       # is no need to browse any of the substitutions).
8958       # These are the two extra sed commands mentioned above.
8959       (echo ':t
8960   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8961       if test -z "$ac_sed_cmds"; then
8962         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8963       else
8964         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8965       fi
8966       ac_sed_frag=`expr $ac_sed_frag + 1`
8967       ac_beg=$ac_end
8968       ac_end=`expr $ac_end + $ac_max_sed_lines`
8969     fi
8970   done
8971   if test -z "$ac_sed_cmds"; then
8972     ac_sed_cmds=cat
8973   fi
8974 fi # test -n "$CONFIG_FILES"
8975
8976 _ACEOF
8977 cat >>$CONFIG_STATUS <<\_ACEOF
8978 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8979   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8980   case $ac_file in
8981   - | *:- | *:-:* ) # input from stdin
8982         cat >$tmp/stdin
8983         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8984         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8985   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8986         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8987   * )   ac_file_in=$ac_file.in ;;
8988   esac
8989
8990   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8991   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8993          X"$ac_file" : 'X\(//\)[^/]' \| \
8994          X"$ac_file" : 'X\(//\)$' \| \
8995          X"$ac_file" : 'X\(/\)' \| \
8996          .     : '\(.\)' 2>/dev/null ||
8997 echo X"$ac_file" |
8998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8999           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9000           /^X\(\/\/\)$/{ s//\1/; q; }
9001           /^X\(\/\).*/{ s//\1/; q; }
9002           s/.*/./; q'`
9003   { if $as_mkdir_p; then
9004     mkdir -p "$ac_dir"
9005   else
9006     as_dir="$ac_dir"
9007     as_dirs=
9008     while test ! -d "$as_dir"; do
9009       as_dirs="$as_dir $as_dirs"
9010       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9012          X"$as_dir" : 'X\(//\)[^/]' \| \
9013          X"$as_dir" : 'X\(//\)$' \| \
9014          X"$as_dir" : 'X\(/\)' \| \
9015          .     : '\(.\)' 2>/dev/null ||
9016 echo X"$as_dir" |
9017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9018           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9019           /^X\(\/\/\)$/{ s//\1/; q; }
9020           /^X\(\/\).*/{ s//\1/; q; }
9021           s/.*/./; q'`
9022     done
9023     test ! -n "$as_dirs" || mkdir $as_dirs
9024   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9026    { (exit 1); exit 1; }; }; }
9027
9028   ac_builddir=.
9029
9030 if test "$ac_dir" != .; then
9031   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9032   # A "../" for each directory in $ac_dir_suffix.
9033   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9034 else
9035   ac_dir_suffix= ac_top_builddir=
9036 fi
9037
9038 case $srcdir in
9039   .)  # No --srcdir option.  We are building in place.
9040     ac_srcdir=.
9041     if test -z "$ac_top_builddir"; then
9042        ac_top_srcdir=.
9043     else
9044        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9045     fi ;;
9046   [\\/]* | ?:[\\/]* )  # Absolute path.
9047     ac_srcdir=$srcdir$ac_dir_suffix;
9048     ac_top_srcdir=$srcdir ;;
9049   *) # Relative path.
9050     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9051     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9052 esac
9053
9054 # Do not use `cd foo && pwd` to compute absolute paths, because
9055 # the directories may not exist.
9056 case `pwd` in
9057 .) ac_abs_builddir="$ac_dir";;
9058 *)
9059   case "$ac_dir" in
9060   .) ac_abs_builddir=`pwd`;;
9061   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9062   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9063   esac;;
9064 esac
9065 case $ac_abs_builddir in
9066 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9067 *)
9068   case ${ac_top_builddir}. in
9069   .) ac_abs_top_builddir=$ac_abs_builddir;;
9070   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9071   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9072   esac;;
9073 esac
9074 case $ac_abs_builddir in
9075 .) ac_abs_srcdir=$ac_srcdir;;
9076 *)
9077   case $ac_srcdir in
9078   .) ac_abs_srcdir=$ac_abs_builddir;;
9079   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9080   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9081   esac;;
9082 esac
9083 case $ac_abs_builddir in
9084 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9085 *)
9086   case $ac_top_srcdir in
9087   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9088   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9089   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9090   esac;;
9091 esac
9092
9093
9094   case $INSTALL in
9095   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9096   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9097   esac
9098
9099   if test x"$ac_file" != x-; then
9100     { echo "$as_me:$LINENO: creating $ac_file" >&5
9101 echo "$as_me: creating $ac_file" >&6;}
9102     rm -f "$ac_file"
9103   fi
9104   # Let's still pretend it is `configure' which instantiates (i.e., don't
9105   # use $as_me), people would be surprised to read:
9106   #    /* config.h.  Generated by config.status.  */
9107   if test x"$ac_file" = x-; then
9108     configure_input=
9109   else
9110     configure_input="$ac_file.  "
9111   fi
9112   configure_input=$configure_input"Generated from `echo $ac_file_in |
9113                                      sed 's,.*/,,'` by configure."
9114
9115   # First look for the input files in the build tree, otherwise in the
9116   # src tree.
9117   ac_file_inputs=`IFS=:
9118     for f in $ac_file_in; do
9119       case $f in
9120       -) echo $tmp/stdin ;;
9121       [\\/$]*)
9122          # Absolute (can't be DOS-style, as IFS=:)
9123          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9124 echo "$as_me: error: cannot find input file: $f" >&2;}
9125    { (exit 1); exit 1; }; }
9126          echo "$f";;
9127       *) # Relative
9128          if test -f "$f"; then
9129            # Build tree
9130            echo "$f"
9131          elif test -f "$srcdir/$f"; then
9132            # Source tree
9133            echo "$srcdir/$f"
9134          else
9135            # /dev/null tree
9136            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9137 echo "$as_me: error: cannot find input file: $f" >&2;}
9138    { (exit 1); exit 1; }; }
9139          fi;;
9140       esac
9141     done` || { (exit 1); exit 1; }
9142 _ACEOF
9143 cat >>$CONFIG_STATUS <<_ACEOF
9144   sed "$ac_vpsub
9145 $extrasub
9146 _ACEOF
9147 cat >>$CONFIG_STATUS <<\_ACEOF
9148 :t
9149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9150 s,@configure_input@,$configure_input,;t t
9151 s,@srcdir@,$ac_srcdir,;t t
9152 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9153 s,@top_srcdir@,$ac_top_srcdir,;t t
9154 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9155 s,@builddir@,$ac_builddir,;t t
9156 s,@abs_builddir@,$ac_abs_builddir,;t t
9157 s,@top_builddir@,$ac_top_builddir,;t t
9158 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9159 s,@INSTALL@,$ac_INSTALL,;t t
9160 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9161   rm -f $tmp/stdin
9162   if test x"$ac_file" != x-; then
9163     mv $tmp/out $ac_file
9164   else
9165     cat $tmp/out
9166     rm -f $tmp/out
9167   fi
9168
9169 done
9170 _ACEOF
9171 cat >>$CONFIG_STATUS <<\_ACEOF
9172
9173 #
9174 # CONFIG_HEADER section.
9175 #
9176
9177 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9178 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9179 #
9180 # ac_d sets the value in "#define NAME VALUE" lines.
9181 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9182 ac_dB='[         ].*$,\1#\2'
9183 ac_dC=' '
9184 ac_dD=',;t'
9185 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9186 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9187 ac_uB='$,\1#\2define\3'
9188 ac_uC=' '
9189 ac_uD=',;t'
9190
9191 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9192   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9193   case $ac_file in
9194   - | *:- | *:-:* ) # input from stdin
9195         cat >$tmp/stdin
9196         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9197         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9198   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9199         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9200   * )   ac_file_in=$ac_file.in ;;
9201   esac
9202
9203   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9204 echo "$as_me: creating $ac_file" >&6;}
9205
9206   # First look for the input files in the build tree, otherwise in the
9207   # src tree.
9208   ac_file_inputs=`IFS=:
9209     for f in $ac_file_in; do
9210       case $f in
9211       -) echo $tmp/stdin ;;
9212       [\\/$]*)
9213          # Absolute (can't be DOS-style, as IFS=:)
9214          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9215 echo "$as_me: error: cannot find input file: $f" >&2;}
9216    { (exit 1); exit 1; }; }
9217          # Do quote $f, to prevent DOS paths from being IFS'd.
9218          echo "$f";;
9219       *) # Relative
9220          if test -f "$f"; then
9221            # Build tree
9222            echo "$f"
9223          elif test -f "$srcdir/$f"; then
9224            # Source tree
9225            echo "$srcdir/$f"
9226          else
9227            # /dev/null tree
9228            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9229 echo "$as_me: error: cannot find input file: $f" >&2;}
9230    { (exit 1); exit 1; }; }
9231          fi;;
9232       esac
9233     done` || { (exit 1); exit 1; }
9234   # Remove the trailing spaces.
9235   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9236
9237 _ACEOF
9238
9239 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9240 # `conftest.undefs', that substitutes the proper values into
9241 # config.h.in to produce config.h.  The first handles `#define'
9242 # templates, and the second `#undef' templates.
9243 # And first: Protect against being on the right side of a sed subst in
9244 # config.status.  Protect against being in an unquoted here document
9245 # in config.status.
9246 rm -f conftest.defines conftest.undefs
9247 # Using a here document instead of a string reduces the quoting nightmare.
9248 # Putting comments in sed scripts is not portable.
9249 #
9250 # `end' is used to avoid that the second main sed command (meant for
9251 # 0-ary CPP macros) applies to n-ary macro definitions.
9252 # See the Autoconf documentation for `clear'.
9253 cat >confdef2sed.sed <<\_ACEOF
9254 s/[\\&,]/\\&/g
9255 s,[\\$`],\\&,g
9256 t clear
9257 : clear
9258 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9259 t end
9260 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9261 : end
9262 _ACEOF
9263 # If some macros were called several times there might be several times
9264 # the same #defines, which is useless.  Nevertheless, we may not want to
9265 # sort them, since we want the *last* AC-DEFINE to be honored.
9266 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9267 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9268 rm -f confdef2sed.sed
9269
9270 # This sed command replaces #undef with comments.  This is necessary, for
9271 # example, in the case of _POSIX_SOURCE, which is predefined and required
9272 # on some systems where configure will not decide to define it.
9273 cat >>conftest.undefs <<\_ACEOF
9274 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9275 _ACEOF
9276
9277 # Break up conftest.defines because some shells have a limit on the size
9278 # of here documents, and old seds have small limits too (100 cmds).
9279 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9280 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9281 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9282 echo '  :' >>$CONFIG_STATUS
9283 rm -f conftest.tail
9284 while grep . conftest.defines >/dev/null
9285 do
9286   # Write a limited-size here document to $tmp/defines.sed.
9287   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9288   # Speed up: don't consider the non `#define' lines.
9289   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9290   # Work around the forget-to-reset-the-flag bug.
9291   echo 't clr' >>$CONFIG_STATUS
9292   echo ': clr' >>$CONFIG_STATUS
9293   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9294   echo 'CEOF
9295   sed -f $tmp/defines.sed $tmp/in >$tmp/out
9296   rm -f $tmp/in
9297   mv $tmp/out $tmp/in
9298 ' >>$CONFIG_STATUS
9299   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9300   rm -f conftest.defines
9301   mv conftest.tail conftest.defines
9302 done
9303 rm -f conftest.defines
9304 echo '  fi # grep' >>$CONFIG_STATUS
9305 echo >>$CONFIG_STATUS
9306
9307 # Break up conftest.undefs because some shells have a limit on the size
9308 # of here documents, and old seds have small limits too (100 cmds).
9309 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9310 rm -f conftest.tail
9311 while grep . conftest.undefs >/dev/null
9312 do
9313   # Write a limited-size here document to $tmp/undefs.sed.
9314   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9315   # Speed up: don't consider the non `#undef'
9316   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9317   # Work around the forget-to-reset-the-flag bug.
9318   echo 't clr' >>$CONFIG_STATUS
9319   echo ': clr' >>$CONFIG_STATUS
9320   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9321   echo 'CEOF
9322   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9323   rm -f $tmp/in
9324   mv $tmp/out $tmp/in
9325 ' >>$CONFIG_STATUS
9326   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9327   rm -f conftest.undefs
9328   mv conftest.tail conftest.undefs
9329 done
9330 rm -f conftest.undefs
9331
9332 cat >>$CONFIG_STATUS <<\_ACEOF
9333   # Let's still pretend it is `configure' which instantiates (i.e., don't
9334   # use $as_me), people would be surprised to read:
9335   #    /* config.h.  Generated by config.status.  */
9336   if test x"$ac_file" = x-; then
9337     echo "/* Generated by configure.  */" >$tmp/config.h
9338   else
9339     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9340   fi
9341   cat $tmp/in >>$tmp/config.h
9342   rm -f $tmp/in
9343   if test x"$ac_file" != x-; then
9344     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9345       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9346 echo "$as_me: $ac_file is unchanged" >&6;}
9347     else
9348       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9350          X"$ac_file" : 'X\(//\)[^/]' \| \
9351          X"$ac_file" : 'X\(//\)$' \| \
9352          X"$ac_file" : 'X\(/\)' \| \
9353          .     : '\(.\)' 2>/dev/null ||
9354 echo X"$ac_file" |
9355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9356           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9357           /^X\(\/\/\)$/{ s//\1/; q; }
9358           /^X\(\/\).*/{ s//\1/; q; }
9359           s/.*/./; q'`
9360       { if $as_mkdir_p; then
9361     mkdir -p "$ac_dir"
9362   else
9363     as_dir="$ac_dir"
9364     as_dirs=
9365     while test ! -d "$as_dir"; do
9366       as_dirs="$as_dir $as_dirs"
9367       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9369          X"$as_dir" : 'X\(//\)[^/]' \| \
9370          X"$as_dir" : 'X\(//\)$' \| \
9371          X"$as_dir" : 'X\(/\)' \| \
9372          .     : '\(.\)' 2>/dev/null ||
9373 echo X"$as_dir" |
9374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9375           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9376           /^X\(\/\/\)$/{ s//\1/; q; }
9377           /^X\(\/\).*/{ s//\1/; q; }
9378           s/.*/./; q'`
9379     done
9380     test ! -n "$as_dirs" || mkdir $as_dirs
9381   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9382 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9383    { (exit 1); exit 1; }; }; }
9384
9385       rm -f $ac_file
9386       mv $tmp/config.h $ac_file
9387     fi
9388   else
9389     cat $tmp/config.h
9390     rm -f $tmp/config.h
9391   fi
9392   # Run the commands associated with the file.
9393   case $ac_file in
9394     config.h ) echo timestamp > stamp-h1 ;;
9395   esac
9396 done
9397 _ACEOF
9398 cat >>$CONFIG_STATUS <<\_ACEOF
9399
9400 #
9401 # CONFIG_COMMANDS section.
9402 #
9403 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9404   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9405   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9406   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9407 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9408          X"$ac_dest" : 'X\(//\)[^/]' \| \
9409          X"$ac_dest" : 'X\(//\)$' \| \
9410          X"$ac_dest" : 'X\(/\)' \| \
9411          .     : '\(.\)' 2>/dev/null ||
9412 echo X"$ac_dest" |
9413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9414           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9415           /^X\(\/\/\)$/{ s//\1/; q; }
9416           /^X\(\/\).*/{ s//\1/; q; }
9417           s/.*/./; q'`
9418   { if $as_mkdir_p; then
9419     mkdir -p "$ac_dir"
9420   else
9421     as_dir="$ac_dir"
9422     as_dirs=
9423     while test ! -d "$as_dir"; do
9424       as_dirs="$as_dir $as_dirs"
9425       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9427          X"$as_dir" : 'X\(//\)[^/]' \| \
9428          X"$as_dir" : 'X\(//\)$' \| \
9429          X"$as_dir" : 'X\(/\)' \| \
9430          .     : '\(.\)' 2>/dev/null ||
9431 echo X"$as_dir" |
9432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9433           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9434           /^X\(\/\/\)$/{ s//\1/; q; }
9435           /^X\(\/\).*/{ s//\1/; q; }
9436           s/.*/./; q'`
9437     done
9438     test ! -n "$as_dirs" || mkdir $as_dirs
9439   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9440 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9441    { (exit 1); exit 1; }; }; }
9442
9443   ac_builddir=.
9444
9445 if test "$ac_dir" != .; then
9446   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9447   # A "../" for each directory in $ac_dir_suffix.
9448   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9449 else
9450   ac_dir_suffix= ac_top_builddir=
9451 fi
9452
9453 case $srcdir in
9454   .)  # No --srcdir option.  We are building in place.
9455     ac_srcdir=.
9456     if test -z "$ac_top_builddir"; then
9457        ac_top_srcdir=.
9458     else
9459        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9460     fi ;;
9461   [\\/]* | ?:[\\/]* )  # Absolute path.
9462     ac_srcdir=$srcdir$ac_dir_suffix;
9463     ac_top_srcdir=$srcdir ;;
9464   *) # Relative path.
9465     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9466     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9467 esac
9468
9469 # Do not use `cd foo && pwd` to compute absolute paths, because
9470 # the directories may not exist.
9471 case `pwd` in
9472 .) ac_abs_builddir="$ac_dir";;
9473 *)
9474   case "$ac_dir" in
9475   .) ac_abs_builddir=`pwd`;;
9476   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9477   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9478   esac;;
9479 esac
9480 case $ac_abs_builddir in
9481 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9482 *)
9483   case ${ac_top_builddir}. in
9484   .) ac_abs_top_builddir=$ac_abs_builddir;;
9485   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9486   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9487   esac;;
9488 esac
9489 case $ac_abs_builddir in
9490 .) ac_abs_srcdir=$ac_srcdir;;
9491 *)
9492   case $ac_srcdir in
9493   .) ac_abs_srcdir=$ac_abs_builddir;;
9494   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9495   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9496   esac;;
9497 esac
9498 case $ac_abs_builddir in
9499 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9500 *)
9501   case $ac_top_srcdir in
9502   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9503   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9504   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9505   esac;;
9506 esac
9507
9508
9509   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9510 echo "$as_me: executing $ac_dest commands" >&6;}
9511   case $ac_dest in
9512     depdir ) mkdir $DEPDIR ;;
9513   esac
9514 done
9515 _ACEOF
9516
9517 cat >>$CONFIG_STATUS <<\_ACEOF
9518
9519 { (exit 0); exit 0; }
9520 _ACEOF
9521 chmod +x $CONFIG_STATUS
9522 ac_clean_files=$ac_clean_files_save
9523
9524
9525 # configure is writing to config.log, and then calls config.status.
9526 # config.status does its own redirection, appending to config.log.
9527 # Unfortunately, on DOS this fails, as config.log is still kept open
9528 # by configure, so config.status won't be able to write to it; its
9529 # output is simply discarded.  So we exec the FD to /dev/null,
9530 # effectively closing config.log, so it can be properly (re)opened and
9531 # appended to by config.status.  When coming back to configure, we
9532 # need to make the FD available again.
9533 if test "$no_create" != yes; then
9534   ac_cs_success=:
9535   ac_config_status_args=
9536   test "$silent" = yes &&
9537     ac_config_status_args="$ac_config_status_args --quiet"
9538   exec 5>/dev/null
9539   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9540   exec 5>>config.log
9541   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9542   # would make configure fail if this is the last instruction.
9543   $ac_cs_success || { (exit 1); exit 1; }
9544 fi
9545