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