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