2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="lib/snmp.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-dependency-tracking Speeds up one-time builds
853 --enable-dependency-tracking Do not reject slow dependency extractors
854 --disable-nls do not use Native Language Support
855 --disable-rpath do not hardcode runtime library paths
856 --disable-regdomain disable regulation domain channel restrictions
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --with-gnu-ld assume the C compiler uses GNU ld default=no
862 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
863 --without-libiconv-prefix don't search for libiconv in includedir and libdir
864 --with-included-gettext use the GNU gettext library included here
865 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
866 --without-libintl-prefix don't search for libintl in includedir and libdir
868 Some influential environment variables:
869 CC C compiler command
870 CFLAGS C compiler flags
871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
872 nonstandard directory <lib dir>
873 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
874 headers in a nonstandard directory <include dir>
877 Use these variables to override the choices made by `configure' or to help
878 it to find libraries and programs with nonstandard names/locations.
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895 ac_dir_suffix= ac_top_builddir=
899 .) # No --srcdir option. We are building in place.
901 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
917 .) ac_abs_builddir="$ac_dir";;
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
976 Copyright (C) 2003 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
987 It was created by $as_me, which was
988 generated by GNU Autoconf 2.59. Invocation command line was
999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022 test -z "$as_dir" && as_dir=.
1023 echo "PATH: $as_dir"
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1047 ac_must_keep_next=false
1053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1057 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064 if test $ac_must_keep_next = true; then
1065 ac_must_keep_next=false # Got value, back to normal.
1068 *=* | --config-cache | -C | -disable-* | --disable-* \
1069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071 | -with-* | --with-* | -without-* | --without-* | --x)
1072 case "$ac_configure_args0 " in
1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 -* ) ac_must_keep_next=true ;;
1079 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080 # Get rid of the leading space.
1086 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log. We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close' the trap.
1094 trap 'exit_status=$?
1095 # Save into config.log some information that might help in debugging.
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1105 # The following way of writing the cache mishandles newlines in values,
1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1128 for ac_var in $ac_subst_vars
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1135 if test -n "$ac_subst_files"; then
1142 for ac_var in $ac_subst_files
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -s confdefs.h; then
1157 sed "/^$/d" confdefs.h | sort
1160 test "$ac_signal" != 0 &&
1161 echo "$as_me: caught signal $ac_signal"
1162 echo "$as_me: exit $exit_status"
1164 rm -f core *.core &&
1165 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 for ac_signal in 1 2 13 15; do
1169 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 # Predefined preprocessor variables.
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208 if test "x$prefix" != xNONE; then
1209 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1211 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 for ac_site_file in $CONFIG_SITE; do
1215 if test -r "$ac_site_file"; then
1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218 sed 's/^/| /' "$ac_site_file" >&5
1223 if test -r "$cache_file"; then
1224 # Some versions of bash will fail to source /dev/null (special
1225 # files actually), so we avoid doing that.
1226 if test -f "$cache_file"; then
1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1230 [\\/]* | ?:[\\/]* ) . $cache_file;;
1231 *) . ./$cache_file;;
1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1240 # Check that the precious variables saved in the cache have kept the same
1242 ac_cache_corrupted=false
1243 for ac_var in `(set) 2>&1 |
1244 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246 eval ac_new_set=\$ac_env_${ac_var}_set
1247 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248 eval ac_new_val="\$ac_env_${ac_var}_value"
1249 case $ac_old_set,$ac_new_set in
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1260 if test "x$ac_old_val" != "x$ac_new_val"; then
1261 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1262 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1263 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1264 echo "$as_me: former value: $ac_old_val" >&2;}
1265 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1266 echo "$as_me: current value: $ac_new_val" >&2;}
1267 ac_cache_corrupted=:
1270 # Pass precious variables to config.status.
1271 if test "$ac_new_set" = set; then
1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 *) ac_arg=$ac_var=$ac_new_val ;;
1277 case " $ac_configure_args " in
1278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1279 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283 if $ac_cache_corrupted; then
1284 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288 { (exit 1); exit 1; }; }
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316 for ac_dir in config $srcdir/config; do
1317 if test -f $ac_dir/install-sh; then
1319 ac_install_sh="$ac_aux_dir/install-sh -c"
1321 elif test -f $ac_dir/install.sh; then
1323 ac_install_sh="$ac_aux_dir/install.sh -c"
1325 elif test -f $ac_dir/shtool; then
1327 ac_install_sh="$ac_aux_dir/shtool install -c"
1331 if test -z "$ac_aux_dir"; then
1332 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1333 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1334 { (exit 1); exit 1; }; }
1336 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1337 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1338 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1340 am__api_version="1.7"
1341 # Find a good install program. We prefer a C program (faster),
1342 # so one script is as good as another. But avoid the broken or
1343 # incompatible versions:
1344 # SysV /etc/install, /usr/sbin/install
1345 # SunOS /usr/etc/install
1346 # IRIX /sbin/install
1348 # AmigaOS /C/install, which installs bootblocks on floppy discs
1349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1352 # OS/2's system install, which has a completely different semantic
1353 # ./install, which can be erroneously created by make from ./install.sh.
1354 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1355 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1356 if test -z "$INSTALL"; then
1357 if test "${ac_cv_path_install+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 test -z "$as_dir" && as_dir=.
1365 # Account for people who put trailing slashes in PATH elements.
1367 ./ | .// | /cC/* | \
1368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1369 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1372 # OSF1 and SCO ODT 3.0 have their own names for install.
1373 # Don't use installbsd from OSF since it installs stuff as root
1375 for ac_prog in ginstall scoinst install; do
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1378 if test $ac_prog = install &&
1379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1380 # AIX install. It has an incompatible calling convention.
1382 elif test $ac_prog = install &&
1383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1384 # program-specific install script used by HP pwplus--don't use.
1387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1399 if test "${ac_cv_path_install+set}" = set; then
1400 INSTALL=$ac_cv_path_install
1402 # As a last resort, use the slow shell script. We don't cache a
1403 # path for INSTALL within a source directory, because that will
1404 # break other packages using the cache if that directory is
1405 # removed, or if the path is relative.
1406 INSTALL=$ac_install_sh
1409 echo "$as_me:$LINENO: result: $INSTALL" >&5
1410 echo "${ECHO_T}$INSTALL" >&6
1412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1413 # It thinks the first close brace ends the variable substitution.
1414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1420 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1421 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1424 echo timestamp > conftest.file
1425 # Do `set' in a subshell so we don't clobber the current shell's
1426 # arguments. Must try -L first in case configure is actually a
1427 # symlink; some systems play weird games with the mod time of symlinks
1428 # (eg FreeBSD returns the mod time of the symlink's containing
1431 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1432 if test "$*" = "X"; then
1434 set X `ls -t $srcdir/configure conftest.file`
1437 if test "$*" != "X $srcdir/configure conftest.file" \
1438 && test "$*" != "X conftest.file $srcdir/configure"; then
1440 # If neither matched, then we have a broken ls. This can happen
1441 # if, for instance, CONFIG_SHELL is bash and it inherits a
1442 # broken ls alias from the environment. This has actually
1443 # happened. Such a system could not be considered "sane".
1444 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1445 alias in your environment" >&5
1446 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1447 alias in your environment" >&2;}
1448 { (exit 1); exit 1; }; }
1451 test "$2" = conftest.file
1457 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1458 Check your system clock" >&5
1459 echo "$as_me: error: newly created file is older than distributed files!
1460 Check your system clock" >&2;}
1461 { (exit 1); exit 1; }; }
1463 echo "$as_me:$LINENO: result: yes" >&5
1464 echo "${ECHO_T}yes" >&6
1465 test "$program_prefix" != NONE &&
1466 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1467 # Use a double $ so make ignores it.
1468 test "$program_suffix" != NONE &&
1469 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1470 # Double any \ or $. echo might interpret backslashes.
1471 # By default was `s,x,x', remove it if useless.
1472 cat <<\_ACEOF >conftest.sed
1473 s/[\\$]/&&/g;s/;s,x,x,$//
1475 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1479 # expand $ac_aux_dir to an absolute path
1480 am_aux_dir=`cd $ac_aux_dir && pwd`
1482 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1483 # Use eval to expand $SHELL
1484 if eval "$MISSING --run true"; then
1485 am_missing_run="$MISSING --run "
1488 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1489 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1492 for ac_prog in gawk mawk nawk awk
1494 # Extract the first word of "$ac_prog", so it can be a program name with args.
1495 set dummy $ac_prog; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_AWK+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1501 if test -n "$AWK"; then
1502 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_AWK="$ac_prog"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 if test -n "$AWK"; then
1522 echo "$as_me:$LINENO: result: $AWK" >&5
1523 echo "${ECHO_T}$AWK" >&6
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1529 test -n "$AWK" && break
1532 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1533 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1534 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1535 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 cat >conftest.make <<\_ACEOF
1540 @echo 'ac_maketemp="$(MAKE)"'
1542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1543 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1544 if test -n "$ac_maketemp"; then
1545 eval ac_cv_prog_make_${ac_make}_set=yes
1547 eval ac_cv_prog_make_${ac_make}_set=no
1551 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1552 echo "$as_me:$LINENO: result: yes" >&5
1553 echo "${ECHO_T}yes" >&6
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 SET_MAKE="MAKE=${MAKE-make}"
1561 rm -rf .tst 2>/dev/null
1562 mkdir .tst 2>/dev/null
1563 if test -d .tst; then
1568 rmdir .tst 2>/dev/null
1570 # test to see if srcdir already configured
1571 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1572 test -f $srcdir/config.status; then
1573 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1574 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1575 { (exit 1); exit 1; }; }
1578 # test whether we have cygpath
1579 if test -z "$CYGPATH_W"; then
1580 if (cygpath --version) >/dev/null 2>/dev/null; then
1581 CYGPATH_W='cygpath -w'
1588 # Define the identity of the package.
1590 VERSION=1.5pre1_FreedomOfUkraine
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE "$PACKAGE"
1598 cat >>confdefs.h <<_ACEOF
1599 #define VERSION "$VERSION"
1602 # Some tools Automake needs.
1604 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1607 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1610 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1613 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1616 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1619 AMTAR=${AMTAR-"${am_missing_run}tar"}
1621 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1623 # Installed binaries are usually stripped using `strip' when the user
1624 # run `make install-strip'. However `strip' might not be the right
1625 # tool to use in cross-compilation environments, therefore Automake
1626 # will honor the `STRIP' environment variable to overrule this program.
1627 if test "$cross_compiling" != no; then
1628 if test -n "$ac_tool_prefix"; then
1629 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1630 set dummy ${ac_tool_prefix}strip; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_STRIP+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 if test -n "$STRIP"; then
1637 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 STRIP=$ac_cv_prog_STRIP
1656 if test -n "$STRIP"; then
1657 echo "$as_me:$LINENO: result: $STRIP" >&5
1658 echo "${ECHO_T}$STRIP" >&6
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1665 if test -z "$ac_cv_prog_STRIP"; then
1667 # Extract the first word of "strip", so it can be a program name with args.
1668 set dummy strip; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 if test -n "$ac_ct_STRIP"; then
1675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_ac_ct_STRIP="strip"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1695 if test -n "$ac_ct_STRIP"; then
1696 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1697 echo "${ECHO_T}$ac_ct_STRIP" >&6
1699 echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1705 STRIP="$ac_cv_prog_STRIP"
1709 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1711 # We need awk for the "check" target. The system "awk" is bad on
1716 ac_config_headers="$ac_config_headers config.h"
1720 ac_config_guess=config/config.guess
1721 ac_config_sub=config/config.sub
1723 # Checks for programs.
1725 ac_cpp='$CPP $CPPFLAGS'
1726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1729 if test -n "$ac_tool_prefix"; then
1730 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1731 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$CC"; then
1738 ac_cv_prog_CC="$CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 if test -n "$CC"; then
1758 echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1766 if test -z "$ac_cv_prog_CC"; then
1768 # Extract the first word of "gcc", so it can be a program name with args.
1769 set dummy gcc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 if test -n "$ac_ct_CC"; then
1776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_ac_ct_CC="gcc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795 if test -n "$ac_ct_CC"; then
1796 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797 echo "${ECHO_T}$ac_ct_CC" >&6
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1808 if test -z "$CC"; then
1809 if test -n "$ac_tool_prefix"; then
1810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1811 set dummy ${ac_tool_prefix}cc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC="$CC" # Let the user override the test.
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_CC="${ac_tool_prefix}cc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 if test -n "$CC"; then
1838 echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1846 if test -z "$ac_cv_prog_CC"; then
1848 # Extract the first word of "cc", so it can be a program name with args.
1849 set dummy cc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 if test -n "$ac_ct_CC"; then
1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_ac_ct_CC="cc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875 if test -n "$ac_ct_CC"; then
1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877 echo "${ECHO_T}$ac_ct_CC" >&6
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1889 if test -z "$CC"; then
1890 # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 if test -n "$CC"; then
1898 ac_cv_prog_CC="$CC" # Let the user override the test.
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1909 ac_prog_rejected=yes
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 if test $ac_prog_rejected = yes; then
1920 # We found a bogon in the path, so make sure we never use it.
1921 set dummy $ac_cv_prog_CC
1923 if test $# != 0; then
1924 # We chose a different compiler from the bogus one.
1925 # However, it has the same basename, so the bogon will be chosen
1926 # first if we set CC to just the basename; use the full file name.
1928 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1934 if test -n "$CC"; then
1935 echo "$as_me:$LINENO: result: $CC" >&5
1936 echo "${ECHO_T}$CC" >&6
1938 echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1943 if test -z "$CC"; then
1944 if test -n "$ac_tool_prefix"; then
1947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 if test -n "$CC"; then
1955 ac_cv_prog_CC="$CC" # Let the user override the test.
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1982 test -n "$CC" && break
1985 if test -z "$CC"; then
1989 # Extract the first word of "$ac_prog", so it can be a program name with args.
1990 set dummy $ac_prog; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 if test -n "$ac_ct_CC"; then
1997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_ac_ct_CC="$ac_prog"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2016 if test -n "$ac_ct_CC"; then
2017 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2018 echo "${ECHO_T}$ac_ct_CC" >&6
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2024 test -n "$ac_ct_CC" && break
2033 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: no acceptable C compiler found in \$PATH
2036 See \`config.log' for more details." >&2;}
2037 { (exit 1); exit 1; }; }
2039 # Provide some information about the compiler.
2040 echo "$as_me:$LINENO:" \
2041 "checking for C compiler version" >&5
2042 ac_compiler=`set X $ac_compile; echo $2`
2043 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2044 (eval $ac_compiler --version </dev/null >&5) 2>&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }
2048 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2049 (eval $ac_compiler -v </dev/null >&5) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2054 (eval $ac_compiler -V </dev/null >&5) 2>&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }
2059 cat >conftest.$ac_ext <<_ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h. */
2074 ac_clean_files_save=$ac_clean_files
2075 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2076 # Try to create an executable without -o first, disregard a.out.
2077 # It will help us diagnose broken compilers, and finding out an intuition
2079 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2080 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2081 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2083 (eval $ac_link_default) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2087 # Find the output, starting from the most likely. This scheme is
2088 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2091 # Be careful to initialize this variable, since it used to be cached.
2092 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2094 # b.out is created by i960 compilers.
2095 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2097 test -f "$ac_file" || continue
2099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2102 # This is the source file.
2105 # We found the default executable, but exeext='' is most
2109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110 # FIXME: I believe we export ac_cv_exeext for Libtool,
2111 # but it would be cool to find out if it's true. Does anybody
2112 # maintain Libtool? --akim.
2120 echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2123 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: C compiler cannot create executables
2126 See \`config.log' for more details." >&2;}
2127 { (exit 77); exit 77; }; }
2130 ac_exeext=$ac_cv_exeext
2131 echo "$as_me:$LINENO: result: $ac_file" >&5
2132 echo "${ECHO_T}$ac_file" >&6
2134 # Check the compiler produces executables we can run. If not, either
2135 # the compiler is broken, or we cross compile.
2136 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2137 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2138 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2139 # If not cross compiling, check that we can run a simple program.
2140 if test "$cross_compiling" != yes; then
2141 if { ac_try='./$ac_file'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2149 if test "$cross_compiling" = maybe; then
2152 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2153 If you meant to cross compile, use \`--host'.
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: cannot run C compiled programs.
2156 If you meant to cross compile, use \`--host'.
2157 See \`config.log' for more details." >&2;}
2158 { (exit 1); exit 1; }; }
2162 echo "$as_me:$LINENO: result: yes" >&5
2163 echo "${ECHO_T}yes" >&6
2165 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2166 ac_clean_files=$ac_clean_files_save
2167 # Check the compiler produces executables we can run. If not, either
2168 # the compiler is broken, or we cross compile.
2169 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2170 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2171 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2172 echo "${ECHO_T}$cross_compiling" >&6
2174 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2175 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177 (eval $ac_link) 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2182 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2183 # work properly (i.e., refer to `conftest.exe'), while it won't with
2185 for ac_file in conftest.exe conftest conftest.*; do
2186 test -f "$ac_file" || continue
2188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2189 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }
2203 rm -f conftest$ac_cv_exeext
2204 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2205 echo "${ECHO_T}$ac_cv_exeext" >&6
2207 rm -f conftest.$ac_ext
2208 EXEEXT=$ac_cv_exeext
2210 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2211 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2212 if test "${ac_cv_objext+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 cat >conftest.$ac_ext <<_ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h. */
2230 rm -f conftest.o conftest.obj
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; then
2236 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2239 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2247 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2254 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2256 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2257 echo "${ECHO_T}$ac_cv_objext" >&6
2258 OBJEXT=$ac_cv_objext
2260 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2261 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2262 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 cat >conftest.$ac_ext <<_ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>conftest.er1
2287 grep -v '^ *+' conftest.er1 >conftest.err
2289 cat conftest.err >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; } &&
2298 { ac_try='test -s conftest.$ac_objext'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2315 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2316 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2317 GCC=`test $ac_compiler_gnu = yes && echo yes`
2318 ac_test_CFLAGS=${CFLAGS+set}
2319 ac_save_CFLAGS=$CFLAGS
2321 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2322 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2323 if test "${ac_cv_prog_cc_g+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 cat >conftest.$ac_ext <<_ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2345 grep -v '^ *+' conftest.er1 >conftest.err
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" || test ! -s conftest.err'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2372 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2373 if test "$ac_test_CFLAGS" = set; then
2374 CFLAGS=$ac_save_CFLAGS
2375 elif test $ac_cv_prog_cc_g = yes; then
2376 if test "$GCC" = yes; then
2382 if test "$GCC" = yes; then
2388 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2389 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 ac_cv_prog_cc_stdc=no
2395 cat >conftest.$ac_ext <<_ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2403 #include <sys/types.h>
2404 #include <sys/stat.h>
2405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2406 struct buf { int x; };
2407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2408 static char *e (p, i)
2414 static char *f (char * (*g) (char **, int), char **p, ...)
2419 s = g (p, va_arg (v,int));
2424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2425 function prototypes and stuff, but not '\xHH' hex character constants.
2426 These don't provoke an error unfortunately, instead are silently treated
2427 as 'x'. The following induces an error, until -std1 is added to get
2428 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2429 array size at least. It's necessary to write '\x00'==0 to get something
2430 that's true only with -std1. */
2431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2433 int test (int i, double x);
2434 struct s1 {int (*f) (int a);};
2435 struct s2 {int (*f) (double a);};
2436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2447 # Don't try gcc -ansi; that turns off useful extensions and
2448 # breaks some systems' header files.
2449 # AIX -qlanglvl=ansi
2450 # Ultrix and OSF/1 -std1
2451 # HP-UX 10.20 and later -Ae
2452 # HP-UX older versions -Aa -D_HPUX_SOURCE
2453 # SVR4 -Xc -D__EXTENSIONS__
2454 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2456 CC="$ac_save_CC $ac_arg"
2457 rm -f conftest.$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459 (eval $ac_compile) 2>conftest.er1
2461 grep -v '^ *+' conftest.er1 >conftest.err
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; } &&
2472 { ac_try='test -s conftest.$ac_objext'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; }; then
2478 ac_cv_prog_cc_stdc=$ac_arg
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2485 rm -f conftest.err conftest.$ac_objext
2487 rm -f conftest.$ac_ext conftest.$ac_objext
2492 case "x$ac_cv_prog_cc_stdc" in
2494 echo "$as_me:$LINENO: result: none needed" >&5
2495 echo "${ECHO_T}none needed" >&6 ;;
2497 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2498 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2499 CC="$CC $ac_cv_prog_cc_stdc" ;;
2502 # Some people use a C++ compiler to compile C. Since we use `exit',
2503 # in C++ we need to declare it. In case someone uses the same compiler
2504 # for both compiling C and C++ we need to have the C++ compiler decide
2505 # the declaration of exit, since it's the most demanding environment.
2506 cat >conftest.$ac_ext <<_ACEOF
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>conftest.er1
2515 grep -v '^ *+' conftest.er1 >conftest.err
2517 cat conftest.err >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; }; then
2532 for ac_declaration in \
2534 'extern "C" void std::exit (int) throw (); using std::exit;' \
2535 'extern "C" void std::exit (int); using std::exit;' \
2536 'extern "C" void exit (int) throw ();' \
2537 'extern "C" void exit (int);' \
2540 cat >conftest.$ac_ext <<_ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2560 grep -v '^ *+' conftest.er1 >conftest.err
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585 cat >conftest.$ac_ext <<_ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>conftest.er1
2604 grep -v '^ *+' conftest.er1 >conftest.err
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630 if test -n "$ac_declaration"; then
2631 echo '#ifdef __cplusplus' >>confdefs.h
2632 echo $ac_declaration >>confdefs.h
2633 echo '#endif' >>confdefs.h
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2643 ac_cpp='$CPP $CPPFLAGS'
2644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2647 DEPDIR="${am__leading_dot}deps"
2649 ac_config_commands="$ac_config_commands depfiles"
2652 am_make=${MAKE-make}
2653 cat > confinc << 'END'
2658 # If we don't find an include directive, just comment out the code.
2659 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2660 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2664 # First try GNU make style include.
2665 echo "include confinc" > confmf
2666 # We grep out `Entering directory' and `Leaving directory'
2667 # messages which can occur if `w' ends up in MAKEFLAGS.
2668 # In particular we don't look at `^make:' because GNU make might
2669 # be invoked under some other name (usually "gmake"), in which
2670 # case it prints its new name instead of `make'.
2671 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2676 # Now try BSD make style include.
2677 if test "$am__include" = "#"; then
2678 echo '.include "confinc"' > confmf
2679 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2680 am__include=.include
2687 echo "$as_me:$LINENO: result: $_am_result" >&5
2688 echo "${ECHO_T}$_am_result" >&6
2689 rm -f confinc confmf
2691 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2692 if test "${enable_dependency_tracking+set}" = set; then
2693 enableval="$enable_dependency_tracking"
2696 if test "x$enable_dependency_tracking" != xno; then
2697 am_depcomp="$ac_aux_dir/depcomp"
2702 if test "x$enable_dependency_tracking" != xno; then
2713 depcc="$CC" am_compiler_list=
2715 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2716 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2717 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2721 # We make a subdir and do the tests there. Otherwise we can end up
2722 # making bogus files that we don't know about and never remove. For
2723 # instance it was reported that on HP-UX the gcc test will end up
2724 # making a dummy file named `D' -- because `-MD' means `put the output
2727 # Copy depcomp to subdir because otherwise we won't find it if we're
2728 # using a relative directory.
2729 cp "$am_depcomp" conftest.dir
2731 # We will build objects and dependencies in a subdirectory because
2732 # it helps to detect inapplicable dependency modes. For instance
2733 # both Tru64's cc and ICC support -MD to output dependencies as a
2734 # side effect of compilation, but ICC will put the dependencies in
2735 # the current directory while Tru64 will put them in the object
2739 am_cv_CC_dependencies_compiler_type=none
2740 if test "$am_compiler_list" = ""; then
2741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2743 for depmode in $am_compiler_list; do
2744 # Setup a source with many dependencies, because some compilers
2745 # like to wrap large dependency lists on column 80 (with \), and
2746 # we should not choose a depcomp mode which is confused by this.
2748 # We need to recreate these files for each test, as the compiler may
2749 # overwrite some of them when testing with obscure command lines.
2750 # This happens at least with the AIX C compiler.
2752 for i in 1 2 3 4 5 6; do
2753 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2756 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2760 # after this tag, mechanisms are not by side-effect, so they'll
2761 # only be used when explicitly requested
2762 if test "x$enable_dependency_tracking" = xyes; then
2770 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2771 # mode. It turns out that the SunPro C++ compiler does not properly
2772 # handle `-M -o', and we need to detect this.
2773 if depmode=$depmode \
2774 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2775 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2776 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2777 >/dev/null 2>conftest.err &&
2778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2779 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2781 # icc doesn't choke on unknown options, it will just issue warnings
2782 # (even with -Werror). So we grep stderr for any message
2783 # that says an option was ignored.
2784 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2785 am_cv_CC_dependencies_compiler_type=$depmode
2794 am_cv_CC_dependencies_compiler_type=none
2798 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2799 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2800 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2805 test "x$enable_dependency_tracking" != xno \
2806 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2808 am__fastdepCC_FALSE='#'
2810 am__fastdepCC_TRUE='#'
2811 am__fastdepCC_FALSE=
2815 if test -n "$ac_tool_prefix"; then
2816 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2817 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2818 echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820 if test "${ac_cv_prog_RANLIB+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 if test -n "$RANLIB"; then
2824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 RANLIB=$ac_cv_prog_RANLIB
2843 if test -n "$RANLIB"; then
2844 echo "$as_me:$LINENO: result: $RANLIB" >&5
2845 echo "${ECHO_T}$RANLIB" >&6
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2852 if test -z "$ac_cv_prog_RANLIB"; then
2853 ac_ct_RANLIB=$RANLIB
2854 # Extract the first word of "ranlib", so it can be a program name with args.
2855 set dummy ranlib; ac_word=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 if test -n "$ac_ct_RANLIB"; then
2862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_ac_ct_RANLIB="ranlib"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2882 if test -n "$ac_ct_RANLIB"; then
2883 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2884 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2886 echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2890 RANLIB=$ac_ct_RANLIB
2892 RANLIB="$ac_cv_prog_RANLIB"
2896 # Checks for header files.
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2904 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2905 # On Suns, sometimes $CPP names a directory.
2906 if test -n "$CPP" && test -d "$CPP"; then
2909 if test -z "$CPP"; then
2910 if test "${ac_cv_prog_CPP+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 # Double quotes because CPP needs to be expanded
2914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2917 for ac_c_preproc_warn_flag in '' yes
2919 # Use a header file that comes with gcc, so configuring glibc
2920 # with a fresh cross-compiler works.
2921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922 # <limits.h> exists even on freestanding compilers.
2923 # On the NeXT, cc -E runs the code through the compiler's parser,
2924 # not just through cpp. "Syntax error" is here to catch this case.
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2932 # include <limits.h>
2934 # include <assert.h>
2938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2941 grep -v '^ *+' conftest.er1 >conftest.err
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } >/dev/null; then
2946 if test -s conftest.err; then
2947 ac_cpp_err=$ac_c_preproc_warn_flag
2948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2955 if test -z "$ac_cpp_err"; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 # Broken: fails on valid input.
2964 rm -f conftest.err conftest.$ac_ext
2966 # OK, works on sane cases. Now check whether non-existent headers
2967 # can be detected and how.
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 #include <ac_nonexistent.h>
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev/null; then
2984 if test -s conftest.err; then
2985 ac_cpp_err=$ac_c_preproc_warn_flag
2986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2993 if test -z "$ac_cpp_err"; then
2994 # Broken: success on invalid input.
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 # Passes both tests.
3004 rm -f conftest.err conftest.$ac_ext
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3021 echo "$as_me:$LINENO: result: $CPP" >&5
3022 echo "${ECHO_T}$CPP" >&6
3024 for ac_c_preproc_warn_flag in '' yes
3026 # Use a header file that comes with gcc, so configuring glibc
3027 # with a fresh cross-compiler works.
3028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029 # <limits.h> exists even on freestanding compilers.
3030 # On the NeXT, cc -E runs the code through the compiler's parser,
3031 # not just through cpp. "Syntax error" is here to catch this case.
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3039 # include <limits.h>
3041 # include <assert.h>
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev/null; then
3053 if test -s conftest.err; then
3054 ac_cpp_err=$ac_c_preproc_warn_flag
3055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062 if test -z "$ac_cpp_err"; then
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 # Broken: fails on valid input.
3071 rm -f conftest.err conftest.$ac_ext
3073 # OK, works on sane cases. Now check whether non-existent headers
3074 # can be detected and how.
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3081 #include <ac_nonexistent.h>
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null; then
3091 if test -s conftest.err; then
3092 ac_cpp_err=$ac_c_preproc_warn_flag
3093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3100 if test -z "$ac_cpp_err"; then
3101 # Broken: success on invalid input.
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 # Passes both tests.
3111 rm -f conftest.err conftest.$ac_ext
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.$ac_ext
3116 if $ac_preproc_ok; then
3119 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3122 See \`config.log' for more details." >&2;}
3123 { (exit 1); exit 1; }; }
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 echo "$as_me:$LINENO: checking for egrep" >&5
3134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3135 if test "${ac_cv_prog_egrep+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3139 then ac_cv_prog_egrep='grep -E'
3140 else ac_cv_prog_egrep='egrep'
3143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3145 EGREP=$ac_cv_prog_egrep
3148 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3149 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3150 if test "${ac_cv_header_stdc+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 ac_cv_header_stdc=yes
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 ac_cv_header_stdc=no
3200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3202 if test $ac_cv_header_stdc = yes; then
3203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3204 cat >conftest.$ac_ext <<_ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3214 $EGREP "memchr" >/dev/null 2>&1; then
3217 ac_cv_header_stdc=no
3223 if test $ac_cv_header_stdc = yes; then
3224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3225 cat >conftest.$ac_ext <<_ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3235 $EGREP "free" >/dev/null 2>&1; then
3238 ac_cv_header_stdc=no
3244 if test $ac_cv_header_stdc = yes; then
3245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3246 if test "$cross_compiling" = yes; then
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3256 #if ((' ' & 0x0FF) == 0x020)
3257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3260 # define ISLOWER(c) \
3261 (('a' <= (c) && (c) <= 'i') \
3262 || ('j' <= (c) && (c) <= 'r') \
3263 || ('s' <= (c) && (c) <= 'z'))
3264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3272 for (i = 0; i < 256; i++)
3273 if (XOR (islower (i), ISLOWER (i))
3274 || toupper (i) != TOUPPER (i))
3279 rm -f conftest$ac_exeext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3281 (eval $ac_link) 2>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; }; then
3292 echo "$as_me: program exited with status $ac_status" >&5
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3297 ac_cv_header_stdc=no
3299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3303 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3304 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3305 if test $ac_cv_header_stdc = yes; then
3307 cat >>confdefs.h <<\_ACEOF
3308 #define STDC_HEADERS 1
3313 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3314 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3315 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 cat >conftest.$ac_ext <<_ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3324 #include <sys/types.h>
3325 #include <sys/wait.h>
3327 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3330 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3338 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3343 rm -f conftest.$ac_objext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3345 (eval $ac_compile) 2>conftest.er1
3347 grep -v '^ *+' conftest.er1 >conftest.err
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 ac_cv_header_sys_wait_h=yes
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3369 ac_cv_header_sys_wait_h=no
3371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3373 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3374 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3375 if test $ac_cv_header_sys_wait_h = yes; then
3377 cat >>confdefs.h <<\_ACEOF
3378 #define HAVE_SYS_WAIT_H 1
3383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3393 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3394 inttypes.h stdint.h unistd.h
3396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3397 echo "$as_me:$LINENO: checking for $ac_header" >&5
3398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 $ac_includes_default
3410 #include <$ac_header>
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>conftest.er1
3416 grep -v '^ *+' conftest.er1 >conftest.err
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; } &&
3427 { ac_try='test -s conftest.$ac_objext'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3433 eval "$as_ac_Header=yes"
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 eval "$as_ac_Header=no"
3440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3445 cat >>confdefs.h <<_ACEOF
3446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3464 for ac_header in arpa/inet.h fcntl.h malloc.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h syslog.h unistd.h
3466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3468 echo "$as_me:$LINENO: checking for $ac_header" >&5
3469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3476 # Is the header compilable?
3477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3479 cat >conftest.$ac_ext <<_ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 $ac_includes_default
3486 #include <$ac_header>
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>conftest.er1
3492 grep -v '^ *+' conftest.er1 >conftest.err
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; } &&
3503 { ac_try='test -s conftest.$ac_objext'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3509 ac_header_compiler=yes
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 ac_header_compiler=no
3516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3518 echo "${ECHO_T}$ac_header_compiler" >&6
3520 # Is the header present?
3521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3523 cat >conftest.$ac_ext <<_ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 #include <$ac_header>
3531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null; then
3539 if test -s conftest.err; then
3540 ac_cpp_err=$ac_c_preproc_warn_flag
3541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3548 if test -z "$ac_cpp_err"; then
3549 ac_header_preproc=yes
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 ac_header_preproc=no
3556 rm -f conftest.err conftest.$ac_ext
3557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3558 echo "${ECHO_T}$ac_header_preproc" >&6
3560 # So? What about this header?
3561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3567 ac_header_preproc=yes
3570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3584 ## ------------------------------------------ ##
3585 ## Report this to the AC_PACKAGE_NAME lists. ##
3586 ## ------------------------------------------ ##
3589 sed "s/^/$as_me: WARNING: /" >&2
3592 echo "$as_me:$LINENO: checking for $ac_header" >&5
3593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 eval "$as_ac_Header=\$ac_header_preproc"
3599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3604 cat >>confdefs.h <<_ACEOF
3605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3613 # Checks for typedefs, structures, and compiler characteristics.
3614 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3615 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3616 if test "${ac_cv_c_const+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 cat >conftest.$ac_ext <<_ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3629 /* FIXME: Include the comments suggested by Paul. */
3631 /* Ultrix mips cc rejects this. */
3632 typedef int charset[2];
3634 /* SunOS 4.1.1 cc rejects this. */
3635 char const *const *ccp;
3637 /* NEC SVR4.0.2 mips cc rejects this. */
3638 struct point {int x, y;};
3639 static struct point const zero = {0,0};
3640 /* AIX XL C 1.02.0.0 rejects this.
3641 It does not let you subtract one const X* pointer from another in
3642 an arm of an if-expression whose if-part is not a constant
3644 const char *g = "string";
3645 ccp = &g + (g ? g-g : 0);
3646 /* HPUX 7.0 cc rejects these. */
3649 ccp = (char const *const *) p;
3650 { /* SCO 3.2v4 cc rejects this. */
3652 char const *s = 0 ? (char *) 0 : (char const *) 0;
3656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3658 const int *foo = &x[0];
3661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3662 typedef const int *iptr;
3666 { /* AIX XL C 1.02.0.0 rejects this saying
3667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3668 struct s { int j; const int *ap[3]; };
3669 struct s *b; b->j = 5;
3671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3680 rm -f conftest.$ac_objext
3681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3682 (eval $ac_compile) 2>conftest.er1
3684 grep -v '^ *+' conftest.er1 >conftest.err
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } &&
3689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3710 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3711 echo "${ECHO_T}$ac_cv_c_const" >&6
3712 if test $ac_cv_c_const = no; then
3714 cat >>confdefs.h <<\_ACEOF
3720 echo "$as_me:$LINENO: checking for pid_t" >&5
3721 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3722 if test "${ac_cv_type_pid_t+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 cat >conftest.$ac_ext <<_ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3731 $ac_includes_default
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>conftest.er1
3747 grep -v '^ *+' conftest.er1 >conftest.err
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; } &&
3758 { ac_try='test -s conftest.$ac_objext'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3764 ac_cv_type_pid_t=yes
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3773 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3774 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3775 if test $ac_cv_type_pid_t = yes; then
3779 cat >>confdefs.h <<_ACEOF
3785 echo "$as_me:$LINENO: checking for size_t" >&5
3786 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3787 if test "${ac_cv_type_size_t+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3796 $ac_includes_default
3802 if (sizeof (size_t))
3808 rm -f conftest.$ac_objext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>conftest.er1
3812 grep -v '^ *+' conftest.er1 >conftest.err
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; } &&
3823 { ac_try='test -s conftest.$ac_objext'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; }; then
3829 ac_cv_type_size_t=yes
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3834 ac_cv_type_size_t=no
3836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3838 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3839 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3840 if test $ac_cv_type_size_t = yes; then
3844 cat >>confdefs.h <<_ACEOF
3845 #define size_t unsigned
3850 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
3851 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
3852 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3862 #include <sys/types.h>
3863 #include <sys/socket.h>
3869 static struct sockaddr ac_aggr;
3876 rm -f conftest.$ac_objext
3877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878 (eval $ac_compile) 2>conftest.er1
3880 grep -v '^ *+' conftest.er1 >conftest.err
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } &&
3885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; } &&
3891 { ac_try='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_cv_member_struct_sockaddr_sa_len=yes
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3909 #include <sys/types.h>
3910 #include <sys/socket.h>
3916 static struct sockaddr ac_aggr;
3917 if (sizeof ac_aggr.sa_len)
3923 rm -f conftest.$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>conftest.er1
3927 grep -v '^ *+' conftest.er1 >conftest.err
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try='test -s conftest.$ac_objext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 ac_cv_member_struct_sockaddr_sa_len=yes
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 ac_cv_member_struct_sockaddr_sa_len=no
3951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3955 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
3956 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
3957 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
3959 cat >>confdefs.h <<\_ACEOF
3960 #define HAVE_SA_LEN 1
3966 # Checks for library functions.
3967 echo "$as_me:$LINENO: checking for working memcmp" >&5
3968 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3969 if test "${ac_cv_func_memcmp_working+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 if test "$cross_compiling" = yes; then
3973 ac_cv_func_memcmp_working=no
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 $ac_includes_default
3986 /* Some versions of memcmp are not 8-bit clean. */
3987 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3988 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3991 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3992 or more and with at least one buffer not starting on a 4-byte boundary.
3993 William Lewis provided this test program. */
3998 for (i = 0; i < 4; i++)
4002 strcpy (a, "--------01111111");
4003 strcpy (b, "--------10000000");
4004 if (memcmp (a, b, 16) >= 0)
4014 rm -f conftest$ac_exeext
4015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4016 (eval $ac_link) 2>&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_cv_func_memcmp_working=yes
4027 echo "$as_me: program exited with status $ac_status" >&5
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4032 ac_cv_func_memcmp_working=no
4034 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4037 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4038 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4039 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
4040 "memcmp.$ac_objext" | \
4041 *" memcmp.$ac_objext" | \
4042 "memcmp.$ac_objext "* | \
4043 *" memcmp.$ac_objext "* ) ;;
4044 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
4048 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4049 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4050 if test "${ac_cv_type_signal+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 cat >conftest.$ac_ext <<_ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 #include <sys/types.h>
4065 extern "C" void (*signal (int, void (*)(int)))(int);
4067 void (*signal ()) ();
4078 rm -f conftest.$ac_objext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080 (eval $ac_compile) 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest.$ac_objext'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 ac_cv_type_signal=void
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 ac_cv_type_signal=int
4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4108 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4109 echo "${ECHO_T}$ac_cv_type_signal" >&6
4111 cat >>confdefs.h <<_ACEOF
4112 #define RETSIGTYPE $ac_cv_type_signal
4124 for ac_func in alarm inet_ntoa socket strtol sysinfo fork malloc free
4126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4127 echo "$as_me:$LINENO: checking for $ac_func" >&5
4128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4129 if eval "test \"\${$as_ac_var+set}\" = set"; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4140 #define $ac_func innocuous_$ac_func
4142 /* System header to define __stub macros and hopefully few prototypes,
4143 which can conflict with char $ac_func (); below.
4144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4145 <limits.h> exists even on freestanding compilers. */
4148 # include <limits.h>
4150 # include <assert.h>
4155 /* Override any gcc2 internal prototype to avoid an error. */
4160 /* We use char because int might match the return type of a gcc2
4161 builtin and then its argument prototype would still apply. */
4163 /* The GNU C library defines this for functions which it implements
4164 to always fail with ENOSYS. Some functions are actually named
4165 something starting with __ and the normal name is an alias. */
4166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4169 char (*f) () = $ac_func;
4178 return f != $ac_func;
4183 rm -f conftest.$ac_objext conftest$ac_exeext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4185 (eval $ac_link) 2>conftest.er1
4187 grep -v '^ *+' conftest.er1 >conftest.err
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } &&
4192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; } &&
4198 { ac_try='test -s conftest$ac_exeext'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4204 eval "$as_ac_var=yes"
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 eval "$as_ac_var=no"
4211 rm -f conftest.err conftest.$ac_objext \
4212 conftest$ac_exeext conftest.$ac_ext
4214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4216 if test `eval echo '${'$as_ac_var'}'` = yes; then
4217 cat >>confdefs.h <<_ACEOF
4218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4225 ALL_LINGUAS="uk fr pl ro nl tr"
4229 if test -n "$ac_aux_dir"; then
4230 case "$ac_aux_dir" in
4231 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4232 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4235 if test -z "$MKINSTALLDIRS"; then
4236 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4241 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4242 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4243 # Check whether --enable-nls or --disable-nls was given.
4244 if test "${enable_nls+set}" = set; then
4245 enableval="$enable_nls"
4250 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4251 echo "${ECHO_T}$USE_NLS" >&6
4258 # Prepare PATH_SEPARATOR.
4259 # The user is always right.
4260 if test "${PATH_SEPARATOR+set}" != set; then
4261 echo "#! /bin/sh" >conf$$.sh
4262 echo "exit 0" >>conf$$.sh
4264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4272 # Find out how to test for executable files. Don't use a zero-byte file,
4273 # as systems may use methods other than mode bits to determine executability.
4274 cat >conf$$.file <<_ASEOF
4278 chmod +x conf$$.file
4279 if test -x conf$$.file >/dev/null 2>&1; then
4280 ac_executable_p="test -x"
4282 ac_executable_p="test -f"
4286 # Extract the first word of "msgfmt", so it can be a program name with args.
4287 set dummy msgfmt; ac_word=$2
4288 echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290 if test "${ac_cv_path_MSGFMT+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4298 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4299 for ac_dir in $PATH; do
4301 test -z "$ac_dir" && ac_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4304 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4305 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4306 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4313 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4317 MSGFMT="$ac_cv_path_MSGFMT"
4318 if test "$MSGFMT" != ":"; then
4319 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4320 echo "${ECHO_T}$MSGFMT" >&6
4322 echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4326 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4327 set dummy gmsgfmt; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4356 GMSGFMT=$ac_cv_path_GMSGFMT
4358 if test -n "$GMSGFMT"; then
4359 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4360 echo "${ECHO_T}$GMSGFMT" >&6
4362 echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4368 # Prepare PATH_SEPARATOR.
4369 # The user is always right.
4370 if test "${PATH_SEPARATOR+set}" != set; then
4371 echo "#! /bin/sh" >conf$$.sh
4372 echo "exit 0" >>conf$$.sh
4374 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4382 # Find out how to test for executable files. Don't use a zero-byte file,
4383 # as systems may use methods other than mode bits to determine executability.
4384 cat >conf$$.file <<_ASEOF
4388 chmod +x conf$$.file
4389 if test -x conf$$.file >/dev/null 2>&1; then
4390 ac_executable_p="test -x"
4392 ac_executable_p="test -f"
4396 # Extract the first word of "xgettext", so it can be a program name with args.
4397 set dummy xgettext; ac_word=$2
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4408 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4409 for ac_dir in $PATH; do
4411 test -z "$ac_dir" && ac_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4414 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4415 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4416 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4423 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4427 XGETTEXT="$ac_cv_path_XGETTEXT"
4428 if test "$XGETTEXT" != ":"; then
4429 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4430 echo "${ECHO_T}$XGETTEXT" >&6
4432 echo "$as_me:$LINENO: result: no" >&5
4433 echo "${ECHO_T}no" >&6
4439 # Prepare PATH_SEPARATOR.
4440 # The user is always right.
4441 if test "${PATH_SEPARATOR+set}" != set; then
4442 echo "#! /bin/sh" >conf$$.sh
4443 echo "exit 0" >>conf$$.sh
4445 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4453 # Find out how to test for executable files. Don't use a zero-byte file,
4454 # as systems may use methods other than mode bits to determine executability.
4455 cat >conf$$.file <<_ASEOF
4459 chmod +x conf$$.file
4460 if test -x conf$$.file >/dev/null 2>&1; then
4461 ac_executable_p="test -x"
4463 ac_executable_p="test -f"
4467 # Extract the first word of "msgmerge", so it can be a program name with args.
4468 set dummy msgmerge; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4479 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4480 for ac_dir in $PATH; do
4482 test -z "$ac_dir" && ac_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4485 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4486 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4493 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4497 MSGMERGE="$ac_cv_path_MSGMERGE"
4498 if test "$MSGMERGE" != ":"; then
4499 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4500 echo "${ECHO_T}$MSGMERGE" >&6
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4507 if test "$GMSGFMT" != ":"; then
4508 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4509 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4512 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4513 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4514 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4519 if test "$XGETTEXT" != ":"; then
4520 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4521 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4524 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4525 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4531 ac_config_commands="$ac_config_commands default-1"
4534 # Make sure we can run config.sub.
4535 $ac_config_sub sun4 >/dev/null 2>&1 ||
4536 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4537 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4538 { (exit 1); exit 1; }; }
4540 echo "$as_me:$LINENO: checking build system type" >&5
4541 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4542 if test "${ac_cv_build+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 ac_cv_build_alias=$build_alias
4546 test -z "$ac_cv_build_alias" &&
4547 ac_cv_build_alias=`$ac_config_guess`
4548 test -z "$ac_cv_build_alias" &&
4549 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4550 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4551 { (exit 1); exit 1; }; }
4552 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4553 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4554 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4555 { (exit 1); exit 1; }; }
4558 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4559 echo "${ECHO_T}$ac_cv_build" >&6
4561 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4562 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4563 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4566 echo "$as_me:$LINENO: checking host system type" >&5
4567 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4568 if test "${ac_cv_host+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 ac_cv_host_alias=$host_alias
4572 test -z "$ac_cv_host_alias" &&
4573 ac_cv_host_alias=$ac_cv_build_alias
4574 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4575 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4576 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4577 { (exit 1); exit 1; }; }
4580 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4581 echo "${ECHO_T}$ac_cv_host" >&6
4583 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4584 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4585 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4589 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4590 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4591 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 ac_check_lib_save_LIBS=$LIBS
4595 LIBS="-lcposix $LIBS"
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4603 /* Override any gcc2 internal prototype to avoid an error. */
4607 /* We use char because int might match the return type of a gcc2
4608 builtin and then its argument prototype would still apply. */
4618 rm -f conftest.$ac_objext conftest$ac_exeext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4620 (eval $ac_link) 2>conftest.er1
4622 grep -v '^ *+' conftest.er1 >conftest.err
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_cv_lib_cposix_strerror=yes
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4644 ac_cv_lib_cposix_strerror=no
4646 rm -f conftest.err conftest.$ac_objext \
4647 conftest$ac_exeext conftest.$ac_ext
4648 LIBS=$ac_check_lib_save_LIBS
4650 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4651 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4652 if test $ac_cv_lib_cposix_strerror = yes; then
4653 LIBS="$LIBS -lcposix"
4659 echo "$as_me:$LINENO: checking for signed" >&5
4660 echo $ECHO_N "checking for signed... $ECHO_C" >&6
4661 if test "${bh_cv_c_signed+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 cat >conftest.$ac_ext <<_ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681 (eval $ac_compile) 2>conftest.er1
4683 grep -v '^ *+' conftest.er1 >conftest.err
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; } &&
4694 { ac_try='test -s conftest.$ac_objext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4709 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4710 echo "${ECHO_T}$bh_cv_c_signed" >&6
4711 if test $bh_cv_c_signed = no; then
4713 cat >>confdefs.h <<\_ACEOF
4719 echo "$as_me:$LINENO: checking for inline" >&5
4720 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4721 if test "${ac_cv_c_inline+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 for ac_kw in inline __inline__ __inline; do
4726 cat >conftest.$ac_ext <<_ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4734 static $ac_kw foo_t static_foo () {return 0; }
4735 $ac_kw foo_t foo () {return 0; }
4739 rm -f conftest.$ac_objext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741 (eval $ac_compile) 2>conftest.er1
4743 grep -v '^ *+' conftest.er1 >conftest.err
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_cv_c_inline=$ac_kw; break
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4771 echo "${ECHO_T}$ac_cv_c_inline" >&6
4774 case $ac_cv_c_inline in
4777 case $ac_cv_c_inline in
4779 *) ac_val=$ac_cv_c_inline;;
4781 cat >>confdefs.h <<_ACEOF
4783 #define inline $ac_val
4789 echo "$as_me:$LINENO: checking for off_t" >&5
4790 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4791 if test "${ac_cv_type_off_t+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 $ac_includes_default
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>conftest.er1
4816 grep -v '^ *+' conftest.er1 >conftest.err
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try='test -s conftest.$ac_objext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 ac_cv_type_off_t=yes
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4842 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4843 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4844 if test $ac_cv_type_off_t = yes; then
4848 cat >>confdefs.h <<_ACEOF
4855 echo "$as_me:$LINENO: checking for long long" >&5
4856 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4857 if test "${ac_cv_type_long_long+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 long long ll = 1LL; int i = 63;
4870 long long llmax = (long long) -1;
4871 return ll << i | ll >> i | llmax / ll | llmax % ll;
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878 (eval $ac_link) 2>conftest.er1
4880 grep -v '^ *+' conftest.er1 >conftest.err
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try='test -s conftest$ac_exeext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_type_long_long=yes
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4902 ac_cv_type_long_long=no
4904 rm -f conftest.err conftest.$ac_objext \
4905 conftest$ac_exeext conftest.$ac_ext
4907 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4908 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4909 if test $ac_cv_type_long_long = yes; then
4911 cat >>confdefs.h <<\_ACEOF
4912 #define HAVE_LONG_LONG 1
4918 echo "$as_me:$LINENO: checking for long double" >&5
4919 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4920 if test "${gt_cv_c_long_double+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 if test "$GCC" = yes; then
4924 gt_cv_c_long_double=yes
4926 cat >conftest.$ac_ext <<_ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4933 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4934 long double foo = 0.0;
4935 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4936 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4946 rm -f conftest.$ac_objext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948 (eval $ac_compile) 2>conftest.er1
4950 grep -v '^ *+' conftest.er1 >conftest.err
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 gt_cv_c_long_double=yes
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4972 gt_cv_c_long_double=no
4974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4977 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4978 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4979 if test $gt_cv_c_long_double = yes; then
4981 cat >>confdefs.h <<\_ACEOF
4982 #define HAVE_LONG_DOUBLE 1
4988 echo "$as_me:$LINENO: checking for wchar_t" >&5
4989 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4990 if test "${gt_cv_c_wchar_t+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 cat >conftest.$ac_ext <<_ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
5000 wchar_t foo = (wchar_t)'\0';
5009 rm -f conftest.$ac_objext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011 (eval $ac_compile) 2>conftest.er1
5013 grep -v '^ *+' conftest.er1 >conftest.err
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5039 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5040 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
5041 if test $gt_cv_c_wchar_t = yes; then
5043 cat >>confdefs.h <<\_ACEOF
5044 #define HAVE_WCHAR_T 1
5050 echo "$as_me:$LINENO: checking for wint_t" >&5
5051 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
5052 if test "${gt_cv_c_wint_t+set}" = set; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 cat >conftest.$ac_ext <<_ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5062 wint_t foo = (wchar_t)'\0';
5071 rm -f conftest.$ac_objext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073 (eval $ac_compile) 2>conftest.er1
5075 grep -v '^ *+' conftest.er1 >conftest.err
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } &&
5080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; } &&
5086 { ac_try='test -s conftest.$ac_objext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5101 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5102 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
5103 if test $gt_cv_c_wint_t = yes; then
5105 cat >>confdefs.h <<\_ACEOF
5106 #define HAVE_WINT_T 1
5112 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5113 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5114 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #include <sys/types.h>
5124 #include <inttypes.h>
5128 uintmax_t i = (uintmax_t) -1;
5133 rm -f conftest.$ac_objext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135 (eval $ac_compile) 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 jm_ac_cv_header_inttypes_h=yes
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5159 jm_ac_cv_header_inttypes_h=no
5161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5163 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5164 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
5165 if test $jm_ac_cv_header_inttypes_h = yes; then
5167 cat >>confdefs.h <<_ACEOF
5168 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5174 echo "$as_me:$LINENO: checking for stdint.h" >&5
5175 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5176 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 cat >conftest.$ac_ext <<_ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 #include <sys/types.h>
5190 uintmax_t i = (uintmax_t) -1;
5195 rm -f conftest.$ac_objext
5196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5197 (eval $ac_compile) 2>conftest.er1
5199 grep -v '^ *+' conftest.er1 >conftest.err
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } &&
5204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } &&
5210 { ac_try='test -s conftest.$ac_objext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 jm_ac_cv_header_stdint_h=yes
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 jm_ac_cv_header_stdint_h=no
5223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5225 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5226 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
5227 if test $jm_ac_cv_header_stdint_h = yes; then
5229 cat >>confdefs.h <<_ACEOF
5230 #define HAVE_STDINT_H_WITH_UINTMAX 1
5238 echo "$as_me:$LINENO: checking for intmax_t" >&5
5239 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
5240 if test "${gt_cv_c_intmax_t+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 cat >conftest.$ac_ext <<_ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5252 #if HAVE_STDINT_H_WITH_UINTMAX
5255 #if HAVE_INTTYPES_H_WITH_UINTMAX
5256 #include <inttypes.h>
5267 rm -f conftest.$ac_objext
5268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269 (eval $ac_compile) 2>conftest.er1
5271 grep -v '^ *+' conftest.er1 >conftest.err
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 gt_cv_c_intmax_t=yes
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5297 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5298 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
5299 if test $gt_cv_c_intmax_t = yes; then
5301 cat >>confdefs.h <<\_ACEOF
5302 #define HAVE_INTMAX_T 1
5309 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5310 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
5311 if test "${gt_cv_func_printf_posix+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 if test "$cross_compiling" = yes; then
5317 cat >conftest.$ac_ext <<_ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5324 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5330 $EGREP "notposix" >/dev/null 2>&1; then
5331 gt_cv_func_printf_posix="guessing no"
5333 gt_cv_func_printf_posix="guessing yes"
5339 cat >conftest.$ac_ext <<_ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5348 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5349 dollar expansion (possibly an autoconf bug). */
5350 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5351 static char buf[100];
5354 sprintf (buf, format, 33, 55);
5355 return (strcmp (buf, "55 33") != 0);
5358 rm -f conftest$ac_exeext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360 (eval $ac_link) 2>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 gt_cv_func_printf_posix=yes
5371 echo "$as_me: program exited with status $ac_status" >&5
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5376 gt_cv_func_printf_posix=no
5378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5382 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5383 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
5384 case $gt_cv_func_printf_posix in
5387 cat >>confdefs.h <<\_ACEOF
5388 #define HAVE_POSIX_PRINTF 1
5394 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5395 # for constant arguments. Useless!
5396 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5397 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5398 if test "${ac_cv_working_alloca_h+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 cat >conftest.$ac_ext <<_ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5411 char *p = (char *) alloca (2 * sizeof (int));
5416 rm -f conftest.$ac_objext conftest$ac_exeext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5418 (eval $ac_link) 2>conftest.er1
5420 grep -v '^ *+' conftest.er1 >conftest.err
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; } &&
5431 { ac_try='test -s conftest$ac_exeext'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5437 ac_cv_working_alloca_h=yes
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5442 ac_cv_working_alloca_h=no
5444 rm -f conftest.err conftest.$ac_objext \
5445 conftest$ac_exeext conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5448 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5449 if test $ac_cv_working_alloca_h = yes; then
5451 cat >>confdefs.h <<\_ACEOF
5452 #define HAVE_ALLOCA_H 1
5457 echo "$as_me:$LINENO: checking for alloca" >&5
5458 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5459 if test "${ac_cv_func_alloca_works+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 cat >conftest.$ac_ext <<_ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5469 # define alloca __builtin_alloca
5472 # include <malloc.h>
5473 # define alloca _alloca
5476 # include <alloca.h>
5481 # ifndef alloca /* predefined by HP cc +Olibcalls */
5492 char *p = (char *) alloca (1);
5497 rm -f conftest.$ac_objext conftest$ac_exeext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5499 (eval $ac_link) 2>conftest.er1
5501 grep -v '^ *+' conftest.er1 >conftest.err
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; } &&
5512 { ac_try='test -s conftest$ac_exeext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5518 ac_cv_func_alloca_works=yes
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 ac_cv_func_alloca_works=no
5525 rm -f conftest.err conftest.$ac_objext \
5526 conftest$ac_exeext conftest.$ac_ext
5528 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5529 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5531 if test $ac_cv_func_alloca_works = yes; then
5533 cat >>confdefs.h <<\_ACEOF
5534 #define HAVE_ALLOCA 1
5538 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5539 # that cause trouble. Some versions do not even contain alloca or
5540 # contain a buggy version. If you still want to use their alloca,
5541 # use ar to extract alloca.o from them instead of compiling alloca.c.
5543 ALLOCA=alloca.$ac_objext
5545 cat >>confdefs.h <<\_ACEOF
5550 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5551 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5552 if test "${ac_cv_os_cray+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 cat >conftest.$ac_ext <<_ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 #if defined(CRAY) && ! defined(CRAY2)
5568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5569 $EGREP "webecray" >/dev/null 2>&1; then
5577 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5578 echo "${ECHO_T}$ac_cv_os_cray" >&6
5579 if test $ac_cv_os_cray = yes; then
5580 for ac_func in _getb67 GETB67 getb67; do
5581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5582 echo "$as_me:$LINENO: checking for $ac_func" >&5
5583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5584 if eval "test \"\${$as_ac_var+set}\" = set"; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 cat >conftest.$ac_ext <<_ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5595 #define $ac_func innocuous_$ac_func
5597 /* System header to define __stub macros and hopefully few prototypes,
5598 which can conflict with char $ac_func (); below.
5599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5600 <limits.h> exists even on freestanding compilers. */
5603 # include <limits.h>
5605 # include <assert.h>
5610 /* Override any gcc2 internal prototype to avoid an error. */
5615 /* We use char because int might match the return type of a gcc2
5616 builtin and then its argument prototype would still apply. */
5618 /* The GNU C library defines this for functions which it implements
5619 to always fail with ENOSYS. Some functions are actually named
5620 something starting with __ and the normal name is an alias. */
5621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5624 char (*f) () = $ac_func;
5633 return f != $ac_func;
5638 rm -f conftest.$ac_objext conftest$ac_exeext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5640 (eval $ac_link) 2>conftest.er1
5642 grep -v '^ *+' conftest.er1 >conftest.err
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; } &&
5653 { ac_try='test -s conftest$ac_exeext'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; }; then
5659 eval "$as_ac_var=yes"
5661 echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5664 eval "$as_ac_var=no"
5666 rm -f conftest.err conftest.$ac_objext \
5667 conftest$ac_exeext conftest.$ac_ext
5669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5671 if test `eval echo '${'$as_ac_var'}'` = yes; then
5673 cat >>confdefs.h <<_ACEOF
5674 #define CRAY_STACKSEG_END $ac_func
5683 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5684 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5685 if test "${ac_cv_c_stack_direction+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 if test "$cross_compiling" = yes; then
5689 ac_cv_c_stack_direction=0
5691 cat >conftest.$ac_ext <<_ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5698 find_stack_direction ()
5700 static char *addr = 0;
5705 return find_stack_direction ();
5708 return (&dummy > addr) ? 1 : -1;
5714 exit (find_stack_direction () < 0);
5717 rm -f conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5728 ac_cv_c_stack_direction=1
5730 echo "$as_me: program exited with status $ac_status" >&5
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5735 ac_cv_c_stack_direction=-1
5737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5740 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5741 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5743 cat >>confdefs.h <<_ACEOF
5744 #define STACK_DIRECTION $ac_cv_c_stack_direction
5752 for ac_header in stdlib.h unistd.h
5754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5756 echo "$as_me:$LINENO: checking for $ac_header" >&5
5757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5764 # Is the header compilable?
5765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5767 cat >conftest.$ac_ext <<_ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 $ac_includes_default
5774 #include <$ac_header>
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5780 grep -v '^ *+' conftest.er1 >conftest.err
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
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
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 ac_header_compiler=yes
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 ac_header_compiler=no
5804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5806 echo "${ECHO_T}$ac_header_compiler" >&6
5808 # Is the header present?
5809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5811 cat >conftest.$ac_ext <<_ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 #include <$ac_header>
5819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5822 grep -v '^ *+' conftest.er1 >conftest.err
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } >/dev/null; then
5827 if test -s conftest.err; then
5828 ac_cpp_err=$ac_c_preproc_warn_flag
5829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5836 if test -z "$ac_cpp_err"; then
5837 ac_header_preproc=yes
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 ac_header_preproc=no
5844 rm -f conftest.err conftest.$ac_ext
5845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5846 echo "${ECHO_T}$ac_header_preproc" >&6
5848 # So? What about this header?
5849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5855 ac_header_preproc=yes
5858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5872 ## ------------------------------------------ ##
5873 ## Report this to the AC_PACKAGE_NAME lists. ##
5874 ## ------------------------------------------ ##
5877 sed "s/^/$as_me: WARNING: /" >&2
5880 echo "$as_me:$LINENO: checking for $ac_header" >&5
5881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 eval "$as_ac_Header=\$ac_header_preproc"
5887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5892 cat >>confdefs.h <<_ACEOF
5893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5901 for ac_func in getpagesize
5903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5904 echo "$as_me:$LINENO: checking for $ac_func" >&5
5905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5906 if eval "test \"\${$as_ac_var+set}\" = set"; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 cat >conftest.$ac_ext <<_ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5917 #define $ac_func innocuous_$ac_func
5919 /* System header to define __stub macros and hopefully few prototypes,
5920 which can conflict with char $ac_func (); below.
5921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5922 <limits.h> exists even on freestanding compilers. */
5925 # include <limits.h>
5927 # include <assert.h>
5932 /* Override any gcc2 internal prototype to avoid an error. */
5937 /* We use char because int might match the return type of a gcc2
5938 builtin and then its argument prototype would still apply. */
5940 /* The GNU C library defines this for functions which it implements
5941 to always fail with ENOSYS. Some functions are actually named
5942 something starting with __ and the normal name is an alias. */
5943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5946 char (*f) () = $ac_func;
5955 return f != $ac_func;
5960 rm -f conftest.$ac_objext conftest$ac_exeext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5962 (eval $ac_link) 2>conftest.er1
5964 grep -v '^ *+' conftest.er1 >conftest.err
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } &&
5969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; } &&
5975 { ac_try='test -s conftest$ac_exeext'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5981 eval "$as_ac_var=yes"
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 eval "$as_ac_var=no"
5988 rm -f conftest.err conftest.$ac_objext \
5989 conftest$ac_exeext conftest.$ac_ext
5991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5993 if test `eval echo '${'$as_ac_var'}'` = yes; then
5994 cat >>confdefs.h <<_ACEOF
5995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6001 echo "$as_me:$LINENO: checking for working mmap" >&5
6002 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6003 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 if test "$cross_compiling" = yes; then
6007 ac_cv_func_mmap_fixed_mapped=no
6009 cat >conftest.$ac_ext <<_ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 $ac_includes_default
6016 /* malloc might have been renamed as rpl_malloc. */
6019 /* Thanks to Mike Haertel and Jim Avera for this test.
6020 Here is a matrix of mmap possibilities:
6021 mmap private not fixed
6022 mmap private fixed at somewhere currently unmapped
6023 mmap private fixed at somewhere already mapped
6024 mmap shared not fixed
6025 mmap shared fixed at somewhere currently unmapped
6026 mmap shared fixed at somewhere already mapped
6027 For private mappings, we should verify that changes cannot be read()
6028 back from the file, nor mmap's back from the file at a different
6029 address. (There have been systems where private was not correctly
6030 implemented like the infamous i386 svr4.0, and systems where the
6031 VM page cache was not coherent with the file system buffer cache
6032 like early versions of FreeBSD and possibly contemporary NetBSD.)
6033 For shared mappings, we should conversely verify that changes get
6034 propagated back to all the places they're supposed to be.
6036 Grep wants private fixed already mapped.
6037 The main things grep needs to know about mmap are:
6038 * does it exist and is it safe to write into the mmap'd area
6039 * how to use it (BSD variants) */
6042 #include <sys/mman.h>
6044 #if !STDC_HEADERS && !HAVE_STDLIB_H
6048 /* This mess was copied from the GNU getpagesize.h. */
6049 #if !HAVE_GETPAGESIZE
6050 /* Assume that all systems that can run configure have sys/param.h. */
6051 # if !HAVE_SYS_PARAM_H
6052 # define HAVE_SYS_PARAM_H 1
6055 # ifdef _SC_PAGESIZE
6056 # define getpagesize() sysconf(_SC_PAGESIZE)
6057 # else /* no _SC_PAGESIZE */
6058 # if HAVE_SYS_PARAM_H
6059 # include <sys/param.h>
6060 # ifdef EXEC_PAGESIZE
6061 # define getpagesize() EXEC_PAGESIZE
6062 # else /* no EXEC_PAGESIZE */
6064 # define getpagesize() NBPG * CLSIZE
6067 # endif /* no CLSIZE */
6068 # else /* no NBPG */
6070 # define getpagesize() NBPC
6071 # else /* no NBPC */
6073 # define getpagesize() PAGESIZE
6074 # endif /* PAGESIZE */
6075 # endif /* no NBPC */
6076 # endif /* no NBPG */
6077 # endif /* no EXEC_PAGESIZE */
6078 # else /* no HAVE_SYS_PARAM_H */
6079 # define getpagesize() 8192 /* punt totally */
6080 # endif /* no HAVE_SYS_PARAM_H */
6081 # endif /* no _SC_PAGESIZE */
6083 #endif /* no HAVE_GETPAGESIZE */
6088 char *data, *data2, *data3;
6092 pagesize = getpagesize ();
6094 /* First, make a file with some known garbage in it. */
6095 data = (char *) malloc (pagesize);
6098 for (i = 0; i < pagesize; ++i)
6099 *(data + i) = rand ();
6101 fd = creat ("conftest.mmap", 0600);
6104 if (write (fd, data, pagesize) != pagesize)
6108 /* Next, try to mmap the file at a fixed address which already has
6109 something else allocated at it. If we can, also make sure that
6110 we see the same garbage. */
6111 fd = open ("conftest.mmap", O_RDWR);
6114 data2 = (char *) malloc (2 * pagesize);
6117 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6118 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6119 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6121 for (i = 0; i < pagesize; ++i)
6122 if (*(data + i) != *(data2 + i))
6125 /* Finally, make sure that changes to the mapped area do not
6126 percolate back to the file as seen by read(). (This is a bug on
6127 some variants of i386 svr4.0.) */
6128 for (i = 0; i < pagesize; ++i)
6129 *(data2 + i) = *(data2 + i) + 1;
6130 data3 = (char *) malloc (pagesize);
6133 if (read (fd, data3, pagesize) != pagesize)
6135 for (i = 0; i < pagesize; ++i)
6136 if (*(data + i) != *(data3 + i))
6142 rm -f conftest$ac_exeext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6144 (eval $ac_link) 2>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 ac_cv_func_mmap_fixed_mapped=yes
6155 echo "$as_me: program exited with status $ac_status" >&5
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6160 ac_cv_func_mmap_fixed_mapped=no
6162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6165 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6166 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6167 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6169 cat >>confdefs.h <<\_ACEOF
6177 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6178 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6179 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 cat >conftest.$ac_ext <<_ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6189 #include <features.h>
6190 #ifdef __GNU_LIBRARY__
6191 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6198 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6199 ac_cv_gnu_library_2_1=yes
6201 ac_cv_gnu_library_2_1=no
6208 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6209 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6211 GLIBC21="$ac_cv_gnu_library_2_1"
6216 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6217 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
6218 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 if test "$cross_compiling" = yes; then
6224 # Guess based on the CPU.
6226 alpha* | i3456786 | m68k | s390*)
6227 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6229 gt_cv_int_divbyzero_sigfpe="guessing no";;
6233 cat >conftest.$ac_ext <<_ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6245 sigfpe_handler (int sig)
6247 sigfpe_handler (sig) int sig;
6250 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6251 exit (sig != SIGFPE);
6261 signal (SIGFPE, sigfpe_handler);
6262 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6263 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6264 signal (SIGTRAP, sigfpe_handler);
6266 /* Linux/SPARC yields signal SIGILL. */
6267 #if defined (__sparc__) && defined (__linux__)
6268 signal (SIGILL, sigfpe_handler);
6277 rm -f conftest$ac_exeext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279 (eval $ac_link) 2>&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6288 gt_cv_int_divbyzero_sigfpe=yes
6290 echo "$as_me: program exited with status $ac_status" >&5
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6295 gt_cv_int_divbyzero_sigfpe=no
6297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6301 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6302 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
6303 case "$gt_cv_int_divbyzero_sigfpe" in
6308 cat >>confdefs.h <<_ACEOF
6309 #define INTDIV0_RAISES_SIGFPE $value
6314 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6315 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6316 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 unsigned long long ull = 1ULL; int i = 63;
6329 unsigned long long ullmax = (unsigned long long) -1;
6330 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6335 rm -f conftest.$ac_objext conftest$ac_exeext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6337 (eval $ac_link) 2>conftest.er1
6339 grep -v '^ *+' conftest.er1 >conftest.err
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" || test ! -s conftest.err'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; } &&
6350 { ac_try='test -s conftest$ac_exeext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_type_unsigned_long_long=yes
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 ac_cv_type_unsigned_long_long=no
6363 rm -f conftest.err conftest.$ac_objext \
6364 conftest$ac_exeext conftest.$ac_ext
6366 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6367 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6368 if test $ac_cv_type_unsigned_long_long = yes; then
6370 cat >>confdefs.h <<\_ACEOF
6371 #define HAVE_UNSIGNED_LONG_LONG 1
6379 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6381 test $ac_cv_type_unsigned_long_long = yes \
6382 && ac_type='unsigned long long' \
6383 || ac_type='unsigned long'
6385 cat >>confdefs.h <<_ACEOF
6386 #define uintmax_t $ac_type
6391 cat >>confdefs.h <<\_ACEOF
6392 #define HAVE_UINTMAX_T 1
6398 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6399 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6400 if test "${gt_cv_header_inttypes_h+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 cat >conftest.$ac_ext <<_ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 #include <sys/types.h>
6411 #include <inttypes.h>
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>conftest.er1
6424 grep -v '^ *+' conftest.er1 >conftest.err
6426 cat conftest.err >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; } &&
6435 { ac_try='test -s conftest.$ac_objext'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6441 gt_cv_header_inttypes_h=yes
6443 echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6446 gt_cv_header_inttypes_h=no
6448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6451 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6452 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6453 if test $gt_cv_header_inttypes_h = yes; then
6455 cat >>confdefs.h <<_ACEOF
6456 #define HAVE_INTTYPES_H 1
6463 if test $gt_cv_header_inttypes_h = yes; then
6464 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6465 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6466 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 cat >conftest.$ac_ext <<_ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 #include <inttypes.h>
6489 rm -f conftest.$ac_objext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491 (eval $ac_compile) 2>conftest.er1
6493 grep -v '^ *+' conftest.er1 >conftest.err
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try='test -s conftest.$ac_objext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 gt_cv_inttypes_pri_broken=no
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 gt_cv_inttypes_pri_broken=yes
6517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6520 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6521 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6523 if test "$gt_cv_inttypes_pri_broken" = yes; then
6525 cat >>confdefs.h <<_ACEOF
6526 #define PRI_MACROS_BROKEN 1
6533 for ac_header in stdint.h
6535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537 echo "$as_me:$LINENO: checking for $ac_header" >&5
6538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6545 # Is the header compilable?
6546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6548 cat >conftest.$ac_ext <<_ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 $ac_includes_default
6555 #include <$ac_header>
6557 rm -f conftest.$ac_objext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6559 (eval $ac_compile) 2>conftest.er1
6561 grep -v '^ *+' conftest.er1 >conftest.err
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; } &&
6572 { ac_try='test -s conftest.$ac_objext'
6573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; }; then
6578 ac_header_compiler=yes
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_header_compiler=no
6585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6587 echo "${ECHO_T}$ac_header_compiler" >&6
6589 # Is the header present?
6590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6592 cat >conftest.$ac_ext <<_ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 #include <$ac_header>
6600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6603 grep -v '^ *+' conftest.er1 >conftest.err
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } >/dev/null; then
6608 if test -s conftest.err; then
6609 ac_cpp_err=$ac_c_preproc_warn_flag
6610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6617 if test -z "$ac_cpp_err"; then
6618 ac_header_preproc=yes
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6623 ac_header_preproc=no
6625 rm -f conftest.err conftest.$ac_ext
6626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6627 echo "${ECHO_T}$ac_header_preproc" >&6
6629 # So? What about this header?
6630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6636 ac_header_preproc=yes
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6653 ## ------------------------------------------ ##
6654 ## Report this to the AC_PACKAGE_NAME lists. ##
6655 ## ------------------------------------------ ##
6658 sed "s/^/$as_me: WARNING: /" >&2
6661 echo "$as_me:$LINENO: checking for $ac_header" >&5
6662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 eval "$as_ac_Header=\$ac_header_preproc"
6668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6673 cat >>confdefs.h <<_ACEOF
6674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6681 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6682 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6701 $EGREP "Found it" >/dev/null 2>&1; then
6706 if test -z "$result"; then
6707 if test "$cross_compiling" = yes; then
6708 # Depending upon the size, compute the lo and hi bounds.
6709 cat >conftest.$ac_ext <<_ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6719 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6726 rm -f conftest.$ac_objext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6728 (eval $ac_compile) 2>conftest.er1
6730 grep -v '^ *+' conftest.er1 >conftest.err
6732 cat conftest.err >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } &&
6735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest.$ac_objext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6749 cat >conftest.$ac_ext <<_ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6759 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6766 rm -f conftest.$ac_objext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768 (eval $ac_compile) 2>conftest.er1
6770 grep -v '^ *+' conftest.er1 >conftest.err
6772 cat conftest.err >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } &&
6775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest.$ac_objext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_hi=$ac_mid; break
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 ac_lo=`expr $ac_mid + 1`
6793 if test $ac_lo -le $ac_mid; then
6797 ac_mid=`expr 2 '*' $ac_mid + 1`
6799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6805 cat >conftest.$ac_ext <<_ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6815 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6822 rm -f conftest.$ac_objext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824 (eval $ac_compile) 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest.$ac_objext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6845 cat >conftest.$ac_ext <<_ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6855 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6862 rm -f conftest.$ac_objext
6863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6864 (eval $ac_compile) 2>conftest.er1
6866 grep -v '^ *+' conftest.er1 >conftest.err
6868 cat conftest.err >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } &&
6871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; } &&
6877 { ac_try='test -s conftest.$ac_objext'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; }; then
6883 ac_lo=$ac_mid; break
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6888 ac_hi=`expr '(' $ac_mid ')' - 1`
6889 if test $ac_mid -le $ac_hi; then
6893 ac_mid=`expr 2 '*' $ac_mid`
6895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6906 # Binary search between lo and hi bounds.
6907 while test "x$ac_lo" != "x$ac_hi"; do
6908 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6909 cat >conftest.$ac_ext <<_ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h. */
6919 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6926 rm -f conftest.$ac_objext
6927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6928 (eval $ac_compile) 2>conftest.er1
6930 grep -v '^ *+' conftest.er1 >conftest.err
6932 cat conftest.err >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } &&
6935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 ac_lo=`expr '(' $ac_mid ')' + 1`
6954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6961 if test "$cross_compiling" = yes; then
6962 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6963 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6964 { (exit 1); exit 1; }; }
6966 cat >conftest.$ac_ext <<_ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6973 long longval () { return ~(size_t)0 / 10; }
6974 unsigned long ulongval () { return ~(size_t)0 / 10; }
6981 FILE *f = fopen ("conftest.val", "w");
6984 if ((~(size_t)0 / 10) < 0)
6986 long i = longval ();
6987 if (i != (~(size_t)0 / 10))
6989 fprintf (f, "%ld\n", i);
6993 unsigned long i = ulongval ();
6994 if (i != (~(size_t)0 / 10))
6996 fprintf (f, "%lu\n", i);
6998 exit (ferror (f) || fclose (f) != 0);
7004 rm -f conftest$ac_exeext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006 (eval $ac_link) 2>&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 res_hi=`cat conftest.val`
7017 echo "$as_me: program exited with status $ac_status" >&5
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7028 if test "$cross_compiling" = yes; then
7029 # Depending upon the size, compute the lo and hi bounds.
7030 cat >conftest.$ac_ext <<_ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7040 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7047 rm -f conftest.$ac_objext
7048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7049 (eval $ac_compile) 2>conftest.er1
7051 grep -v '^ *+' conftest.er1 >conftest.err
7053 cat conftest.err >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } &&
7056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; } &&
7062 { ac_try='test -s conftest.$ac_objext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7070 cat >conftest.$ac_ext <<_ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7080 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7087 rm -f conftest.$ac_objext
7088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089 (eval $ac_compile) 2>conftest.er1
7091 grep -v '^ *+' conftest.er1 >conftest.err
7093 cat conftest.err >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } &&
7096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; } &&
7102 { ac_try='test -s conftest.$ac_objext'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; }; then
7108 ac_hi=$ac_mid; break
7110 echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7113 ac_lo=`expr $ac_mid + 1`
7114 if test $ac_lo -le $ac_mid; then
7118 ac_mid=`expr 2 '*' $ac_mid + 1`
7120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7126 cat >conftest.$ac_ext <<_ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7136 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7143 rm -f conftest.$ac_objext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145 (eval $ac_compile) 2>conftest.er1
7147 grep -v '^ *+' conftest.er1 >conftest.err
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; } &&
7158 { ac_try='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7166 cat >conftest.$ac_ext <<_ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7176 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7183 rm -f conftest.$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7187 grep -v '^ *+' conftest.er1 >conftest.err
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; } &&
7198 { ac_try='test -s conftest.$ac_objext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 ac_lo=$ac_mid; break
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 ac_hi=`expr '(' $ac_mid ')' - 1`
7210 if test $ac_mid -le $ac_hi; then
7214 ac_mid=`expr 2 '*' $ac_mid`
7216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7227 # Binary search between lo and hi bounds.
7228 while test "x$ac_lo" != "x$ac_hi"; do
7229 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7230 cat >conftest.$ac_ext <<_ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7240 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7247 rm -f conftest.$ac_objext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7249 (eval $ac_compile) 2>conftest.er1
7251 grep -v '^ *+' conftest.er1 >conftest.err
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } &&
7256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; } &&
7262 { ac_try='test -s conftest.$ac_objext'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 ac_lo=`expr '(' $ac_mid ')' + 1`
7275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7282 if test "$cross_compiling" = yes; then
7283 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7284 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7285 { (exit 1); exit 1; }; }
7287 cat >conftest.$ac_ext <<_ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7294 long longval () { return ~(size_t)0 % 10; }
7295 unsigned long ulongval () { return ~(size_t)0 % 10; }
7302 FILE *f = fopen ("conftest.val", "w");
7305 if ((~(size_t)0 % 10) < 0)
7307 long i = longval ();
7308 if (i != (~(size_t)0 % 10))
7310 fprintf (f, "%ld\n", i);
7314 unsigned long i = ulongval ();
7315 if (i != (~(size_t)0 % 10))
7317 fprintf (f, "%lu\n", i);
7319 exit (ferror (f) || fclose (f) != 0);
7325 rm -f conftest$ac_exeext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7327 (eval $ac_link) 2>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; }; then
7336 res_lo=`cat conftest.val`
7338 echo "$as_me: program exited with status $ac_status" >&5
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7349 if test "$cross_compiling" = yes; then
7350 # Depending upon the size, compute the lo and hi bounds.
7351 cat >conftest.$ac_ext <<_ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7361 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7368 rm -f conftest.$ac_objext
7369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370 (eval $ac_compile) 2>conftest.er1
7372 grep -v '^ *+' conftest.er1 >conftest.err
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; } &&
7383 { ac_try='test -s conftest.$ac_objext'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; }; then
7391 cat >conftest.$ac_ext <<_ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7401 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7408 rm -f conftest.$ac_objext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410 (eval $ac_compile) 2>conftest.er1
7412 grep -v '^ *+' conftest.er1 >conftest.err
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } &&
7417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }; } &&
7423 { ac_try='test -s conftest.$ac_objext'
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; }; then
7429 ac_hi=$ac_mid; break
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 ac_lo=`expr $ac_mid + 1`
7435 if test $ac_lo -le $ac_mid; then
7439 ac_mid=`expr 2 '*' $ac_mid + 1`
7441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7444 echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7447 cat >conftest.$ac_ext <<_ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7457 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7464 rm -f conftest.$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466 (eval $ac_compile) 2>conftest.er1
7468 grep -v '^ *+' conftest.er1 >conftest.err
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; } &&
7479 { ac_try='test -s conftest.$ac_objext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7487 cat >conftest.$ac_ext <<_ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7497 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7504 rm -f conftest.$ac_objext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506 (eval $ac_compile) 2>conftest.er1
7508 grep -v '^ *+' conftest.er1 >conftest.err
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try='test -s conftest.$ac_objext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 ac_lo=$ac_mid; break
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7530 ac_hi=`expr '(' $ac_mid ')' - 1`
7531 if test $ac_mid -le $ac_hi; then
7535 ac_mid=`expr 2 '*' $ac_mid`
7537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7548 # Binary search between lo and hi bounds.
7549 while test "x$ac_lo" != "x$ac_hi"; do
7550 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7551 cat >conftest.$ac_ext <<_ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7561 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7568 rm -f conftest.$ac_objext
7569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7570 (eval $ac_compile) 2>conftest.er1
7572 grep -v '^ *+' conftest.er1 >conftest.err
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } &&
7577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; } &&
7583 { ac_try='test -s conftest.$ac_objext'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; }; then
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7594 ac_lo=`expr '(' $ac_mid ')' + 1`
7596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7599 ?*) fits_in_uint=$ac_lo;;
7603 if test "$cross_compiling" = yes; then
7604 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7605 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7606 { (exit 1); exit 1; }; }
7608 cat >conftest.$ac_ext <<_ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7615 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7616 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7623 FILE *f = fopen ("conftest.val", "w");
7626 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7628 long i = longval ();
7629 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7631 fprintf (f, "%ld\n", i);
7635 unsigned long i = ulongval ();
7636 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7638 fprintf (f, "%lu\n", i);
7640 exit (ferror (f) || fclose (f) != 0);
7646 rm -f conftest$ac_exeext
7647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7648 (eval $ac_link) 2>&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7657 fits_in_uint=`cat conftest.val`
7659 echo "$as_me: program exited with status $ac_status" >&5
7660 echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7670 if test "$fits_in_uint" = 1; then
7671 cat >conftest.$ac_ext <<_ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7679 extern unsigned long foo;
7689 rm -f conftest.$ac_objext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691 (eval $ac_compile) 2>conftest.er1
7693 grep -v '^ *+' conftest.er1 >conftest.err
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; } &&
7704 { ac_try='test -s conftest.$ac_objext'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; }; then
7712 echo "$as_me: failed program was:" >&5
7713 sed 's/^/| /' conftest.$ac_ext >&5
7716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7718 if test -z "$result"; then
7719 if test "$fits_in_uint" = 1; then
7720 result="$res_hi$res_lo"U
7722 result="$res_hi$res_lo"UL
7728 echo "$as_me:$LINENO: result: $result" >&5
7729 echo "${ECHO_T}$result" >&6
7730 if test "$result" != yes; then
7732 cat >>confdefs.h <<_ACEOF
7733 #define SIZE_MAX $result
7741 for ac_header in stdint.h
7743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7745 echo "$as_me:$LINENO: checking for $ac_header" >&5
7746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7753 # Is the header compilable?
7754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7756 cat >conftest.$ac_ext <<_ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7762 $ac_includes_default
7763 #include <$ac_header>
7765 rm -f conftest.$ac_objext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7767 (eval $ac_compile) 2>conftest.er1
7769 grep -v '^ *+' conftest.er1 >conftest.err
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } &&
7774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; } &&
7780 { ac_try='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 ac_header_compiler=yes
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7791 ac_header_compiler=no
7793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7795 echo "${ECHO_T}$ac_header_compiler" >&6
7797 # Is the header present?
7798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7800 cat >conftest.$ac_ext <<_ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7806 #include <$ac_header>
7808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7811 grep -v '^ *+' conftest.er1 >conftest.err
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } >/dev/null; then
7816 if test -s conftest.err; then
7817 ac_cpp_err=$ac_c_preproc_warn_flag
7818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7825 if test -z "$ac_cpp_err"; then
7826 ac_header_preproc=yes
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 ac_header_preproc=no
7833 rm -f conftest.err conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7835 echo "${ECHO_T}$ac_header_preproc" >&6
7837 # So? What about this header?
7838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7844 ac_header_preproc=yes
7847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7861 ## ------------------------------------------ ##
7862 ## Report this to the AC_PACKAGE_NAME lists. ##
7863 ## ------------------------------------------ ##
7866 sed "s/^/$as_me: WARNING: /" >&2
7869 echo "$as_me:$LINENO: checking for $ac_header" >&5
7870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 eval "$as_ac_Header=\$ac_header_preproc"
7876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7881 cat >>confdefs.h <<_ACEOF
7882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7891 if test "X$prefix" = "XNONE"; then
7892 acl_final_prefix="$ac_default_prefix"
7894 acl_final_prefix="$prefix"
7896 if test "X$exec_prefix" = "XNONE"; then
7897 acl_final_exec_prefix='${prefix}'
7899 acl_final_exec_prefix="$exec_prefix"
7901 acl_save_prefix="$prefix"
7902 prefix="$acl_final_prefix"
7903 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7904 prefix="$acl_save_prefix"
7907 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7908 if test "${with_gnu_ld+set}" = set; then
7909 withval="$with_gnu_ld"
7910 test "$withval" = no || with_gnu_ld=yes
7914 # Prepare PATH_SEPARATOR.
7915 # The user is always right.
7916 if test "${PATH_SEPARATOR+set}" != set; then
7917 echo "#! /bin/sh" >conf$$.sh
7918 echo "exit 0" >>conf$$.sh
7920 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7928 if test "$GCC" = yes; then
7929 # Check if gcc -print-prog-name=ld gives a path.
7930 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7931 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7934 # gcc leaves a trailing carriage return which upsets mingw
7935 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7937 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7940 # Accept absolute paths.
7941 [\\/]* | [A-Za-z]:[\\/]*)
7942 re_direlt='/[^/][^/]*/\.\./'
7943 # Canonicalize the path of ld
7944 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7945 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7946 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7948 test -z "$LD" && LD="$ac_prog"
7951 # If it fails, then pretend we aren't using GCC.
7955 # If it is relative, then search for the first ld in PATH.
7959 elif test "$with_gnu_ld" = yes; then
7960 echo "$as_me:$LINENO: checking for GNU ld" >&5
7961 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7963 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7964 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7966 if test "${acl_cv_path_LD+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 if test -z "$LD"; then
7970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7971 for ac_dir in $PATH; do
7972 test -z "$ac_dir" && ac_dir=.
7973 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7974 acl_cv_path_LD="$ac_dir/$ac_prog"
7975 # Check to see if the program is GNU ld. I'd rather use --version,
7976 # but apparently some GNU ld's only accept -v.
7977 # Break only if it was the GNU/non-GNU ld that we prefer.
7978 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7979 *GNU* | *'with BFD'*)
7980 test "$with_gnu_ld" != no && break ;;
7982 test "$with_gnu_ld" != yes && break ;;
7988 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7992 LD="$acl_cv_path_LD"
7993 if test -n "$LD"; then
7994 echo "$as_me:$LINENO: result: $LD" >&5
7995 echo "${ECHO_T}$LD" >&6
7997 echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6
8000 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8001 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8002 { (exit 1); exit 1; }; }
8003 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8004 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8005 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8009 case `$LD -v 2>&1 </dev/null` in
8010 *GNU* | *'with BFD'*)
8011 acl_cv_prog_gnu_ld=yes ;;
8013 acl_cv_prog_gnu_ld=no ;;
8016 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8017 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
8018 with_gnu_ld=$acl_cv_prog_gnu_ld
8022 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8023 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
8024 if test "${acl_cv_rpath+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8029 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8035 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8036 echo "${ECHO_T}$acl_cv_rpath" >&6
8038 libext="$acl_cv_libext"
8039 shlibext="$acl_cv_shlibext"
8040 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8041 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8042 hardcode_direct="$acl_cv_hardcode_direct"
8043 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8044 # Check whether --enable-rpath or --disable-rpath was given.
8045 if test "${enable_rpath+set}" = set; then
8046 enableval="$enable_rpath"
8060 acl_save_prefix="$prefix"
8061 prefix="$acl_final_prefix"
8062 acl_save_exec_prefix="$exec_prefix"
8063 exec_prefix="$acl_final_exec_prefix"
8065 eval additional_includedir=\"$includedir\"
8066 eval additional_libdir=\"$libdir\"
8068 exec_prefix="$acl_save_exec_prefix"
8069 prefix="$acl_save_prefix"
8072 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8073 if test "${with_libiconv_prefix+set}" = set; then
8074 withval="$with_libiconv_prefix"
8076 if test "X$withval" = "Xno"; then
8079 if test "X$withval" = "X"; then
8081 acl_save_prefix="$prefix"
8082 prefix="$acl_final_prefix"
8083 acl_save_exec_prefix="$exec_prefix"
8084 exec_prefix="$acl_final_exec_prefix"
8086 eval additional_includedir=\"$includedir\"
8087 eval additional_libdir=\"$libdir\"
8089 exec_prefix="$acl_save_exec_prefix"
8090 prefix="$acl_save_prefix"
8093 additional_includedir="$withval/include"
8094 additional_libdir="$withval/lib"
8104 names_already_handled=
8105 names_next_round='iconv '
8106 while test -n "$names_next_round"; do
8107 names_this_round="$names_next_round"
8109 for name in $names_this_round; do
8111 for n in $names_already_handled; do
8112 if test "$n" = "$name"; then
8117 if test -z "$already_handled"; then
8118 names_already_handled="$names_already_handled $name"
8119 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8120 eval value=\"\$HAVE_LIB$uppername\"
8121 if test -n "$value"; then
8122 if test "$value" = yes; then
8123 eval value=\"\$LIB$uppername\"
8124 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8125 eval value=\"\$LTLIB$uppername\"
8126 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8135 if test $use_additional = yes; then
8136 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8137 found_dir="$additional_libdir"
8138 found_so="$additional_libdir/lib$name.$shlibext"
8139 if test -f "$additional_libdir/lib$name.la"; then
8140 found_la="$additional_libdir/lib$name.la"
8143 if test -f "$additional_libdir/lib$name.$libext"; then
8144 found_dir="$additional_libdir"
8145 found_a="$additional_libdir/lib$name.$libext"
8146 if test -f "$additional_libdir/lib$name.la"; then
8147 found_la="$additional_libdir/lib$name.la"
8152 if test "X$found_dir" = "X"; then
8153 for x in $LDFLAGS $LTLIBICONV; do
8155 acl_save_prefix="$prefix"
8156 prefix="$acl_final_prefix"
8157 acl_save_exec_prefix="$exec_prefix"
8158 exec_prefix="$acl_final_exec_prefix"
8160 exec_prefix="$acl_save_exec_prefix"
8161 prefix="$acl_save_prefix"
8165 dir=`echo "X$x" | sed -e 's/^X-L//'`
8166 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8168 found_so="$dir/lib$name.$shlibext"
8169 if test -f "$dir/lib$name.la"; then
8170 found_la="$dir/lib$name.la"
8173 if test -f "$dir/lib$name.$libext"; then
8175 found_a="$dir/lib$name.$libext"
8176 if test -f "$dir/lib$name.la"; then
8177 found_la="$dir/lib$name.la"
8183 if test "X$found_dir" != "X"; then
8188 if test "X$found_dir" != "X"; then
8189 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8190 if test "X$found_so" != "X"; then
8191 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8192 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8195 for x in $ltrpathdirs; do
8196 if test "X$x" = "X$found_dir"; then
8201 if test -z "$haveit"; then
8202 ltrpathdirs="$ltrpathdirs $found_dir"
8204 if test "$hardcode_direct" = yes; then
8205 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8207 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8208 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8210 for x in $rpathdirs; do
8211 if test "X$x" = "X$found_dir"; then
8216 if test -z "$haveit"; then
8217 rpathdirs="$rpathdirs $found_dir"
8221 for x in $LDFLAGS $LIBICONV; do
8223 acl_save_prefix="$prefix"
8224 prefix="$acl_final_prefix"
8225 acl_save_exec_prefix="$exec_prefix"
8226 exec_prefix="$acl_final_exec_prefix"
8228 exec_prefix="$acl_save_exec_prefix"
8229 prefix="$acl_save_prefix"
8231 if test "X$x" = "X-L$found_dir"; then
8236 if test -z "$haveit"; then
8237 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8239 if test "$hardcode_minus_L" != no; then
8240 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8242 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8248 if test "X$found_a" != "X"; then
8249 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8251 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8254 additional_includedir=
8255 case "$found_dir" in
8257 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8258 additional_includedir="$basedir/include"
8261 if test "X$additional_includedir" != "X"; then
8262 if test "X$additional_includedir" != "X/usr/include"; then
8264 if test "X$additional_includedir" = "X/usr/local/include"; then
8265 if test -n "$GCC"; then
8267 linux*) haveit=yes;;
8271 if test -z "$haveit"; then
8272 for x in $CPPFLAGS $INCICONV; do
8274 acl_save_prefix="$prefix"
8275 prefix="$acl_final_prefix"
8276 acl_save_exec_prefix="$exec_prefix"
8277 exec_prefix="$acl_final_exec_prefix"
8279 exec_prefix="$acl_save_exec_prefix"
8280 prefix="$acl_save_prefix"
8282 if test "X$x" = "X-I$additional_includedir"; then
8287 if test -z "$haveit"; then
8288 if test -d "$additional_includedir"; then
8289 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8295 if test -n "$found_la"; then
8296 save_libdir="$libdir"
8298 */* | *\\*) . "$found_la" ;;
8299 *) . "./$found_la" ;;
8301 libdir="$save_libdir"
8302 for dep in $dependency_libs; do
8305 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8306 if test "X$additional_libdir" != "X/usr/lib"; then
8308 if test "X$additional_libdir" = "X/usr/local/lib"; then
8309 if test -n "$GCC"; then
8311 linux*) haveit=yes;;
8315 if test -z "$haveit"; then
8317 for x in $LDFLAGS $LIBICONV; do
8319 acl_save_prefix="$prefix"
8320 prefix="$acl_final_prefix"
8321 acl_save_exec_prefix="$exec_prefix"
8322 exec_prefix="$acl_final_exec_prefix"
8324 exec_prefix="$acl_save_exec_prefix"
8325 prefix="$acl_save_prefix"
8327 if test "X$x" = "X-L$additional_libdir"; then
8332 if test -z "$haveit"; then
8333 if test -d "$additional_libdir"; then
8334 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8338 for x in $LDFLAGS $LTLIBICONV; do
8340 acl_save_prefix="$prefix"
8341 prefix="$acl_final_prefix"
8342 acl_save_exec_prefix="$exec_prefix"
8343 exec_prefix="$acl_final_exec_prefix"
8345 exec_prefix="$acl_save_exec_prefix"
8346 prefix="$acl_save_prefix"
8348 if test "X$x" = "X-L$additional_libdir"; then
8353 if test -z "$haveit"; then
8354 if test -d "$additional_libdir"; then
8355 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8362 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8363 if test "$enable_rpath" != no; then
8365 for x in $rpathdirs; do
8366 if test "X$x" = "X$dir"; then
8371 if test -z "$haveit"; then
8372 rpathdirs="$rpathdirs $dir"
8375 for x in $ltrpathdirs; do
8376 if test "X$x" = "X$dir"; then
8381 if test -z "$haveit"; then
8382 ltrpathdirs="$ltrpathdirs $dir"
8387 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8390 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8393 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8394 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8400 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8401 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8407 if test "X$rpathdirs" != "X"; then
8408 if test -n "$hardcode_libdir_separator"; then
8410 for found_dir in $rpathdirs; do
8411 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8413 acl_save_libdir="$libdir"
8415 eval flag=\"$hardcode_libdir_flag_spec\"
8416 libdir="$acl_save_libdir"
8417 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8419 for found_dir in $rpathdirs; do
8420 acl_save_libdir="$libdir"
8422 eval flag=\"$hardcode_libdir_flag_spec\"
8423 libdir="$acl_save_libdir"
8424 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8428 if test "X$ltrpathdirs" != "X"; then
8429 for found_dir in $ltrpathdirs; do
8430 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8441 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8442 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8443 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 $ac_includes_default
8456 if ((ptrdiff_t *) 0)
8458 if (sizeof (ptrdiff_t))
8464 rm -f conftest.$ac_objext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8466 (eval $ac_compile) 2>conftest.er1
8468 grep -v '^ *+' conftest.er1 >conftest.err
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; } &&
8479 { ac_try='test -s conftest.$ac_objext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_cv_type_ptrdiff_t=yes
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 ac_cv_type_ptrdiff_t=no
8492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8494 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8495 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8496 if test $ac_cv_type_ptrdiff_t = yes; then
8500 cat >>confdefs.h <<\_ACEOF
8501 #define ptrdiff_t long
8517 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8518 stdlib.h string.h unistd.h sys/param.h
8520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8522 echo "$as_me:$LINENO: checking for $ac_header" >&5
8523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8530 # Is the header compilable?
8531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8533 cat >conftest.$ac_ext <<_ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 $ac_includes_default
8540 #include <$ac_header>
8542 rm -f conftest.$ac_objext
8543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8544 (eval $ac_compile) 2>conftest.er1
8546 grep -v '^ *+' conftest.er1 >conftest.err
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; } &&
8557 { ac_try='test -s conftest.$ac_objext'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563 ac_header_compiler=yes
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 ac_header_compiler=no
8570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8572 echo "${ECHO_T}$ac_header_compiler" >&6
8574 # Is the header present?
8575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8577 cat >conftest.$ac_ext <<_ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 #include <$ac_header>
8585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } >/dev/null; then
8593 if test -s conftest.err; then
8594 ac_cpp_err=$ac_c_preproc_warn_flag
8595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8602 if test -z "$ac_cpp_err"; then
8603 ac_header_preproc=yes
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_header_preproc=no
8610 rm -f conftest.err conftest.$ac_ext
8611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8612 echo "${ECHO_T}$ac_header_preproc" >&6
8614 # So? What about this header?
8615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8621 ac_header_preproc=yes
8624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8638 ## ------------------------------------------ ##
8639 ## Report this to the AC_PACKAGE_NAME lists. ##
8640 ## ------------------------------------------ ##
8643 sed "s/^/$as_me: WARNING: /" >&2
8646 echo "$as_me:$LINENO: checking for $ac_header" >&5
8647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 eval "$as_ac_Header=\$ac_header_preproc"
8653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8658 cat >>confdefs.h <<_ACEOF
8659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8689 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8690 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8691 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8695 echo "$as_me:$LINENO: checking for $ac_func" >&5
8696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8697 if eval "test \"\${$as_ac_var+set}\" = set"; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 cat >conftest.$ac_ext <<_ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8708 #define $ac_func innocuous_$ac_func
8710 /* System header to define __stub macros and hopefully few prototypes,
8711 which can conflict with char $ac_func (); below.
8712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8713 <limits.h> exists even on freestanding compilers. */
8716 # include <limits.h>
8718 # include <assert.h>
8723 /* Override any gcc2 internal prototype to avoid an error. */
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8731 /* The GNU C library defines this for functions which it implements
8732 to always fail with ENOSYS. Some functions are actually named
8733 something starting with __ and the normal name is an alias. */
8734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8737 char (*f) () = $ac_func;
8746 return f != $ac_func;
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest$ac_exeext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 eval "$as_ac_var=yes"
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 eval "$as_ac_var=no"
8779 rm -f conftest.err conftest.$ac_objext \
8780 conftest$ac_exeext conftest.$ac_ext
8782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8784 if test `eval echo '${'$as_ac_var'}'` = yes; then
8785 cat >>confdefs.h <<_ACEOF
8786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8794 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8795 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8796 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 cat >conftest.$ac_ext <<_ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8811 char *p = (char *) _snprintf;
8818 rm -f conftest.$ac_objext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8820 (eval $ac_compile) 2>conftest.er1
8822 grep -v '^ *+' conftest.er1 >conftest.err
8824 cat conftest.err >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest.$ac_objext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 ac_cv_have_decl__snprintf=yes
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_cv_have_decl__snprintf=no
8846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8848 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8849 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8850 if test $ac_cv_have_decl__snprintf = yes; then
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_DECL__SNPRINTF $gt_value
8862 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8863 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8864 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 cat >conftest.$ac_ext <<_ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8879 char *p = (char *) _snwprintf;
8886 rm -f conftest.$ac_objext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8888 (eval $ac_compile) 2>conftest.er1
8890 grep -v '^ *+' conftest.er1 >conftest.err
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; } &&
8901 { ac_try='test -s conftest.$ac_objext'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8907 ac_cv_have_decl__snwprintf=yes
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 ac_cv_have_decl__snwprintf=no
8914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8916 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8917 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8918 if test $ac_cv_have_decl__snwprintf = yes; then
8924 cat >>confdefs.h <<_ACEOF
8925 #define HAVE_DECL__SNWPRINTF $gt_value
8931 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8932 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8933 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 cat >conftest.$ac_ext <<_ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8947 #ifndef feof_unlocked
8948 char *p = (char *) feof_unlocked;
8955 rm -f conftest.$ac_objext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8957 (eval $ac_compile) 2>conftest.er1
8959 grep -v '^ *+' conftest.er1 >conftest.err
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } &&
8964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try='test -s conftest.$ac_objext'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; }; then
8976 ac_cv_have_decl_feof_unlocked=yes
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8981 ac_cv_have_decl_feof_unlocked=no
8983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8985 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8986 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8987 if test $ac_cv_have_decl_feof_unlocked = yes; then
8993 cat >>confdefs.h <<_ACEOF
8994 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8999 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9000 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
9001 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 cat >conftest.$ac_ext <<_ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9015 #ifndef fgets_unlocked
9016 char *p = (char *) fgets_unlocked;
9023 rm -f conftest.$ac_objext
9024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9025 (eval $ac_compile) 2>conftest.er1
9027 grep -v '^ *+' conftest.er1 >conftest.err
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; } &&
9038 { ac_try='test -s conftest.$ac_objext'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 ac_cv_have_decl_fgets_unlocked=yes
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 ac_cv_have_decl_fgets_unlocked=no
9051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9053 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9054 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
9055 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9061 cat >>confdefs.h <<_ACEOF
9062 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9067 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9068 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
9069 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 cat >conftest.$ac_ext <<_ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9083 #ifndef getc_unlocked
9084 char *p = (char *) getc_unlocked;
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093 (eval $ac_compile) 2>conftest.er1
9095 grep -v '^ *+' conftest.er1 >conftest.err
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } &&
9100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; } &&
9106 { ac_try='test -s conftest.$ac_objext'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 ac_cv_have_decl_getc_unlocked=yes
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9117 ac_cv_have_decl_getc_unlocked=no
9119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9121 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9122 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
9123 if test $ac_cv_have_decl_getc_unlocked = yes; then
9129 cat >>confdefs.h <<_ACEOF
9130 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9135 case $gt_cv_func_printf_posix in
9136 *yes) HAVE_POSIX_PRINTF=1 ;;
9137 *) HAVE_POSIX_PRINTF=0 ;;
9140 if test "$ac_cv_func_asprintf" = yes; then
9146 if test "$ac_cv_func_snprintf" = yes; then
9152 if test "$ac_cv_func_wprintf" = yes; then
9164 am_save_CPPFLAGS="$CPPFLAGS"
9166 for element in $INCICONV; do
9168 for x in $CPPFLAGS; do
9170 acl_save_prefix="$prefix"
9171 prefix="$acl_final_prefix"
9172 acl_save_exec_prefix="$exec_prefix"
9173 exec_prefix="$acl_final_exec_prefix"
9175 exec_prefix="$acl_save_exec_prefix"
9176 prefix="$acl_save_prefix"
9178 if test "X$x" = "X$element"; then
9183 if test -z "$haveit"; then
9184 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9189 echo "$as_me:$LINENO: checking for iconv" >&5
9190 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9191 if test "${am_cv_func_iconv+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 am_cv_func_iconv="no, consider installing GNU libiconv"
9197 cat >conftest.$ac_ext <<_ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9208 iconv_t cd = iconv_open("","");
9209 iconv(cd,NULL,NULL,NULL,NULL);
9215 rm -f conftest.$ac_objext conftest$ac_exeext
9216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9217 (eval $ac_link) 2>conftest.er1
9219 grep -v '^ *+' conftest.er1 >conftest.err
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } &&
9224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest$ac_exeext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 am_cv_func_iconv=yes
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9242 rm -f conftest.err conftest.$ac_objext \
9243 conftest$ac_exeext conftest.$ac_ext
9244 if test "$am_cv_func_iconv" != yes; then
9245 am_save_LIBS="$LIBS"
9246 LIBS="$LIBS $LIBICONV"
9247 cat >conftest.$ac_ext <<_ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h. */
9258 iconv_t cd = iconv_open("","");
9259 iconv(cd,NULL,NULL,NULL,NULL);
9265 rm -f conftest.$ac_objext conftest$ac_exeext
9266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9267 (eval $ac_link) 2>conftest.er1
9269 grep -v '^ *+' conftest.er1 >conftest.err
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } &&
9274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; } &&
9280 { ac_try='test -s conftest$ac_exeext'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9287 am_cv_func_iconv=yes
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9293 rm -f conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 LIBS="$am_save_LIBS"
9299 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9300 echo "${ECHO_T}$am_cv_func_iconv" >&6
9301 if test "$am_cv_func_iconv" = yes; then
9303 cat >>confdefs.h <<\_ACEOF
9304 #define HAVE_ICONV 1
9308 if test "$am_cv_lib_iconv" = yes; then
9309 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9310 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9311 echo "$as_me:$LINENO: result: $LIBICONV" >&5
9312 echo "${ECHO_T}$LIBICONV" >&6
9314 CPPFLAGS="$am_save_CPPFLAGS"
9321 if test "$am_cv_func_iconv" = yes; then
9322 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9323 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9324 if test "${am_cv_proto_iconv+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 cat >conftest.$ac_ext <<_ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9341 #if defined(__STDC__) || defined(__cplusplus)
9342 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>conftest.er1
9359 grep -v '^ *+' conftest.er1 >conftest.err
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; } &&
9370 { ac_try='test -s conftest.$ac_objext'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 am_cv_proto_iconv_arg1=""
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 am_cv_proto_iconv_arg1="const"
9383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9384 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);"
9387 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9388 echo "$as_me:$LINENO: result: ${ac_t:-
9389 }$am_cv_proto_iconv" >&5
9390 echo "${ECHO_T}${ac_t:-
9391 }$am_cv_proto_iconv" >&6
9393 cat >>confdefs.h <<_ACEOF
9394 #define ICONV_CONST $am_cv_proto_iconv_arg1
9400 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9401 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9402 if test "${am_cv_langinfo_codeset+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 cat >conftest.$ac_ext <<_ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 #include <langinfo.h>
9415 char* cs = nl_langinfo(CODESET);
9420 rm -f conftest.$ac_objext conftest$ac_exeext
9421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9422 (eval $ac_link) 2>conftest.er1
9424 grep -v '^ *+' conftest.er1 >conftest.err
9426 cat conftest.err >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } &&
9429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; } &&
9435 { ac_try='test -s conftest$ac_exeext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 am_cv_langinfo_codeset=yes
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9446 am_cv_langinfo_codeset=no
9448 rm -f conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
9452 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9453 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9454 if test $am_cv_langinfo_codeset = yes; then
9456 cat >>confdefs.h <<\_ACEOF
9457 #define HAVE_LANGINFO_CODESET 1
9462 if test $ac_cv_header_locale_h = yes; then
9464 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9465 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9466 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 cat >conftest.$ac_ext <<_ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9484 rm -f conftest.$ac_objext conftest$ac_exeext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9486 (eval $ac_link) 2>conftest.er1
9488 grep -v '^ *+' conftest.er1 >conftest.err
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; } &&
9499 { ac_try='test -s conftest$ac_exeext'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 am_cv_val_LC_MESSAGES=yes
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9510 am_cv_val_LC_MESSAGES=no
9512 rm -f conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9515 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9516 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9517 if test $am_cv_val_LC_MESSAGES = yes; then
9519 cat >>confdefs.h <<\_ACEOF
9520 #define HAVE_LC_MESSAGES 1
9527 for ac_prog in bison
9529 # Extract the first word of "$ac_prog", so it can be a program name with args.
9530 set dummy $ac_prog; ac_word=$2
9531 echo "$as_me:$LINENO: checking for $ac_word" >&5
9532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9533 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 if test -n "$INTLBISON"; then
9537 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543 test -z "$as_dir" && as_dir=.
9544 for ac_exec_ext in '' $ac_executable_extensions; do
9545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9546 ac_cv_prog_INTLBISON="$ac_prog"
9547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9555 INTLBISON=$ac_cv_prog_INTLBISON
9556 if test -n "$INTLBISON"; then
9557 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9558 echo "${ECHO_T}$INTLBISON" >&6
9560 echo "$as_me:$LINENO: result: no" >&5
9561 echo "${ECHO_T}no" >&6
9564 test -n "$INTLBISON" && break
9567 if test -z "$INTLBISON"; then
9570 echo "$as_me:$LINENO: checking version of bison" >&5
9571 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9572 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9573 case $ac_prog_version in
9574 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9575 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9576 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9577 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9579 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9580 echo "${ECHO_T}$ac_prog_version" >&6
9582 if test $ac_verc_fail = yes; then
9601 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9602 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9603 # Check whether --enable-nls or --disable-nls was given.
9604 if test "${enable_nls+set}" = set; then
9605 enableval="$enable_nls"
9610 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9611 echo "${ECHO_T}$USE_NLS" >&6
9616 BUILD_INCLUDED_LIBINTL=no
9617 USE_INCLUDED_LIBINTL=no
9623 if test "$USE_NLS" = "yes"; then
9624 gt_use_preinstalled_gnugettext=no
9626 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9627 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9629 # Check whether --with-included-gettext or --without-included-gettext was given.
9630 if test "${with_included_gettext+set}" = set; then
9631 withval="$with_included_gettext"
9632 nls_cv_force_use_gnu_gettext=$withval
9634 nls_cv_force_use_gnu_gettext=no
9636 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9637 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9639 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9640 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9647 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9648 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9649 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 cat >conftest.$ac_ext <<_ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658 #include <libintl.h>
9659 extern int _nl_msg_cat_cntr;
9660 extern int *_nl_domain_bindings;
9664 bindtextdomain ("", "");
9665 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9672 (eval $ac_link) 2>conftest.er1
9674 grep -v '^ *+' conftest.er1 >conftest.err
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest$ac_exeext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 gt_cv_func_gnugettext1_libc=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 gt_cv_func_gnugettext1_libc=no
9698 rm -f conftest.err conftest.$ac_objext \
9699 conftest$ac_exeext conftest.$ac_ext
9701 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9702 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9704 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9710 acl_save_prefix="$prefix"
9711 prefix="$acl_final_prefix"
9712 acl_save_exec_prefix="$exec_prefix"
9713 exec_prefix="$acl_final_exec_prefix"
9715 eval additional_includedir=\"$includedir\"
9716 eval additional_libdir=\"$libdir\"
9718 exec_prefix="$acl_save_exec_prefix"
9719 prefix="$acl_save_prefix"
9722 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9723 if test "${with_libintl_prefix+set}" = set; then
9724 withval="$with_libintl_prefix"
9726 if test "X$withval" = "Xno"; then
9729 if test "X$withval" = "X"; then
9731 acl_save_prefix="$prefix"
9732 prefix="$acl_final_prefix"
9733 acl_save_exec_prefix="$exec_prefix"
9734 exec_prefix="$acl_final_exec_prefix"
9736 eval additional_includedir=\"$includedir\"
9737 eval additional_libdir=\"$libdir\"
9739 exec_prefix="$acl_save_exec_prefix"
9740 prefix="$acl_save_prefix"
9743 additional_includedir="$withval/include"
9744 additional_libdir="$withval/lib"
9754 names_already_handled=
9755 names_next_round='intl '
9756 while test -n "$names_next_round"; do
9757 names_this_round="$names_next_round"
9759 for name in $names_this_round; do
9761 for n in $names_already_handled; do
9762 if test "$n" = "$name"; then
9767 if test -z "$already_handled"; then
9768 names_already_handled="$names_already_handled $name"
9769 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9770 eval value=\"\$HAVE_LIB$uppername\"
9771 if test -n "$value"; then
9772 if test "$value" = yes; then
9773 eval value=\"\$LIB$uppername\"
9774 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9775 eval value=\"\$LTLIB$uppername\"
9776 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9785 if test $use_additional = yes; then
9786 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9787 found_dir="$additional_libdir"
9788 found_so="$additional_libdir/lib$name.$shlibext"
9789 if test -f "$additional_libdir/lib$name.la"; then
9790 found_la="$additional_libdir/lib$name.la"
9793 if test -f "$additional_libdir/lib$name.$libext"; then
9794 found_dir="$additional_libdir"
9795 found_a="$additional_libdir/lib$name.$libext"
9796 if test -f "$additional_libdir/lib$name.la"; then
9797 found_la="$additional_libdir/lib$name.la"
9802 if test "X$found_dir" = "X"; then
9803 for x in $LDFLAGS $LTLIBINTL; do
9805 acl_save_prefix="$prefix"
9806 prefix="$acl_final_prefix"
9807 acl_save_exec_prefix="$exec_prefix"
9808 exec_prefix="$acl_final_exec_prefix"
9810 exec_prefix="$acl_save_exec_prefix"
9811 prefix="$acl_save_prefix"
9815 dir=`echo "X$x" | sed -e 's/^X-L//'`
9816 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9818 found_so="$dir/lib$name.$shlibext"
9819 if test -f "$dir/lib$name.la"; then
9820 found_la="$dir/lib$name.la"
9823 if test -f "$dir/lib$name.$libext"; then
9825 found_a="$dir/lib$name.$libext"
9826 if test -f "$dir/lib$name.la"; then
9827 found_la="$dir/lib$name.la"
9833 if test "X$found_dir" != "X"; then
9838 if test "X$found_dir" != "X"; then
9839 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9840 if test "X$found_so" != "X"; then
9841 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9842 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9845 for x in $ltrpathdirs; do
9846 if test "X$x" = "X$found_dir"; then
9851 if test -z "$haveit"; then
9852 ltrpathdirs="$ltrpathdirs $found_dir"
9854 if test "$hardcode_direct" = yes; then
9855 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9857 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9858 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9860 for x in $rpathdirs; do
9861 if test "X$x" = "X$found_dir"; then
9866 if test -z "$haveit"; then
9867 rpathdirs="$rpathdirs $found_dir"
9871 for x in $LDFLAGS $LIBINTL; do
9873 acl_save_prefix="$prefix"
9874 prefix="$acl_final_prefix"
9875 acl_save_exec_prefix="$exec_prefix"
9876 exec_prefix="$acl_final_exec_prefix"
9878 exec_prefix="$acl_save_exec_prefix"
9879 prefix="$acl_save_prefix"
9881 if test "X$x" = "X-L$found_dir"; then
9886 if test -z "$haveit"; then
9887 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9889 if test "$hardcode_minus_L" != no; then
9890 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9892 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9898 if test "X$found_a" != "X"; then
9899 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9901 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9904 additional_includedir=
9905 case "$found_dir" in
9907 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9908 additional_includedir="$basedir/include"
9911 if test "X$additional_includedir" != "X"; then
9912 if test "X$additional_includedir" != "X/usr/include"; then
9914 if test "X$additional_includedir" = "X/usr/local/include"; then
9915 if test -n "$GCC"; then
9917 linux*) haveit=yes;;
9921 if test -z "$haveit"; then
9922 for x in $CPPFLAGS $INCINTL; do
9924 acl_save_prefix="$prefix"
9925 prefix="$acl_final_prefix"
9926 acl_save_exec_prefix="$exec_prefix"
9927 exec_prefix="$acl_final_exec_prefix"
9929 exec_prefix="$acl_save_exec_prefix"
9930 prefix="$acl_save_prefix"
9932 if test "X$x" = "X-I$additional_includedir"; then
9937 if test -z "$haveit"; then
9938 if test -d "$additional_includedir"; then
9939 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9945 if test -n "$found_la"; then
9946 save_libdir="$libdir"
9948 */* | *\\*) . "$found_la" ;;
9949 *) . "./$found_la" ;;
9951 libdir="$save_libdir"
9952 for dep in $dependency_libs; do
9955 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9956 if test "X$additional_libdir" != "X/usr/lib"; then
9958 if test "X$additional_libdir" = "X/usr/local/lib"; then
9959 if test -n "$GCC"; then
9961 linux*) haveit=yes;;
9965 if test -z "$haveit"; then
9967 for x in $LDFLAGS $LIBINTL; do
9969 acl_save_prefix="$prefix"
9970 prefix="$acl_final_prefix"
9971 acl_save_exec_prefix="$exec_prefix"
9972 exec_prefix="$acl_final_exec_prefix"
9974 exec_prefix="$acl_save_exec_prefix"
9975 prefix="$acl_save_prefix"
9977 if test "X$x" = "X-L$additional_libdir"; then
9982 if test -z "$haveit"; then
9983 if test -d "$additional_libdir"; then
9984 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9988 for x in $LDFLAGS $LTLIBINTL; do
9990 acl_save_prefix="$prefix"
9991 prefix="$acl_final_prefix"
9992 acl_save_exec_prefix="$exec_prefix"
9993 exec_prefix="$acl_final_exec_prefix"
9995 exec_prefix="$acl_save_exec_prefix"
9996 prefix="$acl_save_prefix"
9998 if test "X$x" = "X-L$additional_libdir"; then
10003 if test -z "$haveit"; then
10004 if test -d "$additional_libdir"; then
10005 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10012 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10013 if test "$enable_rpath" != no; then
10015 for x in $rpathdirs; do
10016 if test "X$x" = "X$dir"; then
10021 if test -z "$haveit"; then
10022 rpathdirs="$rpathdirs $dir"
10025 for x in $ltrpathdirs; do
10026 if test "X$x" = "X$dir"; then
10031 if test -z "$haveit"; then
10032 ltrpathdirs="$ltrpathdirs $dir"
10037 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10040 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10043 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10044 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10050 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10051 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10057 if test "X$rpathdirs" != "X"; then
10058 if test -n "$hardcode_libdir_separator"; then
10060 for found_dir in $rpathdirs; do
10061 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10063 acl_save_libdir="$libdir"
10065 eval flag=\"$hardcode_libdir_flag_spec\"
10066 libdir="$acl_save_libdir"
10067 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10069 for found_dir in $rpathdirs; do
10070 acl_save_libdir="$libdir"
10071 libdir="$found_dir"
10072 eval flag=\"$hardcode_libdir_flag_spec\"
10073 libdir="$acl_save_libdir"
10074 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10078 if test "X$ltrpathdirs" != "X"; then
10079 for found_dir in $ltrpathdirs; do
10080 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10084 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10085 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
10086 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 gt_save_CPPFLAGS="$CPPFLAGS"
10090 CPPFLAGS="$CPPFLAGS $INCINTL"
10091 gt_save_LIBS="$LIBS"
10092 LIBS="$LIBS $LIBINTL"
10093 cat >conftest.$ac_ext <<_ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10099 #include <libintl.h>
10100 extern int _nl_msg_cat_cntr;
10105 const char *_nl_expand_alias ();
10109 bindtextdomain ("", "");
10110 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10115 rm -f conftest.$ac_objext conftest$ac_exeext
10116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10117 (eval $ac_link) 2>conftest.er1
10119 grep -v '^ *+' conftest.er1 >conftest.err
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
10124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 gt_cv_func_gnugettext1_libintl=yes
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 gt_cv_func_gnugettext1_libintl=no
10143 rm -f conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10146 LIBS="$LIBS $LIBICONV"
10147 cat >conftest.$ac_ext <<_ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10153 #include <libintl.h>
10154 extern int _nl_msg_cat_cntr;
10159 const char *_nl_expand_alias ();
10163 bindtextdomain ("", "");
10164 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171 (eval $ac_link) 2>conftest.er1
10173 grep -v '^ *+' conftest.er1 >conftest.err
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; } &&
10184 { ac_try='test -s conftest$ac_exeext'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10190 LIBINTL="$LIBINTL $LIBICONV"
10191 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10192 gt_cv_func_gnugettext1_libintl=yes
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10199 rm -f conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10202 CPPFLAGS="$gt_save_CPPFLAGS"
10203 LIBS="$gt_save_LIBS"
10205 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10206 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
10209 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10210 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10211 && test "$PACKAGE" != gettext-runtime \
10212 && test "$PACKAGE" != gettext-tools; }; then
10213 gt_use_preinstalled_gnugettext=yes
10221 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10222 nls_cv_use_gnu_gettext=yes
10226 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10227 BUILD_INCLUDED_LIBINTL=yes
10228 USE_INCLUDED_LIBINTL=yes
10229 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10230 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10231 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10234 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10235 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10240 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10241 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10243 cat >>confdefs.h <<\_ACEOF
10244 #define ENABLE_NLS 1
10252 echo "$as_me:$LINENO: checking whether to use NLS" >&5
10253 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
10254 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10255 echo "${ECHO_T}$USE_NLS" >&6
10256 if test "$USE_NLS" = "yes"; then
10257 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10258 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
10259 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10260 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10261 gt_source="external libintl"
10266 gt_source="included intl directory"
10268 echo "$as_me:$LINENO: result: $gt_source" >&5
10269 echo "${ECHO_T}$gt_source" >&6
10272 if test "$USE_NLS" = "yes"; then
10274 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10275 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10276 echo "$as_me:$LINENO: checking how to link with libintl" >&5
10277 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
10278 echo "$as_me:$LINENO: result: $LIBINTL" >&5
10279 echo "${ECHO_T}$LIBINTL" >&6
10281 for element in $INCINTL; do
10283 for x in $CPPFLAGS; do
10285 acl_save_prefix="$prefix"
10286 prefix="$acl_final_prefix"
10287 acl_save_exec_prefix="$exec_prefix"
10288 exec_prefix="$acl_final_exec_prefix"
10290 exec_prefix="$acl_save_exec_prefix"
10291 prefix="$acl_save_prefix"
10293 if test "X$x" = "X$element"; then
10298 if test -z "$haveit"; then
10299 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10306 cat >>confdefs.h <<\_ACEOF
10307 #define HAVE_GETTEXT 1
10311 cat >>confdefs.h <<\_ACEOF
10312 #define HAVE_DCGETTEXT 1
10321 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10322 BUILD_INCLUDED_LIBINTL=yes
10329 nls_cv_header_intl=
10330 nls_cv_header_libgt=
10341 if test "$USE_INCLUDED_LIBINTL" = yes; then
10342 INTLOBJS="\$(GETTOBJS)"
10346 INTL_LIBTOOL_SUFFIX_PREFIX=
10350 INTLLIBS="$LIBINTL"
10359 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
10360 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
10361 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 ac_check_lib_save_LIBS=$LIBS
10365 LIBS="-lncurses $LIBS"
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10373 /* Override any gcc2 internal prototype to avoid an error. */
10377 /* We use char because int might match the return type of a gcc2
10378 builtin and then its argument prototype would still apply. */
10388 rm -f conftest.$ac_objext conftest$ac_exeext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390 (eval $ac_link) 2>conftest.er1
10392 grep -v '^ *+' conftest.er1 >conftest.err
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_lib_ncurses_initscr=yes
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_cv_lib_ncurses_initscr=no
10416 rm -f conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418 LIBS=$ac_check_lib_save_LIBS
10420 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
10421 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
10422 if test $ac_cv_lib_ncurses_initscr = yes; then
10423 cat >>confdefs.h <<_ACEOF
10424 #define HAVE_LIBNCURSES 1
10427 LIBS="-lncurses $LIBS"
10433 if test "$NOCURSES" = yes; then
10435 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
10436 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
10437 if test "${ac_cv_lib_curses_initscr+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 ac_check_lib_save_LIBS=$LIBS
10441 LIBS="-lcurses $LIBS"
10442 cat >conftest.$ac_ext <<_ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10449 /* Override any gcc2 internal prototype to avoid an error. */
10453 /* We use char because int might match the return type of a gcc2
10454 builtin and then its argument prototype would still apply. */
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>conftest.er1
10468 grep -v '^ *+' conftest.er1 >conftest.err
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; } &&
10479 { ac_try='test -s conftest$ac_exeext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_cv_lib_curses_initscr=yes
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ac_cv_lib_curses_initscr=no
10492 rm -f conftest.err conftest.$ac_objext \
10493 conftest$ac_exeext conftest.$ac_ext
10494 LIBS=$ac_check_lib_save_LIBS
10496 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
10497 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
10498 if test $ac_cv_lib_curses_initscr = yes; then
10499 cat >>confdefs.h <<_ACEOF
10500 #define HAVE_LIBCURSES 1
10503 LIBS="-lcurses $LIBS"
10506 { { echo "$as_me:$LINENO: error: ap-utils requires installed ncurses or Sys V curses to build" >&5
10507 echo "$as_me: error: ap-utils requires installed ncurses or Sys V curses to build" >&2;}
10508 { (exit 1); exit 1; }; }
10513 # Check for OS and make OS define OS specific variables
10517 cat >>confdefs.h <<\_ACEOF
10523 ap_config_LDADD="-lncurses"
10524 CC="$CC -R/usr/pkg/lib -L/usr/pkg/lib -I/usr/pkg/include"
10530 cat >>confdefs.h <<\_ACEOF
10538 LIBS="$LIBS -lsocket"
10539 INSTALL="config/install-sh"
10544 CC="$CC -qcpluscmt -qmaxmem=16384"
10549 cat >>confdefs.h <<\_ACEOF
10550 #define OS_SOLARIS 1
10553 LIBS="$LIBS -lresolv -lnls"
10557 cat >>confdefs.h <<\_ACEOF
10561 CFLAGS="$CFLAGS -Wall -W"
10565 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10566 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10567 if test "${ac_cv_c_bigendian+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 # See if sys/param.h defines the BYTE_ORDER macro.
10571 cat >conftest.$ac_ext <<_ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 #include <sys/types.h>
10578 #include <sys/param.h>
10583 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10584 bogus endian macros
10591 rm -f conftest.$ac_objext
10592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10593 (eval $ac_compile) 2>conftest.er1
10595 grep -v '^ *+' conftest.er1 >conftest.err
10597 cat conftest.err >&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } &&
10600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try='test -s conftest.$ac_objext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 # It does; now see whether it defined to BIG_ENDIAN or not.
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 #include <sys/types.h>
10620 #include <sys/param.h>
10625 #if BYTE_ORDER != BIG_ENDIAN
10633 rm -f conftest.$ac_objext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10635 (eval $ac_compile) 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 ac_cv_c_bigendian=yes
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 ac_cv_c_bigendian=no
10661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 # It does not; compile a test program.
10667 if test "$cross_compiling" = yes; then
10668 # try to guess the endianness by grepping values into an object file
10669 ac_cv_c_bigendian=unknown
10670 cat >conftest.$ac_ext <<_ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10677 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10678 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10679 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10680 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10681 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10685 _ascii (); _ebcdic ();
10690 rm -f conftest.$ac_objext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10692 (eval $ac_compile) 2>conftest.er1
10694 grep -v '^ *+' conftest.er1 >conftest.err
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; } &&
10705 { ac_try='test -s conftest.$ac_objext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10712 ac_cv_c_bigendian=yes
10714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10715 if test "$ac_cv_c_bigendian" = unknown; then
10716 ac_cv_c_bigendian=no
10718 # finding both strings is unlikely to happen, but who knows?
10719 ac_cv_c_bigendian=unknown
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10729 cat >conftest.$ac_ext <<_ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10738 /* Are we little or big endian? From Harbison&Steele. */
10742 char c[sizeof (long)];
10745 exit (u.c[sizeof (long) - 1] == 1);
10748 rm -f conftest$ac_exeext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10750 (eval $ac_link) 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 ac_cv_c_bigendian=no
10761 echo "$as_me: program exited with status $ac_status" >&5
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 ( exit $ac_status )
10766 ac_cv_c_bigendian=yes
10768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10773 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10774 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10775 case $ac_cv_c_bigendian in
10778 cat >>confdefs.h <<\_ACEOF
10779 #define WORDS_BIGENDIAN 1
10785 { { echo "$as_me:$LINENO: error: unknown endianness
10786 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10787 echo "$as_me: error: unknown endianness
10788 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10789 { (exit 1); exit 1; }; } ;;
10793 # Check whether --enable-regdomain or --disable-regdomain was given.
10794 if test "${enable_regdomain+set}" = set; then
10795 enableval="$enable_regdomain"
10796 case "$enableval" in
10799 cat >>confdefs.h <<\_ACEOF
10800 #define NO_REG_DOMAIN 1
10808 ac_config_files="$ac_config_files Makefile src/Makefile ap-gl/Makefile lib/Makefile po/Makefile.in intl/Makefile Documentation/Makefile"
10809 cat >confcache <<\_ACEOF
10810 # This file is a shell script that caches the results of configure
10811 # tests run on this system so they can be shared between configure
10812 # scripts and configure runs, see configure's option --config-cache.
10813 # It is not useful on other systems. If it contains results you don't
10814 # want to keep, you may remove or edit it.
10816 # config.status only pays attention to the cache file if you give it
10817 # the --recheck option to rerun configure.
10819 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10820 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10821 # following values.
10825 # The following way of writing the cache mishandles newlines in values,
10826 # but we know of no workaround that is simple, portable, and efficient.
10827 # So, don't put newlines in cache variables' values.
10828 # Ultrix sh set writes to stderr and can't be redirected directly,
10829 # and sets the high bit in the cache file unless we assign to the vars.
10832 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10834 # `set' does not quote correctly, so add quotes (double-quote
10835 # substitution turns \\\\ into \\, and sed turns \\ into \).
10838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10841 # `set' quotes correctly as required by POSIX, so do not add quotes.
10843 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10850 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10852 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10854 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10855 if test -w $cache_file; then
10856 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10857 cat confcache >$cache_file
10859 echo "not updating unwritable cache $cache_file"
10864 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10865 # Let make expand exec_prefix.
10866 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10868 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10869 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10870 # trailing colons and then remove the whole line if VPATH becomes empty
10871 # (actually we leave an empty line to preserve line numbers).
10872 if test "x$srcdir" = x.; then
10873 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10874 s/:*\$(srcdir):*/:/;
10875 s/:*\${srcdir}:*/:/;
10877 s/^\([^=]*=[ ]*\):*/\1/;
10883 DEFS=-DHAVE_CONFIG_H
10887 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10888 # 1. Remove the extension, and $U if already installed.
10889 ac_i=`echo "$ac_i" |
10890 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10892 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10893 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10895 LIBOBJS=$ac_libobjs
10897 LTLIBOBJS=$ac_ltlibobjs
10900 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10901 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10902 Usually this means the macro was only invoked conditionally." >&5
10903 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10904 Usually this means the macro was only invoked conditionally." >&2;}
10905 { (exit 1); exit 1; }; }
10907 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10908 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10909 Usually this means the macro was only invoked conditionally." >&5
10910 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10911 Usually this means the macro was only invoked conditionally." >&2;}
10912 { (exit 1); exit 1; }; }
10915 : ${CONFIG_STATUS=./config.status}
10916 ac_clean_files_save=$ac_clean_files
10917 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10918 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10919 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10920 cat >$CONFIG_STATUS <<_ACEOF
10922 # Generated by $as_me.
10923 # Run this file to recreate the current configuration.
10924 # Compiler output produced by configure, useful for debugging
10925 # configure, is in config.log if it exists.
10928 ac_cs_recheck=false
10930 SHELL=\${CONFIG_SHELL-$SHELL}
10933 cat >>$CONFIG_STATUS <<\_ACEOF
10934 ## --------------------- ##
10935 ## M4sh Initialization. ##
10936 ## --------------------- ##
10938 # Be Bourne compatible
10939 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10942 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10943 # is contrary to our usage. Disable this feature.
10944 alias -g '${1+"$@"}'='"$@"'
10945 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10948 DUALCASE=1; export DUALCASE # for MKS sh
10950 # Support unset when possible.
10951 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10958 # Work around bugs in pre-3.0 UWIN ksh.
10959 $as_unset ENV MAIL MAILPATH
10966 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10967 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10968 LC_TELEPHONE LC_TIME
10970 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10971 eval $as_var=C; export $as_var
10977 # Required to use basename.
10978 if expr a : '\(a\)' >/dev/null 2>&1; then
10984 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10985 as_basename=basename
10991 # Name of the executable.
10992 as_me=`$as_basename "$0" ||
10993 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10994 X"$0" : 'X\(//\)$' \| \
10995 X"$0" : 'X\(/\)$' \| \
10996 . : '\(.\)' 2>/dev/null ||
10998 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10999 /^X\/\(\/\/\)$/{ s//\1/; q; }
11000 /^X\/\(\/\).*/{ s//\1/; q; }
11004 # PATH needs CR, and LINENO needs CR and PATH.
11005 # Avoid depending upon Character Ranges.
11006 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11007 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11008 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11009 as_cr_digits='0123456789'
11010 as_cr_alnum=$as_cr_Letters$as_cr_digits
11012 # The user is always right.
11013 if test "${PATH_SEPARATOR+set}" != set; then
11014 echo "#! /bin/sh" >conf$$.sh
11015 echo "exit 0" >>conf$$.sh
11017 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11026 as_lineno_1=$LINENO
11027 as_lineno_2=$LINENO
11028 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11029 test "x$as_lineno_1" != "x$as_lineno_2" &&
11030 test "x$as_lineno_3" = "x$as_lineno_2" || {
11031 # Find who we are. Look in the path if we contain no path at all
11034 *[\\/]* ) as_myself=$0 ;;
11035 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11039 test -z "$as_dir" && as_dir=.
11040 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11045 # We did not find ourselves, most probably we were run as `sh COMMAND'
11046 # in which case we are not to be found in the path.
11047 if test "x$as_myself" = x; then
11050 if test ! -f "$as_myself"; then
11051 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11052 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11053 { (exit 1); exit 1; }; }
11055 case $CONFIG_SHELL in
11057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11061 test -z "$as_dir" && as_dir=.
11062 for as_base in sh bash ksh sh5; do
11065 if ("$as_dir/$as_base" -c '
11066 as_lineno_1=$LINENO
11067 as_lineno_2=$LINENO
11068 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11069 test "x$as_lineno_1" != "x$as_lineno_2" &&
11070 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11071 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11072 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11073 CONFIG_SHELL=$as_dir/$as_base
11074 export CONFIG_SHELL
11075 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11083 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11084 # uniformly replaced by the line number. The first 'sed' inserts a
11085 # line-number line before each line; the second 'sed' does the real
11086 # work. The second script uses 'N' to pair each line-number line
11087 # with the numbered line, and appends trailing '-' during
11088 # substitution so that $LINENO is not a special case at line end.
11089 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11090 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11091 sed '=' <$as_myself |
11096 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11099 s,^['$as_cr_digits']*\n,,
11100 ' >$as_me.lineno &&
11101 chmod +x $as_me.lineno ||
11102 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11103 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11104 { (exit 1); exit 1; }; }
11106 # Don't try to exec as it changes $[0], causing all sort of problems
11107 # (the dirname of $[0] is not the place where we might find the
11108 # original and so on. Autoconf is especially sensible to this).
11110 # Exit status is that of the last command.
11115 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11116 *c*,-n*) ECHO_N= ECHO_C='
11118 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11119 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11122 if expr a : '\(a\)' >/dev/null 2>&1; then
11128 rm -f conf$$ conf$$.exe conf$$.file
11130 if ln -s conf$$.file conf$$ 2>/dev/null; then
11131 # We could just check for DJGPP; but this test a) works b) is more generic
11132 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11133 if test -f conf$$.exe; then
11134 # Don't use ln at all; we don't have any links
11139 elif ln conf$$.file conf$$ 2>/dev/null; then
11144 rm -f conf$$ conf$$.exe conf$$.file
11146 if mkdir -p . 2>/dev/null; then
11149 test -d ./-p && rmdir ./-p
11153 as_executable_p="test -f"
11155 # Sed expression to map a string onto a valid CPP name.
11156 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11158 # Sed expression to map a string onto a valid variable name.
11159 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11163 # We need space, tab and new line, in precisely that order.
11173 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11174 # report actual input values of CONFIG_FILES etc. instead of their
11175 # values after options handling. Logging --version etc. is OK.
11179 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11180 ## Running $as_me. ##
11185 This file was extended by $as_me, which was
11186 generated by GNU Autoconf 2.59. Invocation command line was
11188 CONFIG_FILES = $CONFIG_FILES
11189 CONFIG_HEADERS = $CONFIG_HEADERS
11190 CONFIG_LINKS = $CONFIG_LINKS
11191 CONFIG_COMMANDS = $CONFIG_COMMANDS
11195 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11199 # Files that config.status was made for.
11200 if test -n "$ac_config_files"; then
11201 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11204 if test -n "$ac_config_headers"; then
11205 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11208 if test -n "$ac_config_links"; then
11209 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11212 if test -n "$ac_config_commands"; then
11213 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11216 cat >>$CONFIG_STATUS <<\_ACEOF
11219 \`$as_me' instantiates files from templates according to the
11220 current configuration.
11222 Usage: $0 [OPTIONS] [FILE]...
11224 -h, --help print this help, then exit
11225 -V, --version print version number, then exit
11226 -q, --quiet do not print progress messages
11227 -d, --debug don't remove temporary files
11228 --recheck update $as_me by reconfiguring in the same conditions
11229 --file=FILE[:TEMPLATE]
11230 instantiate the configuration file FILE
11231 --header=FILE[:TEMPLATE]
11232 instantiate the configuration header FILE
11234 Configuration files:
11237 Configuration headers:
11240 Configuration commands:
11243 Report bugs to <bug-autoconf@gnu.org>."
11246 cat >>$CONFIG_STATUS <<_ACEOF
11249 configured by $0, generated by GNU Autoconf 2.59,
11250 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11252 Copyright (C) 2003 Free Software Foundation, Inc.
11253 This config.status script is free software; the Free Software Foundation
11254 gives unlimited permission to copy, distribute and modify it."
11259 cat >>$CONFIG_STATUS <<\_ACEOF
11260 # If no file are specified by the user, then we need to provide default
11261 # value. By we need to know if files were specified by the user.
11267 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11268 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11276 *) # This is not an option, so the user has probably given explicit
11279 ac_need_defaults=false;;
11283 # Handling of the options.
11285 cat >>$CONFIG_STATUS <<\_ACEOF
11286 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11288 --version | --vers* | -V )
11289 echo "$ac_cs_version"; exit 0 ;;
11291 # Conflict between --help and --header
11292 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11293 Try \`$0 --help' for more information." >&5
11294 echo "$as_me: error: ambiguous option: $1
11295 Try \`$0 --help' for more information." >&2;}
11296 { (exit 1); exit 1; }; };;
11297 --help | --hel | -h )
11298 echo "$ac_cs_usage"; exit 0 ;;
11299 --debug | --d* | -d )
11301 --file | --fil | --fi | --f )
11303 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11304 ac_need_defaults=false;;
11305 --header | --heade | --head | --hea )
11307 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11308 ac_need_defaults=false;;
11309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11310 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11313 # This is an error.
11314 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11315 Try \`$0 --help' for more information." >&5
11316 echo "$as_me: error: unrecognized option: $1
11317 Try \`$0 --help' for more information." >&2;}
11318 { (exit 1); exit 1; }; } ;;
11320 *) ac_config_targets="$ac_config_targets $1" ;;
11326 ac_configure_extra_args=
11328 if $ac_cs_silent; then
11330 ac_configure_extra_args="$ac_configure_extra_args --silent"
11334 cat >>$CONFIG_STATUS <<_ACEOF
11335 if \$ac_cs_recheck; then
11336 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11337 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11342 cat >>$CONFIG_STATUS <<_ACEOF
11344 # INIT-COMMANDS section.
11347 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11348 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11349 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11351 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11352 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11353 LINGUAS="${LINGUAS-%UNSET%}"
11360 cat >>$CONFIG_STATUS <<\_ACEOF
11361 for ac_config_target in $ac_config_targets
11363 case "$ac_config_target" in
11364 # Handling of arguments.
11365 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11366 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11367 "ap-gl/Makefile" ) CONFIG_FILES="$CONFIG_FILES ap-gl/Makefile" ;;
11368 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11369 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11370 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
11371 "Documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES Documentation/Makefile" ;;
11372 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11373 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11374 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11375 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11376 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11377 { (exit 1); exit 1; }; };;
11381 # If the user did not use the arguments to specify the items to instantiate,
11382 # then the envvar interface is used. Set only those that are not.
11383 # We use the long form for the default assignment because of an extremely
11384 # bizarre bug on SunOS 4.1.3.
11385 if $ac_need_defaults; then
11386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11388 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11391 # Have a temporary directory for convenience. Make it in the build tree
11392 # simply because there is no reason to put it here, and in addition,
11393 # creating and moving files from /tmp can sometimes cause problems.
11394 # Create a temporary directory, and hook for its removal unless debugging.
11397 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11398 trap '{ (exit 1); exit 1; }' 1 2 13 15
11401 # Create a (secure) tmp directory for tmp files.
11404 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11405 test -n "$tmp" && test -d "$tmp"
11408 tmp=./confstat$$-$RANDOM
11409 (umask 077 && mkdir $tmp)
11412 echo "$me: cannot create a temporary directory in ." >&2
11413 { (exit 1); exit 1; }
11418 cat >>$CONFIG_STATUS <<_ACEOF
11421 # CONFIG_FILES section.
11424 # No need to generate the scripts if there are no CONFIG_FILES.
11425 # This happens for instance when ./config.status config.h
11426 if test -n "\$CONFIG_FILES"; then
11427 # Protect against being on the right side of a sed subst in config.status.
11428 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11429 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11430 s,@SHELL@,$SHELL,;t t
11431 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11432 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11433 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11434 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11435 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11436 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11437 s,@exec_prefix@,$exec_prefix,;t t
11438 s,@prefix@,$prefix,;t t
11439 s,@program_transform_name@,$program_transform_name,;t t
11440 s,@bindir@,$bindir,;t t
11441 s,@sbindir@,$sbindir,;t t
11442 s,@libexecdir@,$libexecdir,;t t
11443 s,@datadir@,$datadir,;t t
11444 s,@sysconfdir@,$sysconfdir,;t t
11445 s,@sharedstatedir@,$sharedstatedir,;t t
11446 s,@localstatedir@,$localstatedir,;t t
11447 s,@libdir@,$libdir,;t t
11448 s,@includedir@,$includedir,;t t
11449 s,@oldincludedir@,$oldincludedir,;t t
11450 s,@infodir@,$infodir,;t t
11451 s,@mandir@,$mandir,;t t
11452 s,@build_alias@,$build_alias,;t t
11453 s,@host_alias@,$host_alias,;t t
11454 s,@target_alias@,$target_alias,;t t
11455 s,@DEFS@,$DEFS,;t t
11456 s,@ECHO_C@,$ECHO_C,;t t
11457 s,@ECHO_N@,$ECHO_N,;t t
11458 s,@ECHO_T@,$ECHO_T,;t t
11459 s,@LIBS@,$LIBS,;t t
11460 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11461 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11462 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11463 s,@CYGPATH_W@,$CYGPATH_W,;t t
11464 s,@PACKAGE@,$PACKAGE,;t t
11465 s,@VERSION@,$VERSION,;t t
11466 s,@ACLOCAL@,$ACLOCAL,;t t
11467 s,@AUTOCONF@,$AUTOCONF,;t t
11468 s,@AUTOMAKE@,$AUTOMAKE,;t t
11469 s,@AUTOHEADER@,$AUTOHEADER,;t t
11470 s,@MAKEINFO@,$MAKEINFO,;t t
11471 s,@AMTAR@,$AMTAR,;t t
11472 s,@install_sh@,$install_sh,;t t
11473 s,@STRIP@,$STRIP,;t t
11474 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11475 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11477 s,@SET_MAKE@,$SET_MAKE,;t t
11478 s,@am__leading_dot@,$am__leading_dot,;t t
11480 s,@CFLAGS@,$CFLAGS,;t t
11481 s,@LDFLAGS@,$LDFLAGS,;t t
11482 s,@CPPFLAGS@,$CPPFLAGS,;t t
11483 s,@ac_ct_CC@,$ac_ct_CC,;t t
11484 s,@EXEEXT@,$EXEEXT,;t t
11485 s,@OBJEXT@,$OBJEXT,;t t
11486 s,@DEPDIR@,$DEPDIR,;t t
11487 s,@am__include@,$am__include,;t t
11488 s,@am__quote@,$am__quote,;t t
11489 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11490 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11491 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11492 s,@CCDEPMODE@,$CCDEPMODE,;t t
11493 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11494 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11495 s,@RANLIB@,$RANLIB,;t t
11496 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11498 s,@EGREP@,$EGREP,;t t
11499 s,@LIBOBJS@,$LIBOBJS,;t t
11500 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11501 s,@USE_NLS@,$USE_NLS,;t t
11502 s,@MSGFMT@,$MSGFMT,;t t
11503 s,@GMSGFMT@,$GMSGFMT,;t t
11504 s,@XGETTEXT@,$XGETTEXT,;t t
11505 s,@MSGMERGE@,$MSGMERGE,;t t
11506 s,@build@,$build,;t t
11507 s,@build_cpu@,$build_cpu,;t t
11508 s,@build_vendor@,$build_vendor,;t t
11509 s,@build_os@,$build_os,;t t
11510 s,@host@,$host,;t t
11511 s,@host_cpu@,$host_cpu,;t t
11512 s,@host_vendor@,$host_vendor,;t t
11513 s,@host_os@,$host_os,;t t
11514 s,@ALLOCA@,$ALLOCA,;t t
11515 s,@GLIBC21@,$GLIBC21,;t t
11516 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
11517 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
11518 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
11519 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
11520 s,@LIBICONV@,$LIBICONV,;t t
11521 s,@LTLIBICONV@,$LTLIBICONV,;t t
11522 s,@INTLBISON@,$INTLBISON,;t t
11523 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
11524 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11525 s,@CATOBJEXT@,$CATOBJEXT,;t t
11526 s,@DATADIRNAME@,$DATADIRNAME,;t t
11527 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11528 s,@GENCAT@,$GENCAT,;t t
11529 s,@INTLOBJS@,$INTLOBJS,;t t
11530 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
11531 s,@INTLLIBS@,$INTLLIBS,;t t
11532 s,@LIBINTL@,$LIBINTL,;t t
11533 s,@LTLIBINTL@,$LTLIBINTL,;t t
11534 s,@POSUB@,$POSUB,;t t
11535 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11540 cat >>$CONFIG_STATUS <<\_ACEOF
11541 # Split the substitutions into bite-sized pieces for seds with
11542 # small command number limits, like on Digital OSF/1 and HP-UX.
11543 ac_max_sed_lines=48
11544 ac_sed_frag=1 # Number of current file.
11545 ac_beg=1 # First line for current file.
11546 ac_end=$ac_max_sed_lines # Line after last line for current file.
11549 while $ac_more_lines; do
11550 if test $ac_beg -gt 1; then
11551 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11553 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11555 if test ! -s $tmp/subs.frag; then
11556 ac_more_lines=false
11558 # The purpose of the label and of the branching condition is to
11559 # speed up the sed processing (if there are no `@' at all, there
11560 # is no need to browse any of the substitutions).
11561 # These are the two extra sed commands mentioned above.
11563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11564 if test -z "$ac_sed_cmds"; then
11565 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11567 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11569 ac_sed_frag=`expr $ac_sed_frag + 1`
11571 ac_end=`expr $ac_end + $ac_max_sed_lines`
11574 if test -z "$ac_sed_cmds"; then
11577 fi # test -n "$CONFIG_FILES"
11580 cat >>$CONFIG_STATUS <<\_ACEOF
11581 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11582 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11584 - | *:- | *:-:* ) # input from stdin
11586 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11587 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11588 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11589 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11590 * ) ac_file_in=$ac_file.in ;;
11593 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11594 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11595 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11596 X"$ac_file" : 'X\(//\)[^/]' \| \
11597 X"$ac_file" : 'X\(//\)$' \| \
11598 X"$ac_file" : 'X\(/\)' \| \
11599 . : '\(.\)' 2>/dev/null ||
11601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11603 /^X\(\/\/\)$/{ s//\1/; q; }
11604 /^X\(\/\).*/{ s//\1/; q; }
11606 { if $as_mkdir_p; then
11611 while test ! -d "$as_dir"; do
11612 as_dirs="$as_dir $as_dirs"
11613 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11615 X"$as_dir" : 'X\(//\)[^/]' \| \
11616 X"$as_dir" : 'X\(//\)$' \| \
11617 X"$as_dir" : 'X\(/\)' \| \
11618 . : '\(.\)' 2>/dev/null ||
11620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11622 /^X\(\/\/\)$/{ s//\1/; q; }
11623 /^X\(\/\).*/{ s//\1/; q; }
11626 test ! -n "$as_dirs" || mkdir $as_dirs
11627 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11628 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11629 { (exit 1); exit 1; }; }; }
11633 if test "$ac_dir" != .; then
11634 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11635 # A "../" for each directory in $ac_dir_suffix.
11636 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11638 ac_dir_suffix= ac_top_builddir=
11642 .) # No --srcdir option. We are building in place.
11644 if test -z "$ac_top_builddir"; then
11647 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11649 [\\/]* | ?:[\\/]* ) # Absolute path.
11650 ac_srcdir=$srcdir$ac_dir_suffix;
11651 ac_top_srcdir=$srcdir ;;
11652 *) # Relative path.
11653 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11654 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11657 # Do not use `cd foo && pwd` to compute absolute paths, because
11658 # the directories may not exist.
11660 .) ac_abs_builddir="$ac_dir";;
11663 .) ac_abs_builddir=`pwd`;;
11664 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11665 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11668 case $ac_abs_builddir in
11669 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11671 case ${ac_top_builddir}. in
11672 .) ac_abs_top_builddir=$ac_abs_builddir;;
11673 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11674 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11677 case $ac_abs_builddir in
11678 .) ac_abs_srcdir=$ac_srcdir;;
11681 .) ac_abs_srcdir=$ac_abs_builddir;;
11682 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11683 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11686 case $ac_abs_builddir in
11687 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11689 case $ac_top_srcdir in
11690 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11691 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11692 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11699 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11702 # Let's still pretend it is `configure' which instantiates (i.e., don't
11703 # use $as_me), people would be surprised to read:
11704 # /* config.h. Generated by config.status. */
11705 if test x"$ac_file" = x-; then
11708 configure_input="$ac_file. "
11710 configure_input=$configure_input"Generated from `echo $ac_file_in |
11711 sed 's,.*/,,'` by configure."
11713 # First look for the input files in the build tree, otherwise in the
11715 ac_file_inputs=`IFS=:
11716 for f in $ac_file_in; do
11718 -) echo $tmp/stdin ;;
11720 # Absolute (can't be DOS-style, as IFS=:)
11721 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11722 echo "$as_me: error: cannot find input file: $f" >&2;}
11723 { (exit 1); exit 1; }; }
11726 if test -f "$f"; then
11729 elif test -f "$srcdir/$f"; then
11734 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11735 echo "$as_me: error: cannot find input file: $f" >&2;}
11736 { (exit 1); exit 1; }; }
11739 done` || { (exit 1); exit 1; }
11741 if test x"$ac_file" != x-; then
11742 { echo "$as_me:$LINENO: creating $ac_file" >&5
11743 echo "$as_me: creating $ac_file" >&6;}
11747 cat >>$CONFIG_STATUS <<_ACEOF
11751 cat >>$CONFIG_STATUS <<\_ACEOF
11753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11754 s,@configure_input@,$configure_input,;t t
11755 s,@srcdir@,$ac_srcdir,;t t
11756 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11757 s,@top_srcdir@,$ac_top_srcdir,;t t
11758 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11759 s,@builddir@,$ac_builddir,;t t
11760 s,@abs_builddir@,$ac_abs_builddir,;t t
11761 s,@top_builddir@,$ac_top_builddir,;t t
11762 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11763 s,@INSTALL@,$ac_INSTALL,;t t
11764 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11766 if test x"$ac_file" != x-; then
11767 mv $tmp/out $ac_file
11775 cat >>$CONFIG_STATUS <<\_ACEOF
11778 # CONFIG_HEADER section.
11781 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11782 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11784 # ac_d sets the value in "#define NAME VALUE" lines.
11785 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11786 ac_dB='[ ].*$,\1#\2'
11789 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11790 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11791 ac_uB='$,\1#\2define\3'
11795 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11798 - | *:- | *:-:* ) # input from stdin
11800 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11802 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11804 * ) ac_file_in=$ac_file.in ;;
11807 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11808 echo "$as_me: creating $ac_file" >&6;}
11810 # First look for the input files in the build tree, otherwise in the
11812 ac_file_inputs=`IFS=:
11813 for f in $ac_file_in; do
11815 -) echo $tmp/stdin ;;
11817 # Absolute (can't be DOS-style, as IFS=:)
11818 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11819 echo "$as_me: error: cannot find input file: $f" >&2;}
11820 { (exit 1); exit 1; }; }
11821 # Do quote $f, to prevent DOS paths from being IFS'd.
11824 if test -f "$f"; then
11827 elif test -f "$srcdir/$f"; then
11832 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11833 echo "$as_me: error: cannot find input file: $f" >&2;}
11834 { (exit 1); exit 1; }; }
11837 done` || { (exit 1); exit 1; }
11838 # Remove the trailing spaces.
11839 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11843 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11844 # `conftest.undefs', that substitutes the proper values into
11845 # config.h.in to produce config.h. The first handles `#define'
11846 # templates, and the second `#undef' templates.
11847 # And first: Protect against being on the right side of a sed subst in
11848 # config.status. Protect against being in an unquoted here document
11849 # in config.status.
11850 rm -f conftest.defines conftest.undefs
11851 # Using a here document instead of a string reduces the quoting nightmare.
11852 # Putting comments in sed scripts is not portable.
11854 # `end' is used to avoid that the second main sed command (meant for
11855 # 0-ary CPP macros) applies to n-ary macro definitions.
11856 # See the Autoconf documentation for `clear'.
11857 cat >confdef2sed.sed <<\_ACEOF
11862 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11864 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11867 # If some macros were called several times there might be several times
11868 # the same #defines, which is useless. Nevertheless, we may not want to
11869 # sort them, since we want the *last* AC-DEFINE to be honored.
11870 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11871 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11872 rm -f confdef2sed.sed
11874 # This sed command replaces #undef with comments. This is necessary, for
11875 # example, in the case of _POSIX_SOURCE, which is predefined and required
11876 # on some systems where configure will not decide to define it.
11877 cat >>conftest.undefs <<\_ACEOF
11878 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11881 # Break up conftest.defines because some shells have a limit on the size
11882 # of here documents, and old seds have small limits too (100 cmds).
11883 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11884 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11885 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11886 echo ' :' >>$CONFIG_STATUS
11887 rm -f conftest.tail
11888 while grep . conftest.defines >/dev/null
11890 # Write a limited-size here document to $tmp/defines.sed.
11891 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11892 # Speed up: don't consider the non `#define' lines.
11893 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11894 # Work around the forget-to-reset-the-flag bug.
11895 echo 't clr' >>$CONFIG_STATUS
11896 echo ': clr' >>$CONFIG_STATUS
11897 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11899 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11901 mv $tmp/out $tmp/in
11903 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11904 rm -f conftest.defines
11905 mv conftest.tail conftest.defines
11907 rm -f conftest.defines
11908 echo ' fi # grep' >>$CONFIG_STATUS
11909 echo >>$CONFIG_STATUS
11911 # Break up conftest.undefs because some shells have a limit on the size
11912 # of here documents, and old seds have small limits too (100 cmds).
11913 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11914 rm -f conftest.tail
11915 while grep . conftest.undefs >/dev/null
11917 # Write a limited-size here document to $tmp/undefs.sed.
11918 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11919 # Speed up: don't consider the non `#undef'
11920 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11921 # Work around the forget-to-reset-the-flag bug.
11922 echo 't clr' >>$CONFIG_STATUS
11923 echo ': clr' >>$CONFIG_STATUS
11924 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11926 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11928 mv $tmp/out $tmp/in
11930 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11931 rm -f conftest.undefs
11932 mv conftest.tail conftest.undefs
11934 rm -f conftest.undefs
11936 cat >>$CONFIG_STATUS <<\_ACEOF
11937 # Let's still pretend it is `configure' which instantiates (i.e., don't
11938 # use $as_me), people would be surprised to read:
11939 # /* config.h. Generated by config.status. */
11940 if test x"$ac_file" = x-; then
11941 echo "/* Generated by configure. */" >$tmp/config.h
11943 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11945 cat $tmp/in >>$tmp/config.h
11947 if test x"$ac_file" != x-; then
11948 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11949 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11950 echo "$as_me: $ac_file is unchanged" >&6;}
11952 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11954 X"$ac_file" : 'X\(//\)[^/]' \| \
11955 X"$ac_file" : 'X\(//\)$' \| \
11956 X"$ac_file" : 'X\(/\)' \| \
11957 . : '\(.\)' 2>/dev/null ||
11959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11961 /^X\(\/\/\)$/{ s//\1/; q; }
11962 /^X\(\/\).*/{ s//\1/; q; }
11964 { if $as_mkdir_p; then
11969 while test ! -d "$as_dir"; do
11970 as_dirs="$as_dir $as_dirs"
11971 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11972 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11973 X"$as_dir" : 'X\(//\)[^/]' \| \
11974 X"$as_dir" : 'X\(//\)$' \| \
11975 X"$as_dir" : 'X\(/\)' \| \
11976 . : '\(.\)' 2>/dev/null ||
11978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11980 /^X\(\/\/\)$/{ s//\1/; q; }
11981 /^X\(\/\).*/{ s//\1/; q; }
11984 test ! -n "$as_dirs" || mkdir $as_dirs
11985 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11986 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11987 { (exit 1); exit 1; }; }; }
11990 mv $tmp/config.h $ac_file
11994 rm -f $tmp/config.h
11996 # Compute $ac_file's index in $config_headers.
11998 for _am_header in $config_headers :; do
11999 case $_am_header in
12000 $ac_file | $ac_file:* )
12003 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12006 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12007 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12008 X$ac_file : 'X\(//\)[^/]' \| \
12009 X$ac_file : 'X\(//\)$' \| \
12010 X$ac_file : 'X\(/\)' \| \
12011 . : '\(.\)' 2>/dev/null ||
12013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12014 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12015 /^X\(\/\/\)$/{ s//\1/; q; }
12016 /^X\(\/\).*/{ s//\1/; q; }
12017 s/.*/./; q'`/stamp-h$_am_stamp_count
12020 cat >>$CONFIG_STATUS <<\_ACEOF
12023 # CONFIG_COMMANDS section.
12025 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12026 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12027 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12028 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12029 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12030 X"$ac_dest" : 'X\(//\)[^/]' \| \
12031 X"$ac_dest" : 'X\(//\)$' \| \
12032 X"$ac_dest" : 'X\(/\)' \| \
12033 . : '\(.\)' 2>/dev/null ||
12035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12037 /^X\(\/\/\)$/{ s//\1/; q; }
12038 /^X\(\/\).*/{ s//\1/; q; }
12040 { if $as_mkdir_p; then
12045 while test ! -d "$as_dir"; do
12046 as_dirs="$as_dir $as_dirs"
12047 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12049 X"$as_dir" : 'X\(//\)[^/]' \| \
12050 X"$as_dir" : 'X\(//\)$' \| \
12051 X"$as_dir" : 'X\(/\)' \| \
12052 . : '\(.\)' 2>/dev/null ||
12054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12056 /^X\(\/\/\)$/{ s//\1/; q; }
12057 /^X\(\/\).*/{ s//\1/; q; }
12060 test ! -n "$as_dirs" || mkdir $as_dirs
12061 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12062 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12063 { (exit 1); exit 1; }; }; }
12067 if test "$ac_dir" != .; then
12068 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12069 # A "../" for each directory in $ac_dir_suffix.
12070 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12072 ac_dir_suffix= ac_top_builddir=
12076 .) # No --srcdir option. We are building in place.
12078 if test -z "$ac_top_builddir"; then
12081 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12083 [\\/]* | ?:[\\/]* ) # Absolute path.
12084 ac_srcdir=$srcdir$ac_dir_suffix;
12085 ac_top_srcdir=$srcdir ;;
12086 *) # Relative path.
12087 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12088 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12091 # Do not use `cd foo && pwd` to compute absolute paths, because
12092 # the directories may not exist.
12094 .) ac_abs_builddir="$ac_dir";;
12097 .) ac_abs_builddir=`pwd`;;
12098 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12099 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12102 case $ac_abs_builddir in
12103 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12105 case ${ac_top_builddir}. in
12106 .) ac_abs_top_builddir=$ac_abs_builddir;;
12107 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12108 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12111 case $ac_abs_builddir in
12112 .) ac_abs_srcdir=$ac_srcdir;;
12115 .) ac_abs_srcdir=$ac_abs_builddir;;
12116 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12117 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12120 case $ac_abs_builddir in
12121 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12123 case $ac_top_srcdir in
12124 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12125 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12126 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12131 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12132 echo "$as_me: executing $ac_dest commands" >&6;}
12134 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12135 # Strip MF so we end up with the name of the file.
12136 mf=`echo "$mf" | sed -e 's/:.*$//'`
12137 # Check whether this is an Automake generated Makefile or not.
12138 # We used to match only the files named `Makefile.in', but
12139 # some people rename them; so instead we look at the file content.
12140 # Grep'ing the first line is not enough: some people post-process
12141 # each Makefile.in and add a new line on top of each file to say so.
12142 # So let's grep whole file.
12143 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12144 dirpart=`(dirname "$mf") 2>/dev/null ||
12145 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12146 X"$mf" : 'X\(//\)[^/]' \| \
12147 X"$mf" : 'X\(//\)$' \| \
12148 X"$mf" : 'X\(/\)' \| \
12149 . : '\(.\)' 2>/dev/null ||
12151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12153 /^X\(\/\/\)$/{ s//\1/; q; }
12154 /^X\(\/\).*/{ s//\1/; q; }
12159 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12160 # Extract the definition of DEP_FILES from the Makefile without
12162 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12163 test -z "$DEPDIR" && continue
12164 # When using ansi2knr, U may be empty or an underscore; expand it
12165 U=`sed -n -e '/^U = / s///p' < "$mf"`
12166 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12167 # We invoke sed twice because it is the simplest approach to
12168 # changing $(DEPDIR) to its actual value in the expansion.
12169 for file in `sed -n -e '
12170 /^DEP_FILES = .*\\\\$/ {
12179 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12180 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12181 # Make sure the directory exists.
12182 test -f "$dirpart/$file" && continue
12183 fdir=`(dirname "$file") 2>/dev/null ||
12184 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12185 X"$file" : 'X\(//\)[^/]' \| \
12186 X"$file" : 'X\(//\)$' \| \
12187 X"$file" : 'X\(/\)' \| \
12188 . : '\(.\)' 2>/dev/null ||
12190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12192 /^X\(\/\/\)$/{ s//\1/; q; }
12193 /^X\(\/\).*/{ s//\1/; q; }
12195 { if $as_mkdir_p; then
12196 mkdir -p $dirpart/$fdir
12198 as_dir=$dirpart/$fdir
12200 while test ! -d "$as_dir"; do
12201 as_dirs="$as_dir $as_dirs"
12202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12204 X"$as_dir" : 'X\(//\)[^/]' \| \
12205 X"$as_dir" : 'X\(//\)$' \| \
12206 X"$as_dir" : 'X\(/\)' \| \
12207 . : '\(.\)' 2>/dev/null ||
12209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12211 /^X\(\/\/\)$/{ s//\1/; q; }
12212 /^X\(\/\).*/{ s//\1/; q; }
12215 test ! -n "$as_dirs" || mkdir $as_dirs
12216 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12217 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12218 { (exit 1); exit 1; }; }; }
12220 # echo "creating $dirpart/$file"
12221 echo '# dummy' > "$dirpart/$file"
12226 for ac_file in $CONFIG_FILES; do
12227 # Support "outfile[:infile[:infile...]]"
12229 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12231 # PO directories have a Makefile.in generated from Makefile.in.in.
12232 case "$ac_file" in */Makefile.in)
12233 # Adjust a relative srcdir.
12234 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12235 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12236 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12237 # In autoconf-2.13 it is called $ac_given_srcdir.
12238 # In autoconf-2.50 it is called $srcdir.
12239 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12240 case "$ac_given_srcdir" in
12241 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12242 /*) top_srcdir="$ac_given_srcdir" ;;
12243 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12245 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12246 rm -f "$ac_dir/POTFILES"
12247 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12248 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12249 POMAKEFILEDEPS="POTFILES.in"
12250 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12251 # on $ac_dir but don't depend on user-specified configuration
12253 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12254 # The LINGUAS file contains the set of available languages.
12255 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12256 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12258 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12259 # Hide the ALL_LINGUAS assigment from automake.
12260 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12261 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12263 # The set of available languages was given in configure.in.
12264 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12267 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12268 # Compute UPDATEPOFILES
12269 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12270 # Compute DUMMYPOFILES
12271 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12273 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12274 case "$ac_given_srcdir" in
12276 *) srcdirpre='$(srcdir)/' ;;
12282 for lang in $ALL_LINGUAS; do
12283 POFILES="$POFILES $srcdirpre$lang.po"
12284 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12285 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12286 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12288 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12289 # environment variable.
12291 if test -n "$ALL_LINGUAS"; then
12292 for presentlang in $ALL_LINGUAS; do
12294 if test "%UNSET%" != "$LINGUAS"; then
12295 desiredlanguages="$LINGUAS"
12297 desiredlanguages="$ALL_LINGUAS"
12299 for desiredlang in $desiredlanguages; do
12300 # Use the presentlang catalog if desiredlang is
12301 # a. equal to presentlang, or
12302 # b. a variant of presentlang (because in this case,
12303 # presentlang can be used as a fallback for messages
12304 # which are not translated in the desiredlang catalog).
12305 case "$desiredlang" in
12306 "$presentlang"*) useit=yes;;
12309 if test $useit = yes; then
12310 INST_LINGUAS="$INST_LINGUAS $presentlang"
12315 if test -n "$INST_LINGUAS"; then
12316 for lang in $INST_LINGUAS; do
12317 CATALOGS="$CATALOGS $lang.gmo"
12320 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12321 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12322 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12323 if test -f "$f"; then
12325 *.orig | *.bak | *~) ;;
12326 *) cat "$f" >> "$ac_dir/Makefile" ;;
12338 cat >>$CONFIG_STATUS <<\_ACEOF
12340 { (exit 0); exit 0; }
12342 chmod +x $CONFIG_STATUS
12343 ac_clean_files=$ac_clean_files_save
12346 # configure is writing to config.log, and then calls config.status.
12347 # config.status does its own redirection, appending to config.log.
12348 # Unfortunately, on DOS this fails, as config.log is still kept open
12349 # by configure, so config.status won't be able to write to it; its
12350 # output is simply discarded. So we exec the FD to /dev/null,
12351 # effectively closing config.log, so it can be properly (re)opened and
12352 # appended to by config.status. When coming back to configure, we
12353 # need to make the FD available again.
12354 if test "$no_create" != yes; then
12356 ac_config_status_args=
12357 test "$silent" = yes &&
12358 ac_config_status_args="$ac_config_status_args --quiet"
12360 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12362 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12363 # would make configure fail if this is the last instruction.
12364 $ac_cs_success || { (exit 1); exit 1; }
12370 Thank you for using ap-utils.