]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/configure
trans-stmt.c (forall_info): Replace the next_nest and outer fields that previously...
[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
4117echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4118echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4119if test "${ac_cv_struct_tm+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#include <sys/types.h>
4129#include <time.h>
4130
4131int
4132main ()
4133{
4134struct tm *tp; tp->tm_sec;
4135 ;
4136 return 0;
4137}
4138_ACEOF
4139rm -f conftest.$ac_objext
4140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141 (eval $ac_compile) 2>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
39b8ce7f
AS
4148 { ac_try='test -z "$ac_c_werror_flag"
4149 || test ! -s conftest.err'
4f4e53dd
PB
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; } &&
4155 { ac_try='test -s conftest.$ac_objext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 ac_cv_struct_tm=time.h
4162else
4163 echo "$as_me: failed program was:" >&5
4164sed 's/^/| /' conftest.$ac_ext >&5
4165
4166ac_cv_struct_tm=sys/time.h
4167fi
4168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4169fi
4170echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4171echo "${ECHO_T}$ac_cv_struct_tm" >&6
4172if test $ac_cv_struct_tm = sys/time.h; then
4173
4174cat >>confdefs.h <<\_ACEOF
4175#define TM_IN_SYS_TIME 1
4176_ACEOF
4177
4178fi
4179
4180echo "$as_me:$LINENO: checking for int" >&5
4181echo $ECHO_N "checking for int... $ECHO_C" >&6
4182if test "${ac_cv_type_int+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
4185 cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
4190/* end confdefs.h. */
4191$ac_includes_default
4192int
4193main ()
4194{
4195if ((int *) 0)
4196 return 0;
4197if (sizeof (int))
4198 return 0;
4199 ;
4200 return 0;
4201}
4202_ACEOF
4203rm -f conftest.$ac_objext
4204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4205 (eval $ac_compile) 2>conftest.er1
4206 ac_status=$?
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
39b8ce7f
AS
4212 { ac_try='test -z "$ac_c_werror_flag"
4213 || test ! -s conftest.err'
4f4e53dd
PB
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 (eval $ac_try) 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; } &&
4219 { ac_try='test -s conftest.$ac_objext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 ac_cv_type_int=yes
4226else
4227 echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230ac_cv_type_int=no
4231fi
4232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4233fi
4234echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4235echo "${ECHO_T}$ac_cv_type_int" >&6
4236
4237echo "$as_me:$LINENO: checking size of int" >&5
4238echo $ECHO_N "checking size of int... $ECHO_C" >&6
4239if test "${ac_cv_sizeof_int+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241else
4242 if test "$ac_cv_type_int" = yes; then
4243 # The cast to unsigned long works around a bug in the HP C Compiler
4244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4246 # This bug is HP SR number 8606223364.
4247 if test "$cross_compiling" = yes; then
4248 # Depending upon the size, compute the lo and hi bounds.
4249cat >conftest.$ac_ext <<_ACEOF
4250/* confdefs.h. */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
4254/* end confdefs.h. */
4255$ac_includes_default
4256int
4257main ()
4258{
4259static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4260test_array [0] = 0
4261
4262 ;
4263 return 0;
4264}
4265_ACEOF
4266rm -f conftest.$ac_objext
4267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4268 (eval $ac_compile) 2>conftest.er1
4269 ac_status=$?
4270 grep -v '^ *+' conftest.er1 >conftest.err
4271 rm -f conftest.er1
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
39b8ce7f
AS
4275 { ac_try='test -z "$ac_c_werror_flag"
4276 || test ! -s conftest.err'
4f4e53dd
PB
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest.$ac_objext'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 (eval $ac_try) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 ac_lo=0 ac_mid=0
4289 while :; do
4290 cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h. */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
4295/* end confdefs.h. */
4296$ac_includes_default
4297int
4298main ()
4299{
4300static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4301test_array [0] = 0
4302
4303 ;
4304 return 0;
4305}
4306_ACEOF
4307rm -f conftest.$ac_objext
4308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309 (eval $ac_compile) 2>conftest.er1
4310 ac_status=$?
4311 grep -v '^ *+' conftest.er1 >conftest.err
4312 rm -f conftest.er1
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } &&
39b8ce7f
AS
4316 { ac_try='test -z "$ac_c_werror_flag"
4317 || test ! -s conftest.err'
4f4e53dd
PB
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 (eval $ac_try) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; } &&
4323 { ac_try='test -s conftest.$ac_objext'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 (eval $ac_try) 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 ac_hi=$ac_mid; break
4330else
4331 echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
4333
4334ac_lo=`expr $ac_mid + 1`
4335 if test $ac_lo -le $ac_mid; then
4336 ac_lo= ac_hi=
4337 break
4338 fi
4339 ac_mid=`expr 2 '*' $ac_mid + 1`
4340fi
4341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4342 done
4343else
4344 echo "$as_me: failed program was:" >&5
4345sed 's/^/| /' conftest.$ac_ext >&5
4346
4347cat >conftest.$ac_ext <<_ACEOF
4348/* confdefs.h. */
4349_ACEOF
4350cat confdefs.h >>conftest.$ac_ext
4351cat >>conftest.$ac_ext <<_ACEOF
4352/* end confdefs.h. */
4353$ac_includes_default
4354int
4355main ()
4356{
4357static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4358test_array [0] = 0
4359
4360 ;
4361 return 0;
4362}
4363_ACEOF
4364rm -f conftest.$ac_objext
4365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
39b8ce7f
AS
4373 { ac_try='test -z "$ac_c_werror_flag"
4374 || test ! -s conftest.err'
4f4e53dd
PB
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest.$ac_objext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_hi=-1 ac_mid=-1
4387 while :; do
4388 cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
4394$ac_includes_default
4395int
4396main ()
4397{
4398static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4399test_array [0] = 0
4400
4401 ;
4402 return 0;
4403}
4404_ACEOF
4405rm -f conftest.$ac_objext
4406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>conftest.er1
4408 ac_status=$?
4409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
39b8ce7f
AS
4414 { ac_try='test -z "$ac_c_werror_flag"
4415 || test ! -s conftest.err'
4f4e53dd
PB
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest.$ac_objext'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_lo=$ac_mid; break
4428else
4429 echo "$as_me: failed program was:" >&5
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
4432ac_hi=`expr '(' $ac_mid ')' - 1`
4433 if test $ac_mid -le $ac_hi; then
4434 ac_lo= ac_hi=
4435 break
4436 fi
4437 ac_mid=`expr 2 '*' $ac_mid`
4438fi
4439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4440 done
4441else
4442 echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
4445ac_lo= ac_hi=
4446fi
4447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448fi
4449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4450# Binary search between lo and hi bounds.
4451while test "x$ac_lo" != "x$ac_hi"; do
4452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4453 cat >conftest.$ac_ext <<_ACEOF
4454/* confdefs.h. */
4455_ACEOF
4456cat confdefs.h >>conftest.$ac_ext
4457cat >>conftest.$ac_ext <<_ACEOF
4458/* end confdefs.h. */
4459$ac_includes_default
4460int
4461main ()
4462{
4463static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4464test_array [0] = 0
4465
4466 ;
4467 return 0;
4468}
4469_ACEOF
4470rm -f conftest.$ac_objext
4471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472 (eval $ac_compile) 2>conftest.er1
4473 ac_status=$?
4474 grep -v '^ *+' conftest.er1 >conftest.err
4475 rm -f conftest.er1
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
39b8ce7f
AS
4479 { ac_try='test -z "$ac_c_werror_flag"
4480 || test ! -s conftest.err'
4f4e53dd
PB
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 (eval $ac_try) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; } &&
4486 { ac_try='test -s conftest.$ac_objext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 (eval $ac_try) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 ac_hi=$ac_mid
4493else
4494 echo "$as_me: failed program was:" >&5
4495sed 's/^/| /' conftest.$ac_ext >&5
4496
4497ac_lo=`expr '(' $ac_mid ')' + 1`
4498fi
4499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4500done
4501case $ac_lo in
4502?*) ac_cv_sizeof_int=$ac_lo;;
4503'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4504See \`config.log' for more details." >&5
4505echo "$as_me: error: cannot compute sizeof (int), 77
4506See \`config.log' for more details." >&2;}
4507 { (exit 1); exit 1; }; } ;;
4508esac
4509else
4510 if test "$cross_compiling" = yes; then
39b8ce7f
AS
4511 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4512See \`config.log' for more details." >&5
4513echo "$as_me: error: cannot run test program while cross compiling
4514See \`config.log' for more details." >&2;}
4f4e53dd
PB
4515 { (exit 1); exit 1; }; }
4516else
4517 cat >conftest.$ac_ext <<_ACEOF
4518/* confdefs.h. */
4519_ACEOF
4520cat confdefs.h >>conftest.$ac_ext
4521cat >>conftest.$ac_ext <<_ACEOF
4522/* end confdefs.h. */
4523$ac_includes_default
4524long longval () { return (long) (sizeof (int)); }
4525unsigned long ulongval () { return (long) (sizeof (int)); }
4526#include <stdio.h>
4527#include <stdlib.h>
4528int
4529main ()
4530{
4531
4532 FILE *f = fopen ("conftest.val", "w");
4533 if (! f)
4534 exit (1);
4535 if (((long) (sizeof (int))) < 0)
4536 {
4537 long i = longval ();
4538 if (i != ((long) (sizeof (int))))
4539 exit (1);
4540 fprintf (f, "%ld\n", i);
4541 }
4542 else
4543 {
4544 unsigned long i = ulongval ();
4545 if (i != ((long) (sizeof (int))))
4546 exit (1);
4547 fprintf (f, "%lu\n", i);
4548 }
4549 exit (ferror (f) || fclose (f) != 0);
4550
4551 ;
4552 return 0;
4553}
4554_ACEOF
4555rm -f conftest$ac_exeext
4556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557 (eval $ac_link) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 (eval $ac_try) 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4566 ac_cv_sizeof_int=`cat conftest.val`
4567else
4568 echo "$as_me: program exited with status $ac_status" >&5
4569echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572( exit $ac_status )
4573{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4574See \`config.log' for more details." >&5
4575echo "$as_me: error: cannot compute sizeof (int), 77
4576See \`config.log' for more details." >&2;}
4577 { (exit 1); exit 1; }; }
4578fi
4579rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4580fi
4581fi
4582rm -f conftest.val
4583else
4584 ac_cv_sizeof_int=0
4585fi
4586fi
4587echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4588echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4589cat >>confdefs.h <<_ACEOF
4590#define SIZEOF_INT $ac_cv_sizeof_int
4591_ACEOF
4592
4593
4594echo "$as_me:$LINENO: checking for long" >&5
4595echo $ECHO_N "checking for long... $ECHO_C" >&6
4596if test "${ac_cv_type_long+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599 cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h. */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h. */
4605$ac_includes_default
4606int
4607main ()
4608{
4609if ((long *) 0)
4610 return 0;
4611if (sizeof (long))
4612 return 0;
4613 ;
4614 return 0;
4615}
4616_ACEOF
4617rm -f conftest.$ac_objext
4618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4619 (eval $ac_compile) 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
39b8ce7f
AS
4626 { ac_try='test -z "$ac_c_werror_flag"
4627 || test ! -s conftest.err'
4f4e53dd
PB
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try='test -s conftest.$ac_objext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_cv_type_long=yes
4640else
4641 echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644ac_cv_type_long=no
4645fi
4646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4647fi
4648echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4649echo "${ECHO_T}$ac_cv_type_long" >&6
4650
4651echo "$as_me:$LINENO: checking size of long" >&5
4652echo $ECHO_N "checking size of long... $ECHO_C" >&6
4653if test "${ac_cv_sizeof_long+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656 if test "$ac_cv_type_long" = yes; then
4657 # The cast to unsigned long works around a bug in the HP C Compiler
4658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4660 # This bug is HP SR number 8606223364.
4661 if test "$cross_compiling" = yes; then
4662 # Depending upon the size, compute the lo and hi bounds.
4663cat >conftest.$ac_ext <<_ACEOF
4664/* confdefs.h. */
4665_ACEOF
4666cat confdefs.h >>conftest.$ac_ext
4667cat >>conftest.$ac_ext <<_ACEOF
4668/* end confdefs.h. */
4669$ac_includes_default
4670int
4671main ()
4672{
4673static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4674test_array [0] = 0
4675
4676 ;
4677 return 0;
4678}
4679_ACEOF
4680rm -f conftest.$ac_objext
4681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682 (eval $ac_compile) 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
39b8ce7f
AS
4689 { ac_try='test -z "$ac_c_werror_flag"
4690 || test ! -s conftest.err'
4f4e53dd
PB
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; } &&
4696 { ac_try='test -s conftest.$ac_objext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 ac_lo=0 ac_mid=0
4703 while :; do
4704 cat >conftest.$ac_ext <<_ACEOF
4705/* confdefs.h. */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h. */
4710$ac_includes_default
4711int
4712main ()
4713{
4714static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4715test_array [0] = 0
4716
4717 ;
4718 return 0;
4719}
4720_ACEOF
4721rm -f conftest.$ac_objext
4722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723 (eval $ac_compile) 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
39b8ce7f
AS
4730 { ac_try='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4f4e53dd
PB
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try='test -s conftest.$ac_objext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_hi=$ac_mid; break
4744else
4745 echo "$as_me: failed program was:" >&5
4746sed 's/^/| /' conftest.$ac_ext >&5
4747
4748ac_lo=`expr $ac_mid + 1`
4749 if test $ac_lo -le $ac_mid; then
4750 ac_lo= ac_hi=
4751 break
4752 fi
4753 ac_mid=`expr 2 '*' $ac_mid + 1`
4754fi
4755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4756 done
4757else
4758 echo "$as_me: failed program was:" >&5
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
4761cat >conftest.$ac_ext <<_ACEOF
4762/* confdefs.h. */
4763_ACEOF
4764cat confdefs.h >>conftest.$ac_ext
4765cat >>conftest.$ac_ext <<_ACEOF
4766/* end confdefs.h. */
4767$ac_includes_default
4768int
4769main ()
4770{
4771static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4772test_array [0] = 0
4773
4774 ;
4775 return 0;
4776}
4777_ACEOF
4778rm -f conftest.$ac_objext
4779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780 (eval $ac_compile) 2>conftest.er1
4781 ac_status=$?
4782 grep -v '^ *+' conftest.er1 >conftest.err
4783 rm -f conftest.er1
4784 cat conftest.err >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } &&
39b8ce7f
AS
4787 { ac_try='test -z "$ac_c_werror_flag"
4788 || test ! -s conftest.err'
4f4e53dd
PB
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 (eval $ac_try) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; } &&
4794 { ac_try='test -s conftest.$ac_objext'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 (eval $ac_try) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4800 ac_hi=-1 ac_mid=-1
4801 while :; do
4802 cat >conftest.$ac_ext <<_ACEOF
4803/* confdefs.h. */
4804_ACEOF
4805cat confdefs.h >>conftest.$ac_ext
4806cat >>conftest.$ac_ext <<_ACEOF
4807/* end confdefs.h. */
4808$ac_includes_default
4809int
4810main ()
4811{
4812static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4813test_array [0] = 0
4814
4815 ;
4816 return 0;
4817}
4818_ACEOF
4819rm -f conftest.$ac_objext
4820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821 (eval $ac_compile) 2>conftest.er1
4822 ac_status=$?
4823 grep -v '^ *+' conftest.er1 >conftest.err
4824 rm -f conftest.er1
4825 cat conftest.err >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } &&
39b8ce7f
AS
4828 { ac_try='test -z "$ac_c_werror_flag"
4829 || test ! -s conftest.err'
4f4e53dd
PB
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; } &&
4835 { ac_try='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 ac_lo=$ac_mid; break
4842else
4843 echo "$as_me: failed program was:" >&5
4844sed 's/^/| /' conftest.$ac_ext >&5
4845
4846ac_hi=`expr '(' $ac_mid ')' - 1`
4847 if test $ac_mid -le $ac_hi; then
4848 ac_lo= ac_hi=
4849 break
4850 fi
4851 ac_mid=`expr 2 '*' $ac_mid`
4852fi
4853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4854 done
4855else
4856 echo "$as_me: failed program was:" >&5
4857sed 's/^/| /' conftest.$ac_ext >&5
4858
4859ac_lo= ac_hi=
4860fi
4861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862fi
4863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4864# Binary search between lo and hi bounds.
4865while test "x$ac_lo" != "x$ac_hi"; do
4866 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4867 cat >conftest.$ac_ext <<_ACEOF
4868/* confdefs.h. */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h. */
4873$ac_includes_default
4874int
4875main ()
4876{
4877static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4878test_array [0] = 0
4879
4880 ;
4881 return 0;
4882}
4883_ACEOF
4884rm -f conftest.$ac_objext
4885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>conftest.er1
4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
39b8ce7f
AS
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
4f4e53dd
PB
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest.$ac_objext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 ac_hi=$ac_mid
4907else
4908 echo "$as_me: failed program was:" >&5
4909sed 's/^/| /' conftest.$ac_ext >&5
4910
4911ac_lo=`expr '(' $ac_mid ')' + 1`
4912fi
4913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4914done
4915case $ac_lo in
4916?*) ac_cv_sizeof_long=$ac_lo;;
4917'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4918See \`config.log' for more details." >&5
4919echo "$as_me: error: cannot compute sizeof (long), 77
4920See \`config.log' for more details." >&2;}
4921 { (exit 1); exit 1; }; } ;;
4922esac
4923else
4924 if test "$cross_compiling" = yes; then
39b8ce7f
AS
4925 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4926See \`config.log' for more details." >&5
4927echo "$as_me: error: cannot run test program while cross compiling
4928See \`config.log' for more details." >&2;}
4f4e53dd
PB
4929 { (exit 1); exit 1; }; }
4930else
4931 cat >conftest.$ac_ext <<_ACEOF
4932/* confdefs.h. */
4933_ACEOF
4934cat confdefs.h >>conftest.$ac_ext
4935cat >>conftest.$ac_ext <<_ACEOF
4936/* end confdefs.h. */
4937$ac_includes_default
4938long longval () { return (long) (sizeof (long)); }
4939unsigned long ulongval () { return (long) (sizeof (long)); }
4940#include <stdio.h>
4941#include <stdlib.h>
4942int
4943main ()
4944{
4945
4946 FILE *f = fopen ("conftest.val", "w");
4947 if (! f)
4948 exit (1);
4949 if (((long) (sizeof (long))) < 0)
4950 {
4951 long i = longval ();
4952 if (i != ((long) (sizeof (long))))
4953 exit (1);
4954 fprintf (f, "%ld\n", i);
4955 }
4956 else
4957 {
4958 unsigned long i = ulongval ();
4959 if (i != ((long) (sizeof (long))))
4960 exit (1);
4961 fprintf (f, "%lu\n", i);
4962 }
4963 exit (ferror (f) || fclose (f) != 0);
4964
4965 ;
4966 return 0;
4967}
4968_ACEOF
4969rm -f conftest$ac_exeext
4970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971 (eval $ac_link) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 ac_cv_sizeof_long=`cat conftest.val`
4981else
4982 echo "$as_me: program exited with status $ac_status" >&5
4983echo "$as_me: failed program was:" >&5
4984sed 's/^/| /' conftest.$ac_ext >&5
4985
4986( exit $ac_status )
4987{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4988See \`config.log' for more details." >&5
4989echo "$as_me: error: cannot compute sizeof (long), 77
4990See \`config.log' for more details." >&2;}
4991 { (exit 1); exit 1; }; }
4992fi
4993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4994fi
4995fi
4996rm -f conftest.val
4997else
4998 ac_cv_sizeof_long=0
4999fi
5000fi
5001echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5002echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5003cat >>confdefs.h <<_ACEOF
5004#define SIZEOF_LONG $ac_cv_sizeof_long
5005_ACEOF
5006
5007
5008
5009
5010
5011
5012
0d667716
KG
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025for 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
5026do
5027as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5028echo "$as_me:$LINENO: checking for $ac_func" >&5
5029echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5030if eval "test \"\${$as_ac_var+set}\" = set"; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032else
5033 cat >conftest.$ac_ext <<_ACEOF
5034/* confdefs.h. */
5035_ACEOF
5036cat confdefs.h >>conftest.$ac_ext
5037cat >>conftest.$ac_ext <<_ACEOF
5038/* end confdefs.h. */
5039/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5041#define $ac_func innocuous_$ac_func
5042
5043/* System header to define __stub macros and hopefully few prototypes,
5044 which can conflict with char $ac_func (); below.
5045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046 <limits.h> exists even on freestanding compilers. */
5047
5048#ifdef __STDC__
5049# include <limits.h>
5050#else
5051# include <assert.h>
5052#endif
5053
5054#undef $ac_func
5055
5056/* Override any gcc2 internal prototype to avoid an error. */
5057#ifdef __cplusplus
5058extern "C"
5059{
5060#endif
5061/* We use char because int might match the return type of a gcc2
5062 builtin and then its argument prototype would still apply. */
5063char $ac_func ();
5064/* The GNU C library defines this for functions which it implements
5065 to always fail with ENOSYS. Some functions are actually named
5066 something starting with __ and the normal name is an alias. */
5067#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5068choke me
5069#else
5070char (*f) () = $ac_func;
5071#endif
5072#ifdef __cplusplus
5073}
5074#endif
5075
5076int
5077main ()
5078{
5079return f != $ac_func;
5080 ;
5081 return 0;
5082}
5083_ACEOF
5084rm -f conftest.$ac_objext conftest$ac_exeext
5085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5086 (eval $ac_link) 2>conftest.er1
5087 ac_status=$?
5088 grep -v '^ *+' conftest.er1 >conftest.err
5089 rm -f conftest.er1
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
39b8ce7f
AS
5093 { ac_try='test -z "$ac_c_werror_flag"
5094 || test ! -s conftest.err'
4f4e53dd
PB
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; } &&
5100 { ac_try='test -s conftest$ac_exeext'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 (eval $ac_try) 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 eval "$as_ac_var=yes"
5107else
5108 echo "$as_me: failed program was:" >&5
5109sed 's/^/| /' conftest.$ac_ext >&5
5110
5111eval "$as_ac_var=no"
5112fi
5113rm -f conftest.err conftest.$ac_objext \
5114 conftest$ac_exeext conftest.$ac_ext
5115fi
5116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5117echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5118if test `eval echo '${'$as_ac_var'}'` = yes; then
5119 cat >>confdefs.h <<_ACEOF
5120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5121_ACEOF
5122
5123fi
5124done
5125
5126echo "$as_me:$LINENO: checking whether abort is declared" >&5
5127echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
5128if test "${ac_cv_have_decl_abort+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131 cat >conftest.$ac_ext <<_ACEOF
5132/* confdefs.h. */
5133_ACEOF
5134cat confdefs.h >>conftest.$ac_ext
5135cat >>conftest.$ac_ext <<_ACEOF
5136/* end confdefs.h. */
5137$ac_includes_default
5138int
5139main ()
5140{
5141#ifndef abort
5142 char *p = (char *) abort;
5143#endif
5144
5145 ;
5146 return 0;
5147}
5148_ACEOF
5149rm -f conftest.$ac_objext
5150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5151 (eval $ac_compile) 2>conftest.er1
5152 ac_status=$?
5153 grep -v '^ *+' conftest.er1 >conftest.err
5154 rm -f conftest.er1
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } &&
39b8ce7f
AS
5158 { ac_try='test -z "$ac_c_werror_flag"
5159 || test ! -s conftest.err'
4f4e53dd
PB
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; } &&
5165 { ac_try='test -s conftest.$ac_objext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 (eval $ac_try) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 ac_cv_have_decl_abort=yes
5172else
5173 echo "$as_me: failed program was:" >&5
5174sed 's/^/| /' conftest.$ac_ext >&5
5175
5176ac_cv_have_decl_abort=no
5177fi
5178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5179fi
5180echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
5181echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
5182if test $ac_cv_have_decl_abort = yes; then
5183
5184cat >>confdefs.h <<_ACEOF
5185#define HAVE_DECL_ABORT 1
5186_ACEOF
5187
5188
5189else
5190 cat >>confdefs.h <<_ACEOF
5191#define HAVE_DECL_ABORT 0
5192_ACEOF
5193
5194
c3f829c1
GDR
5195fi
5196echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5197echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5198if test "${ac_cv_have_decl_asprintf+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201 cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h. */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h. */
5207$ac_includes_default
5208int
5209main ()
5210{
5211#ifndef asprintf
5212 char *p = (char *) asprintf;
5213#endif
5214
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219rm -f conftest.$ac_objext
5220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -z "$ac_c_werror_flag"
5229 || test ! -s conftest.err'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 (eval $ac_try) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 ac_cv_have_decl_asprintf=yes
5242else
5243 echo "$as_me: failed program was:" >&5
5244sed 's/^/| /' conftest.$ac_ext >&5
5245
5246ac_cv_have_decl_asprintf=no
5247fi
5248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5249fi
5250echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5251echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5252if test $ac_cv_have_decl_asprintf = yes; then
5253
5254cat >>confdefs.h <<_ACEOF
5255#define HAVE_DECL_ASPRINTF 1
5256_ACEOF
5257
5258
5259else
5260 cat >>confdefs.h <<_ACEOF
5261#define HAVE_DECL_ASPRINTF 0
5262_ACEOF
5263
5264
be0f1e54
PB
5265fi
5266echo "$as_me:$LINENO: checking whether basename is declared" >&5
5267echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5268if test "${ac_cv_have_decl_basename+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270else
5271 cat >conftest.$ac_ext <<_ACEOF
5272/* confdefs.h. */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h. */
5277$ac_includes_default
5278int
5279main ()
5280{
5281#ifndef basename
5282 char *p = (char *) basename;
5283#endif
5284
5285 ;
5286 return 0;
5287}
5288_ACEOF
5289rm -f conftest.$ac_objext
5290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291 (eval $ac_compile) 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest.$ac_objext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 ac_cv_have_decl_basename=yes
5312else
5313 echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316ac_cv_have_decl_basename=no
5317fi
5318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5319fi
5320echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5321echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5322if test $ac_cv_have_decl_basename = yes; then
5323
5324cat >>confdefs.h <<_ACEOF
5325#define HAVE_DECL_BASENAME 1
5326_ACEOF
5327
5328
5329else
5330 cat >>confdefs.h <<_ACEOF
5331#define HAVE_DECL_BASENAME 0
5332_ACEOF
5333
5334
4f4e53dd
PB
5335fi
5336echo "$as_me:$LINENO: checking whether errno is declared" >&5
5337echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
5338if test "${ac_cv_have_decl_errno+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340else
5341 cat >conftest.$ac_ext <<_ACEOF
5342/* confdefs.h. */
5343_ACEOF
5344cat confdefs.h >>conftest.$ac_ext
5345cat >>conftest.$ac_ext <<_ACEOF
5346/* end confdefs.h. */
5347$ac_includes_default
5348int
5349main ()
5350{
5351#ifndef errno
5352 char *p = (char *) errno;
5353#endif
5354
5355 ;
5356 return 0;
5357}
5358_ACEOF
5359rm -f conftest.$ac_objext
5360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } &&
39b8ce7f
AS
5368 { ac_try='test -z "$ac_c_werror_flag"
5369 || test ! -s conftest.err'
4f4e53dd
PB
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; } &&
5375 { ac_try='test -s conftest.$ac_objext'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 (eval $ac_try) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5381 ac_cv_have_decl_errno=yes
5382else
5383 echo "$as_me: failed program was:" >&5
5384sed 's/^/| /' conftest.$ac_ext >&5
5385
5386ac_cv_have_decl_errno=no
5387fi
5388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5389fi
5390echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
5391echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
5392if test $ac_cv_have_decl_errno = yes; then
5393
5394cat >>confdefs.h <<_ACEOF
5395#define HAVE_DECL_ERRNO 1
5396_ACEOF
5397
5398
5399else
5400 cat >>confdefs.h <<_ACEOF
5401#define HAVE_DECL_ERRNO 0
5402_ACEOF
5403
5404
be0f1e54
PB
5405fi
5406echo "$as_me:$LINENO: checking whether getopt is declared" >&5
5407echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
5408if test "${ac_cv_have_decl_getopt+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410else
5411 cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h. */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h. */
5417$ac_includes_default
5418int
5419main ()
5420{
5421#ifndef getopt
5422 char *p = (char *) getopt;
5423#endif
5424
5425 ;
5426 return 0;
5427}
5428_ACEOF
5429rm -f conftest.$ac_objext
5430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431 (eval $ac_compile) 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -z "$ac_c_werror_flag"
5439 || test ! -s conftest.err'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; } &&
5445 { ac_try='test -s conftest.$ac_objext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 (eval $ac_try) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5451 ac_cv_have_decl_getopt=yes
5452else
5453 echo "$as_me: failed program was:" >&5
5454sed 's/^/| /' conftest.$ac_ext >&5
5455
5456ac_cv_have_decl_getopt=no
5457fi
5458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459fi
5460echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
5461echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
5462if test $ac_cv_have_decl_getopt = yes; then
5463
5464cat >>confdefs.h <<_ACEOF
5465#define HAVE_DECL_GETOPT 1
5466_ACEOF
5467
5468
5469else
5470 cat >>confdefs.h <<_ACEOF
5471#define HAVE_DECL_GETOPT 0
5472_ACEOF
5473
5474
4f4e53dd 5475fi
0d667716
KG
5476echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
5477echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
5478if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
4f4e53dd
PB
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481 cat >conftest.$ac_ext <<_ACEOF
5482/* confdefs.h. */
5483_ACEOF
5484cat confdefs.h >>conftest.$ac_ext
5485cat >>conftest.$ac_ext <<_ACEOF
5486/* end confdefs.h. */
5487$ac_includes_default
5488int
5489main ()
5490{
0d667716
KG
5491#ifndef clearerr_unlocked
5492 char *p = (char *) clearerr_unlocked;
4f4e53dd
PB
5493#endif
5494
5495 ;
5496 return 0;
5497}
5498_ACEOF
5499rm -f conftest.$ac_objext
5500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
39b8ce7f
AS
5508 { ac_try='test -z "$ac_c_werror_flag"
5509 || test ! -s conftest.err'
4f4e53dd
PB
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try='test -s conftest.$ac_objext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
0d667716 5521 ac_cv_have_decl_clearerr_unlocked=yes
4f4e53dd
PB
5522else
5523 echo "$as_me: failed program was:" >&5
5524sed 's/^/| /' conftest.$ac_ext >&5
5525
0d667716 5526ac_cv_have_decl_clearerr_unlocked=no
4f4e53dd
PB
5527fi
5528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5529fi
0d667716
KG
5530echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
5531echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
5532if test $ac_cv_have_decl_clearerr_unlocked = yes; then
4f4e53dd
PB
5533
5534cat >>confdefs.h <<_ACEOF
0d667716 5535#define HAVE_DECL_CLEARERR_UNLOCKED 1
4f4e53dd
PB
5536_ACEOF
5537
5538
5539else
5540 cat >>confdefs.h <<_ACEOF
0d667716 5541#define HAVE_DECL_CLEARERR_UNLOCKED 0
4f4e53dd
PB
5542_ACEOF
5543
5544
5545fi
0d667716
KG
5546echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
5547echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
5548if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
4f4e53dd
PB
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551 cat >conftest.$ac_ext <<_ACEOF
5552/* confdefs.h. */
5553_ACEOF
5554cat confdefs.h >>conftest.$ac_ext
5555cat >>conftest.$ac_ext <<_ACEOF
5556/* end confdefs.h. */
5557$ac_includes_default
5558int
5559main ()
5560{
0d667716
KG
5561#ifndef feof_unlocked
5562 char *p = (char *) feof_unlocked;
4f4e53dd
PB
5563#endif
5564
5565 ;
5566 return 0;
5567}
5568_ACEOF
5569rm -f conftest.$ac_objext
5570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>conftest.er1
5572 ac_status=$?
5573 grep -v '^ *+' conftest.er1 >conftest.err
5574 rm -f conftest.er1
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
39b8ce7f
AS
5578 { ac_try='test -z "$ac_c_werror_flag"
5579 || test ! -s conftest.err'
4f4e53dd
PB
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 (eval $ac_try) 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
0d667716 5591 ac_cv_have_decl_feof_unlocked=yes
4f4e53dd
PB
5592else
5593 echo "$as_me: failed program was:" >&5
5594sed 's/^/| /' conftest.$ac_ext >&5
5595
0d667716 5596ac_cv_have_decl_feof_unlocked=no
4f4e53dd
PB
5597fi
5598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5599fi
0d667716
KG
5600echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
5601echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
5602if test $ac_cv_have_decl_feof_unlocked = yes; then
4f4e53dd
PB
5603
5604cat >>confdefs.h <<_ACEOF
0d667716 5605#define HAVE_DECL_FEOF_UNLOCKED 1
4f4e53dd
PB
5606_ACEOF
5607
5608
5609else
5610 cat >>confdefs.h <<_ACEOF
0d667716 5611#define HAVE_DECL_FEOF_UNLOCKED 0
4f4e53dd
PB
5612_ACEOF
5613
5614
5615fi
0d667716
KG
5616echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
5617echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
5618if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
4f4e53dd
PB
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621 cat >conftest.$ac_ext <<_ACEOF
5622/* confdefs.h. */
5623_ACEOF
5624cat confdefs.h >>conftest.$ac_ext
5625cat >>conftest.$ac_ext <<_ACEOF
5626/* end confdefs.h. */
5627$ac_includes_default
5628int
5629main ()
5630{
0d667716
KG
5631#ifndef ferror_unlocked
5632 char *p = (char *) ferror_unlocked;
4f4e53dd
PB
5633#endif
5634
5635 ;
5636 return 0;
5637}
5638_ACEOF
5639rm -f conftest.$ac_objext
5640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5641 (eval $ac_compile) 2>conftest.er1
5642 ac_status=$?
5643 grep -v '^ *+' conftest.er1 >conftest.err
5644 rm -f conftest.er1
5645 cat conftest.err >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
39b8ce7f
AS
5648 { ac_try='test -z "$ac_c_werror_flag"
5649 || test ! -s conftest.err'
4f4e53dd
PB
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; } &&
5655 { ac_try='test -s conftest.$ac_objext'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
0d667716 5661 ac_cv_have_decl_ferror_unlocked=yes
4f4e53dd
PB
5662else
5663 echo "$as_me: failed program was:" >&5
5664sed 's/^/| /' conftest.$ac_ext >&5
5665
0d667716 5666ac_cv_have_decl_ferror_unlocked=no
4f4e53dd
PB
5667fi
5668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5669fi
0d667716
KG
5670echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
5671echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
5672if test $ac_cv_have_decl_ferror_unlocked = yes; then
4f4e53dd
PB
5673
5674cat >>confdefs.h <<_ACEOF
0d667716 5675#define HAVE_DECL_FERROR_UNLOCKED 1
4f4e53dd
PB
5676_ACEOF
5677
5678
5679else
5680 cat >>confdefs.h <<_ACEOF
0d667716 5681#define HAVE_DECL_FERROR_UNLOCKED 0
4f4e53dd
PB
5682_ACEOF
5683
5684
5685fi
0d667716
KG
5686echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
5687echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
5688if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
4f4e53dd
PB
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
5691 cat >conftest.$ac_ext <<_ACEOF
5692/* confdefs.h. */
5693_ACEOF
5694cat confdefs.h >>conftest.$ac_ext
5695cat >>conftest.$ac_ext <<_ACEOF
5696/* end confdefs.h. */
5697$ac_includes_default
5698int
5699main ()
5700{
0d667716
KG
5701#ifndef fflush_unlocked
5702 char *p = (char *) fflush_unlocked;
4f4e53dd
PB
5703#endif
5704
5705 ;
5706 return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext
5710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711 (eval $ac_compile) 2>conftest.er1
5712 ac_status=$?
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
39b8ce7f
AS
5718 { ac_try='test -z "$ac_c_werror_flag"
5719 || test ! -s conftest.err'
4f4e53dd
PB
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 (eval $ac_try) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try='test -s conftest.$ac_objext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
0d667716 5731 ac_cv_have_decl_fflush_unlocked=yes
4f4e53dd
PB
5732else
5733 echo "$as_me: failed program was:" >&5
5734sed 's/^/| /' conftest.$ac_ext >&5
5735
0d667716 5736ac_cv_have_decl_fflush_unlocked=no
4f4e53dd
PB
5737fi
5738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5739fi
0d667716
KG
5740echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
5741echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
5742if test $ac_cv_have_decl_fflush_unlocked = yes; then
4f4e53dd
PB
5743
5744cat >>confdefs.h <<_ACEOF
0d667716 5745#define HAVE_DECL_FFLUSH_UNLOCKED 1
4f4e53dd
PB
5746_ACEOF
5747
5748
5749else
5750 cat >>confdefs.h <<_ACEOF
0d667716
KG
5751#define HAVE_DECL_FFLUSH_UNLOCKED 0
5752_ACEOF
5753
5754
5755fi
5756echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
5757echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6
5758if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761 cat >conftest.$ac_ext <<_ACEOF
5762/* confdefs.h. */
5763_ACEOF
5764cat confdefs.h >>conftest.$ac_ext
5765cat >>conftest.$ac_ext <<_ACEOF
5766/* end confdefs.h. */
5767$ac_includes_default
5768int
5769main ()
5770{
5771#ifndef fgetc_unlocked
5772 char *p = (char *) fgetc_unlocked;
5773#endif
5774
5775 ;
5776 return 0;
5777}
5778_ACEOF
5779rm -f conftest.$ac_objext
5780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest.$ac_objext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_have_decl_fgetc_unlocked=yes
5802else
5803 echo "$as_me: failed program was:" >&5
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
5806ac_cv_have_decl_fgetc_unlocked=no
5807fi
5808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809fi
5810echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
5811echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6
5812if test $ac_cv_have_decl_fgetc_unlocked = yes; then
5813
5814cat >>confdefs.h <<_ACEOF
5815#define HAVE_DECL_FGETC_UNLOCKED 1
5816_ACEOF
5817
5818
5819else
5820 cat >>confdefs.h <<_ACEOF
5821#define HAVE_DECL_FGETC_UNLOCKED 0
5822_ACEOF
5823
5824
5825fi
5826echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
5827echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
5828if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
5831 cat >conftest.$ac_ext <<_ACEOF
5832/* confdefs.h. */
5833_ACEOF
5834cat confdefs.h >>conftest.$ac_ext
5835cat >>conftest.$ac_ext <<_ACEOF
5836/* end confdefs.h. */
5837$ac_includes_default
5838int
5839main ()
5840{
5841#ifndef fgets_unlocked
5842 char *p = (char *) fgets_unlocked;
5843#endif
5844
5845 ;
5846 return 0;
5847}
5848_ACEOF
5849rm -f conftest.$ac_objext
5850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5851 (eval $ac_compile) 2>conftest.er1
5852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try='test -z "$ac_c_werror_flag"
5859 || test ! -s conftest.err'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 (eval $ac_try) 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; } &&
5865 { ac_try='test -s conftest.$ac_objext'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5871 ac_cv_have_decl_fgets_unlocked=yes
5872else
5873 echo "$as_me: failed program was:" >&5
5874sed 's/^/| /' conftest.$ac_ext >&5
5875
5876ac_cv_have_decl_fgets_unlocked=no
5877fi
5878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5879fi
5880echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
5881echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
5882if test $ac_cv_have_decl_fgets_unlocked = yes; then
5883
5884cat >>confdefs.h <<_ACEOF
5885#define HAVE_DECL_FGETS_UNLOCKED 1
5886_ACEOF
5887
5888
5889else
5890 cat >>confdefs.h <<_ACEOF
5891#define HAVE_DECL_FGETS_UNLOCKED 0
5892_ACEOF
5893
5894
5895fi
5896echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
5897echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6
5898if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900else
5901 cat >conftest.$ac_ext <<_ACEOF
5902/* confdefs.h. */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h. */
5907$ac_includes_default
5908int
5909main ()
5910{
5911#ifndef fileno_unlocked
5912 char *p = (char *) fileno_unlocked;
5913#endif
5914
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919rm -f conftest.$ac_objext
5920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag"
5929 || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest.$ac_objext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_have_decl_fileno_unlocked=yes
5942else
5943 echo "$as_me: failed program was:" >&5
5944sed 's/^/| /' conftest.$ac_ext >&5
5945
5946ac_cv_have_decl_fileno_unlocked=no
5947fi
5948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949fi
5950echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
5951echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6
5952if test $ac_cv_have_decl_fileno_unlocked = yes; then
5953
5954cat >>confdefs.h <<_ACEOF
5955#define HAVE_DECL_FILENO_UNLOCKED 1
5956_ACEOF
5957
5958
5959else
5960 cat >>confdefs.h <<_ACEOF
5961#define HAVE_DECL_FILENO_UNLOCKED 0
4f4e53dd
PB
5962_ACEOF
5963
5964
5965fi
5966echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
5967echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
5968if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
5971 cat >conftest.$ac_ext <<_ACEOF
5972/* confdefs.h. */
5973_ACEOF
5974cat confdefs.h >>conftest.$ac_ext
5975cat >>conftest.$ac_ext <<_ACEOF
5976/* end confdefs.h. */
5977$ac_includes_default
5978int
5979main ()
5980{
5981#ifndef fprintf_unlocked
5982 char *p = (char *) fprintf_unlocked;
5983#endif
5984
5985 ;
5986 return 0;
5987}
5988_ACEOF
5989rm -f conftest.$ac_objext
5990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } &&
39b8ce7f
AS
5998 { ac_try='test -z "$ac_c_werror_flag"
5999 || test ! -s conftest.err'
4f4e53dd
PB
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; } &&
6005 { ac_try='test -s conftest.$ac_objext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_cv_have_decl_fprintf_unlocked=yes
6012else
6013 echo "$as_me: failed program was:" >&5
6014sed 's/^/| /' conftest.$ac_ext >&5
6015
6016ac_cv_have_decl_fprintf_unlocked=no
6017fi
6018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6019fi
6020echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
6021echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
6022if test $ac_cv_have_decl_fprintf_unlocked = yes; then
6023
6024cat >>confdefs.h <<_ACEOF
6025#define HAVE_DECL_FPRINTF_UNLOCKED 1
6026_ACEOF
6027
6028
6029else
6030 cat >>confdefs.h <<_ACEOF
6031#define HAVE_DECL_FPRINTF_UNLOCKED 0
6032_ACEOF
6033
6034
0d667716
KG
6035fi
6036echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
6037echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
6038if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040else
6041 cat >conftest.$ac_ext <<_ACEOF
6042/* confdefs.h. */
6043_ACEOF
6044cat confdefs.h >>conftest.$ac_ext
6045cat >>conftest.$ac_ext <<_ACEOF
6046/* end confdefs.h. */
6047$ac_includes_default
6048int
6049main ()
6050{
6051#ifndef fputc_unlocked
6052 char *p = (char *) fputc_unlocked;
6053#endif
6054
6055 ;
6056 return 0;
6057}
6058_ACEOF
6059rm -f conftest.$ac_objext
6060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_c_werror_flag"
6069 || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest.$ac_objext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 ac_cv_have_decl_fputc_unlocked=yes
6082else
6083 echo "$as_me: failed program was:" >&5
6084sed 's/^/| /' conftest.$ac_ext >&5
6085
6086ac_cv_have_decl_fputc_unlocked=no
6087fi
6088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089fi
6090echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
6091echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
6092if test $ac_cv_have_decl_fputc_unlocked = yes; then
6093
6094cat >>confdefs.h <<_ACEOF
6095#define HAVE_DECL_FPUTC_UNLOCKED 1
6096_ACEOF
6097
6098
6099else
6100 cat >>confdefs.h <<_ACEOF
6101#define HAVE_DECL_FPUTC_UNLOCKED 0
6102_ACEOF
6103
6104
6105fi
6106echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
6107echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
6108if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111 cat >conftest.$ac_ext <<_ACEOF
6112/* confdefs.h. */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h. */
6117$ac_includes_default
6118int
6119main ()
6120{
6121#ifndef fputs_unlocked
6122 char *p = (char *) fputs_unlocked;
6123#endif
6124
6125 ;
6126 return 0;
6127}
6128_ACEOF
6129rm -f conftest.$ac_objext
6130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131 (eval $ac_compile) 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag"
6139 || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_cv_have_decl_fputs_unlocked=yes
6152else
6153 echo "$as_me: failed program was:" >&5
6154sed 's/^/| /' conftest.$ac_ext >&5
6155
6156ac_cv_have_decl_fputs_unlocked=no
6157fi
6158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159fi
6160echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
6161echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
6162if test $ac_cv_have_decl_fputs_unlocked = yes; then
6163
6164cat >>confdefs.h <<_ACEOF
6165#define HAVE_DECL_FPUTS_UNLOCKED 1
6166_ACEOF
6167
6168
6169else
6170 cat >>confdefs.h <<_ACEOF
6171#define HAVE_DECL_FPUTS_UNLOCKED 0
6172_ACEOF
6173
6174
6175fi
6176echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
6177echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
6178if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181 cat >conftest.$ac_ext <<_ACEOF
6182/* confdefs.h. */
6183_ACEOF
6184cat confdefs.h >>conftest.$ac_ext
6185cat >>conftest.$ac_ext <<_ACEOF
6186/* end confdefs.h. */
6187$ac_includes_default
6188int
6189main ()
6190{
6191#ifndef fread_unlocked
6192 char *p = (char *) fread_unlocked;
6193#endif
6194
6195 ;
6196 return 0;
6197}
6198_ACEOF
6199rm -f conftest.$ac_objext
6200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6201 (eval $ac_compile) 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } &&
6208 { ac_try='test -z "$ac_c_werror_flag"
6209 || test ! -s conftest.err'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 (eval $ac_try) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 ac_cv_have_decl_fread_unlocked=yes
6222else
6223 echo "$as_me: failed program was:" >&5
6224sed 's/^/| /' conftest.$ac_ext >&5
6225
6226ac_cv_have_decl_fread_unlocked=no
6227fi
6228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6229fi
6230echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
6231echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
6232if test $ac_cv_have_decl_fread_unlocked = yes; then
6233
6234cat >>confdefs.h <<_ACEOF
6235#define HAVE_DECL_FREAD_UNLOCKED 1
6236_ACEOF
6237
6238
6239else
6240 cat >>confdefs.h <<_ACEOF
6241#define HAVE_DECL_FREAD_UNLOCKED 0
6242_ACEOF
6243
6244
6245fi
6246echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
6247echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
6248if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250else
6251 cat >conftest.$ac_ext <<_ACEOF
6252/* confdefs.h. */
6253_ACEOF
6254cat confdefs.h >>conftest.$ac_ext
6255cat >>conftest.$ac_ext <<_ACEOF
6256/* end confdefs.h. */
6257$ac_includes_default
6258int
6259main ()
6260{
6261#ifndef fwrite_unlocked
6262 char *p = (char *) fwrite_unlocked;
6263#endif
6264
6265 ;
6266 return 0;
6267}
6268_ACEOF
6269rm -f conftest.$ac_objext
6270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6271 (eval $ac_compile) 2>conftest.er1
6272 ac_status=$?
6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try='test -z "$ac_c_werror_flag"
6279 || test ! -s conftest.err'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; } &&
6285 { ac_try='test -s conftest.$ac_objext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_cv_have_decl_fwrite_unlocked=yes
6292else
6293 echo "$as_me: failed program was:" >&5
6294sed 's/^/| /' conftest.$ac_ext >&5
6295
6296ac_cv_have_decl_fwrite_unlocked=no
6297fi
6298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6299fi
6300echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
6301echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
6302if test $ac_cv_have_decl_fwrite_unlocked = yes; then
6303
6304cat >>confdefs.h <<_ACEOF
6305#define HAVE_DECL_FWRITE_UNLOCKED 1
6306_ACEOF
6307
6308
6309else
6310 cat >>confdefs.h <<_ACEOF
6311#define HAVE_DECL_FWRITE_UNLOCKED 0
6312_ACEOF
6313
6314
6315fi
6316echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
6317echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
6318if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321 cat >conftest.$ac_ext <<_ACEOF
6322/* confdefs.h. */
6323_ACEOF
6324cat confdefs.h >>conftest.$ac_ext
6325cat >>conftest.$ac_ext <<_ACEOF
6326/* end confdefs.h. */
6327$ac_includes_default
6328int
6329main ()
6330{
6331#ifndef getchar_unlocked
6332 char *p = (char *) getchar_unlocked;
6333#endif
6334
6335 ;
6336 return 0;
6337}
6338_ACEOF
6339rm -f conftest.$ac_objext
6340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag"
6349 || test ! -s conftest.err'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; } &&
6355 { ac_try='test -s conftest.$ac_objext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 ac_cv_have_decl_getchar_unlocked=yes
6362else
6363 echo "$as_me: failed program was:" >&5
6364sed 's/^/| /' conftest.$ac_ext >&5
6365
6366ac_cv_have_decl_getchar_unlocked=no
6367fi
6368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6369fi
6370echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
6371echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
6372if test $ac_cv_have_decl_getchar_unlocked = yes; then
6373
6374cat >>confdefs.h <<_ACEOF
6375#define HAVE_DECL_GETCHAR_UNLOCKED 1
6376_ACEOF
6377
6378
6379else
6380 cat >>confdefs.h <<_ACEOF
6381#define HAVE_DECL_GETCHAR_UNLOCKED 0
6382_ACEOF
6383
6384
6385fi
6386echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
6387echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
6388if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 cat >conftest.$ac_ext <<_ACEOF
6392/* confdefs.h. */
6393_ACEOF
6394cat confdefs.h >>conftest.$ac_ext
6395cat >>conftest.$ac_ext <<_ACEOF
6396/* end confdefs.h. */
6397$ac_includes_default
6398int
6399main ()
6400{
6401#ifndef getc_unlocked
6402 char *p = (char *) getc_unlocked;
6403#endif
6404
6405 ;
6406 return 0;
6407}
6408_ACEOF
6409rm -f conftest.$ac_objext
6410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_c_werror_flag"
6419 || test ! -s conftest.err'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; } &&
6425 { ac_try='test -s conftest.$ac_objext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 ac_cv_have_decl_getc_unlocked=yes
6432else
6433 echo "$as_me: failed program was:" >&5
6434sed 's/^/| /' conftest.$ac_ext >&5
6435
6436ac_cv_have_decl_getc_unlocked=no
6437fi
6438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439fi
6440echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
6441echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
6442if test $ac_cv_have_decl_getc_unlocked = yes; then
6443
6444cat >>confdefs.h <<_ACEOF
6445#define HAVE_DECL_GETC_UNLOCKED 1
6446_ACEOF
6447
6448
6449else
6450 cat >>confdefs.h <<_ACEOF
6451#define HAVE_DECL_GETC_UNLOCKED 0
6452_ACEOF
6453
6454
6455fi
6456echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
6457echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
6458if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461 cat >conftest.$ac_ext <<_ACEOF
6462/* confdefs.h. */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h. */
6467$ac_includes_default
6468int
6469main ()
6470{
6471#ifndef putchar_unlocked
6472 char *p = (char *) putchar_unlocked;
6473#endif
6474
6475 ;
6476 return 0;
6477}
6478_ACEOF
6479rm -f conftest.$ac_objext
6480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag"
6489 || test ! -s conftest.err'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; } &&
6495 { ac_try='test -s conftest.$ac_objext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 (eval $ac_try) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_cv_have_decl_putchar_unlocked=yes
6502else
6503 echo "$as_me: failed program was:" >&5
6504sed 's/^/| /' conftest.$ac_ext >&5
6505
6506ac_cv_have_decl_putchar_unlocked=no
6507fi
6508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6509fi
6510echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
6511echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
6512if test $ac_cv_have_decl_putchar_unlocked = yes; then
6513
6514cat >>confdefs.h <<_ACEOF
6515#define HAVE_DECL_PUTCHAR_UNLOCKED 1
6516_ACEOF
6517
6518
6519else
6520 cat >>confdefs.h <<_ACEOF
6521#define HAVE_DECL_PUTCHAR_UNLOCKED 0
6522_ACEOF
6523
6524
6525fi
6526echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
6527echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
6528if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531 cat >conftest.$ac_ext <<_ACEOF
6532/* confdefs.h. */
6533_ACEOF
6534cat confdefs.h >>conftest.$ac_ext
6535cat >>conftest.$ac_ext <<_ACEOF
6536/* end confdefs.h. */
6537$ac_includes_default
6538int
6539main ()
6540{
6541#ifndef putc_unlocked
6542 char *p = (char *) putc_unlocked;
6543#endif
6544
6545 ;
6546 return 0;
6547}
6548_ACEOF
6549rm -f conftest.$ac_objext
6550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551 (eval $ac_compile) 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
6558 { ac_try='test -z "$ac_c_werror_flag"
6559 || test ! -s conftest.err'
6560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 (eval $ac_try) 2>&5
6562 ac_status=$?
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); }; } &&
6565 { ac_try='test -s conftest.$ac_objext'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 (eval $ac_try) 2>&5
6568 ac_status=$?
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6571 ac_cv_have_decl_putc_unlocked=yes
6572else
6573 echo "$as_me: failed program was:" >&5
6574sed 's/^/| /' conftest.$ac_ext >&5
6575
6576ac_cv_have_decl_putc_unlocked=no
6577fi
6578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579fi
6580echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
6581echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
6582if test $ac_cv_have_decl_putc_unlocked = yes; then
6583
6584cat >>confdefs.h <<_ACEOF
6585#define HAVE_DECL_PUTC_UNLOCKED 1
6586_ACEOF
6587
6588
6589else
6590 cat >>confdefs.h <<_ACEOF
6591#define HAVE_DECL_PUTC_UNLOCKED 0
6592_ACEOF
6593
6594
c3f829c1
GDR
6595fi
6596echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
6597echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
6598if test "${ac_cv_have_decl_vasprintf+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600else
6601 cat >conftest.$ac_ext <<_ACEOF
6602/* confdefs.h. */
6603_ACEOF
6604cat confdefs.h >>conftest.$ac_ext
6605cat >>conftest.$ac_ext <<_ACEOF
6606/* end confdefs.h. */
6607$ac_includes_default
6608int
6609main ()
6610{
6611#ifndef vasprintf
6612 char *p = (char *) vasprintf;
6613#endif
6614
6615 ;
6616 return 0;
6617}
6618_ACEOF
6619rm -f conftest.$ac_objext
6620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_have_decl_vasprintf=yes
6642else
6643 echo "$as_me: failed program was:" >&5
6644sed 's/^/| /' conftest.$ac_ext >&5
6645
6646ac_cv_have_decl_vasprintf=no
6647fi
6648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649fi
6650echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
6651echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
6652if test $ac_cv_have_decl_vasprintf = yes; then
6653
6654cat >>confdefs.h <<_ACEOF
6655#define HAVE_DECL_VASPRINTF 1
6656_ACEOF
6657
6658
6659else
6660 cat >>confdefs.h <<_ACEOF
6661#define HAVE_DECL_VASPRINTF 0
6662_ACEOF
6663
6664
4f4e53dd
PB
6665fi
6666
6667
6668
6669# Checks for library functions.
6670# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6671# for constant arguments. Useless!
6672echo "$as_me:$LINENO: checking for working alloca.h" >&5
6673echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6674if test "${ac_cv_working_alloca_h+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676else
6677 cat >conftest.$ac_ext <<_ACEOF
6678/* confdefs.h. */
6679_ACEOF
6680cat confdefs.h >>conftest.$ac_ext
6681cat >>conftest.$ac_ext <<_ACEOF
6682/* end confdefs.h. */
6683#include <alloca.h>
6684int
6685main ()
6686{
6687char *p = (char *) alloca (2 * sizeof (int));
6688 ;
6689 return 0;
6690}
6691_ACEOF
6692rm -f conftest.$ac_objext conftest$ac_exeext
6693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694 (eval $ac_link) 2>conftest.er1
6695 ac_status=$?
6696 grep -v '^ *+' conftest.er1 >conftest.err
6697 rm -f conftest.er1
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
39b8ce7f
AS
6701 { ac_try='test -z "$ac_c_werror_flag"
6702 || test ! -s conftest.err'
4f4e53dd
PB
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 (eval $ac_try) 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; } &&
6708 { ac_try='test -s conftest$ac_exeext'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710 (eval $ac_try) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; }; then
6714 ac_cv_working_alloca_h=yes
6715else
6716 echo "$as_me: failed program was:" >&5
6717sed 's/^/| /' conftest.$ac_ext >&5
6718
6719ac_cv_working_alloca_h=no
6720fi
6721rm -f conftest.err conftest.$ac_objext \
6722 conftest$ac_exeext conftest.$ac_ext
6723fi
6724echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6725echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6726if test $ac_cv_working_alloca_h = yes; then
6727
6728cat >>confdefs.h <<\_ACEOF
6729#define HAVE_ALLOCA_H 1
6730_ACEOF
6731
6732fi
6733
6734echo "$as_me:$LINENO: checking for alloca" >&5
6735echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6736if test "${ac_cv_func_alloca_works+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739 cat >conftest.$ac_ext <<_ACEOF
6740/* confdefs.h. */
6741_ACEOF
6742cat confdefs.h >>conftest.$ac_ext
6743cat >>conftest.$ac_ext <<_ACEOF
6744/* end confdefs.h. */
6745#ifdef __GNUC__
6746# define alloca __builtin_alloca
6747#else
6748# ifdef _MSC_VER
6749# include <malloc.h>
6750# define alloca _alloca
6751# else
6752# if HAVE_ALLOCA_H
6753# include <alloca.h>
6754# else
6755# ifdef _AIX
6756 #pragma alloca
6757# else
6758# ifndef alloca /* predefined by HP cc +Olibcalls */
6759char *alloca ();
6760# endif
6761# endif
6762# endif
6763# endif
6764#endif
6765
6766int
6767main ()
6768{
6769char *p = (char *) alloca (1);
6770 ;
6771 return 0;
6772}
6773_ACEOF
6774rm -f conftest.$ac_objext conftest$ac_exeext
6775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6776 (eval $ac_link) 2>conftest.er1
6777 ac_status=$?
6778 grep -v '^ *+' conftest.er1 >conftest.err
6779 rm -f conftest.er1
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } &&
39b8ce7f
AS
6783 { ac_try='test -z "$ac_c_werror_flag"
6784 || test ! -s conftest.err'
4f4e53dd
PB
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 (eval $ac_try) 2>&5
6787 ac_status=$?
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; } &&
6790 { ac_try='test -s conftest$ac_exeext'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 (eval $ac_try) 2>&5
6793 ac_status=$?
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; }; then
6796 ac_cv_func_alloca_works=yes
6797else
6798 echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801ac_cv_func_alloca_works=no
6802fi
6803rm -f conftest.err conftest.$ac_objext \
6804 conftest$ac_exeext conftest.$ac_ext
6805fi
6806echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6807echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6808
6809if test $ac_cv_func_alloca_works = yes; then
6810
6811cat >>confdefs.h <<\_ACEOF
6812#define HAVE_ALLOCA 1
6813_ACEOF
6814
6815else
6816 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6817# that cause trouble. Some versions do not even contain alloca or
6818# contain a buggy version. If you still want to use their alloca,
6819# use ar to extract alloca.o from them instead of compiling alloca.c.
6820
6821ALLOCA=alloca.$ac_objext
6822
6823cat >>confdefs.h <<\_ACEOF
6824#define C_ALLOCA 1
6825_ACEOF
6826
6827
6828echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6829echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6830if test "${ac_cv_os_cray+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832else
6833 cat >conftest.$ac_ext <<_ACEOF
6834/* confdefs.h. */
6835_ACEOF
6836cat confdefs.h >>conftest.$ac_ext
6837cat >>conftest.$ac_ext <<_ACEOF
6838/* end confdefs.h. */
6839#if defined(CRAY) && ! defined(CRAY2)
6840webecray
6841#else
6842wenotbecray
6843#endif
6844
6845_ACEOF
6846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6847 $EGREP "webecray" >/dev/null 2>&1; then
6848 ac_cv_os_cray=yes
6849else
6850 ac_cv_os_cray=no
6851fi
6852rm -f conftest*
6853
6854fi
6855echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6856echo "${ECHO_T}$ac_cv_os_cray" >&6
6857if test $ac_cv_os_cray = yes; then
6858 for ac_func in _getb67 GETB67 getb67; do
6859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6860echo "$as_me:$LINENO: checking for $ac_func" >&5
6861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6862if eval "test \"\${$as_ac_var+set}\" = set"; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
6865 cat >conftest.$ac_ext <<_ACEOF
6866/* confdefs.h. */
6867_ACEOF
6868cat confdefs.h >>conftest.$ac_ext
6869cat >>conftest.$ac_ext <<_ACEOF
6870/* end confdefs.h. */
6871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6873#define $ac_func innocuous_$ac_func
6874
6875/* System header to define __stub macros and hopefully few prototypes,
6876 which can conflict with char $ac_func (); below.
6877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6878 <limits.h> exists even on freestanding compilers. */
6879
6880#ifdef __STDC__
6881# include <limits.h>
6882#else
6883# include <assert.h>
6884#endif
6885
6886#undef $ac_func
6887
6888/* Override any gcc2 internal prototype to avoid an error. */
6889#ifdef __cplusplus
6890extern "C"
6891{
6892#endif
6893/* We use char because int might match the return type of a gcc2
6894 builtin and then its argument prototype would still apply. */
6895char $ac_func ();
6896/* The GNU C library defines this for functions which it implements
6897 to always fail with ENOSYS. Some functions are actually named
6898 something starting with __ and the normal name is an alias. */
6899#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6900choke me
6901#else
6902char (*f) () = $ac_func;
6903#endif
6904#ifdef __cplusplus
6905}
6906#endif
6907
6908int
6909main ()
6910{
6911return f != $ac_func;
6912 ;
6913 return 0;
6914}
6915_ACEOF
6916rm -f conftest.$ac_objext conftest$ac_exeext
6917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6918 (eval $ac_link) 2>conftest.er1
6919 ac_status=$?
6920 grep -v '^ *+' conftest.er1 >conftest.err
6921 rm -f conftest.er1
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } &&
39b8ce7f
AS
6925 { ac_try='test -z "$ac_c_werror_flag"
6926 || test ! -s conftest.err'
4f4e53dd
PB
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; } &&
6932 { ac_try='test -s conftest$ac_exeext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 (eval $ac_try) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 eval "$as_ac_var=yes"
6939else
6940 echo "$as_me: failed program was:" >&5
6941sed 's/^/| /' conftest.$ac_ext >&5
6942
6943eval "$as_ac_var=no"
6944fi
6945rm -f conftest.err conftest.$ac_objext \
6946 conftest$ac_exeext conftest.$ac_ext
6947fi
6948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6950if test `eval echo '${'$as_ac_var'}'` = yes; then
6951
6952cat >>confdefs.h <<_ACEOF
6953#define CRAY_STACKSEG_END $ac_func
6954_ACEOF
6955
6956 break
6957fi
6958
6959 done
6960fi
6961
6962echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6963echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6964if test "${ac_cv_c_stack_direction+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
6967 if test "$cross_compiling" = yes; then
6968 ac_cv_c_stack_direction=0
6969else
6970 cat >conftest.$ac_ext <<_ACEOF
6971/* confdefs.h. */
6972_ACEOF
6973cat confdefs.h >>conftest.$ac_ext
6974cat >>conftest.$ac_ext <<_ACEOF
6975/* end confdefs.h. */
6976int
6977find_stack_direction ()
6978{
6979 static char *addr = 0;
6980 auto char dummy;
6981 if (addr == 0)
6982 {
6983 addr = &dummy;
6984 return find_stack_direction ();
6985 }
6986 else
6987 return (&dummy > addr) ? 1 : -1;
6988}
6989
6990int
6991main ()
6992{
6993 exit (find_stack_direction () < 0);
6994}
6995_ACEOF
6996rm -f conftest$ac_exeext
6997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6998 (eval $ac_link) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 (eval $ac_try) 2>&5
7004 ac_status=$?
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 ac_cv_c_stack_direction=1
7008else
7009 echo "$as_me: program exited with status $ac_status" >&5
7010echo "$as_me: failed program was:" >&5
7011sed 's/^/| /' conftest.$ac_ext >&5
7012
7013( exit $ac_status )
7014ac_cv_c_stack_direction=-1
7015fi
7016rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7017fi
7018fi
7019echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7020echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7021
7022cat >>confdefs.h <<_ACEOF
7023#define STACK_DIRECTION $ac_cv_c_stack_direction
7024_ACEOF
7025
7026
7027fi
7028
7029echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7030echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7031if test "${ac_cv_header_stdc+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033else
7034 cat >conftest.$ac_ext <<_ACEOF
7035/* confdefs.h. */
7036_ACEOF
7037cat confdefs.h >>conftest.$ac_ext
7038cat >>conftest.$ac_ext <<_ACEOF
7039/* end confdefs.h. */
7040#include <stdlib.h>
7041#include <stdarg.h>
7042#include <string.h>
7043#include <float.h>
7044
7045int
7046main ()
7047{
7048
7049 ;
7050 return 0;
7051}
7052_ACEOF
7053rm -f conftest.$ac_objext
7054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7056 ac_status=$?
7057 grep -v '^ *+' conftest.er1 >conftest.err
7058 rm -f conftest.er1
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
39b8ce7f
AS
7062 { ac_try='test -z "$ac_c_werror_flag"
7063 || test ! -s conftest.err'
4f4e53dd
PB
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 ac_cv_header_stdc=yes
7076else
7077 echo "$as_me: failed program was:" >&5
7078sed 's/^/| /' conftest.$ac_ext >&5
7079
7080ac_cv_header_stdc=no
7081fi
7082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7083
7084if test $ac_cv_header_stdc = yes; then
7085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7086 cat >conftest.$ac_ext <<_ACEOF
7087/* confdefs.h. */
7088_ACEOF
7089cat confdefs.h >>conftest.$ac_ext
7090cat >>conftest.$ac_ext <<_ACEOF
7091/* end confdefs.h. */
7092#include <string.h>
7093
7094_ACEOF
7095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7096 $EGREP "memchr" >/dev/null 2>&1; then
7097 :
7098else
7099 ac_cv_header_stdc=no
7100fi
7101rm -f conftest*
7102
7103fi
7104
7105if test $ac_cv_header_stdc = yes; then
7106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7107 cat >conftest.$ac_ext <<_ACEOF
7108/* confdefs.h. */
7109_ACEOF
7110cat confdefs.h >>conftest.$ac_ext
7111cat >>conftest.$ac_ext <<_ACEOF
7112/* end confdefs.h. */
7113#include <stdlib.h>
7114
7115_ACEOF
7116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7117 $EGREP "free" >/dev/null 2>&1; then
7118 :
7119else
7120 ac_cv_header_stdc=no
7121fi
7122rm -f conftest*
7123
7124fi
7125
7126if test $ac_cv_header_stdc = yes; then
7127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7128 if test "$cross_compiling" = yes; then
7129 :
7130else
7131 cat >conftest.$ac_ext <<_ACEOF
7132/* confdefs.h. */
7133_ACEOF
7134cat confdefs.h >>conftest.$ac_ext
7135cat >>conftest.$ac_ext <<_ACEOF
7136/* end confdefs.h. */
7137#include <ctype.h>
7138#if ((' ' & 0x0FF) == 0x020)
7139# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7140# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7141#else
7142# define ISLOWER(c) \
7143 (('a' <= (c) && (c) <= 'i') \
7144 || ('j' <= (c) && (c) <= 'r') \
7145 || ('s' <= (c) && (c) <= 'z'))
7146# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7147#endif
7148
7149#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7150int
7151main ()
7152{
7153 int i;
7154 for (i = 0; i < 256; i++)
7155 if (XOR (islower (i), ISLOWER (i))
7156 || toupper (i) != TOUPPER (i))
7157 exit(2);
7158 exit (0);
7159}
7160_ACEOF
7161rm -f conftest$ac_exeext
7162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7163 (eval $ac_link) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 :
7173else
7174 echo "$as_me: program exited with status $ac_status" >&5
7175echo "$as_me: failed program was:" >&5
7176sed 's/^/| /' conftest.$ac_ext >&5
7177
7178( exit $ac_status )
7179ac_cv_header_stdc=no
7180fi
7181rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7182fi
7183fi
7184fi
7185echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7186echo "${ECHO_T}$ac_cv_header_stdc" >&6
7187if test $ac_cv_header_stdc = yes; then
7188
7189cat >>confdefs.h <<\_ACEOF
7190#define STDC_HEADERS 1
7191_ACEOF
7192
7193fi
7194
7195
7196 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7197echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7198if test "${am_cv_langinfo_codeset+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200else
7201 cat >conftest.$ac_ext <<_ACEOF
7202/* confdefs.h. */
7203_ACEOF
7204cat confdefs.h >>conftest.$ac_ext
7205cat >>conftest.$ac_ext <<_ACEOF
7206/* end confdefs.h. */
7207#include <langinfo.h>
7208int
7209main ()
7210{
7211char* cs = nl_langinfo(CODESET);
7212 ;
7213 return 0;
7214}
7215_ACEOF
7216rm -f conftest.$ac_objext conftest$ac_exeext
7217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7218 (eval $ac_link) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
39b8ce7f
AS
7225 { ac_try='test -z "$ac_c_werror_flag"
7226 || test ! -s conftest.err'
4f4e53dd
PB
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; } &&
7232 { ac_try='test -s 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 am_cv_langinfo_codeset=yes
7239else
7240 echo "$as_me: failed program was:" >&5
7241sed 's/^/| /' conftest.$ac_ext >&5
7242
7243am_cv_langinfo_codeset=no
7244fi
7245rm -f conftest.err conftest.$ac_objext \
7246 conftest$ac_exeext conftest.$ac_ext
7247
7248fi
7249echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7250echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7251 if test $am_cv_langinfo_codeset = yes; then
7252
7253cat >>confdefs.h <<\_ACEOF
7254#define HAVE_LANGINFO_CODESET 1
7255_ACEOF
7256
7257 fi
7258
7259# If we haven't got the data from the intl directory,
7260# assume NLS is disabled.
7261USE_NLS=no
7262LIBINTL=
7263LIBINTL_DEP=
7264INCINTL=
7265XGETTEXT=
7266GMSGFMT=
7267POSUB=
f7288899
EC
7268
7269if test -f ../intl/config.intl; then
7270 . ../intl/config.intl
4f4e53dd
PB
7271fi
7272echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7273echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7274if test x"$USE_NLS" != xyes; then
7275 echo "$as_me:$LINENO: result: no" >&5
7276echo "${ECHO_T}no" >&6
7277else
7278 echo "$as_me:$LINENO: result: yes" >&5
7279echo "${ECHO_T}yes" >&6
7280
7281cat >>confdefs.h <<\_ACEOF
7282#define ENABLE_NLS 1
7283_ACEOF
7284
7285
7286 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7287echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7288 # Look for .po and .gmo files in the source directory.
7289 CATALOGS=
7290 XLINGUAS=
7291 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7292 # If there aren't any .gmo files the shell will give us the
7293 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7294 # weeded out.
7295 case "$cat" in *\**)
7296 continue;;
7297 esac
7298 # The quadruple backslash is collapsed to a double backslash
7299 # by the backticks, then collapsed again by the double quotes,
7300 # leaving us with one backslash in the sed expression (right
7301 # before the dot that mustn't act as a wildcard).
5c3c3683
DJ
7302 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7303 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4f4e53dd
PB
7304 # The user is allowed to set LINGUAS to a list of languages to
7305 # install catalogs for. If it's empty that means "all of them."
7306 if test "x$LINGUAS" = x; then
7307 CATALOGS="$CATALOGS $cat"
7308 XLINGUAS="$XLINGUAS $lang"
7309 else
7310 case "$LINGUAS" in *$lang*)
7311 CATALOGS="$CATALOGS $cat"
7312 XLINGUAS="$XLINGUAS $lang"
7313 ;;
7314 esac
7315 fi
7316 done
7317 LINGUAS="$XLINGUAS"
7318 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7319echo "${ECHO_T}$LINGUAS" >&6
5c3c3683
DJ
7320
7321
7322 DATADIRNAME=share
7323
7324 INSTOBJEXT=.mo
7325
7326 GENCAT=gencat
7327
7328 CATOBJEXT=.gmo
7329
4f4e53dd
PB
7330fi
7331
7332echo "$as_me:$LINENO: checking for uchar" >&5
7333echo $ECHO_N "checking for uchar... $ECHO_C" >&6
7334if test "${gcc_cv_type_uchar+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337 cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h. */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h. */
7343
f78ce0c2 7344#include <sys/types.h>
4f4e53dd
PB
7345
7346int
7347main ()
7348{
7349if ((uchar *)0) return 0;
7350 if (sizeof(uchar)) return 0;
7351 ;
7352 return 0;
7353}
7354_ACEOF
7355rm -f conftest.$ac_objext
7356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7357 (eval $ac_compile) 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } &&
39b8ce7f
AS
7364 { ac_try='test -z "$ac_c_werror_flag"
7365 || test ! -s conftest.err'
4f4e53dd
PB
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; } &&
7371 { ac_try='test -s conftest.$ac_objext'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 (eval $ac_try) 2>&5
7374 ac_status=$?
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; }; then
7377 ac_cv_type_uchar=yes
7378else
7379 echo "$as_me: failed program was:" >&5
7380sed 's/^/| /' conftest.$ac_ext >&5
7381
7382ac_cv_type_uchar=no
7383fi
7384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7385fi
7386echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
7387echo "${ECHO_T}$gcc_cv_type_uchar" >&6
7388if test $ac_cv_type_uchar = yes; then
7389
7390cat >>confdefs.h <<\_ACEOF
7391#define HAVE_UCHAR 1
7392_ACEOF
7393
7394fi
7395
7396
7397 if test "X$prefix" = "XNONE"; then
7398 acl_final_prefix="$ac_default_prefix"
7399 else
7400 acl_final_prefix="$prefix"
7401 fi
7402 if test "X$exec_prefix" = "XNONE"; then
7403 acl_final_exec_prefix='${prefix}'
7404 else
7405 acl_final_exec_prefix="$exec_prefix"
7406 fi
7407 acl_save_prefix="$prefix"
7408 prefix="$acl_final_prefix"
7409 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7410 prefix="$acl_save_prefix"
7411
7412
7413# Check whether --with-gnu-ld or --without-gnu-ld was given.
7414if test "${with_gnu_ld+set}" = set; then
7415 withval="$with_gnu_ld"
7416 test "$withval" = no || with_gnu_ld=yes
7417else
7418 with_gnu_ld=no
7419fi;
7420# Prepare PATH_SEPARATOR.
7421# The user is always right.
7422if test "${PATH_SEPARATOR+set}" != set; then
7423 echo "#! /bin/sh" >conf$$.sh
7424 echo "exit 0" >>conf$$.sh
7425 chmod +x conf$$.sh
7426 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7427 PATH_SEPARATOR=';'
7428 else
7429 PATH_SEPARATOR=:
7430 fi
7431 rm -f conf$$.sh
7432fi
7433ac_prog=ld
7434if test "$GCC" = yes; then
7435 # Check if gcc -print-prog-name=ld gives a path.
7436 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7437echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7438 case $host in
7439 *-*-mingw*)
7440 # gcc leaves a trailing carriage return which upsets mingw
7441 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7442 *)
7443 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7444 esac
7445 case $ac_prog in
7446 # Accept absolute paths.
7447 [\\/]* | [A-Za-z]:[\\/]*)
7448 re_direlt='/[^/][^/]*/\.\./'
7449 # Canonicalize the path of ld
7450 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7451 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7452 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7453 done
7454 test -z "$LD" && LD="$ac_prog"
7455 ;;
7456 "")
7457 # If it fails, then pretend we aren't using GCC.
7458 ac_prog=ld
7459 ;;
7460 *)
7461 # If it is relative, then search for the first ld in PATH.
7462 with_gnu_ld=unknown
7463 ;;
7464 esac
7465elif test "$with_gnu_ld" = yes; then
7466 echo "$as_me:$LINENO: checking for GNU ld" >&5
7467echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7468else
7469 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7470echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7471fi
7472if test "${acl_cv_path_LD+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475 if test -z "$LD"; then
7476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7477 for ac_dir in $PATH; do
7478 test -z "$ac_dir" && ac_dir=.
7479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7480 acl_cv_path_LD="$ac_dir/$ac_prog"
7481 # Check to see if the program is GNU ld. I'd rather use --version,
7482 # but apparently some GNU ld's only accept -v.
7483 # Break only if it was the GNU/non-GNU ld that we prefer.
88fa57d7
KC
7484 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7485 test "$with_gnu_ld" != no && break
7486 else
7487 test "$with_gnu_ld" != yes && break
7488 fi
4f4e53dd
PB
7489 fi
7490 done
7491 IFS="$ac_save_ifs"
7492else
7493 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7494fi
7495fi
7496
7497LD="$acl_cv_path_LD"
7498if test -n "$LD"; then
7499 echo "$as_me:$LINENO: result: $LD" >&5
7500echo "${ECHO_T}$LD" >&6
7501else
7502 echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6
7504fi
7505test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7506echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7507 { (exit 1); exit 1; }; }
7508echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7509echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7510if test "${acl_cv_prog_gnu_ld+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
88fa57d7
KC
7514if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7515 acl_cv_prog_gnu_ld=yes
7516else
7517 acl_cv_prog_gnu_ld=no
7518fi
4f4e53dd
PB
7519fi
7520echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7521echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7522with_gnu_ld=$acl_cv_prog_gnu_ld
7523
7524
7525
7526 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7527echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7528if test "${acl_cv_rpath+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530else
7531
7532 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7533 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7534 . ./conftest.sh
7535 rm -f ./conftest.sh
7536 acl_cv_rpath=done
7537
7538fi
7539echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7540echo "${ECHO_T}$acl_cv_rpath" >&6
7541 wl="$acl_cv_wl"
7542 libext="$acl_cv_libext"
7543 shlibext="$acl_cv_shlibext"
7544 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7545 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7546 hardcode_direct="$acl_cv_hardcode_direct"
7547 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7548 # Check whether --enable-rpath or --disable-rpath was given.
7549if test "${enable_rpath+set}" = set; then
7550 enableval="$enable_rpath"
7551 :
7552else
7553 enable_rpath=yes
7554fi;
7555
7556
7557
7558
7559
7560
7561
7562 use_additional=yes
7563
7564 acl_save_prefix="$prefix"
7565 prefix="$acl_final_prefix"
7566 acl_save_exec_prefix="$exec_prefix"
7567 exec_prefix="$acl_final_exec_prefix"
7568
7569 eval additional_includedir=\"$includedir\"
7570 eval additional_libdir=\"$libdir\"
7571
7572 exec_prefix="$acl_save_exec_prefix"
7573 prefix="$acl_save_prefix"
7574
7575
7576# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7577if test "${with_libiconv_prefix+set}" = set; then
7578 withval="$with_libiconv_prefix"
7579
7580 if test "X$withval" = "Xno"; then
7581 use_additional=no
7582 else
7583 if test "X$withval" = "X"; then
7584
7585 acl_save_prefix="$prefix"
7586 prefix="$acl_final_prefix"
7587 acl_save_exec_prefix="$exec_prefix"
7588 exec_prefix="$acl_final_exec_prefix"
7589
7590 eval additional_includedir=\"$includedir\"
7591 eval additional_libdir=\"$libdir\"
7592
7593 exec_prefix="$acl_save_exec_prefix"
7594 prefix="$acl_save_prefix"
7595
7596 else
7597 additional_includedir="$withval/include"
7598 additional_libdir="$withval/lib"
7599 fi
7600 fi
7601
7602fi;
7603 LIBICONV=
7604 LTLIBICONV=
7605 INCICONV=
7606 rpathdirs=
7607 ltrpathdirs=
7608 names_already_handled=
7609 names_next_round='iconv '
7610 while test -n "$names_next_round"; do
7611 names_this_round="$names_next_round"
7612 names_next_round=
7613 for name in $names_this_round; do
7614 already_handled=
7615 for n in $names_already_handled; do
7616 if test "$n" = "$name"; then
7617 already_handled=yes
7618 break
7619 fi
7620 done
7621 if test -z "$already_handled"; then
7622 names_already_handled="$names_already_handled $name"
7623 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7624 eval value=\"\$HAVE_LIB$uppername\"
7625 if test -n "$value"; then
7626 if test "$value" = yes; then
7627 eval value=\"\$LIB$uppername\"
7628 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7629 eval value=\"\$LTLIB$uppername\"
7630 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7631 else
7632 :
7633 fi
7634 else
7635 found_dir=
7636 found_la=
7637 found_so=
7638 found_a=
7639 if test $use_additional = yes; then
7640 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7641 found_dir="$additional_libdir"
7642 found_so="$additional_libdir/lib$name.$shlibext"
7643 if test -f "$additional_libdir/lib$name.la"; then
7644 found_la="$additional_libdir/lib$name.la"
7645 fi
7646 else
7647 if test -f "$additional_libdir/lib$name.$libext"; then
7648 found_dir="$additional_libdir"
7649 found_a="$additional_libdir/lib$name.$libext"
7650 if test -f "$additional_libdir/lib$name.la"; then
7651 found_la="$additional_libdir/lib$name.la"
7652 fi
7653 fi
7654 fi
7655 fi
7656 if test "X$found_dir" = "X"; then
7657 for x in $LDFLAGS $LTLIBICONV; do
7658
7659 acl_save_prefix="$prefix"
7660 prefix="$acl_final_prefix"
7661 acl_save_exec_prefix="$exec_prefix"
7662 exec_prefix="$acl_final_exec_prefix"
7663 eval x=\"$x\"
7664 exec_prefix="$acl_save_exec_prefix"
7665 prefix="$acl_save_prefix"
7666
7667 case "$x" in
7668 -L*)
7669 dir=`echo "X$x" | sed -e 's/^X-L//'`
7670 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7671 found_dir="$dir"
7672 found_so="$dir/lib$name.$shlibext"
7673 if test -f "$dir/lib$name.la"; then
7674 found_la="$dir/lib$name.la"
7675 fi
7676 else
7677 if test -f "$dir/lib$name.$libext"; then
7678 found_dir="$dir"
7679 found_a="$dir/lib$name.$libext"
7680 if test -f "$dir/lib$name.la"; then
7681 found_la="$dir/lib$name.la"
7682 fi
7683 fi
7684 fi
7685 ;;
7686 esac
7687 if test "X$found_dir" != "X"; then
7688 break
7689 fi
7690 done
7691 fi
7692 if test "X$found_dir" != "X"; then
7693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7694 if test "X$found_so" != "X"; then
7695 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7696 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7697 else
7698 haveit=
7699 for x in $ltrpathdirs; do
7700 if test "X$x" = "X$found_dir"; then
7701 haveit=yes
7702 break
7703 fi
7704 done
7705 if test -z "$haveit"; then
7706 ltrpathdirs="$ltrpathdirs $found_dir"
7707 fi
7708 if test "$hardcode_direct" = yes; then
7709 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7710 else
7711 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7712 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7713 haveit=
7714 for x in $rpathdirs; do
7715 if test "X$x" = "X$found_dir"; then
7716 haveit=yes
7717 break
7718 fi
7719 done
7720 if test -z "$haveit"; then
7721 rpathdirs="$rpathdirs $found_dir"
7722 fi
7723 else
7724 haveit=
7725 for x in $LDFLAGS $LIBICONV; do
7726
7727 acl_save_prefix="$prefix"
7728 prefix="$acl_final_prefix"
7729 acl_save_exec_prefix="$exec_prefix"
7730 exec_prefix="$acl_final_exec_prefix"
7731 eval x=\"$x\"
7732 exec_prefix="$acl_save_exec_prefix"
7733 prefix="$acl_save_prefix"
7734
7735 if test "X$x" = "X-L$found_dir"; then
7736 haveit=yes
7737 break
7738 fi
7739 done
7740 if test -z "$haveit"; then
7741 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7742 fi
7743 if test "$hardcode_minus_L" != no; then
7744 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7745 else
7746 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7747 fi
7748 fi
7749 fi
7750 fi
7751 else
7752 if test "X$found_a" != "X"; then
7753 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7754 else
7755 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7756 fi
7757 fi
7758 additional_includedir=
7759 case "$found_dir" in
7760 */lib | */lib/)
7761 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7762 additional_includedir="$basedir/include"
7763 ;;
7764 esac
7765 if test "X$additional_includedir" != "X"; then
7766 if test "X$additional_includedir" != "X/usr/include"; then
7767 haveit=
7768 if test "X$additional_includedir" = "X/usr/local/include"; then
7769 if test -n "$GCC"; then
7770 case $host_os in
7771 linux*) haveit=yes;;
7772 esac
7773 fi
7774 fi
7775 if test -z "$haveit"; then
7776 for x in $CPPFLAGS $INCICONV; do
7777
7778 acl_save_prefix="$prefix"
7779 prefix="$acl_final_prefix"
7780 acl_save_exec_prefix="$exec_prefix"
7781 exec_prefix="$acl_final_exec_prefix"
7782 eval x=\"$x\"
7783 exec_prefix="$acl_save_exec_prefix"
7784 prefix="$acl_save_prefix"
7785
7786 if test "X$x" = "X-I$additional_includedir"; then
7787 haveit=yes
7788 break
7789 fi
7790 done
7791 if test -z "$haveit"; then
7792 if test -d "$additional_includedir"; then
7793 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7794 fi
7795 fi
7796 fi
7797 fi
7798 fi
7799 if test -n "$found_la"; then
7800 save_libdir="$libdir"
7801 case "$found_la" in
7802 */* | *\\*) . "$found_la" ;;
7803 *) . "./$found_la" ;;
7804 esac
7805 libdir="$save_libdir"
7806 for dep in $dependency_libs; do
7807 case "$dep" in
7808 -L*)
7809 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7810 if test "X$additional_libdir" != "X/usr/lib"; then
7811 haveit=
7812 if test "X$additional_libdir" = "X/usr/local/lib"; then
7813 if test -n "$GCC"; then
7814 case $host_os in
7815 linux*) haveit=yes;;
7816 esac
7817 fi
7818 fi
7819 if test -z "$haveit"; then
7820 haveit=
7821 for x in $LDFLAGS $LIBICONV; do
7822
7823 acl_save_prefix="$prefix"
7824 prefix="$acl_final_prefix"
7825 acl_save_exec_prefix="$exec_prefix"
7826 exec_prefix="$acl_final_exec_prefix"
7827 eval x=\"$x\"
7828 exec_prefix="$acl_save_exec_prefix"
7829 prefix="$acl_save_prefix"
7830
7831 if test "X$x" = "X-L$additional_libdir"; then
7832 haveit=yes
7833 break
7834 fi
7835 done
7836 if test -z "$haveit"; then
7837 if test -d "$additional_libdir"; then
7838 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7839 fi
7840 fi
7841 haveit=
7842 for x in $LDFLAGS $LTLIBICONV; 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-L$additional_libdir"; then
7853 haveit=yes
7854 break
7855 fi
7856 done
7857 if test -z "$haveit"; then
7858 if test -d "$additional_libdir"; then
7859 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7860 fi
7861 fi
7862 fi
7863 fi
7864 ;;
7865 -R*)
7866 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7867 if test "$enable_rpath" != no; then
7868 haveit=
7869 for x in $rpathdirs; do
7870 if test "X$x" = "X$dir"; then
7871 haveit=yes
7872 break
7873 fi
7874 done
7875 if test -z "$haveit"; then
7876 rpathdirs="$rpathdirs $dir"
7877 fi
7878 haveit=
7879 for x in $ltrpathdirs; do
7880 if test "X$x" = "X$dir"; then
7881 haveit=yes
7882 break
7883 fi
7884 done
7885 if test -z "$haveit"; then
7886 ltrpathdirs="$ltrpathdirs $dir"
7887 fi
7888 fi
7889 ;;
7890 -l*)
7891 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7892 ;;
7893 *.la)
7894 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7895 ;;
7896 *)
7897 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7898 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7899 ;;
7900 esac
7901 done
7902 fi
7903 else
7904 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7905 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7906 fi
7907 fi
7908 fi
7909 done
7910 done
7911 if test "X$rpathdirs" != "X"; then
7912 if test -n "$hardcode_libdir_separator"; then
7913 alldirs=
7914 for found_dir in $rpathdirs; do
7915 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7916 done
7917 acl_save_libdir="$libdir"
7918 libdir="$alldirs"
7919 eval flag=\"$hardcode_libdir_flag_spec\"
7920 libdir="$acl_save_libdir"
7921 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7922 else
7923 for found_dir in $rpathdirs; do
7924 acl_save_libdir="$libdir"
7925 libdir="$found_dir"
7926 eval flag=\"$hardcode_libdir_flag_spec\"
7927 libdir="$acl_save_libdir"
7928 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7929 done
7930 fi
7931 fi
7932 if test "X$ltrpathdirs" != "X"; then
7933 for found_dir in $ltrpathdirs; do
7934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7935 done
7936 fi
7937
7938
7939
7940
7941
7942
7943
7944 am_save_CPPFLAGS="$CPPFLAGS"
7945
7946 for element in $INCICONV; do
7947 haveit=
7948 for x in $CPPFLAGS; do
7949
7950 acl_save_prefix="$prefix"
7951 prefix="$acl_final_prefix"
7952 acl_save_exec_prefix="$exec_prefix"
7953 exec_prefix="$acl_final_exec_prefix"
7954 eval x=\"$x\"
7955 exec_prefix="$acl_save_exec_prefix"
7956 prefix="$acl_save_prefix"
7957
7958 if test "X$x" = "X$element"; then
7959 haveit=yes
7960 break
7961 fi
7962 done
7963 if test -z "$haveit"; then
7964 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7965 fi
7966 done
7967
7968
7969 echo "$as_me:$LINENO: checking for iconv" >&5
7970echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7971if test "${am_cv_func_iconv+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973else
7974
7975 am_cv_func_iconv="no, consider installing GNU libiconv"
7976 am_cv_lib_iconv=no
7977 cat >conftest.$ac_ext <<_ACEOF
7978/* confdefs.h. */
7979_ACEOF
7980cat confdefs.h >>conftest.$ac_ext
7981cat >>conftest.$ac_ext <<_ACEOF
7982/* end confdefs.h. */
7983#include <stdlib.h>
7984#include <iconv.h>
7985int
7986main ()
7987{
7988iconv_t cd = iconv_open("","");
7989 iconv(cd,NULL,NULL,NULL,NULL);
7990 iconv_close(cd);
7991 ;
7992 return 0;
7993}
7994_ACEOF
7995rm -f conftest.$ac_objext conftest$ac_exeext
7996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7997 (eval $ac_link) 2>conftest.er1
7998 ac_status=$?
7999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } &&
39b8ce7f
AS
8004 { ac_try='test -z "$ac_c_werror_flag"
8005 || test ! -s conftest.err'
4f4e53dd
PB
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; } &&
8011 { ac_try='test -s conftest$ac_exeext'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 am_cv_func_iconv=yes
8018else
8019 echo "$as_me: failed program was:" >&5
8020sed 's/^/| /' conftest.$ac_ext >&5
8021
8022fi
8023rm -f conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8025 if test "$am_cv_func_iconv" != yes; then
8026 am_save_LIBS="$LIBS"
8027 LIBS="$LIBS $LIBICONV"
8028 cat >conftest.$ac_ext <<_ACEOF
8029/* confdefs.h. */
8030_ACEOF
8031cat confdefs.h >>conftest.$ac_ext
8032cat >>conftest.$ac_ext <<_ACEOF
8033/* end confdefs.h. */
8034#include <stdlib.h>
8035#include <iconv.h>
8036int
8037main ()
8038{
8039iconv_t cd = iconv_open("","");
8040 iconv(cd,NULL,NULL,NULL,NULL);
8041 iconv_close(cd);
8042 ;
8043 return 0;
8044}
8045_ACEOF
8046rm -f conftest.$ac_objext conftest$ac_exeext
8047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8048 (eval $ac_link) 2>conftest.er1
8049 ac_status=$?
8050 grep -v '^ *+' conftest.er1 >conftest.err
8051 rm -f conftest.er1
8052 cat conftest.err >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); } &&
39b8ce7f
AS
8055 { ac_try='test -z "$ac_c_werror_flag"
8056 || test ! -s conftest.err'
4f4e53dd
PB
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; } &&
8062 { ac_try='test -s conftest$ac_exeext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 am_cv_lib_iconv=yes
8069 am_cv_func_iconv=yes
8070else
8071 echo "$as_me: failed program was:" >&5
8072sed 's/^/| /' conftest.$ac_ext >&5
8073
8074fi
8075rm -f conftest.err conftest.$ac_objext \
8076 conftest$ac_exeext conftest.$ac_ext
8077 LIBS="$am_save_LIBS"
8078 fi
8079
8080fi
8081echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8082echo "${ECHO_T}$am_cv_func_iconv" >&6
8083 if test "$am_cv_func_iconv" = yes; then
8084
8085cat >>confdefs.h <<\_ACEOF
8086#define HAVE_ICONV 1
8087_ACEOF
8088
8089 fi
8090 if test "$am_cv_lib_iconv" = yes; then
8091 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8092echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8093 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8094echo "${ECHO_T}$LIBICONV" >&6
8095 else
8096 CPPFLAGS="$am_save_CPPFLAGS"
8097 LIBICONV=
8098 LTLIBICONV=
8099 fi
8100
8101
8102
8103 if test "$am_cv_func_iconv" = yes; then
8104 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8105echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8106 if test "${am_cv_proto_iconv+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108else
8109
8110 cat >conftest.$ac_ext <<_ACEOF
8111/* confdefs.h. */
8112_ACEOF
8113cat confdefs.h >>conftest.$ac_ext
8114cat >>conftest.$ac_ext <<_ACEOF
8115/* end confdefs.h. */
8116
8117#include <stdlib.h>
8118#include <iconv.h>
8119extern
8120#ifdef __cplusplus
8121"C"
8122#endif
8123#if defined(__STDC__) || defined(__cplusplus)
8124size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8125#else
8126size_t iconv();
8127#endif
8128
8129int
8130main ()
8131{
8132
8133 ;
8134 return 0;
8135}
8136_ACEOF
8137rm -f conftest.$ac_objext
8138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139 (eval $ac_compile) 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
39b8ce7f
AS
8146 { ac_try='test -z "$ac_c_werror_flag"
8147 || test ! -s conftest.err'
4f4e53dd
PB
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try='test -s conftest.$ac_objext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 (eval $ac_try) 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 am_cv_proto_iconv_arg1=""
8160else
8161 echo "$as_me: failed program was:" >&5
8162sed 's/^/| /' conftest.$ac_ext >&5
8163
8164am_cv_proto_iconv_arg1="const"
8165fi
8166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8167 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);"
8168fi
8169
8170 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8171 echo "$as_me:$LINENO: result: ${ac_t:-
8172 }$am_cv_proto_iconv" >&5
8173echo "${ECHO_T}${ac_t:-
8174 }$am_cv_proto_iconv" >&6
8175
8176cat >>confdefs.h <<_ACEOF
8177#define ICONV_CONST $am_cv_proto_iconv_arg1
8178_ACEOF
8179
8180 fi
8181
8182
078e3ffe 8183# More defines and substitutions.
39b8ce7f 8184PACKAGE="$PACKAGE_TARNAME"
078e3ffe
PB
8185
8186cat >>confdefs.h <<_ACEOF
8187#define PACKAGE "$PACKAGE"
8188_ACEOF
8189
8190
4f4e53dd
PB
8191
8192if test "x$enable_nls" != xno; then
078e3ffe
PB
8193 USED_CATALOGS='$(CATALOGS)'
8194else
8195 USED_CATALOGS=
8196fi
8197
8198
8199# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8200if test "${enable_maintainer_mode+set}" = set; then
8201 enableval="$enable_maintainer_mode"
8202
4f4e53dd 8203else
078e3ffe
PB
8204 enable_maintainer_mode=no
8205fi;
8206
8207if test "x$enable_maintainer_mode" = xno; then
8208 MAINT='#'
8209else
8210 MAINT=
4f4e53dd
PB
8211fi
8212
078e3ffe 8213
4f4e53dd
PB
8214# Check whether --enable-checking or --disable-checking was given.
8215if test "${enable_checking+set}" = set; then
8216 enableval="$enable_checking"
8217
8218else
8219 enable_checking=no
8220fi;
8221
8222if test $enable_checking != no ; then
8223
8224cat >>confdefs.h <<\_ACEOF
8225#define ENABLE_CHECKING 1
8226_ACEOF
8227
8228fi
8229
963e23c5 8230
4f4e53dd
PB
8231case $target in
8232 alpha*-*-* | \
077fc835 8233 arm*-*-*eabi* | \
b3f8d95d 8234 arm*-*-symbianelf* | \
4f4e53dd
PB
8235 x86_64-*-* | \
8236 ia64-*-* | \
8237 hppa*64*-*-* | parisc*64*-*-* | \
aaf50ff2 8238 i[34567]86-*-darwin* | \
a8e68029 8239 i[34567]86-*-solaris2.1[0-9]* | \
4f4e53dd
PB
8240 mips*-*-* | \
8241 mmix-*-* | \
8242 powerpc*-*-* | \
8243 rs6000*-*-* | \
8244 s390*-*-* | \
8245 sparc64*-*-* | ultrasparc-*-freebsd* | \
8246 sparcv9-*-solaris2* | \
f42eccdb 8247 sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9]* | \
85d9c13c 8248 spu-*-* | \
963e23c5 8249 sh[123456789l]*-*-*)
4f4e53dd 8250 need_64bit_hwint=yes ;;
0f45f0f5
JM
8251 i[34567]86-*-linux*)
8252 if test "x$enable_targets" = xall; then
8253 need_64bit_hwint=yes
8254 else
8255 need_64bit_hwint=no
8256 fi
8257 ;;
4f4e53dd
PB
8258 *)
8259 need_64bit_hwint=no ;;
8260esac
8261
8262case $need_64bit_hwint:$ac_cv_sizeof_long in
8263 *:8 | no:*) host_wide_int=long ;;
8264 *) host_wide_int='long long' ;;
8265esac
8266
8267
963e23c5 8268
4f4e53dd
PB
8269cat >>confdefs.h <<_ACEOF
8270#define HOST_WIDE_INT $host_wide_int
8271_ACEOF
8272
8273
078e3ffe
PB
8274# Output.
8275
4f4e53dd
PB
8276 ac_config_headers="$ac_config_headers config.h:config.in"
8277
8278 ac_config_files="$ac_config_files Makefile"
8279
8280cat >confcache <<\_ACEOF
8281# This file is a shell script that caches the results of configure
8282# tests run on this system so they can be shared between configure
8283# scripts and configure runs, see configure's option --config-cache.
8284# It is not useful on other systems. If it contains results you don't
8285# want to keep, you may remove or edit it.
8286#
8287# config.status only pays attention to the cache file if you give it
8288# the --recheck option to rerun configure.
8289#
8290# `ac_cv_env_foo' variables (set or unset) will be overridden when
8291# loading this file, other *unset* `ac_cv_foo' will be assigned the
8292# following values.
8293
8294_ACEOF
8295
8296# The following way of writing the cache mishandles newlines in values,
8297# but we know of no workaround that is simple, portable, and efficient.
8298# So, don't put newlines in cache variables' values.
8299# Ultrix sh set writes to stderr and can't be redirected directly,
8300# and sets the high bit in the cache file unless we assign to the vars.
8301{
8302 (set) 2>&1 |
8303 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8304 *ac_space=\ *)
8305 # `set' does not quote correctly, so add quotes (double-quote
8306 # substitution turns \\\\ into \\, and sed turns \\ into \).
8307 sed -n \
8308 "s/'/'\\\\''/g;
8309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8310 ;;
8311 *)
8312 # `set' quotes correctly as required by POSIX, so do not add quotes.
8313 sed -n \
8314 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8315 ;;
8316 esac;
8317} |
8318 sed '
8319 t clear
8320 : clear
8321 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8322 t end
8323 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8324 : end' >>confcache
8325if diff $cache_file confcache >/dev/null 2>&1; then :; else
8326 if test -w $cache_file; then
8327 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8328 cat confcache >$cache_file
8329 else
8330 echo "not updating unwritable cache $cache_file"
8331 fi
8332fi
8333rm -f confcache
8334
8335test "x$prefix" = xNONE && prefix=$ac_default_prefix
8336# Let make expand exec_prefix.
8337test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8338
8339# VPATH may cause trouble with some makes, so we remove $(srcdir),
8340# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8341# trailing colons and then remove the whole line if VPATH becomes empty
8342# (actually we leave an empty line to preserve line numbers).
8343if test "x$srcdir" = x.; then
8344 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8345s/:*\$(srcdir):*/:/;
8346s/:*\${srcdir}:*/:/;
8347s/:*@srcdir@:*/:/;
8348s/^\([^=]*=[ ]*\):*/\1/;
8349s/:*$//;
8350s/^[^=]*=[ ]*$//;
8351}'
8352fi
8353
8354DEFS=-DHAVE_CONFIG_H
8355
8356ac_libobjs=
8357ac_ltlibobjs=
8358for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8359 # 1. Remove the extension, and $U if already installed.
8360 ac_i=`echo "$ac_i" |
8361 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8362 # 2. Add them.
8363 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8364 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8365done
8366LIBOBJS=$ac_libobjs
8367
8368LTLIBOBJS=$ac_ltlibobjs
8369
8370
4f4e53dd
PB
8371
8372: ${CONFIG_STATUS=./config.status}
8373ac_clean_files_save=$ac_clean_files
8374ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8375{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8376echo "$as_me: creating $CONFIG_STATUS" >&6;}
8377cat >$CONFIG_STATUS <<_ACEOF
8378#! $SHELL
8379# Generated by $as_me.
8380# Run this file to recreate the current configuration.
8381# Compiler output produced by configure, useful for debugging
8382# configure, is in config.log if it exists.
8383
8384debug=false
8385ac_cs_recheck=false
8386ac_cs_silent=false
8387SHELL=\${CONFIG_SHELL-$SHELL}
8388_ACEOF
8389
8390cat >>$CONFIG_STATUS <<\_ACEOF
8391## --------------------- ##
8392## M4sh Initialization. ##
8393## --------------------- ##
8394
8395# Be Bourne compatible
8396if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8397 emulate sh
8398 NULLCMD=:
8399 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8400 # is contrary to our usage. Disable this feature.
8401 alias -g '${1+"$@"}'='"$@"'
8402elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8403 set -o posix
8404fi
8405DUALCASE=1; export DUALCASE # for MKS sh
8406
8407# Support unset when possible.
8408if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8409 as_unset=unset
8410else
8411 as_unset=false
8412fi
8413
8414
8415# Work around bugs in pre-3.0 UWIN ksh.
8416$as_unset ENV MAIL MAILPATH
8417PS1='$ '
8418PS2='> '
8419PS4='+ '
8420
8421# NLS nuisances.
8422for as_var in \
8423 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8424 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8425 LC_TELEPHONE LC_TIME
8426do
8427 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8428 eval $as_var=C; export $as_var
8429 else
8430 $as_unset $as_var
8431 fi
8432done
8433
8434# Required to use basename.
8435if expr a : '\(a\)' >/dev/null 2>&1; then
8436 as_expr=expr
8437else
8438 as_expr=false
8439fi
8440
8441if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8442 as_basename=basename
8443else
8444 as_basename=false
8445fi
8446
8447
8448# Name of the executable.
8449as_me=`$as_basename "$0" ||
8450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8451 X"$0" : 'X\(//\)$' \| \
8452 X"$0" : 'X\(/\)$' \| \
8453 . : '\(.\)' 2>/dev/null ||
8454echo X/"$0" |
8455 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8456 /^X\/\(\/\/\)$/{ s//\1/; q; }
8457 /^X\/\(\/\).*/{ s//\1/; q; }
8458 s/.*/./; q'`
8459
8460
8461# PATH needs CR, and LINENO needs CR and PATH.
8462# Avoid depending upon Character Ranges.
8463as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8464as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8465as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8466as_cr_digits='0123456789'
8467as_cr_alnum=$as_cr_Letters$as_cr_digits
8468
8469# The user is always right.
8470if test "${PATH_SEPARATOR+set}" != set; then
8471 echo "#! /bin/sh" >conf$$.sh
8472 echo "exit 0" >>conf$$.sh
8473 chmod +x conf$$.sh
8474 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8475 PATH_SEPARATOR=';'
8476 else
8477 PATH_SEPARATOR=:
8478 fi
8479 rm -f conf$$.sh
8480fi
8481
8482
8483 as_lineno_1=$LINENO
8484 as_lineno_2=$LINENO
8485 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8486 test "x$as_lineno_1" != "x$as_lineno_2" &&
8487 test "x$as_lineno_3" = "x$as_lineno_2" || {
8488 # Find who we are. Look in the path if we contain no path at all
8489 # relative or not.
8490 case $0 in
8491 *[\\/]* ) as_myself=$0 ;;
8492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493for as_dir in $PATH
8494do
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
8497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8498done
8499
8500 ;;
8501 esac
8502 # We did not find ourselves, most probably we were run as `sh COMMAND'
8503 # in which case we are not to be found in the path.
8504 if test "x$as_myself" = x; then
8505 as_myself=$0
8506 fi
8507 if test ! -f "$as_myself"; then
8508 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8509echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8510 { (exit 1); exit 1; }; }
8511 fi
8512 case $CONFIG_SHELL in
8513 '')
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8516do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for as_base in sh bash ksh sh5; do
8520 case $as_dir in
8521 /*)
8522 if ("$as_dir/$as_base" -c '
8523 as_lineno_1=$LINENO
8524 as_lineno_2=$LINENO
8525 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8526 test "x$as_lineno_1" != "x$as_lineno_2" &&
8527 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8528 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8529 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8530 CONFIG_SHELL=$as_dir/$as_base
8531 export CONFIG_SHELL
8532 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8533 fi;;
8534 esac
8535 done
8536done
8537;;
8538 esac
8539
8540 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8541 # uniformly replaced by the line number. The first 'sed' inserts a
8542 # line-number line before each line; the second 'sed' does the real
8543 # work. The second script uses 'N' to pair each line-number line
8544 # with the numbered line, and appends trailing '-' during
8545 # substitution so that $LINENO is not a special case at line end.
8546 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8547 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8548 sed '=' <$as_myself |
8549 sed '
8550 N
8551 s,$,-,
8552 : loop
8553 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8554 t loop
8555 s,-$,,
8556 s,^['$as_cr_digits']*\n,,
8557 ' >$as_me.lineno &&
8558 chmod +x $as_me.lineno ||
8559 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8560echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8561 { (exit 1); exit 1; }; }
8562
8563 # Don't try to exec as it changes $[0], causing all sort of problems
8564 # (the dirname of $[0] is not the place where we might find the
8565 # original and so on. Autoconf is especially sensible to this).
8566 . ./$as_me.lineno
8567 # Exit status is that of the last command.
8568 exit
8569}
8570
8571
8572case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8573 *c*,-n*) ECHO_N= ECHO_C='
8574' ECHO_T=' ' ;;
8575 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8576 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8577esac
8578
8579if expr a : '\(a\)' >/dev/null 2>&1; then
8580 as_expr=expr
8581else
8582 as_expr=false
8583fi
8584
8585rm -f conf$$ conf$$.exe conf$$.file
8586echo >conf$$.file
8587if ln -s conf$$.file conf$$ 2>/dev/null; then
8588 # We could just check for DJGPP; but this test a) works b) is more generic
8589 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8590 if test -f conf$$.exe; then
8591 # Don't use ln at all; we don't have any links
8592 as_ln_s='cp -p'
8593 else
8594 as_ln_s='ln -s'
8595 fi
8596elif ln conf$$.file conf$$ 2>/dev/null; then
8597 as_ln_s=ln
8598else
8599 as_ln_s='cp -p'
8600fi
8601rm -f conf$$ conf$$.exe conf$$.file
8602
8603if mkdir -p . 2>/dev/null; then
8604 as_mkdir_p=:
8605else
8606 test -d ./-p && rmdir ./-p
8607 as_mkdir_p=false
8608fi
8609
8610as_executable_p="test -f"
8611
8612# Sed expression to map a string onto a valid CPP name.
8613as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8614
8615# Sed expression to map a string onto a valid variable name.
8616as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8617
8618
8619# IFS
8620# We need space, tab and new line, in precisely that order.
8621as_nl='
8622'
8623IFS=" $as_nl"
8624
8625# CDPATH.
8626$as_unset CDPATH
8627
8628exec 6>&1
8629
8630# Open the log real soon, to keep \$[0] and so on meaningful, and to
8631# report actual input values of CONFIG_FILES etc. instead of their
8632# values after options handling. Logging --version etc. is OK.
8633exec 5>>config.log
8634{
8635 echo
8636 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8637## Running $as_me. ##
8638_ASBOX
8639} >&5
8640cat >&5 <<_CSEOF
8641
8642This file was extended by cpplib $as_me , which was
8643generated by GNU Autoconf 2.59. Invocation command line was
8644
8645 CONFIG_FILES = $CONFIG_FILES
8646 CONFIG_HEADERS = $CONFIG_HEADERS
8647 CONFIG_LINKS = $CONFIG_LINKS
8648 CONFIG_COMMANDS = $CONFIG_COMMANDS
8649 $ $0 $@
8650
8651_CSEOF
8652echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8653echo >&5
8654_ACEOF
8655
8656# Files that config.status was made for.
8657if test -n "$ac_config_files"; then
8658 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8659fi
8660
8661if test -n "$ac_config_headers"; then
8662 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8663fi
8664
8665if test -n "$ac_config_links"; then
8666 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8667fi
8668
8669if test -n "$ac_config_commands"; then
8670 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8671fi
8672
8673cat >>$CONFIG_STATUS <<\_ACEOF
8674
8675ac_cs_usage="\
8676\`$as_me' instantiates files from templates according to the
8677current configuration.
8678
8679Usage: $0 [OPTIONS] [FILE]...
8680
8681 -h, --help print this help, then exit
8682 -V, --version print version number, then exit
8683 -q, --quiet do not print progress messages
8684 -d, --debug don't remove temporary files
8685 --recheck update $as_me by reconfiguring in the same conditions
8686 --file=FILE[:TEMPLATE]
8687 instantiate the configuration file FILE
8688 --header=FILE[:TEMPLATE]
8689 instantiate the configuration header FILE
8690
8691Configuration files:
8692$config_files
8693
8694Configuration headers:
8695$config_headers
8696
f610dd5f
ZW
8697Configuration commands:
8698$config_commands
8699
4f4e53dd
PB
8700Report bugs to <bug-autoconf@gnu.org>."
8701_ACEOF
8702
8703cat >>$CONFIG_STATUS <<_ACEOF
8704ac_cs_version="\\
8705cpplib config.status
8706configured by $0, generated by GNU Autoconf 2.59,
8707 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8708
8709Copyright (C) 2003 Free Software Foundation, Inc.
8710This config.status script is free software; the Free Software Foundation
8711gives unlimited permission to copy, distribute and modify it."
8712srcdir=$srcdir
8713INSTALL="$INSTALL"
8714_ACEOF
8715
8716cat >>$CONFIG_STATUS <<\_ACEOF
8717# If no file are specified by the user, then we need to provide default
8718# value. By we need to know if files were specified by the user.
8719ac_need_defaults=:
8720while test $# != 0
8721do
8722 case $1 in
8723 --*=*)
8724 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8725 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8726 ac_shift=:
8727 ;;
8728 -*)
8729 ac_option=$1
8730 ac_optarg=$2
8731 ac_shift=shift
8732 ;;
8733 *) # This is not an option, so the user has probably given explicit
8734 # arguments.
8735 ac_option=$1
8736 ac_need_defaults=false;;
8737 esac
8738
8739 case $ac_option in
8740 # Handling of the options.
8741_ACEOF
8742cat >>$CONFIG_STATUS <<\_ACEOF
8743 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8744 ac_cs_recheck=: ;;
8745 --version | --vers* | -V )
8746 echo "$ac_cs_version"; exit 0 ;;
8747 --he | --h)
8748 # Conflict between --help and --header
8749 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8750Try \`$0 --help' for more information." >&5
8751echo "$as_me: error: ambiguous option: $1
8752Try \`$0 --help' for more information." >&2;}
8753 { (exit 1); exit 1; }; };;
8754 --help | --hel | -h )
8755 echo "$ac_cs_usage"; exit 0 ;;
8756 --debug | --d* | -d )
8757 debug=: ;;
8758 --file | --fil | --fi | --f )
8759 $ac_shift
8760 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8761 ac_need_defaults=false;;
8762 --header | --heade | --head | --hea )
8763 $ac_shift
8764 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8765 ac_need_defaults=false;;
8766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8767 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8768 ac_cs_silent=: ;;
8769
8770 # This is an error.
8771 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8772Try \`$0 --help' for more information." >&5
8773echo "$as_me: error: unrecognized option: $1
8774Try \`$0 --help' for more information." >&2;}
8775 { (exit 1); exit 1; }; } ;;
8776
8777 *) ac_config_targets="$ac_config_targets $1" ;;
8778
8779 esac
8780 shift
8781done
8782
8783ac_configure_extra_args=
8784
8785if $ac_cs_silent; then
8786 exec 6>/dev/null
8787 ac_configure_extra_args="$ac_configure_extra_args --silent"
8788fi
8789
8790_ACEOF
8791cat >>$CONFIG_STATUS <<_ACEOF
8792if \$ac_cs_recheck; then
8793 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8794 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8795fi
8796
8797_ACEOF
8798
f610dd5f
ZW
8799cat >>$CONFIG_STATUS <<_ACEOF
8800#
8801# INIT-COMMANDS section.
8802#
8803
8804DEPDIR=$DEPDIR
4f4e53dd 8805
f610dd5f 8806_ACEOF
4f4e53dd
PB
8807
8808
8809
8810cat >>$CONFIG_STATUS <<\_ACEOF
8811for ac_config_target in $ac_config_targets
8812do
8813 case "$ac_config_target" in
8814 # Handling of arguments.
8815 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
f610dd5f 8816 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
4f4e53dd
PB
8817 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8818 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8819echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8820 { (exit 1); exit 1; }; };;
8821 esac
8822done
8823
8824# If the user did not use the arguments to specify the items to instantiate,
8825# then the envvar interface is used. Set only those that are not.
8826# We use the long form for the default assignment because of an extremely
8827# bizarre bug on SunOS 4.1.3.
8828if $ac_need_defaults; then
8829 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8830 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
f610dd5f 8831 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4f4e53dd
PB
8832fi
8833
8834# Have a temporary directory for convenience. Make it in the build tree
8835# simply because there is no reason to put it here, and in addition,
8836# creating and moving files from /tmp can sometimes cause problems.
8837# Create a temporary directory, and hook for its removal unless debugging.
8838$debug ||
8839{
8840 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8841 trap '{ (exit 1); exit 1; }' 1 2 13 15
8842}
8843
8844# Create a (secure) tmp directory for tmp files.
8845
8846{
8847 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8848 test -n "$tmp" && test -d "$tmp"
8849} ||
8850{
8851 tmp=./confstat$$-$RANDOM
8852 (umask 077 && mkdir $tmp)
8853} ||
8854{
8855 echo "$me: cannot create a temporary directory in ." >&2
8856 { (exit 1); exit 1; }
8857}
8858
8859_ACEOF
8860
8861cat >>$CONFIG_STATUS <<_ACEOF
8862
8863#
8864# CONFIG_FILES section.
8865#
8866
8867# No need to generate the scripts if there are no CONFIG_FILES.
8868# This happens for instance when ./config.status config.h
8869if test -n "\$CONFIG_FILES"; then
8870 # Protect against being on the right side of a sed subst in config.status.
8871 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8872 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8873s,@SHELL@,$SHELL,;t t
8874s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8875s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8876s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8877s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8878s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8879s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8880s,@exec_prefix@,$exec_prefix,;t t
8881s,@prefix@,$prefix,;t t
8882s,@program_transform_name@,$program_transform_name,;t t
8883s,@bindir@,$bindir,;t t
8884s,@sbindir@,$sbindir,;t t
8885s,@libexecdir@,$libexecdir,;t t
8886s,@datadir@,$datadir,;t t
8887s,@sysconfdir@,$sysconfdir,;t t
8888s,@sharedstatedir@,$sharedstatedir,;t t
8889s,@localstatedir@,$localstatedir,;t t
8890s,@libdir@,$libdir,;t t
8891s,@includedir@,$includedir,;t t
8892s,@oldincludedir@,$oldincludedir,;t t
8893s,@infodir@,$infodir,;t t
8894s,@mandir@,$mandir,;t t
8895s,@build_alias@,$build_alias,;t t
8896s,@host_alias@,$host_alias,;t t
8897s,@target_alias@,$target_alias,;t t
8898s,@DEFS@,$DEFS,;t t
8899s,@ECHO_C@,$ECHO_C,;t t
8900s,@ECHO_N@,$ECHO_N,;t t
8901s,@ECHO_T@,$ECHO_T,;t t
8902s,@LIBS@,$LIBS,;t t
8903s,@build@,$build,;t t
8904s,@build_cpu@,$build_cpu,;t t
8905s,@build_vendor@,$build_vendor,;t t
8906s,@build_os@,$build_os,;t t
8907s,@host@,$host,;t t
8908s,@host_cpu@,$host_cpu,;t t
8909s,@host_vendor@,$host_vendor,;t t
8910s,@host_os@,$host_os,;t t
8911s,@target@,$target,;t t
8912s,@target_cpu@,$target_cpu,;t t
8913s,@target_vendor@,$target_vendor,;t t
8914s,@target_os@,$target_os,;t t
078e3ffe 8915s,@SET_MAKE@,$SET_MAKE,;t t
4f4e53dd
PB
8916s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8917s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8918s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4f4e53dd
PB
8919s,@CC@,$CC,;t t
8920s,@CFLAGS@,$CFLAGS,;t t
8921s,@LDFLAGS@,$LDFLAGS,;t t
8922s,@CPPFLAGS@,$CPPFLAGS,;t t
8923s,@ac_ct_CC@,$ac_ct_CC,;t t
8924s,@EXEEXT@,$EXEEXT,;t t
8925s,@OBJEXT@,$OBJEXT,;t t
4f4e53dd
PB
8926s,@RANLIB@,$RANLIB,;t t
8927s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
078e3ffe
PB
8928s,@ACLOCAL@,$ACLOCAL,;t t
8929s,@AUTOCONF@,$AUTOCONF,;t t
8930s,@AUTOHEADER@,$AUTOHEADER,;t t
018a4785
ZW
8931s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8932s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
8933s,@WERROR@,$WERROR,;t t
f610dd5f
ZW
8934s,@am__leading_dot@,$am__leading_dot,;t t
8935s,@DEPDIR@,$DEPDIR,;t t
8936s,@CCDEPMODE@,$CCDEPMODE,;t t
4f4e53dd
PB
8937s,@CPP@,$CPP,;t t
8938s,@EGREP@,$EGREP,;t t
8939s,@LIBOBJS@,$LIBOBJS,;t t
8940s,@ALLOCA@,$ALLOCA,;t t
8941s,@USE_NLS@,$USE_NLS,;t t
8942s,@LIBINTL@,$LIBINTL,;t t
8943s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
8944s,@INCINTL@,$INCINTL,;t t
8945s,@XGETTEXT@,$XGETTEXT,;t t
8946s,@GMSGFMT@,$GMSGFMT,;t t
8947s,@POSUB@,$POSUB,;t t
8948s,@CATALOGS@,$CATALOGS,;t t
5c3c3683
DJ
8949s,@DATADIRNAME@,$DATADIRNAME,;t t
8950s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8951s,@GENCAT@,$GENCAT,;t t
8952s,@CATOBJEXT@,$CATOBJEXT,;t t
4f4e53dd
PB
8953s,@LIBICONV@,$LIBICONV,;t t
8954s,@LTLIBICONV@,$LTLIBICONV,;t t
078e3ffe
PB
8955s,@PACKAGE@,$PACKAGE,;t t
8956s,@USED_CATALOGS@,$USED_CATALOGS,;t t
8957s,@MAINT@,$MAINT,;t t
4f4e53dd
PB
8958s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8959CEOF
8960
8961_ACEOF
8962
8963 cat >>$CONFIG_STATUS <<\_ACEOF
8964 # Split the substitutions into bite-sized pieces for seds with
8965 # small command number limits, like on Digital OSF/1 and HP-UX.
8966 ac_max_sed_lines=48
8967 ac_sed_frag=1 # Number of current file.
8968 ac_beg=1 # First line for current file.
8969 ac_end=$ac_max_sed_lines # Line after last line for current file.
8970 ac_more_lines=:
8971 ac_sed_cmds=
8972 while $ac_more_lines; do
8973 if test $ac_beg -gt 1; then
8974 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8975 else
8976 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8977 fi
8978 if test ! -s $tmp/subs.frag; then
8979 ac_more_lines=false
8980 else
8981 # The purpose of the label and of the branching condition is to
8982 # speed up the sed processing (if there are no `@' at all, there
8983 # is no need to browse any of the substitutions).
8984 # These are the two extra sed commands mentioned above.
8985 (echo ':t
8986 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8987 if test -z "$ac_sed_cmds"; then
8988 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8989 else
8990 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8991 fi
8992 ac_sed_frag=`expr $ac_sed_frag + 1`
8993 ac_beg=$ac_end
8994 ac_end=`expr $ac_end + $ac_max_sed_lines`
8995 fi
8996 done
8997 if test -z "$ac_sed_cmds"; then
8998 ac_sed_cmds=cat
8999 fi
9000fi # test -n "$CONFIG_FILES"
9001
9002_ACEOF
9003cat >>$CONFIG_STATUS <<\_ACEOF
9004for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9005 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9006 case $ac_file in
9007 - | *:- | *:-:* ) # input from stdin
9008 cat >$tmp/stdin
9009 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9010 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9011 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9012 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9013 * ) ac_file_in=$ac_file.in ;;
9014 esac
9015
9016 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9017 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9018$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9019 X"$ac_file" : 'X\(//\)[^/]' \| \
9020 X"$ac_file" : 'X\(//\)$' \| \
9021 X"$ac_file" : 'X\(/\)' \| \
9022 . : '\(.\)' 2>/dev/null ||
9023echo X"$ac_file" |
9024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9025 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9026 /^X\(\/\/\)$/{ s//\1/; q; }
9027 /^X\(\/\).*/{ s//\1/; q; }
9028 s/.*/./; q'`
9029 { if $as_mkdir_p; then
9030 mkdir -p "$ac_dir"
9031 else
9032 as_dir="$ac_dir"
9033 as_dirs=
9034 while test ! -d "$as_dir"; do
9035 as_dirs="$as_dir $as_dirs"
9036 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9037$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9038 X"$as_dir" : 'X\(//\)[^/]' \| \
9039 X"$as_dir" : 'X\(//\)$' \| \
9040 X"$as_dir" : 'X\(/\)' \| \
9041 . : '\(.\)' 2>/dev/null ||
9042echo X"$as_dir" |
9043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9044 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9045 /^X\(\/\/\)$/{ s//\1/; q; }
9046 /^X\(\/\).*/{ s//\1/; q; }
9047 s/.*/./; q'`
9048 done
9049 test ! -n "$as_dirs" || mkdir $as_dirs
9050 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9051echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9052 { (exit 1); exit 1; }; }; }
9053
9054 ac_builddir=.
9055
9056if test "$ac_dir" != .; then
9057 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9058 # A "../" for each directory in $ac_dir_suffix.
9059 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9060else
9061 ac_dir_suffix= ac_top_builddir=
9062fi
9063
9064case $srcdir in
9065 .) # No --srcdir option. We are building in place.
9066 ac_srcdir=.
9067 if test -z "$ac_top_builddir"; then
9068 ac_top_srcdir=.
9069 else
9070 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9071 fi ;;
9072 [\\/]* | ?:[\\/]* ) # Absolute path.
9073 ac_srcdir=$srcdir$ac_dir_suffix;
9074 ac_top_srcdir=$srcdir ;;
9075 *) # Relative path.
9076 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9077 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9078esac
9079
9080# Do not use `cd foo && pwd` to compute absolute paths, because
9081# the directories may not exist.
9082case `pwd` in
9083.) ac_abs_builddir="$ac_dir";;
9084*)
9085 case "$ac_dir" in
9086 .) ac_abs_builddir=`pwd`;;
9087 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9088 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9089 esac;;
9090esac
9091case $ac_abs_builddir in
9092.) ac_abs_top_builddir=${ac_top_builddir}.;;
9093*)
9094 case ${ac_top_builddir}. in
9095 .) ac_abs_top_builddir=$ac_abs_builddir;;
9096 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9097 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9098 esac;;
9099esac
9100case $ac_abs_builddir in
9101.) ac_abs_srcdir=$ac_srcdir;;
9102*)
9103 case $ac_srcdir in
9104 .) ac_abs_srcdir=$ac_abs_builddir;;
9105 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9106 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9107 esac;;
9108esac
9109case $ac_abs_builddir in
9110.) ac_abs_top_srcdir=$ac_top_srcdir;;
9111*)
9112 case $ac_top_srcdir in
9113 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9114 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9115 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9116 esac;;
9117esac
9118
9119
9120 case $INSTALL in
9121 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9122 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9123 esac
9124
39b8ce7f
AS
9125 if test x"$ac_file" != x-; then
9126 { echo "$as_me:$LINENO: creating $ac_file" >&5
9127echo "$as_me: creating $ac_file" >&6;}
9128 rm -f "$ac_file"
9129 fi
4f4e53dd
PB
9130 # Let's still pretend it is `configure' which instantiates (i.e., don't
9131 # use $as_me), people would be surprised to read:
9132 # /* config.h. Generated by config.status. */
9133 if test x"$ac_file" = x-; then
9134 configure_input=
9135 else
9136 configure_input="$ac_file. "
9137 fi
9138 configure_input=$configure_input"Generated from `echo $ac_file_in |
9139 sed 's,.*/,,'` by configure."
9140
9141 # First look for the input files in the build tree, otherwise in the
9142 # src tree.
9143 ac_file_inputs=`IFS=:
9144 for f in $ac_file_in; do
9145 case $f in
9146 -) echo $tmp/stdin ;;
9147 [\\/$]*)
9148 # Absolute (can't be DOS-style, as IFS=:)
9149 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9150echo "$as_me: error: cannot find input file: $f" >&2;}
9151 { (exit 1); exit 1; }; }
9152 echo "$f";;
9153 *) # Relative
9154 if test -f "$f"; then
9155 # Build tree
9156 echo "$f"
9157 elif test -f "$srcdir/$f"; then
9158 # Source tree
9159 echo "$srcdir/$f"
9160 else
9161 # /dev/null tree
9162 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9163echo "$as_me: error: cannot find input file: $f" >&2;}
9164 { (exit 1); exit 1; }; }
9165 fi;;
9166 esac
9167 done` || { (exit 1); exit 1; }
4f4e53dd
PB
9168_ACEOF
9169cat >>$CONFIG_STATUS <<_ACEOF
9170 sed "$ac_vpsub
9171$extrasub
9172_ACEOF
9173cat >>$CONFIG_STATUS <<\_ACEOF
9174:t
9175/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9176s,@configure_input@,$configure_input,;t t
9177s,@srcdir@,$ac_srcdir,;t t
9178s,@abs_srcdir@,$ac_abs_srcdir,;t t
9179s,@top_srcdir@,$ac_top_srcdir,;t t
9180s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9181s,@builddir@,$ac_builddir,;t t
9182s,@abs_builddir@,$ac_abs_builddir,;t t
9183s,@top_builddir@,$ac_top_builddir,;t t
9184s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9185s,@INSTALL@,$ac_INSTALL,;t t
9186" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9187 rm -f $tmp/stdin
9188 if test x"$ac_file" != x-; then
9189 mv $tmp/out $ac_file
9190 else
9191 cat $tmp/out
9192 rm -f $tmp/out
9193 fi
9194
9195done
9196_ACEOF
9197cat >>$CONFIG_STATUS <<\_ACEOF
9198
9199#
9200# CONFIG_HEADER section.
9201#
9202
9203# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9204# NAME is the cpp macro being defined and VALUE is the value it is being given.
9205#
9206# ac_d sets the value in "#define NAME VALUE" lines.
9207ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9208ac_dB='[ ].*$,\1#\2'
9209ac_dC=' '
9210ac_dD=',;t'
9211# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9212ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9213ac_uB='$,\1#\2define\3'
9214ac_uC=' '
9215ac_uD=',;t'
9216
9217for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9218 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9219 case $ac_file in
9220 - | *:- | *:-:* ) # input from stdin
9221 cat >$tmp/stdin
9222 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9223 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9224 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9225 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9226 * ) ac_file_in=$ac_file.in ;;
9227 esac
9228
9229 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9230echo "$as_me: creating $ac_file" >&6;}
9231
9232 # First look for the input files in the build tree, otherwise in the
9233 # src tree.
9234 ac_file_inputs=`IFS=:
9235 for f in $ac_file_in; do
9236 case $f in
9237 -) echo $tmp/stdin ;;
9238 [\\/$]*)
9239 # Absolute (can't be DOS-style, as IFS=:)
9240 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9241echo "$as_me: error: cannot find input file: $f" >&2;}
9242 { (exit 1); exit 1; }; }
9243 # Do quote $f, to prevent DOS paths from being IFS'd.
9244 echo "$f";;
9245 *) # Relative
9246 if test -f "$f"; then
9247 # Build tree
9248 echo "$f"
9249 elif test -f "$srcdir/$f"; then
9250 # Source tree
9251 echo "$srcdir/$f"
9252 else
9253 # /dev/null tree
9254 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9255echo "$as_me: error: cannot find input file: $f" >&2;}
9256 { (exit 1); exit 1; }; }
9257 fi;;
9258 esac
9259 done` || { (exit 1); exit 1; }
9260 # Remove the trailing spaces.
9261 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9262
9263_ACEOF
9264
9265# Transform confdefs.h into two sed scripts, `conftest.defines' and
9266# `conftest.undefs', that substitutes the proper values into
9267# config.h.in to produce config.h. The first handles `#define'
9268# templates, and the second `#undef' templates.
9269# And first: Protect against being on the right side of a sed subst in
9270# config.status. Protect against being in an unquoted here document
9271# in config.status.
9272rm -f conftest.defines conftest.undefs
9273# Using a here document instead of a string reduces the quoting nightmare.
9274# Putting comments in sed scripts is not portable.
9275#
9276# `end' is used to avoid that the second main sed command (meant for
9277# 0-ary CPP macros) applies to n-ary macro definitions.
9278# See the Autoconf documentation for `clear'.
9279cat >confdef2sed.sed <<\_ACEOF
9280s/[\\&,]/\\&/g
9281s,[\\$`],\\&,g
9282t clear
9283: clear
9284s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9285t end
9286s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9287: end
9288_ACEOF
9289# If some macros were called several times there might be several times
9290# the same #defines, which is useless. Nevertheless, we may not want to
9291# sort them, since we want the *last* AC-DEFINE to be honored.
9292uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9293sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9294rm -f confdef2sed.sed
9295
9296# This sed command replaces #undef with comments. This is necessary, for
9297# example, in the case of _POSIX_SOURCE, which is predefined and required
9298# on some systems where configure will not decide to define it.
9299cat >>conftest.undefs <<\_ACEOF
9300s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9301_ACEOF
9302
9303# Break up conftest.defines because some shells have a limit on the size
9304# of here documents, and old seds have small limits too (100 cmds).
9305echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9306echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9307echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9308echo ' :' >>$CONFIG_STATUS
9309rm -f conftest.tail
9310while grep . conftest.defines >/dev/null
9311do
9312 # Write a limited-size here document to $tmp/defines.sed.
9313 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9314 # Speed up: don't consider the non `#define' lines.
9315 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9316 # Work around the forget-to-reset-the-flag bug.
9317 echo 't clr' >>$CONFIG_STATUS
9318 echo ': clr' >>$CONFIG_STATUS
9319 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9320 echo 'CEOF
9321 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9322 rm -f $tmp/in
9323 mv $tmp/out $tmp/in
9324' >>$CONFIG_STATUS
9325 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9326 rm -f conftest.defines
9327 mv conftest.tail conftest.defines
9328done
9329rm -f conftest.defines
9330echo ' fi # grep' >>$CONFIG_STATUS
9331echo >>$CONFIG_STATUS
9332
9333# Break up conftest.undefs because some shells have a limit on the size
9334# of here documents, and old seds have small limits too (100 cmds).
9335echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9336rm -f conftest.tail
9337while grep . conftest.undefs >/dev/null
9338do
9339 # Write a limited-size here document to $tmp/undefs.sed.
9340 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9341 # Speed up: don't consider the non `#undef'
9342 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9343 # Work around the forget-to-reset-the-flag bug.
9344 echo 't clr' >>$CONFIG_STATUS
9345 echo ': clr' >>$CONFIG_STATUS
9346 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9347 echo 'CEOF
9348 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9349 rm -f $tmp/in
9350 mv $tmp/out $tmp/in
9351' >>$CONFIG_STATUS
9352 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9353 rm -f conftest.undefs
9354 mv conftest.tail conftest.undefs
9355done
9356rm -f conftest.undefs
9357
9358cat >>$CONFIG_STATUS <<\_ACEOF
9359 # Let's still pretend it is `configure' which instantiates (i.e., don't
9360 # use $as_me), people would be surprised to read:
9361 # /* config.h. Generated by config.status. */
9362 if test x"$ac_file" = x-; then
9363 echo "/* Generated by configure. */" >$tmp/config.h
9364 else
9365 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9366 fi
9367 cat $tmp/in >>$tmp/config.h
9368 rm -f $tmp/in
9369 if test x"$ac_file" != x-; then
9370 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9371 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9372echo "$as_me: $ac_file is unchanged" >&6;}
9373 else
9374 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9375$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9376 X"$ac_file" : 'X\(//\)[^/]' \| \
9377 X"$ac_file" : 'X\(//\)$' \| \
9378 X"$ac_file" : 'X\(/\)' \| \
9379 . : '\(.\)' 2>/dev/null ||
9380echo X"$ac_file" |
9381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9383 /^X\(\/\/\)$/{ s//\1/; q; }
9384 /^X\(\/\).*/{ s//\1/; q; }
9385 s/.*/./; q'`
9386 { if $as_mkdir_p; then
9387 mkdir -p "$ac_dir"
9388 else
9389 as_dir="$ac_dir"
9390 as_dirs=
9391 while test ! -d "$as_dir"; do
9392 as_dirs="$as_dir $as_dirs"
9393 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9394$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9395 X"$as_dir" : 'X\(//\)[^/]' \| \
9396 X"$as_dir" : 'X\(//\)$' \| \
9397 X"$as_dir" : 'X\(/\)' \| \
9398 . : '\(.\)' 2>/dev/null ||
9399echo X"$as_dir" |
9400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9402 /^X\(\/\/\)$/{ s//\1/; q; }
9403 /^X\(\/\).*/{ s//\1/; q; }
9404 s/.*/./; q'`
9405 done
9406 test ! -n "$as_dirs" || mkdir $as_dirs
9407 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9408echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9409 { (exit 1); exit 1; }; }; }
9410
9411 rm -f $ac_file
9412 mv $tmp/config.h $ac_file
9413 fi
9414 else
9415 cat $tmp/config.h
9416 rm -f $tmp/config.h
9417 fi
078e3ffe
PB
9418 # Run the commands associated with the file.
9419 case $ac_file in
9420 config.h ) echo timestamp > stamp-h1 ;;
4f4e53dd
PB
9421 esac
9422done
9423_ACEOF
f610dd5f
ZW
9424cat >>$CONFIG_STATUS <<\_ACEOF
9425
9426#
9427# CONFIG_COMMANDS section.
9428#
9429for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9430 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9431 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9432 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9433$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9434 X"$ac_dest" : 'X\(//\)[^/]' \| \
9435 X"$ac_dest" : 'X\(//\)$' \| \
9436 X"$ac_dest" : 'X\(/\)' \| \
9437 . : '\(.\)' 2>/dev/null ||
9438echo X"$ac_dest" |
9439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9441 /^X\(\/\/\)$/{ s//\1/; q; }
9442 /^X\(\/\).*/{ s//\1/; q; }
9443 s/.*/./; q'`
9444 { if $as_mkdir_p; then
9445 mkdir -p "$ac_dir"
9446 else
9447 as_dir="$ac_dir"
9448 as_dirs=
9449 while test ! -d "$as_dir"; do
9450 as_dirs="$as_dir $as_dirs"
9451 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9452$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9453 X"$as_dir" : 'X\(//\)[^/]' \| \
9454 X"$as_dir" : 'X\(//\)$' \| \
9455 X"$as_dir" : 'X\(/\)' \| \
9456 . : '\(.\)' 2>/dev/null ||
9457echo X"$as_dir" |
9458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9460 /^X\(\/\/\)$/{ s//\1/; q; }
9461 /^X\(\/\).*/{ s//\1/; q; }
9462 s/.*/./; q'`
9463 done
9464 test ! -n "$as_dirs" || mkdir $as_dirs
9465 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9466echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9467 { (exit 1); exit 1; }; }; }
9468
9469 ac_builddir=.
9470
9471if test "$ac_dir" != .; then
9472 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9473 # A "../" for each directory in $ac_dir_suffix.
9474 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9475else
9476 ac_dir_suffix= ac_top_builddir=
9477fi
9478
9479case $srcdir in
9480 .) # No --srcdir option. We are building in place.
9481 ac_srcdir=.
9482 if test -z "$ac_top_builddir"; then
9483 ac_top_srcdir=.
9484 else
9485 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9486 fi ;;
9487 [\\/]* | ?:[\\/]* ) # Absolute path.
9488 ac_srcdir=$srcdir$ac_dir_suffix;
9489 ac_top_srcdir=$srcdir ;;
9490 *) # Relative path.
9491 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9492 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9493esac
9494
9495# Do not use `cd foo && pwd` to compute absolute paths, because
9496# the directories may not exist.
9497case `pwd` in
9498.) ac_abs_builddir="$ac_dir";;
9499*)
9500 case "$ac_dir" in
9501 .) ac_abs_builddir=`pwd`;;
9502 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9503 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9504 esac;;
9505esac
9506case $ac_abs_builddir in
9507.) ac_abs_top_builddir=${ac_top_builddir}.;;
9508*)
9509 case ${ac_top_builddir}. in
9510 .) ac_abs_top_builddir=$ac_abs_builddir;;
9511 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9512 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9513 esac;;
9514esac
9515case $ac_abs_builddir in
9516.) ac_abs_srcdir=$ac_srcdir;;
9517*)
9518 case $ac_srcdir in
9519 .) ac_abs_srcdir=$ac_abs_builddir;;
9520 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9521 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9522 esac;;
9523esac
9524case $ac_abs_builddir in
9525.) ac_abs_top_srcdir=$ac_top_srcdir;;
9526*)
9527 case $ac_top_srcdir in
9528 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9529 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9530 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9531 esac;;
9532esac
9533
9534
9535 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9536echo "$as_me: executing $ac_dest commands" >&6;}
9537 case $ac_dest in
9538 depdir ) mkdir $DEPDIR ;;
9539 esac
9540done
9541_ACEOF
4f4e53dd
PB
9542
9543cat >>$CONFIG_STATUS <<\_ACEOF
9544
9545{ (exit 0); exit 0; }
9546_ACEOF
9547chmod +x $CONFIG_STATUS
9548ac_clean_files=$ac_clean_files_save
9549
9550
9551# configure is writing to config.log, and then calls config.status.
9552# config.status does its own redirection, appending to config.log.
9553# Unfortunately, on DOS this fails, as config.log is still kept open
9554# by configure, so config.status won't be able to write to it; its
9555# output is simply discarded. So we exec the FD to /dev/null,
9556# effectively closing config.log, so it can be properly (re)opened and
9557# appended to by config.status. When coming back to configure, we
9558# need to make the FD available again.
9559if test "$no_create" != yes; then
9560 ac_cs_success=:
9561 ac_config_status_args=
9562 test "$silent" = yes &&
9563 ac_config_status_args="$ac_config_status_args --quiet"
9564 exec 5>/dev/null
9565 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9566 exec 5>>config.log
9567 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9568 # would make configure fail if this is the last instruction.
9569 $ac_cs_success || { (exit 1); exit 1; }
9570fi
9571