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