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