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