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