2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Iperf 2.0.2.
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.
269 PACKAGE_TARNAME='iperf'
270 PACKAGE_VERSION='2.0.2'
271 PACKAGE_STRING='Iperf 2.0.2'
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS CPP EGREP LIBOBJS WEB100_CONFIG WEB100_CFLAGS WEB100_LIBS STRIP_DUMMY STRIP_BEGIN STRIP_END LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CXX_set=${CXX+set}
753 ac_env_CXX_value=$CXX
754 ac_cv_env_CXX_set=${CXX+set}
755 ac_cv_env_CXX_value=$CXX
756 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
757 ac_env_CXXFLAGS_value=$CXXFLAGS
758 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
759 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CC_set=${CC+set}
770 ac_cv_env_CC_set=${CC+set}
771 ac_cv_env_CC_value=$CC
772 ac_env_CFLAGS_set=${CFLAGS+set}
773 ac_env_CFLAGS_value=$CFLAGS
774 ac_cv_env_CFLAGS_set=${CFLAGS+set}
775 ac_cv_env_CFLAGS_value=$CFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures Iperf 2.0.2 to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --program-prefix=PREFIX prepend PREFIX to installed program names
843 --program-suffix=SUFFIX append SUFFIX to installed program names
844 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 if test -n "$ac_init_help"; then
853 case $ac_init_help in
854 short | recursive ) echo "Configuration of Iperf 2.0.2:";;
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --disable-ipv6 disable ipv6 support (default is autodetect)
862 --disable-multicast disable multicast support (default is autodetect)
863 --disable-threads disable thread support (default is autodetect)
864 --enable-debuginfo enable debugging info for sockets (default is no)
865 --disable-web100 disable web100 support (default is autodetect)
866 --disable-dependency-tracking speeds up one-time build
867 --enable-dependency-tracking do not reject slow dependency extractors
869 Some influential environment variables:
870 CXX C++ compiler command
871 CXXFLAGS C++ compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
876 CC C compiler command
877 CFLAGS C compiler flags
880 Use these variables to override the choices made by `configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
886 if test "$ac_init_help" = "recursive"; then
887 # If there are subdirs, report their specific --help.
889 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890 test -d $ac_dir || continue
893 if test "$ac_dir" != .; then
894 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
895 # A "../" for each directory in $ac_dir_suffix.
896 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 ac_dir_suffix= ac_top_builddir=
902 .) # No --srcdir option. We are building in place.
904 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909 [\\/]* | ?:[\\/]* ) # Absolute path.
910 ac_srcdir=$srcdir$ac_dir_suffix;
911 ac_top_srcdir=$srcdir ;;
913 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 # Do not use `cd foo && pwd` to compute absolute paths, because
918 # the directories may not exist.
920 .) ac_abs_builddir="$ac_dir";;
923 .) ac_abs_builddir=`pwd`;;
924 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
925 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 case $ac_abs_builddir in
929 .) ac_abs_top_builddir=${ac_top_builddir}.;;
931 case ${ac_top_builddir}. in
932 .) ac_abs_top_builddir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 case $ac_abs_builddir in
938 .) ac_abs_srcdir=$ac_srcdir;;
941 .) ac_abs_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
943 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 case $ac_abs_builddir in
947 .) ac_abs_top_srcdir=$ac_top_srcdir;;
949 case $ac_top_srcdir in
950 .) ac_abs_top_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 # Check for guested configure; otherwise get Cygnus style configure.
958 if test -f $ac_srcdir/configure.gnu; then
960 $SHELL $ac_srcdir/configure.gnu --help=recursive
961 elif test -f $ac_srcdir/configure; then
963 $SHELL $ac_srcdir/configure --help=recursive
964 elif test -f $ac_srcdir/configure.ac ||
965 test -f $ac_srcdir/configure.in; then
969 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 test -n "$ac_init_help" && exit 0
976 if $ac_init_version; then
978 Iperf configure 2.0.2
979 generated by GNU Autoconf 2.59
981 Copyright (C) 2003 Free Software Foundation, Inc.
982 This configure script is free software; the Free Software Foundation
983 gives unlimited permission to copy, distribute and modify it.
989 This file contains any messages produced by compilers while
990 running configure, to aid debugging if configure makes a mistake.
992 It was created by Iperf $as_me 2.0.2, which was
993 generated by GNU Autoconf 2.59. Invocation command line was
1004 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1013 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1043 # Keep a trace of the command line.
1044 # Strip out --no-create and --no-recursion so they do not pile up.
1045 # Strip out --silent because we don't want to record it for future runs.
1046 # Also quote any args containing shell meta-characters.
1047 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_must_keep_next=false
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 -* ) ac_must_keep_next=true ;;
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1091 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094 # When interrupted or exit'd, cleanup temporary files, and complete
1095 # config.log. We remove comments because anyway the quotes in there
1096 # would cause problems or look ugly.
1097 # WARNING: Be sure not to use single quotes in there, as some shells,
1098 # such as our DU 5.0 friend, will then `close' the trap.
1099 trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1105 ## ---------------- ##
1106 ## Cache variables. ##
1107 ## ---------------- ##
1110 # The following way of writing the cache mishandles newlines in values,
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 ## ----------------- ##
1129 ## Output variables. ##
1130 ## ----------------- ##
1133 for ac_var in $ac_subst_vars
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1140 if test -n "$ac_subst_files"; then
1147 for ac_var in $ac_subst_files
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1155 if test -s confdefs.h; then
1162 sed "/^$/d" confdefs.h | sort
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1169 rm -f core *.core &&
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1179 rm -rf conftest* confdefs.h
1180 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 # Predefined preprocessor variables.
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 # Let the site file select an alternate cache file if it wants to.
1211 # Prefer explicitly selected file to automatically selected ones.
1212 if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222 echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
1228 if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233 echo "$as_me: loading cache $cache_file" >&6;}
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241 echo "$as_me: creating cache $cache_file" >&6;}
1245 # Check that the precious variables saved in the cache have kept the same
1247 ac_cache_corrupted=false
1248 for ac_var in `(set) 2>&1 |
1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269 echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271 echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1297 ac_cpp='$CPP $CPPFLAGS'
1298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 ac_config_headers="$ac_config_headers config.h"
1330 am__api_version="1.9"
1332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1333 if test -f $ac_dir/install-sh; then
1335 ac_install_sh="$ac_aux_dir/install-sh -c"
1337 elif test -f $ac_dir/install.sh; then
1339 ac_install_sh="$ac_aux_dir/install.sh -c"
1341 elif test -f $ac_dir/shtool; then
1343 ac_install_sh="$ac_aux_dir/shtool install -c"
1347 if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350 { (exit 1); exit 1; }; }
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356 # Find a good install program. We prefer a C program (faster),
1357 # so one script is as good as another. But avoid the broken or
1358 # incompatible versions:
1359 # SysV /etc/install, /usr/sbin/install
1360 # SunOS /usr/etc/install
1361 # IRIX /sbin/install
1363 # AmigaOS /C/install, which installs bootblocks on floppy discs
1364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1367 # OS/2's system install, which has a completely different semantic
1368 # ./install, which can be erroneously created by make from ./install.sh.
1369 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1370 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1371 if test -z "$INSTALL"; then
1372 if test "${ac_cv_path_install+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1379 test -z "$as_dir" && as_dir=.
1380 # Account for people who put trailing slashes in PATH elements.
1382 ./ | .// | /cC/* | \
1383 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1384 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1387 # OSF1 and SCO ODT 3.0 have their own names for install.
1388 # Don't use installbsd from OSF since it installs stuff as root
1390 for ac_prog in ginstall scoinst install; do
1391 for ac_exec_ext in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1393 if test $ac_prog = install &&
1394 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1395 # AIX install. It has an incompatible calling convention.
1397 elif test $ac_prog = install &&
1398 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1399 # program-specific install script used by HP pwplus--don't use.
1402 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1414 if test "${ac_cv_path_install+set}" = set; then
1415 INSTALL=$ac_cv_path_install
1417 # As a last resort, use the slow shell script. We don't cache a
1418 # path for INSTALL within a source directory, because that will
1419 # break other packages using the cache if that directory is
1420 # removed, or if the path is relative.
1421 INSTALL=$ac_install_sh
1424 echo "$as_me:$LINENO: result: $INSTALL" >&5
1425 echo "${ECHO_T}$INSTALL" >&6
1427 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1428 # It thinks the first close brace ends the variable substitution.
1429 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1431 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1433 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1435 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1436 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1439 echo timestamp > conftest.file
1440 # Do `set' in a subshell so we don't clobber the current shell's
1441 # arguments. Must try -L first in case configure is actually a
1442 # symlink; some systems play weird games with the mod time of symlinks
1443 # (eg FreeBSD returns the mod time of the symlink's containing
1446 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1447 if test "$*" = "X"; then
1449 set X `ls -t $srcdir/configure conftest.file`
1452 if test "$*" != "X $srcdir/configure conftest.file" \
1453 && test "$*" != "X conftest.file $srcdir/configure"; then
1455 # If neither matched, then we have a broken ls. This can happen
1456 # if, for instance, CONFIG_SHELL is bash and it inherits a
1457 # broken ls alias from the environment. This has actually
1458 # happened. Such a system could not be considered "sane".
1459 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1460 alias in your environment" >&5
1461 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1462 alias in your environment" >&2;}
1463 { (exit 1); exit 1; }; }
1466 test "$2" = conftest.file
1472 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1473 Check your system clock" >&5
1474 echo "$as_me: error: newly created file is older than distributed files!
1475 Check your system clock" >&2;}
1476 { (exit 1); exit 1; }; }
1478 echo "$as_me:$LINENO: result: yes" >&5
1479 echo "${ECHO_T}yes" >&6
1480 test "$program_prefix" != NONE &&
1481 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1482 # Use a double $ so make ignores it.
1483 test "$program_suffix" != NONE &&
1484 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1485 # Double any \ or $. echo might interpret backslashes.
1486 # By default was `s,x,x', remove it if useless.
1487 cat <<\_ACEOF >conftest.sed
1488 s/[\\$]/&&/g;s/;s,x,x,$//
1490 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1493 # expand $ac_aux_dir to an absolute path
1494 am_aux_dir=`cd $ac_aux_dir && pwd`
1496 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1497 # Use eval to expand $SHELL
1498 if eval "$MISSING --run true"; then
1499 am_missing_run="$MISSING --run "
1502 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1503 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1506 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1507 # We used to keeping the `.' as first argument, in order to
1508 # allow $(mkdir_p) to be used without argument. As in
1509 # $(mkdir_p) $(somedir)
1510 # where $(somedir) is conditionally defined. However this is wrong
1512 # 1. if the package is installed by a user who cannot write `.'
1513 # make install will fail,
1514 # 2. the above comment should most certainly read
1515 # $(mkdir_p) $(DESTDIR)$(somedir)
1516 # so it does not work when $(somedir) is undefined and
1517 # $(DESTDIR) is not.
1518 # To support the latter case, we have to write
1519 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1520 # so the `.' trick is pointless.
1521 mkdir_p='mkdir -p --'
1523 # On NextStep and OpenStep, the `mkdir' command does not
1524 # recognize any option. It will interpret all options as
1525 # directories to create, and then abort because `.' already
1527 for d in ./-p ./--version;
1529 test -d $d && rmdir $d
1531 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1532 if test -f "$ac_aux_dir/mkinstalldirs"; then
1533 mkdir_p='$(mkinstalldirs)'
1535 mkdir_p='$(install_sh) -d'
1539 for ac_prog in gawk mawk nawk awk
1541 # Extract the first word of "$ac_prog", so it can be a program name with args.
1542 set dummy $ac_prog; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_AWK+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 if test -n "$AWK"; then
1549 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_AWK="$ac_prog"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 if test -n "$AWK"; then
1569 echo "$as_me:$LINENO: result: $AWK" >&5
1570 echo "${ECHO_T}$AWK" >&6
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1576 test -n "$AWK" && break
1579 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1580 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1581 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1582 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 cat >conftest.make <<\_ACEOF
1587 @echo 'ac_maketemp="$(MAKE)"'
1589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1590 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1591 if test -n "$ac_maketemp"; then
1592 eval ac_cv_prog_make_${ac_make}_set=yes
1594 eval ac_cv_prog_make_${ac_make}_set=no
1598 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1599 echo "$as_me:$LINENO: result: yes" >&5
1600 echo "${ECHO_T}yes" >&6
1603 echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1605 SET_MAKE="MAKE=${MAKE-make}"
1608 rm -rf .tst 2>/dev/null
1609 mkdir .tst 2>/dev/null
1610 if test -d .tst; then
1615 rmdir .tst 2>/dev/null
1617 # test to see if srcdir already configured
1618 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1619 test -f $srcdir/config.status; then
1620 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1621 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1622 { (exit 1); exit 1; }; }
1625 # test whether we have cygpath
1626 if test -z "$CYGPATH_W"; then
1627 if (cygpath --version) >/dev/null 2>/dev/null; then
1628 CYGPATH_W='cygpath -w'
1635 # Define the identity of the package.
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE "$PACKAGE"
1645 cat >>confdefs.h <<_ACEOF
1646 #define VERSION "$VERSION"
1649 # Some tools Automake needs.
1651 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1654 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1657 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1660 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1663 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1665 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1667 # Installed binaries are usually stripped using `strip' when the user
1668 # run `make install-strip'. However `strip' might not be the right
1669 # tool to use in cross-compilation environments, therefore Automake
1670 # will honor the `STRIP' environment variable to overrule this program.
1671 if test "$cross_compiling" != no; then
1672 if test -n "$ac_tool_prefix"; then
1673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1674 set dummy ${ac_tool_prefix}strip; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_STRIP+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 if test -n "$STRIP"; then
1681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 STRIP=$ac_cv_prog_STRIP
1700 if test -n "$STRIP"; then
1701 echo "$as_me:$LINENO: result: $STRIP" >&5
1702 echo "${ECHO_T}$STRIP" >&6
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1709 if test -z "$ac_cv_prog_STRIP"; then
1711 # Extract the first word of "strip", so it can be a program name with args.
1712 set dummy strip; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 if test -n "$ac_ct_STRIP"; then
1719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_ac_ct_STRIP="strip"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1738 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1739 if test -n "$ac_ct_STRIP"; then
1740 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1741 echo "${ECHO_T}$ac_ct_STRIP" >&6
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1749 STRIP="$ac_cv_prog_STRIP"
1753 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1755 # We need awk for the "check" target. The system "awk" is bad on
1757 # Always define AMTAR for backward compatibility.
1759 AMTAR=${AMTAR-"${am_missing_run}tar"}
1761 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1769 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1770 if test "${enable_ipv6+set}" = set; then
1771 enableval="$enable_ipv6"
1772 ac_cv_have_ipv6=$enable_ipv6
1775 # Check whether --enable-multicast or --disable-multicast was given.
1776 if test "${enable_multicast+set}" = set; then
1777 enableval="$enable_multicast"
1778 ac_cv_multicast=$enable_multicast
1781 # Check whether --enable-threads or --disable-threads was given.
1782 if test "${enable_threads+set}" = set; then
1783 enableval="$enable_threads"
1787 # Check whether --enable-debuginfo or --disable-debuginfo was given.
1788 if test "${enable_debuginfo+set}" = set; then
1789 enableval="$enable_debuginfo"
1790 enable_debuginfo=$enableval
1795 # Check whether --enable-web100 or --disable-web100 was given.
1796 if test "${enable_web100+set}" = set; then
1797 enableval="$enable_web100"
1804 ac_cpp='$CXXCPP $CPPFLAGS'
1805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1808 if test -n "$ac_tool_prefix"; then
1809 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1813 echo "$as_me:$LINENO: checking for $ac_word" >&5
1814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815 if test "${ac_cv_prog_CXX+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 if test -n "$CXX"; then
1819 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838 if test -n "$CXX"; then
1839 echo "$as_me:$LINENO: result: $CXX" >&5
1840 echo "${ECHO_T}$CXX" >&6
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1846 test -n "$CXX" && break
1849 if test -z "$CXX"; then
1851 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1853 # Extract the first word of "$ac_prog", so it can be a program name with args.
1854 set dummy $ac_prog; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 if test -n "$ac_ct_CXX"; then
1861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_ac_ct_CXX="$ac_prog"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1880 if test -n "$ac_ct_CXX"; then
1881 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1882 echo "${ECHO_T}$ac_ct_CXX" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1888 test -n "$ac_ct_CXX" && break
1890 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1896 # Provide some information about the compiler.
1897 echo "$as_me:$LINENO:" \
1898 "checking for C++ compiler version" >&5
1899 ac_compiler=`set X $ac_compile; echo $2`
1900 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1901 (eval $ac_compiler --version </dev/null >&5) 2>&5
1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904 (exit $ac_status); }
1905 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1906 (eval $ac_compiler -v </dev/null >&5) 2>&5
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }
1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1911 (eval $ac_compiler -V </dev/null >&5) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }
1916 cat >conftest.$ac_ext <<_ACEOF
1919 cat confdefs.h >>conftest.$ac_ext
1920 cat >>conftest.$ac_ext <<_ACEOF
1921 /* end confdefs.h. */
1931 ac_clean_files_save=$ac_clean_files
1932 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1933 # Try to create an executable without -o first, disregard a.out.
1934 # It will help us diagnose broken compilers, and finding out an intuition
1936 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1937 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1938 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1939 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1940 (eval $ac_link_default) 2>&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 # Find the output, starting from the most likely. This scheme is
1945 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1948 # Be careful to initialize this variable, since it used to be cached.
1949 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1951 # b.out is created by i960 compilers.
1952 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1954 test -f "$ac_file" || continue
1956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1959 # This is the source file.
1962 # We found the default executable, but exeext='' is most
1966 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1967 # FIXME: I believe we export ac_cv_exeext for Libtool,
1968 # but it would be cool to find out if it's true. Does anybody
1969 # maintain Libtool? --akim.
1977 echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1980 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: C++ compiler cannot create executables
1983 See \`config.log' for more details." >&2;}
1984 { (exit 77); exit 77; }; }
1987 ac_exeext=$ac_cv_exeext
1988 echo "$as_me:$LINENO: result: $ac_file" >&5
1989 echo "${ECHO_T}$ac_file" >&6
1991 # Check the compiler produces executables we can run. If not, either
1992 # the compiler is broken, or we cross compile.
1993 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1994 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1995 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1996 # If not cross compiling, check that we can run a simple program.
1997 if test "$cross_compiling" != yes; then
1998 if { ac_try='./$ac_file'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; }; then
2006 if test "$cross_compiling" = maybe; then
2009 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2010 If you meant to cross compile, use \`--host'.
2011 See \`config.log' for more details." >&5
2012 echo "$as_me: error: cannot run C++ compiled programs.
2013 If you meant to cross compile, use \`--host'.
2014 See \`config.log' for more details." >&2;}
2015 { (exit 1); exit 1; }; }
2019 echo "$as_me:$LINENO: result: yes" >&5
2020 echo "${ECHO_T}yes" >&6
2022 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2023 ac_clean_files=$ac_clean_files_save
2024 # Check the compiler produces executables we can run. If not, either
2025 # the compiler is broken, or we cross compile.
2026 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2027 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2028 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2029 echo "${ECHO_T}$cross_compiling" >&6
2031 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2032 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2034 (eval $ac_link) 2>&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; then
2038 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2039 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2040 # work properly (i.e., refer to `conftest.exe'), while it won't with
2042 for ac_file in conftest.exe conftest conftest.*; do
2043 test -f "$ac_file" || continue
2045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2046 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2053 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2056 See \`config.log' for more details." >&2;}
2057 { (exit 1); exit 1; }; }
2060 rm -f conftest$ac_cv_exeext
2061 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2062 echo "${ECHO_T}$ac_cv_exeext" >&6
2064 rm -f conftest.$ac_ext
2065 EXEEXT=$ac_cv_exeext
2067 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2068 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2069 if test "${ac_cv_objext+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 cat >conftest.$ac_ext <<_ACEOF
2075 cat confdefs.h >>conftest.$ac_ext
2076 cat >>conftest.$ac_ext <<_ACEOF
2077 /* end confdefs.h. */
2087 rm -f conftest.o conftest.obj
2088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2089 (eval $ac_compile) 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; then
2093 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2096 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2101 echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2104 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2107 See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
2111 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2113 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2114 echo "${ECHO_T}$ac_cv_objext" >&6
2115 OBJEXT=$ac_cv_objext
2117 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2118 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2119 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 cat >conftest.$ac_ext <<_ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>conftest.er1
2144 grep -v '^ *+' conftest.er1 >conftest.err
2146 cat conftest.err >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -z "$ac_cxx_werror_flag"
2150 || test ! -s conftest.err'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; } &&
2156 { ac_try='test -s conftest.$ac_objext'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2164 echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2173 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2174 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2175 GXX=`test $ac_compiler_gnu = yes && echo yes`
2176 ac_test_CXXFLAGS=${CXXFLAGS+set}
2177 ac_save_CXXFLAGS=$CXXFLAGS
2179 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2180 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2181 if test "${ac_cv_prog_cxx_g+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 cat >conftest.$ac_ext <<_ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h. */
2199 rm -f conftest.$ac_objext
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201 (eval $ac_compile) 2>conftest.er1
2203 grep -v '^ *+' conftest.er1 >conftest.err
2205 cat conftest.err >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); } &&
2208 { ac_try='test -z "$ac_cxx_werror_flag"
2209 || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 ac_cv_prog_cxx_g=yes
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2231 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2232 if test "$ac_test_CXXFLAGS" = set; then
2233 CXXFLAGS=$ac_save_CXXFLAGS
2234 elif test $ac_cv_prog_cxx_g = yes; then
2235 if test "$GXX" = yes; then
2241 if test "$GXX" = yes; then
2247 for ac_declaration in \
2249 'extern "C" void std::exit (int) throw (); using std::exit;' \
2250 'extern "C" void std::exit (int); using std::exit;' \
2251 'extern "C" void exit (int) throw ();' \
2252 'extern "C" void exit (int);' \
2255 cat >conftest.$ac_ext <<_ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>conftest.er1
2275 grep -v '^ *+' conftest.er1 >conftest.err
2277 cat conftest.err >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
2280 { ac_try='test -z "$ac_cxx_werror_flag"
2281 || test ! -s conftest.err'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2301 cat >conftest.$ac_ext <<_ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2316 rm -f conftest.$ac_objext
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>conftest.er1
2320 grep -v '^ *+' conftest.er1 >conftest.err
2322 cat conftest.err >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } &&
2325 { ac_try='test -z "$ac_cxx_werror_flag"
2326 || test ! -s conftest.err'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; } &&
2332 { ac_try='test -s conftest.$ac_objext'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; }; then
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 if test -n "$ac_declaration"; then
2348 echo '#ifdef __cplusplus' >>confdefs.h
2349 echo $ac_declaration >>confdefs.h
2350 echo '#endif' >>confdefs.h
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 DEPDIR="${am__leading_dot}deps"
2360 ac_config_commands="$ac_config_commands depfiles"
2363 am_make=${MAKE-make}
2364 cat > confinc << 'END'
2369 # If we don't find an include directive, just comment out the code.
2370 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2371 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2375 # First try GNU make style include.
2376 echo "include confinc" > confmf
2377 # We grep out `Entering directory' and `Leaving directory'
2378 # messages which can occur if `w' ends up in MAKEFLAGS.
2379 # In particular we don't look at `^make:' because GNU make might
2380 # be invoked under some other name (usually "gmake"), in which
2381 # case it prints its new name instead of `make'.
2382 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2387 # Now try BSD make style include.
2388 if test "$am__include" = "#"; then
2389 echo '.include "confinc"' > confmf
2390 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2391 am__include=.include
2398 echo "$as_me:$LINENO: result: $_am_result" >&5
2399 echo "${ECHO_T}$_am_result" >&6
2400 rm -f confinc confmf
2402 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2403 if test "${enable_dependency_tracking+set}" = set; then
2404 enableval="$enable_dependency_tracking"
2407 if test "x$enable_dependency_tracking" != xno; then
2408 am_depcomp="$ac_aux_dir/depcomp"
2413 if test "x$enable_dependency_tracking" != xno; then
2424 depcc="$CXX" am_compiler_list=
2426 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2427 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2428 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2432 # We make a subdir and do the tests there. Otherwise we can end up
2433 # making bogus files that we don't know about and never remove. For
2434 # instance it was reported that on HP-UX the gcc test will end up
2435 # making a dummy file named `D' -- because `-MD' means `put the output
2438 # Copy depcomp to subdir because otherwise we won't find it if we're
2439 # using a relative directory.
2440 cp "$am_depcomp" conftest.dir
2442 # We will build objects and dependencies in a subdirectory because
2443 # it helps to detect inapplicable dependency modes. For instance
2444 # both Tru64's cc and ICC support -MD to output dependencies as a
2445 # side effect of compilation, but ICC will put the dependencies in
2446 # the current directory while Tru64 will put them in the object
2450 am_cv_CXX_dependencies_compiler_type=none
2451 if test "$am_compiler_list" = ""; then
2452 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2454 for depmode in $am_compiler_list; do
2455 # Setup a source with many dependencies, because some compilers
2456 # like to wrap large dependency lists on column 80 (with \), and
2457 # we should not choose a depcomp mode which is confused by this.
2459 # We need to recreate these files for each test, as the compiler may
2460 # overwrite some of them when testing with obscure command lines.
2461 # This happens at least with the AIX C compiler.
2463 for i in 1 2 3 4 5 6; do
2464 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2465 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2466 # Solaris 8's {/usr,}/bin/sh.
2467 touch sub/conftst$i.h
2469 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2473 # after this tag, mechanisms are not by side-effect, so they'll
2474 # only be used when explicitly requested
2475 if test "x$enable_dependency_tracking" = xyes; then
2483 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2484 # mode. It turns out that the SunPro C++ compiler does not properly
2485 # handle `-M -o', and we need to detect this.
2486 if depmode=$depmode \
2487 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2488 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2489 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2490 >/dev/null 2>conftest.err &&
2491 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2492 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2493 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2494 # icc doesn't choke on unknown options, it will just issue warnings
2495 # or remarks (even with -Werror). So we grep stderr for any message
2496 # that says an option was ignored or not supported.
2497 # When given -MP, icc 7.0 and 7.1 complain thusly:
2498 # icc: Command line warning: ignoring option '-M'; no argument required
2499 # The diagnosis changed in icc 8.0:
2500 # icc: Command line remark: option '-MP' not supported
2501 if (grep 'ignoring option' conftest.err ||
2502 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2503 am_cv_CXX_dependencies_compiler_type=$depmode
2512 am_cv_CXX_dependencies_compiler_type=none
2516 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2517 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2518 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2523 test "x$enable_dependency_tracking" != xno \
2524 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2525 am__fastdepCXX_TRUE=
2526 am__fastdepCXX_FALSE='#'
2528 am__fastdepCXX_TRUE='#'
2529 am__fastdepCXX_FALSE=
2533 CXXFLAGS=`echo " $CXXFLAGS " | sed -e "s/ -g / /"` # do not want it implicitly
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539 if test -n "$ac_tool_prefix"; then
2540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2542 echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2544 if test "${ac_cv_prog_CC+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 if test -n "$CC"; then
2568 echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6
2571 echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6
2576 if test -z "$ac_cv_prog_CC"; then
2578 # Extract the first word of "gcc", so it can be a program name with args.
2579 set dummy gcc; ac_word=$2
2580 echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 if test -n "$ac_ct_CC"; then
2586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_ac_ct_CC="gcc"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if test -n "$ac_ct_CC"; then
2606 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2607 echo "${ECHO_T}$ac_ct_CC" >&6
2609 echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6
2618 if test -z "$CC"; then
2619 if test -n "$ac_tool_prefix"; then
2620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}cc; ac_word=$2
2622 echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2624 if test "${ac_cv_prog_CC+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 if test -n "$CC"; then
2628 ac_cv_prog_CC="$CC" # Let the user override the test.
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_CC="${ac_tool_prefix}cc"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 if test -n "$CC"; then
2648 echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6
2651 echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6
2656 if test -z "$ac_cv_prog_CC"; then
2658 # Extract the first word of "cc", so it can be a program name with args.
2659 set dummy cc; ac_word=$2
2660 echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 if test -n "$ac_ct_CC"; then
2666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_CC="cc"
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2685 if test -n "$ac_ct_CC"; then
2686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2687 echo "${ECHO_T}$ac_ct_CC" >&6
2689 echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2699 if test -z "$CC"; then
2700 # Extract the first word of "cc", so it can be a program name with args.
2701 set dummy cc; ac_word=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_prog_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2718 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2719 ac_prog_rejected=yes
2723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 if test $ac_prog_rejected = yes; then
2730 # We found a bogon in the path, so make sure we never use it.
2731 set dummy $ac_cv_prog_CC
2733 if test $# != 0; then
2734 # We chose a different compiler from the bogus one.
2735 # However, it has the same basename, so the bogon will be chosen
2736 # first if we set CC to just the basename; use the full file name.
2738 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2744 if test -n "$CC"; then
2745 echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6
2748 echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6
2753 if test -z "$CC"; then
2754 if test -n "$ac_tool_prefix"; then
2757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2759 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_CC+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test -n "$CC"; then
2785 echo "$as_me:$LINENO: result: $CC" >&5
2786 echo "${ECHO_T}$CC" >&6
2788 echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2792 test -n "$CC" && break
2795 if test -z "$CC"; then
2799 # Extract the first word of "$ac_prog", so it can be a program name with args.
2800 set dummy $ac_prog; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 if test -n "$ac_ct_CC"; then
2807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_ac_ct_CC="$ac_prog"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826 if test -n "$ac_ct_CC"; then
2827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2828 echo "${ECHO_T}$ac_ct_CC" >&6
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2834 test -n "$ac_ct_CC" && break
2843 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2844 See \`config.log' for more details." >&5
2845 echo "$as_me: error: no acceptable C compiler found in \$PATH
2846 See \`config.log' for more details." >&2;}
2847 { (exit 1); exit 1; }; }
2849 # Provide some information about the compiler.
2850 echo "$as_me:$LINENO:" \
2851 "checking for C compiler version" >&5
2852 ac_compiler=`set X $ac_compile; echo $2`
2853 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2854 (eval $ac_compiler --version </dev/null >&5) 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }
2858 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2859 (eval $ac_compiler -v </dev/null >&5) 2>&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }
2863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2864 (eval $ac_compiler -V </dev/null >&5) 2>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }
2869 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2870 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2892 rm -f conftest.$ac_objext
2893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2894 (eval $ac_compile) 2>conftest.er1
2896 grep -v '^ *+' conftest.er1 >conftest.err
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } &&
2901 { ac_try='test -z "$ac_c_werror_flag"
2902 || test ! -s conftest.err'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; } &&
2908 { ac_try='test -s conftest.$ac_objext'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2922 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2925 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2926 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2927 GCC=`test $ac_compiler_gnu = yes && echo yes`
2928 ac_test_CFLAGS=${CFLAGS+set}
2929 ac_save_CFLAGS=$CFLAGS
2931 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2932 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2933 if test "${ac_cv_prog_cc_g+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 cat >conftest.$ac_ext <<_ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_c_werror_flag"
2961 || test ! -s conftest.err'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2983 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2984 if test "$ac_test_CFLAGS" = set; then
2985 CFLAGS=$ac_save_CFLAGS
2986 elif test $ac_cv_prog_cc_g = yes; then
2987 if test "$GCC" = yes; then
2993 if test "$GCC" = yes; then
2999 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3000 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3001 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 ac_cv_prog_cc_stdc=no
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3014 #include <sys/types.h>
3015 #include <sys/stat.h>
3016 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3017 struct buf { int x; };
3018 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3019 static char *e (p, i)
3025 static char *f (char * (*g) (char **, int), char **p, ...)
3030 s = g (p, va_arg (v,int));
3035 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3036 function prototypes and stuff, but not '\xHH' hex character constants.
3037 These don't provoke an error unfortunately, instead are silently treated
3038 as 'x'. The following induces an error, until -std1 is added to get
3039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3040 array size at least. It's necessary to write '\x00'==0 to get something
3041 that's true only with -std1. */
3042 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3044 int test (int i, double x);
3045 struct s1 {int (*f) (int a);};
3046 struct s2 {int (*f) (double a);};
3047 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3053 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3058 # Don't try gcc -ansi; that turns off useful extensions and
3059 # breaks some systems' header files.
3060 # AIX -qlanglvl=ansi
3061 # Ultrix and OSF/1 -std1
3062 # HP-UX 10.20 and later -Ae
3063 # HP-UX older versions -Aa -D_HPUX_SOURCE
3064 # SVR4 -Xc -D__EXTENSIONS__
3065 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3067 CC="$ac_save_CC $ac_arg"
3068 rm -f conftest.$ac_objext
3069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3070 (eval $ac_compile) 2>conftest.er1
3072 grep -v '^ *+' conftest.er1 >conftest.err
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -z "$ac_c_werror_flag"
3078 || test ! -s conftest.err'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 ac_cv_prog_cc_stdc=$ac_arg
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3097 rm -f conftest.err conftest.$ac_objext
3099 rm -f conftest.$ac_ext conftest.$ac_objext
3104 case "x$ac_cv_prog_cc_stdc" in
3106 echo "$as_me:$LINENO: result: none needed" >&5
3107 echo "${ECHO_T}none needed" >&6 ;;
3109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3110 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3111 CC="$CC $ac_cv_prog_cc_stdc" ;;
3114 # Some people use a C++ compiler to compile C. Since we use `exit',
3115 # in C++ we need to declare it. In case someone uses the same compiler
3116 # for both compiling C and C++ we need to have the C++ compiler decide
3117 # the declaration of exit, since it's the most demanding environment.
3118 cat >conftest.$ac_ext <<_ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag"
3133 || test ! -s conftest.err'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 for ac_declaration in \
3147 'extern "C" void std::exit (int) throw (); using std::exit;' \
3148 'extern "C" void std::exit (int); using std::exit;' \
3149 'extern "C" void exit (int) throw ();' \
3150 'extern "C" void exit (int);' \
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3169 rm -f conftest.$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -z "$ac_c_werror_flag"
3179 || test ! -s conftest.err'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; } &&
3185 { ac_try='test -s conftest.$ac_objext'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3214 rm -f conftest.$ac_objext
3215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3216 (eval $ac_compile) 2>conftest.er1
3218 grep -v '^ *+' conftest.er1 >conftest.err
3220 cat conftest.err >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try='test -z "$ac_c_werror_flag"
3224 || test ! -s conftest.err'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; } &&
3230 { ac_try='test -s conftest.$ac_objext'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; }; then
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3245 if test -n "$ac_declaration"; then
3246 echo '#ifdef __cplusplus' >>confdefs.h
3247 echo $ac_declaration >>confdefs.h
3248 echo '#endif' >>confdefs.h
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 depcc="$CC" am_compiler_list=
3265 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3266 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3267 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3271 # We make a subdir and do the tests there. Otherwise we can end up
3272 # making bogus files that we don't know about and never remove. For
3273 # instance it was reported that on HP-UX the gcc test will end up
3274 # making a dummy file named `D' -- because `-MD' means `put the output
3277 # Copy depcomp to subdir because otherwise we won't find it if we're
3278 # using a relative directory.
3279 cp "$am_depcomp" conftest.dir
3281 # We will build objects and dependencies in a subdirectory because
3282 # it helps to detect inapplicable dependency modes. For instance
3283 # both Tru64's cc and ICC support -MD to output dependencies as a
3284 # side effect of compilation, but ICC will put the dependencies in
3285 # the current directory while Tru64 will put them in the object
3289 am_cv_CC_dependencies_compiler_type=none
3290 if test "$am_compiler_list" = ""; then
3291 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3293 for depmode in $am_compiler_list; do
3294 # Setup a source with many dependencies, because some compilers
3295 # like to wrap large dependency lists on column 80 (with \), and
3296 # we should not choose a depcomp mode which is confused by this.
3298 # We need to recreate these files for each test, as the compiler may
3299 # overwrite some of them when testing with obscure command lines.
3300 # This happens at least with the AIX C compiler.
3302 for i in 1 2 3 4 5 6; do
3303 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3304 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3305 # Solaris 8's {/usr,}/bin/sh.
3306 touch sub/conftst$i.h
3308 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3312 # after this tag, mechanisms are not by side-effect, so they'll
3313 # only be used when explicitly requested
3314 if test "x$enable_dependency_tracking" = xyes; then
3322 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3323 # mode. It turns out that the SunPro C++ compiler does not properly
3324 # handle `-M -o', and we need to detect this.
3325 if depmode=$depmode \
3326 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3327 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3328 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3329 >/dev/null 2>conftest.err &&
3330 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3331 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3332 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3333 # icc doesn't choke on unknown options, it will just issue warnings
3334 # or remarks (even with -Werror). So we grep stderr for any message
3335 # that says an option was ignored or not supported.
3336 # When given -MP, icc 7.0 and 7.1 complain thusly:
3337 # icc: Command line warning: ignoring option '-M'; no argument required
3338 # The diagnosis changed in icc 8.0:
3339 # icc: Command line remark: option '-MP' not supported
3340 if (grep 'ignoring option' conftest.err ||
3341 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3342 am_cv_CC_dependencies_compiler_type=$depmode
3351 am_cv_CC_dependencies_compiler_type=none
3355 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3356 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3357 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3362 test "x$enable_dependency_tracking" != xno \
3363 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3365 am__fastdepCC_FALSE='#'
3367 am__fastdepCC_TRUE='#'
3368 am__fastdepCC_FALSE=
3372 CFLAGS=`echo " $CFLAGS " | sed -e "s/ -g / /"` # do not want it implicitly
3374 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3375 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3376 if test "${ac_cv_search_strerror+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 ac_func_search_save_LIBS=$LIBS
3380 ac_cv_search_strerror=no
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3388 /* Override any gcc2 internal prototype to avoid an error. */
3392 /* We use char because int might match the return type of a gcc2
3393 builtin and then its argument prototype would still apply. */
3403 rm -f conftest.$ac_objext conftest$ac_exeext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3405 (eval $ac_link) 2>conftest.er1
3407 grep -v '^ *+' conftest.er1 >conftest.err
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -z "$ac_c_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try='test -s conftest$ac_exeext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 ac_cv_search_strerror="none required"
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3431 rm -f conftest.err conftest.$ac_objext \
3432 conftest$ac_exeext conftest.$ac_ext
3433 if test "$ac_cv_search_strerror" = no; then
3434 for ac_lib in cposix; do
3435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3436 cat >conftest.$ac_ext <<_ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3443 /* Override any gcc2 internal prototype to avoid an error. */
3447 /* We use char because int might match the return type of a gcc2
3448 builtin and then its argument prototype would still apply. */
3458 rm -f conftest.$ac_objext conftest$ac_exeext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460 (eval $ac_link) 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest$ac_exeext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 ac_cv_search_strerror="-l$ac_lib"
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3487 rm -f conftest.err conftest.$ac_objext \
3488 conftest$ac_exeext conftest.$ac_ext
3491 LIBS=$ac_func_search_save_LIBS
3493 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3494 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3495 if test "$ac_cv_search_strerror" != no; then
3496 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3500 # Find a good install program. We prefer a C program (faster),
3501 # so one script is as good as another. But avoid the broken or
3502 # incompatible versions:
3503 # SysV /etc/install, /usr/sbin/install
3504 # SunOS /usr/etc/install
3505 # IRIX /sbin/install
3507 # AmigaOS /C/install, which installs bootblocks on floppy discs
3508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3511 # OS/2's system install, which has a completely different semantic
3512 # ./install, which can be erroneously created by make from ./install.sh.
3513 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3514 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3515 if test -z "$INSTALL"; then
3516 if test "${ac_cv_path_install+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 test -z "$as_dir" && as_dir=.
3524 # Account for people who put trailing slashes in PATH elements.
3526 ./ | .// | /cC/* | \
3527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3528 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3531 # OSF1 and SCO ODT 3.0 have their own names for install.
3532 # Don't use installbsd from OSF since it installs stuff as root
3534 for ac_prog in ginstall scoinst install; do
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3537 if test $ac_prog = install &&
3538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3539 # AIX install. It has an incompatible calling convention.
3541 elif test $ac_prog = install &&
3542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3543 # program-specific install script used by HP pwplus--don't use.
3546 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3558 if test "${ac_cv_path_install+set}" = set; then
3559 INSTALL=$ac_cv_path_install
3561 # As a last resort, use the slow shell script. We don't cache a
3562 # path for INSTALL within a source directory, because that will
3563 # break other packages using the cache if that directory is
3564 # removed, or if the path is relative.
3565 INSTALL=$ac_install_sh
3568 echo "$as_me:$LINENO: result: $INSTALL" >&5
3569 echo "${ECHO_T}$INSTALL" >&6
3571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3572 # It thinks the first close brace ends the variable substitution.
3573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3579 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3580 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3581 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3582 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 cat >conftest.make <<\_ACEOF
3587 @echo 'ac_maketemp="$(MAKE)"'
3589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3590 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3591 if test -n "$ac_maketemp"; then
3592 eval ac_cv_prog_make_${ac_make}_set=yes
3594 eval ac_cv_prog_make_${ac_make}_set=no
3598 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3599 echo "$as_me:$LINENO: result: yes" >&5
3600 echo "${ECHO_T}yes" >&6
3603 echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6
3605 SET_MAKE="MAKE=${MAKE-make}"
3608 if test -n "$ac_tool_prefix"; then
3609 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3610 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_prog_RANLIB+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 if test -n "$RANLIB"; then
3617 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 RANLIB=$ac_cv_prog_RANLIB
3636 if test -n "$RANLIB"; then
3637 echo "$as_me:$LINENO: result: $RANLIB" >&5
3638 echo "${ECHO_T}$RANLIB" >&6
3640 echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3645 if test -z "$ac_cv_prog_RANLIB"; then
3646 ac_ct_RANLIB=$RANLIB
3647 # Extract the first word of "ranlib", so it can be a program name with args.
3648 set dummy ranlib; ac_word=$2
3649 echo "$as_me:$LINENO: checking for $ac_word" >&5
3650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3651 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 if test -n "$ac_ct_RANLIB"; then
3655 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_ac_ct_RANLIB="ranlib"
3665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3674 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3675 if test -n "$ac_ct_RANLIB"; then
3676 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3677 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3679 echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3683 RANLIB=$ac_ct_RANLIB
3685 RANLIB="$ac_cv_prog_RANLIB"
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 # Make sure we can run config.sub.
3695 $ac_config_sub sun4 >/dev/null 2>&1 ||
3696 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3697 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3698 { (exit 1); exit 1; }; }
3700 echo "$as_me:$LINENO: checking build system type" >&5
3701 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3702 if test "${ac_cv_build+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 ac_cv_build_alias=$build_alias
3706 test -z "$ac_cv_build_alias" &&
3707 ac_cv_build_alias=`$ac_config_guess`
3708 test -z "$ac_cv_build_alias" &&
3709 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3710 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3711 { (exit 1); exit 1; }; }
3712 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3713 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3714 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3715 { (exit 1); exit 1; }; }
3718 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3719 echo "${ECHO_T}$ac_cv_build" >&6
3721 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3722 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3723 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3726 echo "$as_me:$LINENO: checking host system type" >&5
3727 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3728 if test "${ac_cv_host+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 ac_cv_host_alias=$host_alias
3732 test -z "$ac_cv_host_alias" &&
3733 ac_cv_host_alias=$ac_cv_build_alias
3734 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3735 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3736 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3737 { (exit 1); exit 1; }; }
3740 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3741 echo "${ECHO_T}$ac_cv_host" >&6
3743 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3744 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3745 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3751 if test "$enable_threads" != no; then
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764 # We used to check for pthread.h first, but this fails if pthread.h
3765 # requires special compiler flags (e.g. on True64 or Sequent).
3766 # It gets checked for in the link test anyway.
3768 # First of all, check if the user has set any of the PTHREAD_LIBS,
3769 # etcetera environment variables, and if threads linking works using
3771 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
3772 save_CFLAGS="$CFLAGS"
3773 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
3775 LIBS="$PTHREAD_LIBS $LIBS"
3776 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
3777 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
3778 cat >conftest.$ac_ext <<_ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3785 /* Override any gcc2 internal prototype to avoid an error. */
3789 /* We use char because int might match the return type of a gcc2
3790 builtin and then its argument prototype would still apply. */
3791 char pthread_join ();
3800 rm -f conftest.$ac_objext conftest$ac_exeext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3802 (eval $ac_link) 2>conftest.er1
3804 grep -v '^ *+' conftest.er1 >conftest.err
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -z "$ac_c_werror_flag"
3810 || test ! -s conftest.err'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; } &&
3816 { ac_try='test -s conftest$ac_exeext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3828 rm -f conftest.err conftest.$ac_objext \
3829 conftest$ac_exeext conftest.$ac_ext
3830 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
3831 echo "${ECHO_T}$acx_pthread_ok" >&6
3832 if test x"$acx_pthread_ok" = xno; then
3837 CFLAGS="$save_CFLAGS"
3840 # We must check for the threads library under a number of different
3841 # names; the ordering is very important because some systems
3842 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
3843 # libraries is broken (non-POSIX).
3845 # Create a list of thread flags to try. Items starting with a "-" are
3846 # C compiler flags, and other items are library names, except for "none"
3847 # which indicates that we try without any flags at all, and "pthread-config"
3848 # which is a program returning the flags for the Pth emulation library.
3850 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
3852 # The ordering *is* (sometimes) important. Some notes on the
3853 # individual items follow:
3855 # pthreads: AIX (must check this before -lpthread)
3856 # none: in case threads are in libc; should be tried before -Kthread and
3857 # other compiler flags to prevent continual compiler warnings
3858 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
3859 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
3860 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
3861 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
3862 # -pthreads: Solaris/gcc
3863 # -mthreads: Mingw32/gcc, Lynx/gcc
3864 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
3865 # doesn't hurt to check since this sometimes defines pthreads too;
3866 # also defines -D_REENTRANT)
3867 # pthread: Linux, etcetera
3868 # --thread-safe: KAI C++
3869 # pthread-config: use pthread-config program (for GNU Pth library)
3871 case "${host_cpu}-${host_os}" in
3874 # On Solaris (at least, for some versions), libc contains stubbed
3875 # (non-functional) versions of the pthreads routines, so link-based
3876 # tests will erroneously succeed. (We need to link with -pthread or
3877 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
3878 # a function called by this macro, so we could check for that, but
3879 # who knows whether they'll stub that too in a future libc.) So,
3880 # we'll just look for -pthreads and -lpthread first:
3882 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
3886 if test x"$acx_pthread_ok" = xno; then
3887 for flag in $acx_pthread_flags; do
3891 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
3892 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
3896 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
3897 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
3898 PTHREAD_CFLAGS="$flag"
3902 # Extract the first word of "pthread-config", so it can be a program name with args.
3903 set dummy pthread-config; ac_word=$2
3904 echo "$as_me:$LINENO: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 if test -n "$acx_pthread_config"; then
3910 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_acx_pthread_config="yes"
3920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
3929 acx_pthread_config=$ac_cv_prog_acx_pthread_config
3930 if test -n "$acx_pthread_config"; then
3931 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
3932 echo "${ECHO_T}$acx_pthread_config" >&6
3934 echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3938 if test x"$acx_pthread_config" = xno; then continue; fi
3939 PTHREAD_CFLAGS="`pthread-config --cflags`"
3940 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
3944 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
3945 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
3946 PTHREAD_LIBS="-l$flag"
3951 save_CFLAGS="$CFLAGS"
3952 LIBS="$PTHREAD_LIBS $LIBS"
3953 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
3955 # Check for various functions. We must include pthread.h,
3956 # since some functions may be macros. (On the Sequent, we
3957 # need a special flag -Kthread to make this header compile.)
3958 # We check for pthread_join because it is in -lpthread on IRIX
3959 # while pthread_create is in libc. We check for pthread_attr_init
3960 # due to DEC craziness with -lpthreads. We check for
3961 # pthread_cleanup_push because it is one of the few pthread
3962 # functions on Solaris that doesn't have a non-functional libc stub.
3963 # We try pthread_create on general principles.
3964 cat >conftest.$ac_ext <<_ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3970 #include <pthread.h>
3974 pthread_t th; pthread_join(th, 0);
3975 pthread_attr_init(0); pthread_cleanup_push(0, 0);
3976 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
3981 rm -f conftest.$ac_objext conftest$ac_exeext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3983 (eval $ac_link) 2>conftest.er1
3985 grep -v '^ *+' conftest.er1 >conftest.err
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -z "$ac_c_werror_flag"
3991 || test ! -s conftest.err'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try='test -s conftest$ac_exeext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4009 rm -f conftest.err conftest.$ac_objext \
4010 conftest$ac_exeext conftest.$ac_ext
4013 CFLAGS="$save_CFLAGS"
4015 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4016 echo "${ECHO_T}$acx_pthread_ok" >&6
4017 if test "x$acx_pthread_ok" = xyes; then
4026 # Various other checks:
4027 if test "x$acx_pthread_ok" = xyes; then
4029 LIBS="$PTHREAD_LIBS $LIBS"
4030 save_CFLAGS="$CFLAGS"
4031 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4033 # Detect AIX lossage: threads are created detached by default
4034 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
4035 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
4036 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 #include <pthread.h>
4047 int attr=PTHREAD_CREATE_JOINABLE;
4052 rm -f conftest.$ac_objext conftest$ac_exeext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4054 (eval $ac_link) 2>conftest.er1
4056 grep -v '^ *+' conftest.er1 >conftest.err
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag"
4062 || test ! -s conftest.err'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; } &&
4068 { ac_try='test -s conftest$ac_exeext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ok=PTHREAD_CREATE_JOINABLE
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4081 rm -f conftest.err conftest.$ac_objext \
4082 conftest$ac_exeext conftest.$ac_ext
4083 if test x"$ok" = xunknown; then
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #include <pthread.h>
4094 int attr=PTHREAD_CREATE_UNDETACHED;
4099 rm -f conftest.$ac_objext conftest$ac_exeext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4101 (eval $ac_link) 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try='test -s conftest$ac_exeext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ok=PTHREAD_CREATE_UNDETACHED
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4128 rm -f conftest.err conftest.$ac_objext \
4129 conftest$ac_exeext conftest.$ac_ext
4131 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
4133 cat >>confdefs.h <<\_ACEOF
4134 #define PTHREAD_CREATE_JOINABLE $ok
4138 echo "$as_me:$LINENO: result: ${ok}" >&5
4139 echo "${ECHO_T}${ok}" >&6
4140 if test x"$ok" = xunknown; then
4141 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
4142 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
4145 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
4146 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
4148 case "${host_cpu}-${host_os}" in
4149 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
4150 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
4152 echo "$as_me:$LINENO: result: ${flag}" >&5
4153 echo "${ECHO_T}${flag}" >&6
4154 if test "x$flag" != xno; then
4155 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
4159 CFLAGS="$save_CFLAGS"
4161 # More AIX lossage: must compile with cc_r
4162 # Extract the first word of "cc_r", so it can be a program name with args.
4163 set dummy cc_r; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 if test -n "$PTHREAD_CC"; then
4170 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_PTHREAD_CC="cc_r"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
4189 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
4190 if test -n "$PTHREAD_CC"; then
4191 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
4192 echo "${ECHO_T}$PTHREAD_CC" >&6
4194 echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4206 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4207 if test x"$acx_pthread_ok" = xyes; then
4209 cat >>confdefs.h <<\_ACEOF
4210 #define HAVE_PTHREAD 1
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225 if test "$acx_pthread_ok" = yes; then
4226 cat >>confdefs.h <<\_ACEOF
4227 #define HAVE_POSIX_THREAD 1
4230 cat >>confdefs.h <<\_ACEOF
4231 #define _REENTRANT 1
4237 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4238 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4239 if test "${ac_cv_func_gethostbyname+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 cat >conftest.$ac_ext <<_ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4250 #define gethostbyname innocuous_gethostbyname
4252 /* System header to define __stub macros and hopefully few prototypes,
4253 which can conflict with char gethostbyname (); below.
4254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4255 <limits.h> exists even on freestanding compilers. */
4258 # include <limits.h>
4260 # include <assert.h>
4263 #undef gethostbyname
4265 /* Override any gcc2 internal prototype to avoid an error. */
4270 /* We use char because int might match the return type of a gcc2
4271 builtin and then its argument prototype would still apply. */
4272 char gethostbyname ();
4273 /* The GNU C library defines this for functions which it implements
4274 to always fail with ENOSYS. Some functions are actually named
4275 something starting with __ and the normal name is an alias. */
4276 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4279 char (*f) () = gethostbyname;
4288 return f != gethostbyname;
4293 rm -f conftest.$ac_objext conftest$ac_exeext
4294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4295 (eval $ac_link) 2>conftest.er1
4297 grep -v '^ *+' conftest.er1 >conftest.err
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try='test -z "$ac_c_werror_flag"
4303 || test ! -s conftest.err'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; } &&
4309 { ac_try='test -s conftest$ac_exeext'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 ac_cv_func_gethostbyname=yes
4317 echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4320 ac_cv_func_gethostbyname=no
4322 rm -f conftest.err conftest.$ac_objext \
4323 conftest$ac_exeext conftest.$ac_ext
4325 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4326 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4327 if test $ac_cv_func_gethostbyname = yes; then
4331 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4332 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4333 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 ac_check_lib_save_LIBS=$LIBS
4338 cat >conftest.$ac_ext <<_ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4345 /* Override any gcc2 internal prototype to avoid an error. */
4349 /* We use char because int might match the return type of a gcc2
4350 builtin and then its argument prototype would still apply. */
4351 char gethostbyname ();
4360 rm -f conftest.$ac_objext conftest$ac_exeext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4362 (eval $ac_link) 2>conftest.er1
4364 grep -v '^ *+' conftest.er1 >conftest.err
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest$ac_exeext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_lib_nsl_gethostbyname=yes
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 ac_cv_lib_nsl_gethostbyname=no
4389 rm -f conftest.err conftest.$ac_objext \
4390 conftest$ac_exeext conftest.$ac_ext
4391 LIBS=$ac_check_lib_save_LIBS
4393 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4394 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4395 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4396 cat >>confdefs.h <<_ACEOF
4397 #define HAVE_LIBNSL 1
4406 echo "$as_me:$LINENO: checking for socket" >&5
4407 echo $ECHO_N "checking for socket... $ECHO_C" >&6
4408 if test "${ac_cv_func_socket+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 cat >conftest.$ac_ext <<_ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
4418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4419 #define socket innocuous_socket
4421 /* System header to define __stub macros and hopefully few prototypes,
4422 which can conflict with char socket (); below.
4423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4424 <limits.h> exists even on freestanding compilers. */
4427 # include <limits.h>
4429 # include <assert.h>
4434 /* Override any gcc2 internal prototype to avoid an error. */
4439 /* We use char because int might match the return type of a gcc2
4440 builtin and then its argument prototype would still apply. */
4442 /* The GNU C library defines this for functions which it implements
4443 to always fail with ENOSYS. Some functions are actually named
4444 something starting with __ and the normal name is an alias. */
4445 #if defined (__stub_socket) || defined (__stub___socket)
4448 char (*f) () = socket;
4462 rm -f conftest.$ac_objext conftest$ac_exeext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4464 (eval $ac_link) 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_c_werror_flag"
4472 || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest$ac_exeext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_cv_func_socket=yes
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 ac_cv_func_socket=no
4491 rm -f conftest.err conftest.$ac_objext \
4492 conftest$ac_exeext conftest.$ac_ext
4494 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4495 echo "${ECHO_T}$ac_cv_func_socket" >&6
4496 if test $ac_cv_func_socket = yes; then
4500 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4501 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4502 if test "${ac_cv_lib_socket_socket+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 ac_check_lib_save_LIBS=$LIBS
4506 LIBS="-lsocket $LIBS"
4507 cat >conftest.$ac_ext <<_ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4514 /* Override any gcc2 internal prototype to avoid an error. */
4518 /* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4529 rm -f conftest.$ac_objext conftest$ac_exeext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4531 (eval $ac_link) 2>conftest.er1
4533 grep -v '^ *+' conftest.er1 >conftest.err
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_c_werror_flag"
4539 || test ! -s conftest.err'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; } &&
4545 { ac_try='test -s conftest$ac_exeext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 ac_cv_lib_socket_socket=yes
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 ac_cv_lib_socket_socket=no
4558 rm -f conftest.err conftest.$ac_objext \
4559 conftest$ac_exeext conftest.$ac_ext
4560 LIBS=$ac_check_lib_save_LIBS
4562 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4563 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4564 if test $ac_cv_lib_socket_socket = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566 #define HAVE_LIBSOCKET 1
4569 LIBS="-lsocket $LIBS"
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4582 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4583 # On Suns, sometimes $CPP names a directory.
4584 if test -n "$CPP" && test -d "$CPP"; then
4587 if test -z "$CPP"; then
4588 if test "${ac_cv_prog_CPP+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 # Double quotes because CPP needs to be expanded
4592 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4595 for ac_c_preproc_warn_flag in '' yes
4597 # Use a header file that comes with gcc, so configuring glibc
4598 # with a fresh cross-compiler works.
4599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4600 # <limits.h> exists even on freestanding compilers.
4601 # On the NeXT, cc -E runs the code through the compiler's parser,
4602 # not just through cpp. "Syntax error" is here to catch this case.
4603 cat >conftest.$ac_ext <<_ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4610 # include <limits.h>
4612 # include <assert.h>
4616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4619 grep -v '^ *+' conftest.er1 >conftest.err
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } >/dev/null; then
4624 if test -s conftest.err; then
4625 ac_cpp_err=$ac_c_preproc_warn_flag
4626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4633 if test -z "$ac_cpp_err"; then
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639 # Broken: fails on valid input.
4642 rm -f conftest.err conftest.$ac_ext
4644 # OK, works on sane cases. Now check whether non-existent headers
4645 # can be detected and how.
4646 cat >conftest.$ac_ext <<_ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 #include <ac_nonexistent.h>
4654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4657 grep -v '^ *+' conftest.er1 >conftest.err
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } >/dev/null; then
4662 if test -s conftest.err; then
4663 ac_cpp_err=$ac_c_preproc_warn_flag
4664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4671 if test -z "$ac_cpp_err"; then
4672 # Broken: success on invalid input.
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 # Passes both tests.
4682 rm -f conftest.err conftest.$ac_ext
4685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4686 rm -f conftest.err conftest.$ac_ext
4687 if $ac_preproc_ok; then
4699 echo "$as_me:$LINENO: result: $CPP" >&5
4700 echo "${ECHO_T}$CPP" >&6
4702 for ac_c_preproc_warn_flag in '' yes
4704 # Use a header file that comes with gcc, so configuring glibc
4705 # with a fresh cross-compiler works.
4706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4707 # <limits.h> exists even on freestanding compilers.
4708 # On the NeXT, cc -E runs the code through the compiler's parser,
4709 # not just through cpp. "Syntax error" is here to catch this case.
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4717 # include <limits.h>
4719 # include <assert.h>
4723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4726 grep -v '^ *+' conftest.er1 >conftest.err
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } >/dev/null; then
4731 if test -s conftest.err; then
4732 ac_cpp_err=$ac_c_preproc_warn_flag
4733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4740 if test -z "$ac_cpp_err"; then
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 # Broken: fails on valid input.
4749 rm -f conftest.err conftest.$ac_ext
4751 # OK, works on sane cases. Now check whether non-existent headers
4752 # can be detected and how.
4753 cat >conftest.$ac_ext <<_ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #include <ac_nonexistent.h>
4761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4764 grep -v '^ *+' conftest.er1 >conftest.err
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null; then
4769 if test -s conftest.err; then
4770 ac_cpp_err=$ac_c_preproc_warn_flag
4771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4778 if test -z "$ac_cpp_err"; then
4779 # Broken: success on invalid input.
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 # Passes both tests.
4789 rm -f conftest.err conftest.$ac_ext
4792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4793 rm -f conftest.err conftest.$ac_ext
4794 if $ac_preproc_ok; then
4797 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4798 See \`config.log' for more details." >&5
4799 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4800 See \`config.log' for more details." >&2;}
4801 { (exit 1); exit 1; }; }
4805 ac_cpp='$CPP $CPPFLAGS'
4806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 echo "$as_me:$LINENO: checking for egrep" >&5
4812 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4813 if test "${ac_cv_prog_egrep+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4817 then ac_cv_prog_egrep='grep -E'
4818 else ac_cv_prog_egrep='egrep'
4821 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4822 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4823 EGREP=$ac_cv_prog_egrep
4826 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4827 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4828 if test "${ac_cv_header_stdc+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4850 rm -f conftest.$ac_objext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>conftest.er1
4854 grep -v '^ *+' conftest.er1 >conftest.err
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
4859 { ac_try='test -z "$ac_c_werror_flag"
4860 || test ! -s conftest.err'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; } &&
4866 { ac_try='test -s conftest.$ac_objext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_header_stdc=yes
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 ac_cv_header_stdc=no
4879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4881 if test $ac_cv_header_stdc = yes; then
4882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4893 $EGREP "memchr" >/dev/null 2>&1; then
4896 ac_cv_header_stdc=no
4902 if test $ac_cv_header_stdc = yes; then
4903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4904 cat >conftest.$ac_ext <<_ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914 $EGREP "free" >/dev/null 2>&1; then
4917 ac_cv_header_stdc=no
4923 if test $ac_cv_header_stdc = yes; then
4924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4925 if test "$cross_compiling" = yes; then
4928 cat >conftest.$ac_ext <<_ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4935 #if ((' ' & 0x0FF) == 0x020)
4936 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4937 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4939 # define ISLOWER(c) \
4940 (('a' <= (c) && (c) <= 'i') \
4941 || ('j' <= (c) && (c) <= 'r') \
4942 || ('s' <= (c) && (c) <= 'z'))
4943 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4951 for (i = 0; i < 256; i++)
4952 if (XOR (islower (i), ISLOWER (i))
4953 || toupper (i) != TOUPPER (i))
4958 rm -f conftest$ac_exeext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4960 (eval $ac_link) 2>&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4971 echo "$as_me: program exited with status $ac_status" >&5
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_cv_header_stdc=no
4978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4982 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4983 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4984 if test $ac_cv_header_stdc = yes; then
4986 cat >>confdefs.h <<\_ACEOF
4987 #define STDC_HEADERS 1
4992 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5002 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5003 inttypes.h stdint.h unistd.h
5005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5006 echo "$as_me:$LINENO: checking for $ac_header" >&5
5007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 $ac_includes_default
5019 #include <$ac_header>
5021 rm -f conftest.$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>conftest.er1
5025 grep -v '^ *+' conftest.er1 >conftest.err
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 eval "$as_ac_Header=yes"
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5048 eval "$as_ac_Header=no"
5050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5055 cat >>confdefs.h <<_ACEOF
5056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5075 for ac_header in arpa/inet.h libintl.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h
5077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5079 echo "$as_me:$LINENO: checking for $ac_header" >&5
5080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5087 # Is the header compilable?
5088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5090 cat >conftest.$ac_ext <<_ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 $ac_includes_default
5097 #include <$ac_header>
5099 rm -f conftest.$ac_objext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101 (eval $ac_compile) 2>conftest.er1
5103 grep -v '^ *+' conftest.er1 >conftest.err
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
5108 { ac_try='test -z "$ac_c_werror_flag"
5109 || test ! -s conftest.err'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; } &&
5115 { ac_try='test -s conftest.$ac_objext'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 ac_header_compiler=yes
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5126 ac_header_compiler=no
5128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5130 echo "${ECHO_T}$ac_header_compiler" >&6
5132 # Is the header present?
5133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #include <$ac_header>
5143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5146 grep -v '^ *+' conftest.er1 >conftest.err
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } >/dev/null; then
5151 if test -s conftest.err; then
5152 ac_cpp_err=$ac_c_preproc_warn_flag
5153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5160 if test -z "$ac_cpp_err"; then
5161 ac_header_preproc=yes
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5166 ac_header_preproc=no
5168 rm -f conftest.err conftest.$ac_ext
5169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5170 echo "${ECHO_T}$ac_header_preproc" >&6
5172 # So? What about this header?
5173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5179 ac_header_preproc=yes
5182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5196 ## -------------------------------- ##
5197 ## Report this to the Iperf lists. ##
5198 ## -------------------------------- ##
5201 sed "s/^/$as_me: WARNING: /" >&2
5204 echo "$as_me:$LINENO: checking for $ac_header" >&5
5205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 eval "$as_ac_Header=\$ac_header_preproc"
5211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5216 cat >>confdefs.h <<_ACEOF
5217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5226 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5227 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5228 if test "${ac_cv_c_const+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5241 /* FIXME: Include the comments suggested by Paul. */
5243 /* Ultrix mips cc rejects this. */
5244 typedef int charset[2];
5246 /* SunOS 4.1.1 cc rejects this. */
5247 char const *const *ccp;
5249 /* NEC SVR4.0.2 mips cc rejects this. */
5250 struct point {int x, y;};
5251 static struct point const zero = {0,0};
5252 /* AIX XL C 1.02.0.0 rejects this.
5253 It does not let you subtract one const X* pointer from another in
5254 an arm of an if-expression whose if-part is not a constant
5256 const char *g = "string";
5257 ccp = &g + (g ? g-g : 0);
5258 /* HPUX 7.0 cc rejects these. */
5261 ccp = (char const *const *) p;
5262 { /* SCO 3.2v4 cc rejects this. */
5264 char const *s = 0 ? (char *) 0 : (char const *) 0;
5268 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5270 const int *foo = &x[0];
5273 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5274 typedef const int *iptr;
5278 { /* AIX XL C 1.02.0.0 rejects this saying
5279 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5280 struct s { int j; const int *ap[3]; };
5281 struct s *b; b->j = 5;
5283 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5292 rm -f conftest.$ac_objext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294 (eval $ac_compile) 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -z "$ac_c_werror_flag"
5302 || test ! -s conftest.err'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; } &&
5308 { ac_try='test -s conftest.$ac_objext'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5323 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5324 echo "${ECHO_T}$ac_cv_c_const" >&6
5325 if test $ac_cv_c_const = no; then
5327 cat >>confdefs.h <<\_ACEOF
5333 echo "$as_me:$LINENO: checking for size_t" >&5
5334 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5335 if test "${ac_cv_type_size_t+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 cat >conftest.$ac_ext <<_ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 $ac_includes_default
5350 if (sizeof (size_t))
5356 rm -f conftest.$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358 (eval $ac_compile) 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -z "$ac_c_werror_flag"
5366 || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_cv_type_size_t=yes
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_cv_type_size_t=no
5385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5387 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5388 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5389 if test $ac_cv_type_size_t = yes; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define size_t unsigned
5399 echo "$as_me:$LINENO: checking for ssize_t" >&5
5400 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
5401 if test "${ac_cv_type_ssize_t+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 cat >conftest.$ac_ext <<_ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410 $ac_includes_default
5416 if (sizeof (ssize_t))
5422 rm -f conftest.$ac_objext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>conftest.er1
5426 grep -v '^ *+' conftest.er1 >conftest.err
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -z "$ac_c_werror_flag"
5432 || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_type_ssize_t=yes
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5449 ac_cv_type_ssize_t=no
5451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5454 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
5455 if test $ac_cv_type_ssize_t = yes; then
5457 cat >>confdefs.h <<_ACEOF
5458 #define HAVE_SSIZE_T 1
5463 cat >>confdefs.h <<_ACEOF
5469 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5470 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5471 if test "${ac_cv_header_time+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 cat >conftest.$ac_ext <<_ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 #include <sys/types.h>
5481 #include <sys/time.h>
5487 if ((struct tm *) 0)
5493 rm -f conftest.$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495 (eval $ac_compile) 2>conftest.er1
5497 grep -v '^ *+' conftest.er1 >conftest.err
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -z "$ac_c_werror_flag"
5503 || test ! -s conftest.err'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; } &&
5509 { ac_try='test -s conftest.$ac_objext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5515 ac_cv_header_time=yes
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 ac_cv_header_time=no
5522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5524 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5525 echo "${ECHO_T}$ac_cv_header_time" >&6
5526 if test $ac_cv_header_time = yes; then
5528 cat >>confdefs.h <<\_ACEOF
5529 #define TIME_WITH_SYS_TIME 1
5534 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5535 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5536 if test "${ac_cv_struct_tm+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 cat >conftest.$ac_ext <<_ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 #include <sys/types.h>
5551 struct tm *tp; tp->tm_sec;
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5560 grep -v '^ *+' conftest.er1 >conftest.err
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 ac_cv_struct_tm=time.h
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 ac_cv_struct_tm=sys/time.h
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5587 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5588 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5589 if test $ac_cv_struct_tm = sys/time.h; then
5591 cat >>confdefs.h <<\_ACEOF
5592 #define TM_IN_SYS_TIME 1
5598 # ------ AX CREATE STDINT H -------------------------------------
5599 echo "$as_me:$LINENO: checking for stdint types" >&5
5600 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
5601 ac_stdint_h=`echo include/iperf-int.h`
5602 # try to shortcircuit - if the default include path of the compiler
5603 # can find a "stdint.h" header then we assume that all compilers can.
5604 if test "${ac_cv_header_stdint_t+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
5609 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
5610 old_CFLAGS="$CFLAGS" ; CFLAGS=""
5611 cat >conftest.$ac_ext <<_ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5621 int_least32_t v = 0;
5626 rm -f conftest.$ac_objext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>conftest.er1
5630 grep -v '^ *+' conftest.er1 >conftest.err
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_c_werror_flag"
5636 || test ! -s conftest.err'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; } &&
5642 { ac_try='test -s conftest.$ac_objext'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; }; then
5648 ac_cv_stdint_result="(assuming C99 compatible system)"
5649 ac_cv_header_stdint_t="stdint.h";
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ac_cv_header_stdint_t=""
5656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5657 CXXFLAGS="$old_CXXFLAGS"
5658 CPPFLAGS="$old_CPPFLAGS"
5659 CFLAGS="$old_CFLAGS"
5663 v="... $ac_cv_header_stdint_h"
5664 if test "$ac_stdint_h" = "stdint.h" ; then
5665 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
5666 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
5667 elif test "$ac_stdint_h" = "inttypes.h" ; then
5668 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
5669 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
5670 elif test "_$ac_cv_header_stdint_t" = "_" ; then
5671 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
5672 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
5674 ac_cv_header_stdint="$ac_cv_header_stdint_t"
5675 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
5676 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
5679 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
5682 inttype_headers=`echo | sed -e 's/,/ /g'`
5684 ac_cv_stdint_result="(no helpful system typedefs seen)"
5686 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5687 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5688 if test "${ac_cv_header_stdint_x+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
5693 echo "$as_me:$LINENO: result: (..)" >&5
5694 echo "${ECHO_T}(..)" >&6
5695 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
5696 unset ac_cv_type_uintptr_t
5697 unset ac_cv_type_uint64_t
5698 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5699 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5700 if test "${ac_cv_type_uintptr_t+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 cat >conftest.$ac_ext <<_ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5714 if ((uintptr_t *) 0)
5716 if (sizeof (uintptr_t))
5722 rm -f conftest.$ac_objext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_c_werror_flag"
5732 || test ! -s conftest.err'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest.$ac_objext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 ac_cv_type_uintptr_t=yes
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5749 ac_cv_type_uintptr_t=no
5751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5753 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5754 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5755 if test $ac_cv_type_uintptr_t = yes; then
5756 ac_cv_header_stdint_x=$i
5761 echo "$as_me:$LINENO: checking for uint64_t" >&5
5762 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5763 if test "${ac_cv_type_uint64_t+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 cat >conftest.$ac_ext <<_ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5779 if (sizeof (uint64_t))
5785 rm -f conftest.$ac_objext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>conftest.er1
5789 grep -v '^ *+' conftest.er1 >conftest.err
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try='test -z "$ac_c_werror_flag"
5795 || test ! -s conftest.err'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; } &&
5801 { ac_try='test -s conftest.$ac_objext'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; }; then
5807 ac_cv_type_uint64_t=yes
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5812 ac_cv_type_uint64_t=no
5814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5816 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5817 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5818 if test $ac_cv_type_uint64_t = yes; then
5824 stdint.h inttypes.h sys/inttypes.h $inttype_headers
5827 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5828 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5831 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
5832 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
5835 if test "_$ac_cv_header_stdint_x" = "_" ; then
5837 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5838 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5839 if test "${ac_cv_header_stdint_o+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
5844 echo "$as_me:$LINENO: result: (..)" >&5
5845 echo "${ECHO_T}(..)" >&6
5846 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
5847 unset ac_cv_type_uint32_t
5848 unset ac_cv_type_uint64_t
5849 echo "$as_me:$LINENO: checking for uint32_t" >&5
5850 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5851 if test "${ac_cv_type_uint32_t+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 cat >conftest.$ac_ext <<_ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5867 if (sizeof (uint32_t))
5873 rm -f conftest.$ac_objext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875 (eval $ac_compile) 2>conftest.er1
5877 grep -v '^ *+' conftest.er1 >conftest.err
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_c_werror_flag"
5883 || test ! -s conftest.err'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; } &&
5889 { ac_try='test -s conftest.$ac_objext'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5895 ac_cv_type_uint32_t=yes
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 ac_cv_type_uint32_t=no
5902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5904 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5905 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5906 if test $ac_cv_type_uint32_t = yes; then
5907 ac_cv_header_stdint_o=$i
5912 echo "$as_me:$LINENO: checking for uint64_t" >&5
5913 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5914 if test "${ac_cv_type_uint64_t+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 cat >conftest.$ac_ext <<_ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5930 if (sizeof (uint64_t))
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>conftest.er1
5940 grep -v '^ *+' conftest.er1 >conftest.err
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -z "$ac_c_werror_flag"
5946 || test ! -s conftest.err'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; } &&
5952 { ac_try='test -s conftest.$ac_objext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_type_uint64_t=yes
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_cv_type_uint64_t=no
5965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5967 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5968 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5969 if test $ac_cv_type_uint64_t = yes; then
5975 inttypes.h sys/inttypes.h stdint.h $inttype_headers
5979 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5980 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5983 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
5984 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
5988 if test "_$ac_cv_header_stdint_x" = "_" ; then
5989 if test "_$ac_cv_header_stdint_o" = "_" ; then
5991 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
5992 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
5993 if test "${ac_cv_header_stdint_u+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
5998 echo "$as_me:$LINENO: result: (..)" >&5
5999 echo "${ECHO_T}(..)" >&6
6000 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
6001 unset ac_cv_type_u_int32_t
6002 unset ac_cv_type_u_int64_t
6003 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6004 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6005 if test "${ac_cv_type_u_int32_t+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 cat >conftest.$ac_ext <<_ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6019 if ((u_int32_t *) 0)
6021 if (sizeof (u_int32_t))
6027 rm -f conftest.$ac_objext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>conftest.er1
6031 grep -v '^ *+' conftest.er1 >conftest.err
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try='test -z "$ac_c_werror_flag"
6037 || test ! -s conftest.err'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; } &&
6043 { ac_try='test -s conftest.$ac_objext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 ac_cv_type_u_int32_t=yes
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6054 ac_cv_type_u_int32_t=no
6056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6058 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6059 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6060 if test $ac_cv_type_u_int32_t = yes; then
6061 ac_cv_header_stdint_u=$i
6066 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6067 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6068 if test "${ac_cv_type_u_int64_t+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 cat >conftest.$ac_ext <<_ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6082 if ((u_int64_t *) 0)
6084 if (sizeof (u_int64_t))
6090 rm -f conftest.$ac_objext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092 (eval $ac_compile) 2>conftest.er1
6094 grep -v '^ *+' conftest.er1 >conftest.err
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } &&
6099 { ac_try='test -z "$ac_c_werror_flag"
6100 || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_cv_type_u_int64_t=yes
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6117 ac_cv_type_u_int64_t=no
6119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6122 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6123 if test $ac_cv_type_u_int64_t = yes; then
6129 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
6133 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
6134 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
6137 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
6138 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
6142 if test "_$ac_cv_header_stdint_x" = "_" ; then
6143 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
6144 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
6145 echo "$as_me:$LINENO: result: (..)" >&5
6146 echo "${ECHO_T}(..)" >&6
6148 echo "$as_me:$LINENO: checking for char" >&5
6149 echo $ECHO_N "checking for char... $ECHO_C" >&6
6150 if test "${ac_cv_type_char+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 cat >conftest.$ac_ext <<_ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 $ac_includes_default
6171 rm -f conftest.$ac_objext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173 (eval $ac_compile) 2>conftest.er1
6175 grep -v '^ *+' conftest.er1 >conftest.err
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -z "$ac_c_werror_flag"
6181 || test ! -s conftest.err'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; } &&
6187 { ac_try='test -s conftest.$ac_objext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6202 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6203 echo "${ECHO_T}$ac_cv_type_char" >&6
6205 echo "$as_me:$LINENO: checking size of char" >&5
6206 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6207 if test "${ac_cv_sizeof_char+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 if test "$ac_cv_type_char" = yes; then
6211 # The cast to unsigned long works around a bug in the HP C Compiler
6212 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6213 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6214 # This bug is HP SR number 8606223364.
6215 if test "$cross_compiling" = yes; then
6216 # Depending upon the size, compute the lo and hi bounds.
6217 cat >conftest.$ac_ext <<_ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 $ac_includes_default
6227 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6234 rm -f conftest.$ac_objext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6236 (eval $ac_compile) 2>conftest.er1
6238 grep -v '^ *+' conftest.er1 >conftest.err
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try='test -z "$ac_c_werror_flag"
6244 || test ! -s conftest.err'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; } &&
6250 { ac_try='test -s conftest.$ac_objext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6258 cat >conftest.$ac_ext <<_ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6264 $ac_includes_default
6268 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6275 rm -f conftest.$ac_objext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6277 (eval $ac_compile) 2>conftest.er1
6279 grep -v '^ *+' conftest.er1 >conftest.err
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -z "$ac_c_werror_flag"
6285 || test ! -s conftest.err'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try='test -s conftest.$ac_objext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_hi=$ac_mid; break
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 ac_lo=`expr $ac_mid + 1`
6303 if test $ac_lo -le $ac_mid; then
6307 ac_mid=`expr 2 '*' $ac_mid + 1`
6309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6315 cat >conftest.$ac_ext <<_ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 $ac_includes_default
6325 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6332 rm -f conftest.$ac_objext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6334 (eval $ac_compile) 2>conftest.er1
6336 grep -v '^ *+' conftest.er1 >conftest.err
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try='test -z "$ac_c_werror_flag"
6342 || test ! -s conftest.err'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest.$ac_objext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6356 cat >conftest.$ac_ext <<_ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6362 $ac_includes_default
6366 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6373 rm -f conftest.$ac_objext
6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375 (eval $ac_compile) 2>conftest.er1
6377 grep -v '^ *+' conftest.er1 >conftest.err
6379 cat conftest.err >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try='test -z "$ac_c_werror_flag"
6383 || test ! -s conftest.err'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; } &&
6389 { ac_try='test -s conftest.$ac_objext'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6395 ac_lo=$ac_mid; break
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6400 ac_hi=`expr '(' $ac_mid ')' - 1`
6401 if test $ac_mid -le $ac_hi; then
6405 ac_mid=`expr 2 '*' $ac_mid`
6407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6418 # Binary search between lo and hi bounds.
6419 while test "x$ac_lo" != "x$ac_hi"; do
6420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 $ac_includes_default
6431 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440 (eval $ac_compile) 2>conftest.er1
6442 grep -v '^ *+' conftest.er1 >conftest.err
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest.$ac_objext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6465 ac_lo=`expr '(' $ac_mid ')' + 1`
6467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6470 ?*) ac_cv_sizeof_char=$ac_lo;;
6471 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6472 See \`config.log' for more details." >&5
6473 echo "$as_me: error: cannot compute sizeof (char), 77
6474 See \`config.log' for more details." >&2;}
6475 { (exit 1); exit 1; }; } ;;
6478 if test "$cross_compiling" = yes; then
6479 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6480 See \`config.log' for more details." >&5
6481 echo "$as_me: error: cannot run test program while cross compiling
6482 See \`config.log' for more details." >&2;}
6483 { (exit 1); exit 1; }; }
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 $ac_includes_default
6492 long longval () { return (long) (sizeof (char)); }
6493 unsigned long ulongval () { return (long) (sizeof (char)); }
6500 FILE *f = fopen ("conftest.val", "w");
6503 if (((long) (sizeof (char))) < 0)
6505 long i = longval ();
6506 if (i != ((long) (sizeof (char))))
6508 fprintf (f, "%ld\n", i);
6512 unsigned long i = ulongval ();
6513 if (i != ((long) (sizeof (char))))
6515 fprintf (f, "%lu\n", i);
6517 exit (ferror (f) || fclose (f) != 0);
6523 rm -f conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525 (eval $ac_link) 2>&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; }; then
6534 ac_cv_sizeof_char=`cat conftest.val`
6536 echo "$as_me: program exited with status $ac_status" >&5
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6542 See \`config.log' for more details." >&5
6543 echo "$as_me: error: cannot compute sizeof (char), 77
6544 See \`config.log' for more details." >&2;}
6545 { (exit 1); exit 1; }; }
6547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6556 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6557 cat >>confdefs.h <<_ACEOF
6558 #define SIZEOF_CHAR $ac_cv_sizeof_char
6562 echo "$as_me:$LINENO: checking for short" >&5
6563 echo $ECHO_N "checking for short... $ECHO_C" >&6
6564 if test "${ac_cv_type_short+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 cat >conftest.$ac_ext <<_ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 $ac_includes_default
6585 rm -f conftest.$ac_objext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6587 (eval $ac_compile) 2>conftest.er1
6589 grep -v '^ *+' conftest.er1 >conftest.err
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -z "$ac_c_werror_flag"
6595 || test ! -s conftest.err'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; } &&
6601 { ac_try='test -s conftest.$ac_objext'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_cv_type_short=yes
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6616 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6617 echo "${ECHO_T}$ac_cv_type_short" >&6
6619 echo "$as_me:$LINENO: checking size of short" >&5
6620 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6621 if test "${ac_cv_sizeof_short+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 if test "$ac_cv_type_short" = yes; then
6625 # The cast to unsigned long works around a bug in the HP C Compiler
6626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6628 # This bug is HP SR number 8606223364.
6629 if test "$cross_compiling" = yes; then
6630 # Depending upon the size, compute the lo and hi bounds.
6631 cat >conftest.$ac_ext <<_ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6637 $ac_includes_default
6641 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6648 rm -f conftest.$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>conftest.er1
6652 grep -v '^ *+' conftest.er1 >conftest.err
6654 cat conftest.err >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -z "$ac_c_werror_flag"
6658 || test ! -s conftest.err'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; } &&
6664 { ac_try='test -s conftest.$ac_objext'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; }; then
6672 cat >conftest.$ac_ext <<_ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 $ac_includes_default
6682 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6689 rm -f conftest.$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691 (eval $ac_compile) 2>conftest.er1
6693 grep -v '^ *+' conftest.er1 >conftest.err
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -z "$ac_c_werror_flag"
6699 || test ! -s conftest.err'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; } &&
6705 { ac_try='test -s conftest.$ac_objext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_hi=$ac_mid; break
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 ac_lo=`expr $ac_mid + 1`
6717 if test $ac_lo -le $ac_mid; then
6721 ac_mid=`expr 2 '*' $ac_mid + 1`
6723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 cat >conftest.$ac_ext <<_ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6735 $ac_includes_default
6739 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6746 rm -f conftest.$ac_objext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6748 (eval $ac_compile) 2>conftest.er1
6750 grep -v '^ *+' conftest.er1 >conftest.err
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } &&
6755 { ac_try='test -z "$ac_c_werror_flag"
6756 || test ! -s conftest.err'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; } &&
6762 { ac_try='test -s conftest.$ac_objext'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
6770 cat >conftest.$ac_ext <<_ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6776 $ac_includes_default
6780 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6787 rm -f conftest.$ac_objext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6789 (eval $ac_compile) 2>conftest.er1
6791 grep -v '^ *+' conftest.er1 >conftest.err
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try='test -z "$ac_c_werror_flag"
6797 || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_lo=$ac_mid; break
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 ac_hi=`expr '(' $ac_mid ')' - 1`
6815 if test $ac_mid -le $ac_hi; then
6819 ac_mid=`expr 2 '*' $ac_mid`
6821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 # Binary search between lo and hi bounds.
6833 while test "x$ac_lo" != "x$ac_hi"; do
6834 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6835 cat >conftest.$ac_ext <<_ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 $ac_includes_default
6845 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>conftest.er1
6856 grep -v '^ *+' conftest.er1 >conftest.err
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -z "$ac_c_werror_flag"
6862 || test ! -s conftest.err'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; } &&
6868 { ac_try='test -s conftest.$ac_objext'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6879 ac_lo=`expr '(' $ac_mid ')' + 1`
6881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6884 ?*) ac_cv_sizeof_short=$ac_lo;;
6885 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6886 See \`config.log' for more details." >&5
6887 echo "$as_me: error: cannot compute sizeof (short), 77
6888 See \`config.log' for more details." >&2;}
6889 { (exit 1); exit 1; }; } ;;
6892 if test "$cross_compiling" = yes; then
6893 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6894 See \`config.log' for more details." >&5
6895 echo "$as_me: error: cannot run test program while cross compiling
6896 See \`config.log' for more details." >&2;}
6897 { (exit 1); exit 1; }; }
6899 cat >conftest.$ac_ext <<_ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 $ac_includes_default
6906 long longval () { return (long) (sizeof (short)); }
6907 unsigned long ulongval () { return (long) (sizeof (short)); }
6914 FILE *f = fopen ("conftest.val", "w");
6917 if (((long) (sizeof (short))) < 0)
6919 long i = longval ();
6920 if (i != ((long) (sizeof (short))))
6922 fprintf (f, "%ld\n", i);
6926 unsigned long i = ulongval ();
6927 if (i != ((long) (sizeof (short))))
6929 fprintf (f, "%lu\n", i);
6931 exit (ferror (f) || fclose (f) != 0);
6937 rm -f conftest$ac_exeext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6939 (eval $ac_link) 2>&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 ac_cv_sizeof_short=`cat conftest.val`
6950 echo "$as_me: program exited with status $ac_status" >&5
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6955 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6956 See \`config.log' for more details." >&5
6957 echo "$as_me: error: cannot compute sizeof (short), 77
6958 See \`config.log' for more details." >&2;}
6959 { (exit 1); exit 1; }; }
6961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6966 ac_cv_sizeof_short=0
6969 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6970 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6971 cat >>confdefs.h <<_ACEOF
6972 #define SIZEOF_SHORT $ac_cv_sizeof_short
6976 echo "$as_me:$LINENO: checking for int" >&5
6977 echo $ECHO_N "checking for int... $ECHO_C" >&6
6978 if test "${ac_cv_type_int+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6999 rm -f conftest.$ac_objext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001 (eval $ac_compile) 2>conftest.er1
7003 grep -v '^ *+' conftest.er1 >conftest.err
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -z "$ac_c_werror_flag"
7009 || test ! -s conftest.err'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; } &&
7015 { ac_try='test -s conftest.$ac_objext'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7031 echo "${ECHO_T}$ac_cv_type_int" >&6
7033 echo "$as_me:$LINENO: checking size of int" >&5
7034 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7035 if test "${ac_cv_sizeof_int+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 if test "$ac_cv_type_int" = yes; then
7039 # The cast to unsigned long works around a bug in the HP C Compiler
7040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7042 # This bug is HP SR number 8606223364.
7043 if test "$cross_compiling" = yes; then
7044 # Depending upon the size, compute the lo and hi bounds.
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 $ac_includes_default
7055 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7062 rm -f conftest.$ac_objext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064 (eval $ac_compile) 2>conftest.er1
7066 grep -v '^ *+' conftest.er1 >conftest.err
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try='test -z "$ac_c_werror_flag"
7072 || test ! -s conftest.err'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; } &&
7078 { ac_try='test -s conftest.$ac_objext'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; }; then
7086 cat >conftest.$ac_ext <<_ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7096 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7103 rm -f conftest.$ac_objext
7104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7105 (eval $ac_compile) 2>conftest.er1
7107 grep -v '^ *+' conftest.er1 >conftest.err
7109 cat conftest.err >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } &&
7112 { ac_try='test -z "$ac_c_werror_flag"
7113 || test ! -s conftest.err'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; } &&
7119 { ac_try='test -s conftest.$ac_objext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_hi=$ac_mid; break
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7130 ac_lo=`expr $ac_mid + 1`
7131 if test $ac_lo -le $ac_mid; then
7135 ac_mid=`expr 2 '*' $ac_mid + 1`
7137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 cat >conftest.$ac_ext <<_ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 $ac_includes_default
7153 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7160 rm -f conftest.$ac_objext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162 (eval $ac_compile) 2>conftest.er1
7164 grep -v '^ *+' conftest.er1 >conftest.err
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try='test -z "$ac_c_werror_flag"
7170 || test ! -s conftest.err'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; } &&
7176 { ac_try='test -s conftest.$ac_objext'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; }; then
7184 cat >conftest.$ac_ext <<_ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 $ac_includes_default
7194 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7201 rm -f conftest.$ac_objext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7203 (eval $ac_compile) 2>conftest.er1
7205 grep -v '^ *+' conftest.er1 >conftest.err
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } &&
7210 { ac_try='test -z "$ac_c_werror_flag"
7211 || test ! -s conftest.err'
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; } &&
7217 { ac_try='test -s conftest.$ac_objext'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; }; then
7223 ac_lo=$ac_mid; break
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7228 ac_hi=`expr '(' $ac_mid ')' - 1`
7229 if test $ac_mid -le $ac_hi; then
7233 ac_mid=`expr 2 '*' $ac_mid`
7235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7246 # Binary search between lo and hi bounds.
7247 while test "x$ac_lo" != "x$ac_hi"; do
7248 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7249 cat >conftest.$ac_ext <<_ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 $ac_includes_default
7259 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7266 rm -f conftest.$ac_objext
7267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268 (eval $ac_compile) 2>conftest.er1
7270 grep -v '^ *+' conftest.er1 >conftest.err
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } &&
7275 { ac_try='test -z "$ac_c_werror_flag"
7276 || test ! -s conftest.err'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; } &&
7282 { ac_try='test -s conftest.$ac_objext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 ac_lo=`expr '(' $ac_mid ')' + 1`
7295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7298 ?*) ac_cv_sizeof_int=$ac_lo;;
7299 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7300 See \`config.log' for more details." >&5
7301 echo "$as_me: error: cannot compute sizeof (int), 77
7302 See \`config.log' for more details." >&2;}
7303 { (exit 1); exit 1; }; } ;;
7306 if test "$cross_compiling" = yes; then
7307 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7308 See \`config.log' for more details." >&5
7309 echo "$as_me: error: cannot run test program while cross compiling
7310 See \`config.log' for more details." >&2;}
7311 { (exit 1); exit 1; }; }
7313 cat >conftest.$ac_ext <<_ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 $ac_includes_default
7320 long longval () { return (long) (sizeof (int)); }
7321 unsigned long ulongval () { return (long) (sizeof (int)); }
7328 FILE *f = fopen ("conftest.val", "w");
7331 if (((long) (sizeof (int))) < 0)
7333 long i = longval ();
7334 if (i != ((long) (sizeof (int))))
7336 fprintf (f, "%ld\n", i);
7340 unsigned long i = ulongval ();
7341 if (i != ((long) (sizeof (int))))
7343 fprintf (f, "%lu\n", i);
7345 exit (ferror (f) || fclose (f) != 0);
7351 rm -f conftest$ac_exeext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353 (eval $ac_link) 2>&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); }; }; then
7362 ac_cv_sizeof_int=`cat conftest.val`
7364 echo "$as_me: program exited with status $ac_status" >&5
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7369 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7370 See \`config.log' for more details." >&5
7371 echo "$as_me: error: cannot compute sizeof (int), 77
7372 See \`config.log' for more details." >&2;}
7373 { (exit 1); exit 1; }; }
7375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7383 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7384 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7385 cat >>confdefs.h <<_ACEOF
7386 #define SIZEOF_INT $ac_cv_sizeof_int
7390 echo "$as_me:$LINENO: checking for long" >&5
7391 echo $ECHO_N "checking for long... $ECHO_C" >&6
7392 if test "${ac_cv_type_long+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 cat >conftest.$ac_ext <<_ACEOF
7398 cat confdefs.h >>conftest.$ac_ext
7399 cat >>conftest.$ac_ext <<_ACEOF
7400 /* end confdefs.h. */
7401 $ac_includes_default
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>conftest.er1
7417 grep -v '^ *+' conftest.er1 >conftest.err
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
7422 { ac_try='test -z "$ac_c_werror_flag"
7423 || test ! -s conftest.err'
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; } &&
7429 { ac_try='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7444 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7445 echo "${ECHO_T}$ac_cv_type_long" >&6
7447 echo "$as_me:$LINENO: checking size of long" >&5
7448 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7449 if test "${ac_cv_sizeof_long+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 if test "$ac_cv_type_long" = yes; then
7453 # The cast to unsigned long works around a bug in the HP C Compiler
7454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7456 # This bug is HP SR number 8606223364.
7457 if test "$cross_compiling" = yes; then
7458 # Depending upon the size, compute the lo and hi bounds.
7459 cat >conftest.$ac_ext <<_ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 $ac_includes_default
7469 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7476 rm -f conftest.$ac_objext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478 (eval $ac_compile) 2>conftest.er1
7480 grep -v '^ *+' conftest.er1 >conftest.err
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -z "$ac_c_werror_flag"
7486 || test ! -s conftest.err'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; } &&
7492 { ac_try='test -s conftest.$ac_objext'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; }; then
7500 cat >conftest.$ac_ext <<_ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 $ac_includes_default
7510 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7517 rm -f conftest.$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519 (eval $ac_compile) 2>conftest.er1
7521 grep -v '^ *+' conftest.er1 >conftest.err
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -z "$ac_c_werror_flag"
7527 || test ! -s conftest.err'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; } &&
7533 { ac_try='test -s conftest.$ac_objext'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 ac_hi=$ac_mid; break
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7544 ac_lo=`expr $ac_mid + 1`
7545 if test $ac_lo -le $ac_mid; then
7549 ac_mid=`expr 2 '*' $ac_mid + 1`
7551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 cat >conftest.$ac_ext <<_ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 $ac_includes_default
7567 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7574 rm -f conftest.$ac_objext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7576 (eval $ac_compile) 2>conftest.er1
7578 grep -v '^ *+' conftest.er1 >conftest.err
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } &&
7583 { ac_try='test -z "$ac_c_werror_flag"
7584 || test ! -s conftest.err'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; } &&
7590 { ac_try='test -s conftest.$ac_objext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7598 cat >conftest.$ac_ext <<_ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 $ac_includes_default
7608 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7615 rm -f conftest.$ac_objext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7617 (eval $ac_compile) 2>conftest.er1
7619 grep -v '^ *+' conftest.er1 >conftest.err
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } &&
7624 { ac_try='test -z "$ac_c_werror_flag"
7625 || test ! -s conftest.err'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; } &&
7631 { ac_try='test -s conftest.$ac_objext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 ac_lo=$ac_mid; break
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 ac_hi=`expr '(' $ac_mid ')' - 1`
7643 if test $ac_mid -le $ac_hi; then
7647 ac_mid=`expr 2 '*' $ac_mid`
7649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7660 # Binary search between lo and hi bounds.
7661 while test "x$ac_lo" != "x$ac_hi"; do
7662 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7663 cat >conftest.$ac_ext <<_ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 $ac_includes_default
7673 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7680 rm -f conftest.$ac_objext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7682 (eval $ac_compile) 2>conftest.er1
7684 grep -v '^ *+' conftest.er1 >conftest.err
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -z "$ac_c_werror_flag"
7690 || test ! -s conftest.err'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; } &&
7696 { ac_try='test -s conftest.$ac_objext'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 ac_lo=`expr '(' $ac_mid ')' + 1`
7709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7712 ?*) ac_cv_sizeof_long=$ac_lo;;
7713 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7714 See \`config.log' for more details." >&5
7715 echo "$as_me: error: cannot compute sizeof (long), 77
7716 See \`config.log' for more details." >&2;}
7717 { (exit 1); exit 1; }; } ;;
7720 if test "$cross_compiling" = yes; then
7721 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7722 See \`config.log' for more details." >&5
7723 echo "$as_me: error: cannot run test program while cross compiling
7724 See \`config.log' for more details." >&2;}
7725 { (exit 1); exit 1; }; }
7727 cat >conftest.$ac_ext <<_ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7733 $ac_includes_default
7734 long longval () { return (long) (sizeof (long)); }
7735 unsigned long ulongval () { return (long) (sizeof (long)); }
7742 FILE *f = fopen ("conftest.val", "w");
7745 if (((long) (sizeof (long))) < 0)
7747 long i = longval ();
7748 if (i != ((long) (sizeof (long))))
7750 fprintf (f, "%ld\n", i);
7754 unsigned long i = ulongval ();
7755 if (i != ((long) (sizeof (long))))
7757 fprintf (f, "%lu\n", i);
7759 exit (ferror (f) || fclose (f) != 0);
7765 rm -f conftest$ac_exeext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767 (eval $ac_link) 2>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; }; then
7776 ac_cv_sizeof_long=`cat conftest.val`
7778 echo "$as_me: program exited with status $ac_status" >&5
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7783 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7784 See \`config.log' for more details." >&5
7785 echo "$as_me: error: cannot compute sizeof (long), 77
7786 See \`config.log' for more details." >&2;}
7787 { (exit 1); exit 1; }; }
7789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7797 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7798 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7799 cat >>confdefs.h <<_ACEOF
7800 #define SIZEOF_LONG $ac_cv_sizeof_long
7804 echo "$as_me:$LINENO: checking for void*" >&5
7805 echo $ECHO_N "checking for void*... $ECHO_C" >&6
7806 if test "${ac_cv_type_voidp+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 cat >conftest.$ac_ext <<_ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 $ac_includes_default
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>conftest.er1
7831 grep -v '^ *+' conftest.er1 >conftest.err
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest.$ac_objext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 ac_cv_type_voidp=yes
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7858 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7859 echo "${ECHO_T}$ac_cv_type_voidp" >&6
7861 echo "$as_me:$LINENO: checking size of void*" >&5
7862 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
7863 if test "${ac_cv_sizeof_voidp+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 if test "$ac_cv_type_voidp" = yes; then
7867 # The cast to unsigned long works around a bug in the HP C Compiler
7868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7870 # This bug is HP SR number 8606223364.
7871 if test "$cross_compiling" = yes; then
7872 # Depending upon the size, compute the lo and hi bounds.
7873 cat >conftest.$ac_ext <<_ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7879 $ac_includes_default
7883 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>conftest.er1
7894 grep -v '^ *+' conftest.er1 >conftest.err
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -z "$ac_c_werror_flag"
7900 || test ! -s conftest.err'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; } &&
7906 { ac_try='test -s conftest.$ac_objext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7914 cat >conftest.$ac_ext <<_ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920 $ac_includes_default
7924 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
7931 rm -f conftest.$ac_objext
7932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7933 (eval $ac_compile) 2>conftest.er1
7935 grep -v '^ *+' conftest.er1 >conftest.err
7937 cat conftest.err >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } &&
7940 { ac_try='test -z "$ac_c_werror_flag"
7941 || test ! -s conftest.err'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; } &&
7947 { ac_try='test -s conftest.$ac_objext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 ac_hi=$ac_mid; break
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_lo=`expr $ac_mid + 1`
7959 if test $ac_lo -le $ac_mid; then
7963 ac_mid=`expr 2 '*' $ac_mid + 1`
7965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 cat >conftest.$ac_ext <<_ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7977 $ac_includes_default
7981 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
7988 rm -f conftest.$ac_objext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7990 (eval $ac_compile) 2>conftest.er1
7992 grep -v '^ *+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag"
7998 || test ! -s conftest.err'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest.$ac_objext'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8012 cat >conftest.$ac_ext <<_ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 $ac_includes_default
8022 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
8029 rm -f conftest.$ac_objext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8031 (eval $ac_compile) 2>conftest.er1
8033 grep -v '^ *+' conftest.er1 >conftest.err
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -z "$ac_c_werror_flag"
8039 || test ! -s conftest.err'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest.$ac_objext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_lo=$ac_mid; break
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8056 ac_hi=`expr '(' $ac_mid ')' - 1`
8057 if test $ac_mid -le $ac_hi; then
8061 ac_mid=`expr 2 '*' $ac_mid`
8063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8074 # Binary search between lo and hi bounds.
8075 while test "x$ac_lo" != "x$ac_hi"; do
8076 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8077 cat >conftest.$ac_ext <<_ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 $ac_includes_default
8087 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
8094 rm -f conftest.$ac_objext
8095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8096 (eval $ac_compile) 2>conftest.er1
8098 grep -v '^ *+' conftest.er1 >conftest.err
8100 cat conftest.err >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try='test -z "$ac_c_werror_flag"
8104 || test ! -s conftest.err'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; } &&
8110 { ac_try='test -s conftest.$ac_objext'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8121 ac_lo=`expr '(' $ac_mid ')' + 1`
8123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8126 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8127 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
8128 See \`config.log' for more details." >&5
8129 echo "$as_me: error: cannot compute sizeof (void*), 77
8130 See \`config.log' for more details." >&2;}
8131 { (exit 1); exit 1; }; } ;;
8134 if test "$cross_compiling" = yes; then
8135 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8136 See \`config.log' for more details." >&5
8137 echo "$as_me: error: cannot run test program while cross compiling
8138 See \`config.log' for more details." >&2;}
8139 { (exit 1); exit 1; }; }
8141 cat >conftest.$ac_ext <<_ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8148 long longval () { return (long) (sizeof (void*)); }
8149 unsigned long ulongval () { return (long) (sizeof (void*)); }
8156 FILE *f = fopen ("conftest.val", "w");
8159 if (((long) (sizeof (void*))) < 0)
8161 long i = longval ();
8162 if (i != ((long) (sizeof (void*))))
8164 fprintf (f, "%ld\n", i);
8168 unsigned long i = ulongval ();
8169 if (i != ((long) (sizeof (void*))))
8171 fprintf (f, "%lu\n", i);
8173 exit (ferror (f) || fclose (f) != 0);
8179 rm -f conftest$ac_exeext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181 (eval $ac_link) 2>&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_cv_sizeof_voidp=`cat conftest.val`
8192 echo "$as_me: program exited with status $ac_status" >&5
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8197 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
8198 See \`config.log' for more details." >&5
8199 echo "$as_me: error: cannot compute sizeof (void*), 77
8200 See \`config.log' for more details." >&2;}
8201 { (exit 1); exit 1; }; }
8203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8208 ac_cv_sizeof_voidp=0
8211 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8212 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
8213 cat >>confdefs.h <<_ACEOF
8214 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8218 ac_cv_char_data_model=""
8219 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
8220 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
8221 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
8222 ac_cv_long_data_model=""
8223 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
8224 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
8225 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
8226 echo "$as_me:$LINENO: checking data model" >&5
8227 echo $ECHO_N "checking data model... $ECHO_C" >&6
8228 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
8229 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
8230 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
8231 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
8232 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
8233 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
8234 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
8235 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
8236 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
8237 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
8238 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
8239 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
8240 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
8241 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
8242 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
8243 222/*|333/*|444/*|666/*|888/*) :
8244 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
8245 *) ac_cv_data_model="none" ; n="very unusual model" ;;
8247 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
8248 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
8252 if test "_$ac_cv_header_stdint_x" != "_" ; then
8253 ac_cv_header_stdint="$ac_cv_header_stdint_x"
8254 elif test "_$ac_cv_header_stdint_o" != "_" ; then
8255 ac_cv_header_stdint="$ac_cv_header_stdint_o"
8256 elif test "_$ac_cv_header_stdint_u" != "_" ; then
8257 ac_cv_header_stdint="$ac_cv_header_stdint_u"
8259 ac_cv_header_stdint="stddef.h"
8262 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
8263 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
8264 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
8265 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
8266 unset ac_cv_type_int_least32_t
8267 unset ac_cv_type_int_fast32_t
8268 echo "$as_me:$LINENO: checking for int_least32_t" >&5
8269 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
8270 if test "${ac_cv_type_int_least32_t+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 #include <$ac_cv_header_stdint>
8284 if ((int_least32_t *) 0)
8286 if (sizeof (int_least32_t))
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294 (eval $ac_compile) 2>conftest.er1
8296 grep -v '^ *+' conftest.er1 >conftest.err
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -z "$ac_c_werror_flag"
8302 || test ! -s conftest.err'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; } &&
8308 { ac_try='test -s conftest.$ac_objext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_cv_type_int_least32_t=yes
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8319 ac_cv_type_int_least32_t=no
8321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8323 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
8324 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
8326 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
8327 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
8328 if test "${ac_cv_type_int_fast32_t+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 cat >conftest.$ac_ext <<_ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 #include<$ac_cv_header_stdint>
8342 if ((int_fast32_t *) 0)
8344 if (sizeof (int_fast32_t))
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>conftest.er1
8354 grep -v '^ *+' conftest.er1 >conftest.err
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -z "$ac_c_werror_flag"
8360 || test ! -s conftest.err'
8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; } &&
8366 { ac_try='test -s conftest.$ac_objext'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 ac_cv_type_int_fast32_t=yes
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8377 ac_cv_type_int_fast32_t=no
8379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8381 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
8382 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
8384 echo "$as_me:$LINENO: checking for intmax_t" >&5
8385 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8386 if test "${ac_cv_type_intmax_t+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 cat >conftest.$ac_ext <<_ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 #include <$ac_cv_header_stdint>
8402 if (sizeof (intmax_t))
8408 rm -f conftest.$ac_objext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410 (eval $ac_compile) 2>conftest.er1
8412 grep -v '^ *+' conftest.er1 >conftest.err
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -z "$ac_c_werror_flag"
8418 || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest.$ac_objext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_cv_type_intmax_t=yes
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_cv_type_intmax_t=no
8437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8439 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
8440 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
8443 fi # shortcircut to system "stdint.h"
8444 # ------------------ PREPARE VARIABLES ------------------------------
8445 if test "$GCC" = "yes" ; then
8446 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
8448 ac_cv_stdint_message="using $CC"
8451 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
8452 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
8454 # ----------------- DONE inttypes.h checks START header -------------
8455 ac_config_commands="$ac_config_commands $ac_stdint_h"
8460 echo "$as_me:$LINENO: checking 3rd argument of accept" >&5
8461 echo $ECHO_N "checking 3rd argument of accept... $ECHO_C" >&6
8462 if test "${ac_cv_accept_arg+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 if test -z "$ac_cv_accept_arg" ; then
8471 ac_cpp='$CXXCPP $CPPFLAGS'
8472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8477 cat >conftest.$ac_ext <<_ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 $ac_includes_default
8484 #include <sys/socket.h>
8489 accept( 0, 0, &length );
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>conftest.er1
8498 grep -v '^ *+' conftest.er1 >conftest.err
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -z "$ac_cxx_werror_flag"
8504 || test ! -s conftest.err'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest.$ac_objext'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_accept_arg=socklen_t
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8525 ac_cpp='$CPP $CPPFLAGS'
8526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8534 if test -z "$ac_cv_accept_arg" ; then
8538 ac_cpp='$CXXCPP $CPPFLAGS'
8539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8544 cat >conftest.$ac_ext <<_ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8550 $ac_includes_default
8551 #include <sys/socket.h>
8556 accept( 0, 0, &length );
8561 rm -f conftest.$ac_objext
8562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8563 (eval $ac_compile) 2>conftest.er1
8565 grep -v '^ *+' conftest.er1 >conftest.err
8567 cat conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } &&
8570 { ac_try='test -z "$ac_cxx_werror_flag"
8571 || test ! -s conftest.err'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; } &&
8577 { ac_try='test -s conftest.$ac_objext'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; }; then
8583 ac_cv_accept_arg=int
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8592 ac_cpp='$CPP $CPPFLAGS'
8593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8601 if test -z "$ac_cv_accept_arg" ; then
8605 ac_cpp='$CXXCPP $CPPFLAGS'
8606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 $ac_includes_default
8618 #include <sys/socket.h>
8623 accept( 0, 0, &length );
8628 rm -f conftest.$ac_objext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8630 (eval $ac_compile) 2>conftest.er1
8632 grep -v '^ *+' conftest.er1 >conftest.err
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } &&
8637 { ac_try='test -z "$ac_cxx_werror_flag"
8638 || test ! -s conftest.err'
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; } &&
8644 { ac_try='test -s conftest.$ac_objext'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 ac_cv_accept_arg=size_t
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8659 ac_cpp='$CPP $CPPFLAGS'
8660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8668 if test -z "$ac_cv_accept_arg" ; then
8672 ac_cpp='$CXXCPP $CPPFLAGS'
8673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8678 cat >conftest.$ac_ext <<_ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 $ac_includes_default
8685 #include <sys/socket.h>
8690 accept( 0, 0, &length );
8695 rm -f conftest.$ac_objext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8697 (eval $ac_compile) 2>conftest.er1
8699 grep -v '^ *+' conftest.er1 >conftest.err
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_cxx_werror_flag"
8705 || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest.$ac_objext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_accept_arg=short
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8726 ac_cpp='$CPP $CPPFLAGS'
8727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8735 if test -z "$ac_cv_accept_arg" ; then
8739 ac_cpp='$CXXCPP $CPPFLAGS'
8740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8745 cat >conftest.$ac_ext <<_ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 $ac_includes_default
8752 #include <sys/socket.h>
8757 accept( 0, 0, &length );
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>conftest.er1
8766 grep -v '^ *+' conftest.er1 >conftest.err
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_cxx_werror_flag"
8772 || test ! -s conftest.err'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; } &&
8778 { ac_try='test -s conftest.$ac_objext'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8784 ac_cv_accept_arg=long
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8793 ac_cpp='$CPP $CPPFLAGS'
8794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8802 echo "$as_me:$LINENO: result: $ac_cv_accept_arg" >&5
8803 echo "${ECHO_T}$ac_cv_accept_arg" >&6
8805 if test -z "$ac_cv_accept_arg" ; then
8806 ac_cv_accept_arg=int
8810 cat >>confdefs.h <<_ACEOF
8811 #define Socklen_t $ac_cv_accept_arg
8815 echo "$as_me:$LINENO: checking for pid_t" >&5
8816 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8817 if test "${ac_cv_type_pid_t+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 $ac_includes_default
8838 rm -f conftest.$ac_objext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8840 (eval $ac_compile) 2>conftest.er1
8842 grep -v '^ *+' conftest.er1 >conftest.err
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -z "$ac_c_werror_flag"
8848 || test ! -s conftest.err'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; } &&
8854 { ac_try='test -s conftest.$ac_objext'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 ac_cv_type_pid_t=yes
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8869 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8870 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8871 if test $ac_cv_type_pid_t = yes; then
8875 cat >>confdefs.h <<_ACEOF
8883 for ac_header in unistd.h vfork.h
8885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8887 echo "$as_me:$LINENO: checking for $ac_header" >&5
8888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8895 # Is the header compilable?
8896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8898 cat >conftest.$ac_ext <<_ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 $ac_includes_default
8905 #include <$ac_header>
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909 (eval $ac_compile) 2>conftest.er1
8911 grep -v '^ *+' conftest.er1 >conftest.err
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try='test -z "$ac_c_werror_flag"
8917 || test ! -s conftest.err'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; } &&
8923 { ac_try='test -s conftest.$ac_objext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_header_compiler=yes
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 ac_header_compiler=no
8936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8938 echo "${ECHO_T}$ac_header_compiler" >&6
8940 # Is the header present?
8941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8943 cat >conftest.$ac_ext <<_ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 #include <$ac_header>
8951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8954 grep -v '^ *+' conftest.er1 >conftest.err
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } >/dev/null; then
8959 if test -s conftest.err; then
8960 ac_cpp_err=$ac_c_preproc_warn_flag
8961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8968 if test -z "$ac_cpp_err"; then
8969 ac_header_preproc=yes
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8974 ac_header_preproc=no
8976 rm -f conftest.err conftest.$ac_ext
8977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8978 echo "${ECHO_T}$ac_header_preproc" >&6
8980 # So? What about this header?
8981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8987 ac_header_preproc=yes
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9004 ## -------------------------------- ##
9005 ## Report this to the Iperf lists. ##
9006 ## -------------------------------- ##
9009 sed "s/^/$as_me: WARNING: /" >&2
9012 echo "$as_me:$LINENO: checking for $ac_header" >&5
9013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 eval "$as_ac_Header=\$ac_header_preproc"
9019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9024 cat >>confdefs.h <<_ACEOF
9025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9034 for ac_func in fork vfork
9036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9037 echo "$as_me:$LINENO: checking for $ac_func" >&5
9038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9039 if eval "test \"\${$as_ac_var+set}\" = set"; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 cat >conftest.$ac_ext <<_ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9050 #define $ac_func innocuous_$ac_func
9052 /* System header to define __stub macros and hopefully few prototypes,
9053 which can conflict with char $ac_func (); below.
9054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9055 <limits.h> exists even on freestanding compilers. */
9058 # include <limits.h>
9060 # include <assert.h>
9065 /* Override any gcc2 internal prototype to avoid an error. */
9070 /* We use char because int might match the return type of a gcc2
9071 builtin and then its argument prototype would still apply. */
9073 /* The GNU C library defines this for functions which it implements
9074 to always fail with ENOSYS. Some functions are actually named
9075 something starting with __ and the normal name is an alias. */
9076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9079 char (*f) () = $ac_func;
9088 return f != $ac_func;
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9095 (eval $ac_link) 2>conftest.er1
9097 grep -v '^ *+' conftest.er1 >conftest.err
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try='test -z "$ac_c_werror_flag"
9103 || test ! -s conftest.err'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; } &&
9109 { ac_try='test -s conftest$ac_exeext'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; }; then
9115 eval "$as_ac_var=yes"
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9120 eval "$as_ac_var=no"
9122 rm -f conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9127 if test `eval echo '${'$as_ac_var'}'` = yes; then
9128 cat >>confdefs.h <<_ACEOF
9129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9135 if test "x$ac_cv_func_fork" = xyes; then
9136 echo "$as_me:$LINENO: checking for working fork" >&5
9137 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9138 if test "${ac_cv_func_fork_works+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 if test "$cross_compiling" = yes; then
9142 ac_cv_func_fork_works=cross
9144 cat >conftest.$ac_ext <<_ACEOF
9145 /* By Ruediger Kuhlmann. */
9146 #include <sys/types.h>
9148 # include <unistd.h>
9150 /* Some systems only have a dummy stub for fork() */
9158 rm -f conftest$ac_exeext
9159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9160 (eval $ac_link) 2>&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 ac_cv_func_fork_works=yes
9171 echo "$as_me: program exited with status $ac_status" >&5
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9176 ac_cv_func_fork_works=no
9178 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9181 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9182 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9185 ac_cv_func_fork_works=$ac_cv_func_fork
9187 if test "x$ac_cv_func_fork_works" = xcross; then
9189 *-*-amigaos* | *-*-msdosdjgpp*)
9190 # Override, as these systems have only a dummy fork() stub
9191 ac_cv_func_fork_works=no
9194 ac_cv_func_fork_works=yes
9197 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9198 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9200 ac_cv_func_vfork_works=$ac_cv_func_vfork
9201 if test "x$ac_cv_func_vfork" = xyes; then
9202 echo "$as_me:$LINENO: checking for working vfork" >&5
9203 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9204 if test "${ac_cv_func_vfork_works+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 if test "$cross_compiling" = yes; then
9208 ac_cv_func_vfork_works=cross
9210 cat >conftest.$ac_ext <<_ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 /* Thanks to Paul Eggert for this test. */
9219 #include <sys/types.h>
9220 #include <sys/stat.h>
9221 #include <sys/wait.h>
9223 # include <unistd.h>
9228 /* On some sparc systems, changes by the child to local and incoming
9229 argument registers are propagated back to the parent. The compiler
9230 is told about this with #include <vfork.h>, but some compilers
9231 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9232 static variable whose address is put into a register that is
9233 clobbered by the vfork. */
9236 sparc_address_test (int arg)
9238 sparc_address_test (arg) int arg;
9259 pid_t parent = getpid ();
9262 sparc_address_test (0);
9267 /* Here is another test for sparc vfork register problems. This
9268 test uses lots of local variables, at least as many local
9269 variables as main has allocated so far including compiler
9270 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9271 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9272 reuse the register of parent for one of the local variables,
9273 since it will think that parent can't possibly be used any more
9274 in this routine. Assigning to the local variable will thus
9275 munge parent in the parent process. */
9277 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9278 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9279 /* Convince the compiler that p..p7 are live; otherwise, it might
9280 use the same hardware register for all 8 local variables. */
9281 if (p != p1 || p != p2 || p != p3 || p != p4
9282 || p != p5 || p != p6 || p != p7)
9285 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9286 from child file descriptors. If the child closes a descriptor
9287 before it execs or exits, this munges the parent's descriptor
9288 as well. Test for this by closing stdout in the child. */
9289 _exit(close(fileno(stdout)) != 0);
9294 while (wait(&status) != child)
9297 /* Was there some problem with vforking? */
9300 /* Did the child fail? (This shouldn't happen.) */
9303 /* Did the vfork/compiler bug occur? */
9304 || parent != getpid()
9306 /* Did the file descriptor bug occur? */
9307 || fstat(fileno(stdout), &st) != 0
9312 rm -f conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; }; then
9323 ac_cv_func_vfork_works=yes
9325 echo "$as_me: program exited with status $ac_status" >&5
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9330 ac_cv_func_vfork_works=no
9332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9335 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9336 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9339 if test "x$ac_cv_func_fork_works" = xcross; then
9340 ac_cv_func_vfork_works=$ac_cv_func_vfork
9341 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9342 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9345 if test "x$ac_cv_func_vfork_works" = xyes; then
9347 cat >>confdefs.h <<\_ACEOF
9348 #define HAVE_WORKING_VFORK 1
9353 cat >>confdefs.h <<\_ACEOF
9358 if test "x$ac_cv_func_fork_works" = xyes; then
9360 cat >>confdefs.h <<\_ACEOF
9361 #define HAVE_WORKING_FORK 1
9367 for ac_header in stdlib.h
9369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9371 echo "$as_me:$LINENO: checking for $ac_header" >&5
9372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9379 # Is the header compilable?
9380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9382 cat >conftest.$ac_ext <<_ACEOF
9385 cat confdefs.h >>conftest.$ac_ext
9386 cat >>conftest.$ac_ext <<_ACEOF
9387 /* end confdefs.h. */
9388 $ac_includes_default
9389 #include <$ac_header>
9391 rm -f conftest.$ac_objext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9393 (eval $ac_compile) 2>conftest.er1
9395 grep -v '^ *+' conftest.er1 >conftest.err
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -z "$ac_c_werror_flag"
9401 || test ! -s conftest.err'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try='test -s conftest.$ac_objext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 ac_header_compiler=yes
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9418 ac_header_compiler=no
9420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9422 echo "${ECHO_T}$ac_header_compiler" >&6
9424 # Is the header present?
9425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9427 cat >conftest.$ac_ext <<_ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 #include <$ac_header>
9435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9438 grep -v '^ *+' conftest.er1 >conftest.err
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } >/dev/null; then
9443 if test -s conftest.err; then
9444 ac_cpp_err=$ac_c_preproc_warn_flag
9445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9452 if test -z "$ac_cpp_err"; then
9453 ac_header_preproc=yes
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_header_preproc=no
9460 rm -f conftest.err conftest.$ac_ext
9461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9462 echo "${ECHO_T}$ac_header_preproc" >&6
9464 # So? What about this header?
9465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9471 ac_header_preproc=yes
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9488 ## -------------------------------- ##
9489 ## Report this to the Iperf lists. ##
9490 ## -------------------------------- ##
9493 sed "s/^/$as_me: WARNING: /" >&2
9496 echo "$as_me:$LINENO: checking for $ac_header" >&5
9497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 eval "$as_ac_Header=\$ac_header_preproc"
9503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9508 cat >>confdefs.h <<_ACEOF
9509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9516 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9517 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9518 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 if test "$cross_compiling" = yes; then
9522 ac_cv_func_malloc_0_nonnull=no
9524 cat >conftest.$ac_ext <<_ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 #if STDC_HEADERS || HAVE_STDLIB_H
9531 # include <stdlib.h>
9539 exit (malloc (0) ? 0 : 1);
9544 rm -f conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9555 ac_cv_func_malloc_0_nonnull=yes
9557 echo "$as_me: program exited with status $ac_status" >&5
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_cv_func_malloc_0_nonnull=no
9564 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9567 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9568 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
9569 if test $ac_cv_func_malloc_0_nonnull = yes; then
9571 cat >>confdefs.h <<\_ACEOF
9572 #define HAVE_MALLOC 1
9576 cat >>confdefs.h <<\_ACEOF
9577 #define HAVE_MALLOC 0
9581 "malloc.$ac_objext" | \
9582 *" malloc.$ac_objext" | \
9583 "malloc.$ac_objext "* | \
9584 *" malloc.$ac_objext "* ) ;;
9585 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
9589 cat >>confdefs.h <<\_ACEOF
9590 #define malloc rpl_malloc
9597 echo "$as_me:$LINENO: checking for working memcmp" >&5
9598 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9599 if test "${ac_cv_func_memcmp_working+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 if test "$cross_compiling" = yes; then
9603 ac_cv_func_memcmp_working=no
9605 cat >conftest.$ac_ext <<_ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 $ac_includes_default
9616 /* Some versions of memcmp are not 8-bit clean. */
9617 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9618 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9621 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9622 or more and with at least one buffer not starting on a 4-byte boundary.
9623 William Lewis provided this test program. */
9628 for (i = 0; i < 4; i++)
9632 strcpy (a, "--------01111111");
9633 strcpy (b, "--------10000000");
9634 if (memcmp (a, b, 16) >= 0)
9644 rm -f conftest$ac_exeext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646 (eval $ac_link) 2>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9655 ac_cv_func_memcmp_working=yes
9657 echo "$as_me: program exited with status $ac_status" >&5
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9662 ac_cv_func_memcmp_working=no
9664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9667 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9668 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9669 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9670 "memcmp.$ac_objext" | \
9671 *" memcmp.$ac_objext" | \
9672 "memcmp.$ac_objext "* | \
9673 *" memcmp.$ac_objext "* ) ;;
9674 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9680 for ac_header in sys/select.h sys/socket.h
9682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9684 echo "$as_me:$LINENO: checking for $ac_header" >&5
9685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9692 # Is the header compilable?
9693 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9695 cat >conftest.$ac_ext <<_ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9702 #include <$ac_header>
9704 rm -f conftest.$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706 (eval $ac_compile) 2>conftest.er1
9708 grep -v '^ *+' conftest.er1 >conftest.err
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -z "$ac_c_werror_flag"
9714 || test ! -s conftest.err'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; } &&
9720 { ac_try='test -s conftest.$ac_objext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_header_compiler=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_header_compiler=no
9733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9735 echo "${ECHO_T}$ac_header_compiler" >&6
9737 # Is the header present?
9738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9740 cat >conftest.$ac_ext <<_ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9746 #include <$ac_header>
9748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9751 grep -v '^ *+' conftest.er1 >conftest.err
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } >/dev/null; then
9756 if test -s conftest.err; then
9757 ac_cpp_err=$ac_c_preproc_warn_flag
9758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9765 if test -z "$ac_cpp_err"; then
9766 ac_header_preproc=yes
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_header_preproc=no
9773 rm -f conftest.err conftest.$ac_ext
9774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9775 echo "${ECHO_T}$ac_header_preproc" >&6
9777 # So? What about this header?
9778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9784 ac_header_preproc=yes
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9801 ## -------------------------------- ##
9802 ## Report this to the Iperf lists. ##
9803 ## -------------------------------- ##
9806 sed "s/^/$as_me: WARNING: /" >&2
9809 echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 eval "$as_ac_Header=\$ac_header_preproc"
9816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9821 cat >>confdefs.h <<_ACEOF
9822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9829 echo "$as_me:$LINENO: checking types of arguments for select" >&5
9830 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
9831 if test "${ac_cv_func_select_args+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9835 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9836 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9837 cat >conftest.$ac_ext <<_ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 $ac_includes_default
9844 #if HAVE_SYS_SELECT_H
9845 # include <sys/select.h>
9847 #if HAVE_SYS_SOCKET_H
9848 # include <sys/socket.h>
9854 extern int select ($ac_arg1,
9855 $ac_arg234, $ac_arg234, $ac_arg234,
9861 rm -f conftest.$ac_objext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9863 (eval $ac_compile) 2>conftest.er1
9865 grep -v '^ *+' conftest.er1 >conftest.err
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -z "$ac_c_werror_flag"
9871 || test ! -s conftest.err'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; } &&
9877 { ac_try='test -s conftest.$ac_objext'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9893 # Provide a safe default value.
9894 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9897 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
9898 echo "${ECHO_T}$ac_cv_func_select_args" >&6
9899 ac_save_IFS=$IFS; IFS=','
9900 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9904 cat >>confdefs.h <<_ACEOF
9905 #define SELECT_TYPE_ARG1 $1
9909 cat >>confdefs.h <<_ACEOF
9910 #define SELECT_TYPE_ARG234 ($2)
9914 cat >>confdefs.h <<_ACEOF
9915 #define SELECT_TYPE_ARG5 ($3)
9920 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9921 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9922 if test "${ac_cv_type_signal+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 cat >conftest.$ac_ext <<_ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 #include <sys/types.h>
9937 extern "C" void (*signal (int, void (*)(int)))(int);
9939 void (*signal ()) ();
9950 rm -f conftest.$ac_objext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9952 (eval $ac_compile) 2>conftest.er1
9954 grep -v '^ *+' conftest.er1 >conftest.err
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_c_werror_flag"
9960 || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest.$ac_objext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 ac_cv_type_signal=void
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 ac_cv_type_signal=int
9979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9981 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9982 echo "${ECHO_T}$ac_cv_type_signal" >&6
9984 cat >>confdefs.h <<_ACEOF
9985 #define RETSIGTYPE $ac_cv_type_signal
9990 for ac_func in strftime
9992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9993 echo "$as_me:$LINENO: checking for $ac_func" >&5
9994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9995 if eval "test \"\${$as_ac_var+set}\" = set"; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 cat >conftest.$ac_ext <<_ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10006 #define $ac_func innocuous_$ac_func
10008 /* System header to define __stub macros and hopefully few prototypes,
10009 which can conflict with char $ac_func (); below.
10010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10011 <limits.h> exists even on freestanding compilers. */
10014 # include <limits.h>
10016 # include <assert.h>
10021 /* Override any gcc2 internal prototype to avoid an error. */
10026 /* We use char because int might match the return type of a gcc2
10027 builtin and then its argument prototype would still apply. */
10029 /* The GNU C library defines this for functions which it implements
10030 to always fail with ENOSYS. Some functions are actually named
10031 something starting with __ and the normal name is an alias. */
10032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10035 char (*f) () = $ac_func;
10044 return f != $ac_func;
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051 (eval $ac_link) 2>conftest.er1
10053 grep -v '^ *+' conftest.er1 >conftest.err
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag"
10059 || test ! -s conftest.err'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; } &&
10065 { ac_try='test -s conftest$ac_exeext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 eval "$as_ac_var=yes"
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 eval "$as_ac_var=no"
10078 rm -f conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10083 if test `eval echo '${'$as_ac_var'}'` = yes; then
10084 cat >>confdefs.h <<_ACEOF
10085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10089 # strftime is in -lintl on SCO UNIX.
10090 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
10091 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
10092 if test "${ac_cv_lib_intl_strftime+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-lintl $LIBS"
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10104 /* Override any gcc2 internal prototype to avoid an error. */
10108 /* We use char because int might match the return type of a gcc2
10109 builtin and then its argument prototype would still apply. */
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10121 (eval $ac_link) 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -z "$ac_c_werror_flag"
10129 || test ! -s conftest.err'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
10135 { ac_try='test -s conftest$ac_exeext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_cv_lib_intl_strftime=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_cv_lib_intl_strftime=no
10148 rm -f conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150 LIBS=$ac_check_lib_save_LIBS
10152 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
10153 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
10154 if test $ac_cv_lib_intl_strftime = yes; then
10155 cat >>confdefs.h <<\_ACEOF
10156 #define HAVE_STRFTIME 1
10159 LIBS="-lintl $LIBS"
10166 for ac_func in vprintf
10168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10169 echo "$as_me:$LINENO: checking for $ac_func" >&5
10170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10171 if eval "test \"\${$as_ac_var+set}\" = set"; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 cat >conftest.$ac_ext <<_ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10182 #define $ac_func innocuous_$ac_func
10184 /* System header to define __stub macros and hopefully few prototypes,
10185 which can conflict with char $ac_func (); below.
10186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10187 <limits.h> exists even on freestanding compilers. */
10190 # include <limits.h>
10192 # include <assert.h>
10197 /* Override any gcc2 internal prototype to avoid an error. */
10202 /* We use char because int might match the return type of a gcc2
10203 builtin and then its argument prototype would still apply. */
10205 /* The GNU C library defines this for functions which it implements
10206 to always fail with ENOSYS. Some functions are actually named
10207 something starting with __ and the normal name is an alias. */
10208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10211 char (*f) () = $ac_func;
10220 return f != $ac_func;
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10227 (eval $ac_link) 2>conftest.er1
10229 grep -v '^ *+' conftest.er1 >conftest.err
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag"
10235 || test ! -s conftest.err'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; } &&
10241 { ac_try='test -s conftest$ac_exeext'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 eval "$as_ac_var=yes"
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10252 eval "$as_ac_var=no"
10254 rm -f conftest.err conftest.$ac_objext \
10255 conftest$ac_exeext conftest.$ac_ext
10257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10259 if test `eval echo '${'$as_ac_var'}'` = yes; then
10260 cat >>confdefs.h <<_ACEOF
10261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10264 echo "$as_me:$LINENO: checking for _doprnt" >&5
10265 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10266 if test "${ac_cv_func__doprnt+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 cat >conftest.$ac_ext <<_ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10275 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10277 #define _doprnt innocuous__doprnt
10279 /* System header to define __stub macros and hopefully few prototypes,
10280 which can conflict with char _doprnt (); below.
10281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10282 <limits.h> exists even on freestanding compilers. */
10285 # include <limits.h>
10287 # include <assert.h>
10292 /* Override any gcc2 internal prototype to avoid an error. */
10297 /* We use char because int might match the return type of a gcc2
10298 builtin and then its argument prototype would still apply. */
10300 /* The GNU C library defines this for functions which it implements
10301 to always fail with ENOSYS. Some functions are actually named
10302 something starting with __ and the normal name is an alias. */
10303 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10306 char (*f) () = _doprnt;
10315 return f != _doprnt;
10320 rm -f conftest.$ac_objext conftest$ac_exeext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10322 (eval $ac_link) 2>conftest.er1
10324 grep -v '^ *+' conftest.er1 >conftest.err
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try='test -z "$ac_c_werror_flag"
10330 || test ! -s conftest.err'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; } &&
10336 { ac_try='test -s conftest$ac_exeext'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; }; then
10342 ac_cv_func__doprnt=yes
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10347 ac_cv_func__doprnt=no
10349 rm -f conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10352 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10353 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10354 if test $ac_cv_func__doprnt = yes; then
10356 cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_DOPRNT 1
10375 for ac_func in atexit gettimeofday memset pthread_cancel select strchr strerror strtol usleep
10377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10378 echo "$as_me:$LINENO: checking for $ac_func" >&5
10379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10380 if eval "test \"\${$as_ac_var+set}\" = set"; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 cat >conftest.$ac_ext <<_ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10391 #define $ac_func innocuous_$ac_func
10393 /* System header to define __stub macros and hopefully few prototypes,
10394 which can conflict with char $ac_func (); below.
10395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10396 <limits.h> exists even on freestanding compilers. */
10399 # include <limits.h>
10401 # include <assert.h>
10406 /* Override any gcc2 internal prototype to avoid an error. */
10411 /* We use char because int might match the return type of a gcc2
10412 builtin and then its argument prototype would still apply. */
10414 /* The GNU C library defines this for functions which it implements
10415 to always fail with ENOSYS. Some functions are actually named
10416 something starting with __ and the normal name is an alias. */
10417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10420 char (*f) () = $ac_func;
10429 return f != $ac_func;
10434 rm -f conftest.$ac_objext conftest$ac_exeext
10435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436 (eval $ac_link) 2>conftest.er1
10438 grep -v '^ *+' conftest.er1 >conftest.err
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -z "$ac_c_werror_flag"
10444 || test ! -s conftest.err'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest$ac_exeext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 eval "$as_ac_var=yes"
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 eval "$as_ac_var=no"
10463 rm -f conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
10466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10468 if test `eval echo '${'$as_ac_var'}'` = yes; then
10469 cat >>confdefs.h <<_ACEOF
10470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10480 for ac_func in snprintf inet_pton inet_ntop gettimeofday
10482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10483 echo "$as_me:$LINENO: checking for $ac_func" >&5
10484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10485 if eval "test \"\${$as_ac_var+set}\" = set"; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 cat >conftest.$ac_ext <<_ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10496 #define $ac_func innocuous_$ac_func
10498 /* System header to define __stub macros and hopefully few prototypes,
10499 which can conflict with char $ac_func (); below.
10500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10501 <limits.h> exists even on freestanding compilers. */
10504 # include <limits.h>
10506 # include <assert.h>
10511 /* Override any gcc2 internal prototype to avoid an error. */
10516 /* We use char because int might match the return type of a gcc2
10517 builtin and then its argument prototype would still apply. */
10519 /* The GNU C library defines this for functions which it implements
10520 to always fail with ENOSYS. Some functions are actually named
10521 something starting with __ and the normal name is an alias. */
10522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10525 char (*f) () = $ac_func;
10534 return f != $ac_func;
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10541 (eval $ac_link) 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag"
10549 || test ! -s conftest.err'
10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; } &&
10555 { ac_try='test -s conftest$ac_exeext'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 eval "$as_ac_var=yes"
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 eval "$as_ac_var=no"
10568 rm -f conftest.err conftest.$ac_objext \
10569 conftest$ac_exeext conftest.$ac_ext
10571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10573 if test `eval echo '${'$as_ac_var'}'` = yes; then
10574 cat >>confdefs.h <<_ACEOF
10575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10580 "$ac_func.$ac_objext" | \
10581 *" $ac_func.$ac_objext" | \
10582 "$ac_func.$ac_objext "* | \
10583 *" $ac_func.$ac_objext "* ) ;;
10584 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
10598 echo "$as_me:$LINENO: checking *printf() support for %lld" >&5
10599 echo $ECHO_N "checking *printf() support for %lld... $ECHO_C" >&6
10600 can_printf_longlong=no
10601 if test "$cross_compiling" = yes; then
10604 cat >conftest.$ac_ext <<_ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10614 sprintf(buf, "%lld", 21726587590LL);
10615 return (strcmp(buf, "21726587590"));
10619 rm -f conftest$ac_exeext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621 (eval $ac_link) 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10631 echo "$as_me:$LINENO: result: yes" >&5
10632 echo "${ECHO_T}yes" >&6
10633 can_printf_longlong=yes
10636 echo "$as_me: program exited with status $ac_status" >&5
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ( exit $ac_status )
10642 echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6
10646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10649 if test $can_printf_longlong != yes; then
10650 echo "$as_me:$LINENO: checking *printf() support for %qd" >&5
10651 echo $ECHO_N "checking *printf() support for %qd... $ECHO_C" >&6
10652 if test "$cross_compiling" = yes; then
10655 cat >conftest.$ac_ext <<_ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10665 sprintf(buf, "%qd", 21726587590LL);
10666 return (strcmp(buf, "21726587590"));
10670 rm -f conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672 (eval $ac_link) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10682 echo "$as_me:$LINENO: result: yes" >&5
10683 echo "${ECHO_T}yes" >&6
10684 can_printf_longlong=yes
10685 cat >>confdefs.h <<\_ACEOF
10686 #define HAVE_PRINTF_QD 1
10691 echo "$as_me: program exited with status $ac_status" >&5
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10695 ( exit $ac_status )
10697 echo "$as_me:$LINENO: result: no" >&5
10698 echo "${ECHO_T}no" >&6
10701 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10705 if test $can_printf_longlong = yes; then
10706 cat >>confdefs.h <<\_ACEOF
10707 #define HAVE_QUAD_SUPPORT 1
10715 echo "$as_me:$LINENO: checking for bool" >&5
10716 echo $ECHO_N "checking for bool... $ECHO_C" >&6
10717 if test "${ac_cv_type_bool+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 cat >conftest.$ac_ext <<_ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 $ac_includes_default
10738 rm -f conftest.$ac_objext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10740 (eval $ac_compile) 2>conftest.er1
10742 grep -v '^ *+' conftest.er1 >conftest.err
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try='test -z "$ac_c_werror_flag"
10748 || test ! -s conftest.err'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; } &&
10754 { ac_try='test -s conftest.$ac_objext'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 ac_cv_type_bool=yes
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10769 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10770 echo "${ECHO_T}$ac_cv_type_bool" >&6
10772 echo "$as_me:$LINENO: checking size of bool" >&5
10773 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
10774 if test "${ac_cv_sizeof_bool+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 if test "$ac_cv_type_bool" = yes; then
10778 # The cast to unsigned long works around a bug in the HP C Compiler
10779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10781 # This bug is HP SR number 8606223364.
10782 if test "$cross_compiling" = yes; then
10783 # Depending upon the size, compute the lo and hi bounds.
10784 cat >conftest.$ac_ext <<_ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790 $ac_includes_default
10794 static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= 0)];
10801 rm -f conftest.$ac_objext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803 (eval $ac_compile) 2>conftest.er1
10805 grep -v '^ *+' conftest.er1 >conftest.err
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -z "$ac_c_werror_flag"
10811 || test ! -s conftest.err'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; } &&
10817 { ac_try='test -s conftest.$ac_objext'
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10825 cat >conftest.$ac_ext <<_ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 $ac_includes_default
10835 static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)];
10842 rm -f conftest.$ac_objext
10843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10844 (eval $ac_compile) 2>conftest.er1
10846 grep -v '^ *+' conftest.er1 >conftest.err
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -z "$ac_c_werror_flag"
10852 || test ! -s conftest.err'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest.$ac_objext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_hi=$ac_mid; break
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ac_lo=`expr $ac_mid + 1`
10870 if test $ac_lo -le $ac_mid; then
10874 ac_mid=`expr 2 '*' $ac_mid + 1`
10876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10882 cat >conftest.$ac_ext <<_ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 $ac_includes_default
10892 static int test_array [1 - 2 * !(((long) (sizeof (bool))) < 0)];
10899 rm -f conftest.$ac_objext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>conftest.er1
10903 grep -v '^ *+' conftest.er1 >conftest.err
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } &&
10908 { ac_try='test -z "$ac_c_werror_flag"
10909 || test ! -s conftest.err'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest.$ac_objext'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10923 cat >conftest.$ac_ext <<_ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 $ac_includes_default
10933 static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= $ac_mid)];
10940 rm -f conftest.$ac_objext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>conftest.er1
10944 grep -v '^ *+' conftest.er1 >conftest.err
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag"
10950 || test ! -s conftest.err'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest.$ac_objext'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 ac_lo=$ac_mid; break
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 ac_hi=`expr '(' $ac_mid ')' - 1`
10968 if test $ac_mid -le $ac_hi; then
10972 ac_mid=`expr 2 '*' $ac_mid`
10974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10985 # Binary search between lo and hi bounds.
10986 while test "x$ac_lo" != "x$ac_hi"; do
10987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10988 cat >conftest.$ac_ext <<_ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 $ac_includes_default
10998 static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)];
11005 rm -f conftest.$ac_objext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11007 (eval $ac_compile) 2>conftest.er1
11009 grep -v '^ *+' conftest.er1 >conftest.err
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_c_werror_flag"
11015 || test ! -s conftest.err'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest.$ac_objext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_lo=`expr '(' $ac_mid ')' + 1`
11034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11037 ?*) ac_cv_sizeof_bool=$ac_lo;;
11038 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool), 77
11039 See \`config.log' for more details." >&5
11040 echo "$as_me: error: cannot compute sizeof (bool), 77
11041 See \`config.log' for more details." >&2;}
11042 { (exit 1); exit 1; }; } ;;
11045 if test "$cross_compiling" = yes; then
11046 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11047 See \`config.log' for more details." >&5
11048 echo "$as_me: error: cannot run test program while cross compiling
11049 See \`config.log' for more details." >&2;}
11050 { (exit 1); exit 1; }; }
11052 cat >conftest.$ac_ext <<_ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 $ac_includes_default
11059 long longval () { return (long) (sizeof (bool)); }
11060 unsigned long ulongval () { return (long) (sizeof (bool)); }
11062 #include <stdlib.h>
11067 FILE *f = fopen ("conftest.val", "w");
11070 if (((long) (sizeof (bool))) < 0)
11072 long i = longval ();
11073 if (i != ((long) (sizeof (bool))))
11075 fprintf (f, "%ld\n", i);
11079 unsigned long i = ulongval ();
11080 if (i != ((long) (sizeof (bool))))
11082 fprintf (f, "%lu\n", i);
11084 exit (ferror (f) || fclose (f) != 0);
11090 rm -f conftest$ac_exeext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092 (eval $ac_link) 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11101 ac_cv_sizeof_bool=`cat conftest.val`
11103 echo "$as_me: program exited with status $ac_status" >&5
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11107 ( exit $ac_status )
11108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool), 77
11109 See \`config.log' for more details." >&5
11110 echo "$as_me: error: cannot compute sizeof (bool), 77
11111 See \`config.log' for more details." >&2;}
11112 { (exit 1); exit 1; }; }
11114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11119 ac_cv_sizeof_bool=0
11122 echo "$as_me:$LINENO: result: $ac_cv_sizeof_bool" >&5
11123 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
11124 cat >>confdefs.h <<_ACEOF
11125 #define SIZEOF_BOOL $ac_cv_sizeof_bool
11129 if test "$ac_cv_sizeof_bool" = 0 ; then
11130 cat >>confdefs.h <<\_ACEOF
11136 echo "$as_me:$LINENO: checking if true is defined" >&5
11137 echo $ECHO_N "checking if true is defined... $ECHO_C" >&6
11138 if test "${ac_cv_have_true+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 ac_cpp='$CXXCPP $CPPFLAGS'
11145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11149 cat >conftest.$ac_ext <<_ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11159 unsigned int i = true
11164 rm -f conftest.$ac_objext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11166 (eval $ac_compile) 2>conftest.er1
11168 grep -v '^ *+' conftest.er1 >conftest.err
11170 cat conftest.err >&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } &&
11173 { ac_try='test -z "$ac_cxx_werror_flag"
11174 || test ! -s conftest.err'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; } &&
11180 { ac_try='test -s conftest.$ac_objext'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
11186 ac_cv_have_true=yes
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11195 ac_cpp='$CPP $CPPFLAGS'
11196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11202 echo "$as_me:$LINENO: result: $ac_cv_have_true" >&5
11203 echo "${ECHO_T}$ac_cv_have_true" >&6
11205 if test "$ac_cv_have_true" != yes ; then
11206 cat >>confdefs.h <<\_ACEOF
11210 cat >>confdefs.h <<\_ACEOF
11218 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11219 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
11220 if test "${ac_cv_c_bigendian+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 # See if sys/param.h defines the BYTE_ORDER macro.
11224 cat >conftest.$ac_ext <<_ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11230 #include <sys/types.h>
11231 #include <sys/param.h>
11236 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11237 bogus endian macros
11244 rm -f conftest.$ac_objext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11246 (eval $ac_compile) 2>conftest.er1
11248 grep -v '^ *+' conftest.er1 >conftest.err
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try='test -z "$ac_c_werror_flag"
11254 || test ! -s conftest.err'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; } &&
11260 { ac_try='test -s conftest.$ac_objext'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 # It does; now see whether it defined to BIG_ENDIAN or not.
11267 cat >conftest.$ac_ext <<_ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 #include <sys/types.h>
11274 #include <sys/param.h>
11279 #if BYTE_ORDER != BIG_ENDIAN
11287 rm -f conftest.$ac_objext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11289 (eval $ac_compile) 2>conftest.er1
11291 grep -v '^ *+' conftest.er1 >conftest.err
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try='test -z "$ac_c_werror_flag"
11297 || test ! -s conftest.err'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; } &&
11303 { ac_try='test -s conftest.$ac_objext'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }; then
11309 ac_cv_c_bigendian=yes
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_cv_c_bigendian=no
11316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 # It does not; compile a test program.
11322 if test "$cross_compiling" = yes; then
11323 # try to guess the endianness by grepping values into an object file
11324 ac_cv_c_bigendian=unknown
11325 cat >conftest.$ac_ext <<_ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11332 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11333 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11334 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11335 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11336 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11340 _ascii (); _ebcdic ();
11345 rm -f conftest.$ac_objext
11346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11347 (eval $ac_compile) 2>conftest.er1
11349 grep -v '^ *+' conftest.er1 >conftest.err
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -z "$ac_c_werror_flag"
11355 || test ! -s conftest.err'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest.$ac_objext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11368 ac_cv_c_bigendian=yes
11370 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11371 if test "$ac_cv_c_bigendian" = unknown; then
11372 ac_cv_c_bigendian=no
11374 # finding both strings is unlikely to happen, but who knows?
11375 ac_cv_c_bigendian=unknown
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11385 cat >conftest.$ac_ext <<_ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11394 /* Are we little or big endian? From Harbison&Steele. */
11398 char c[sizeof (long)];
11401 exit (u.c[sizeof (long) - 1] == 1);
11404 rm -f conftest$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406 (eval $ac_link) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11415 ac_cv_c_bigendian=no
11417 echo "$as_me: program exited with status $ac_status" >&5
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ( exit $ac_status )
11422 ac_cv_c_bigendian=yes
11424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11429 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11430 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11431 case $ac_cv_c_bigendian in
11434 cat >>confdefs.h <<\_ACEOF
11435 #define WORDS_BIGENDIAN 1
11441 { { echo "$as_me:$LINENO: error: unknown endianness
11442 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11443 echo "$as_me: error: unknown endianness
11444 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11445 { (exit 1); exit 1; }; } ;;
11450 if test "$ac_cv_multicast" != no; then
11451 echo "$as_me:$LINENO: checking for struct ip_mreq" >&5
11452 echo $ECHO_N "checking for struct ip_mreq... $ECHO_C" >&6
11453 if test "${ac_cv_type_struct_ip_mreq+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 cat >conftest.$ac_ext <<_ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11462 #include "compat/headers_slim.h"
11467 if ((struct ip_mreq *) 0)
11469 if (sizeof (struct ip_mreq))
11475 rm -f conftest.$ac_objext
11476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11477 (eval $ac_compile) 2>conftest.er1
11479 grep -v '^ *+' conftest.er1 >conftest.err
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -z "$ac_c_werror_flag"
11485 || test ! -s conftest.err'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try='test -s conftest.$ac_objext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_type_struct_ip_mreq=yes
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 ac_cv_type_struct_ip_mreq=no
11504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11506 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ip_mreq" >&5
11507 echo "${ECHO_T}$ac_cv_type_struct_ip_mreq" >&6
11508 if test $ac_cv_type_struct_ip_mreq = yes; then
11510 cat >>confdefs.h <<_ACEOF
11511 #define HAVE_STRUCT_IP_MREQ 1
11517 echo "$as_me:$LINENO: checking whether IP_ADD_MEMBERSHIP is declared" >&5
11518 echo $ECHO_N "checking whether IP_ADD_MEMBERSHIP is declared... $ECHO_C" >&6
11519 if test "${ac_cv_have_decl_IP_ADD_MEMBERSHIP+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 cat >conftest.$ac_ext <<_ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 #include "compat/headers_slim.h"
11533 #ifndef IP_ADD_MEMBERSHIP
11534 char *p = (char *) IP_ADD_MEMBERSHIP;
11541 rm -f conftest.$ac_objext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11543 (eval $ac_compile) 2>conftest.er1
11545 grep -v '^ *+' conftest.er1 >conftest.err
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } &&
11550 { ac_try='test -z "$ac_c_werror_flag"
11551 || test ! -s conftest.err'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; } &&
11557 { ac_try='test -s conftest.$ac_objext'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; }; then
11563 ac_cv_have_decl_IP_ADD_MEMBERSHIP=yes
11565 echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11568 ac_cv_have_decl_IP_ADD_MEMBERSHIP=no
11570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11572 echo "$as_me:$LINENO: result: $ac_cv_have_decl_IP_ADD_MEMBERSHIP" >&5
11573 echo "${ECHO_T}$ac_cv_have_decl_IP_ADD_MEMBERSHIP" >&6
11574 if test $ac_cv_have_decl_IP_ADD_MEMBERSHIP = yes; then
11576 cat >>confdefs.h <<_ACEOF
11577 #define HAVE_DECL_IP_ADD_MEMBERSHIP 1
11582 cat >>confdefs.h <<_ACEOF
11583 #define HAVE_DECL_IP_ADD_MEMBERSHIP 0
11590 echo "$as_me:$LINENO: checking for multicast support" >&5
11591 echo $ECHO_N "checking for multicast support... $ECHO_C" >&6
11593 if test "$ac_cv_have_decl_IP_ADD_MEMBERSHIP" = yes; then
11594 if test "$ac_cv_type_struct_ip_mreq" = yes; then
11595 ac_cv_multicast=yes
11598 echo "$as_me:$LINENO: result: $ac_cv_multicast" >&5
11599 echo "${ECHO_T}$ac_cv_multicast" >&6
11600 if test "$ac_cv_multicast" = yes; then
11602 cat >>confdefs.h <<\_ACEOF
11603 #define HAVE_MULTICAST 1
11609 if test "$ac_cv_have_ipv6" != no; then
11610 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11611 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11612 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 cat >conftest.$ac_ext <<_ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621 #include "compat/headers_slim.h"
11626 if ((struct sockaddr_storage *) 0)
11628 if (sizeof (struct sockaddr_storage))
11634 rm -f conftest.$ac_objext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11636 (eval $ac_compile) 2>conftest.er1
11638 grep -v '^ *+' conftest.er1 >conftest.err
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -z "$ac_c_werror_flag"
11644 || test ! -s conftest.err'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; } &&
11650 { ac_try='test -s conftest.$ac_objext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 ac_cv_type_struct_sockaddr_storage=yes
11658 echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11661 ac_cv_type_struct_sockaddr_storage=no
11663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11665 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11666 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11667 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11669 cat >>confdefs.h <<_ACEOF
11670 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11676 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11677 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11678 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 cat >conftest.$ac_ext <<_ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 #include "compat/headers_slim.h"
11692 if ((struct sockaddr_in6 *) 0)
11694 if (sizeof (struct sockaddr_in6))
11700 rm -f conftest.$ac_objext
11701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11702 (eval $ac_compile) 2>conftest.er1
11704 grep -v '^ *+' conftest.er1 >conftest.err
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
11709 { ac_try='test -z "$ac_c_werror_flag"
11710 || test ! -s conftest.err'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try='test -s conftest.$ac_objext'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 ac_cv_type_struct_sockaddr_in6=yes
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 ac_cv_type_struct_sockaddr_in6=no
11729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11731 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11732 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11733 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define HAVE_STRUCT_SOCKADDR_IN6 1
11742 echo "$as_me:$LINENO: checking whether AF_INET6 is declared" >&5
11743 echo $ECHO_N "checking whether AF_INET6 is declared... $ECHO_C" >&6
11744 if test "${ac_cv_have_decl_AF_INET6+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 cat >conftest.$ac_ext <<_ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 #include "compat/headers_slim.h"
11759 char *p = (char *) AF_INET6;
11766 rm -f conftest.$ac_objext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768 (eval $ac_compile) 2>conftest.er1
11770 grep -v '^ *+' conftest.er1 >conftest.err
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag"
11776 || test ! -s conftest.err'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest.$ac_objext'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11788 ac_cv_have_decl_AF_INET6=yes
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 ac_cv_have_decl_AF_INET6=no
11795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11797 echo "$as_me:$LINENO: result: $ac_cv_have_decl_AF_INET6" >&5
11798 echo "${ECHO_T}$ac_cv_have_decl_AF_INET6" >&6
11799 if test $ac_cv_have_decl_AF_INET6 = yes; then
11801 cat >>confdefs.h <<_ACEOF
11802 #define HAVE_DECL_AF_INET6 1
11807 cat >>confdefs.h <<_ACEOF
11808 #define HAVE_DECL_AF_INET6 0
11815 echo "$as_me:$LINENO: checking for IPv6 headers and structures" >&5
11816 echo $ECHO_N "checking for IPv6 headers and structures... $ECHO_C" >&6
11818 if test "$ac_cv_type_struct_sockaddr_storage" = yes; then
11819 if test "$ac_cv_type_struct_sockaddr_in6" = yes; then
11820 if test "$ac_cv_have_decl_AF_INET6" = yes; then
11822 cat >>confdefs.h <<\_ACEOF
11823 #define HAVE_IPV6 1
11826 ac_cv_have_ipv6=yes
11830 echo "$as_me:$LINENO: result: $ac_cv_have_ipv6" >&5
11831 echo "${ECHO_T}$ac_cv_have_ipv6" >&6
11834 if test "$ac_cv_have_ipv6" = yes; then
11835 if test "$ac_cv_multicast" = yes; then
11836 echo "$as_me:$LINENO: checking for struct ipv6_mreq" >&5
11837 echo $ECHO_N "checking for struct ipv6_mreq... $ECHO_C" >&6
11838 if test "${ac_cv_type_struct_ipv6_mreq+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 cat >conftest.$ac_ext <<_ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 #include "compat/headers_slim.h"
11852 if ((struct ipv6_mreq *) 0)
11854 if (sizeof (struct ipv6_mreq))
11860 rm -f conftest.$ac_objext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862 (eval $ac_compile) 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -z "$ac_c_werror_flag"
11870 || test ! -s conftest.err'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest.$ac_objext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_cv_type_struct_ipv6_mreq=yes
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11887 ac_cv_type_struct_ipv6_mreq=no
11889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11891 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ipv6_mreq" >&5
11892 echo "${ECHO_T}$ac_cv_type_struct_ipv6_mreq" >&6
11893 if test $ac_cv_type_struct_ipv6_mreq = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896 #define HAVE_STRUCT_IPV6_MREQ 1
11902 echo "$as_me:$LINENO: checking whether IPV6_ADD_MEMBERSHIP is declared" >&5
11903 echo $ECHO_N "checking whether IPV6_ADD_MEMBERSHIP is declared... $ECHO_C" >&6
11904 if test "${ac_cv_have_decl_IPV6_ADD_MEMBERSHIP+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 cat >conftest.$ac_ext <<_ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 #include "compat/headers_slim.h"
11918 #ifndef IPV6_ADD_MEMBERSHIP
11919 char *p = (char *) IPV6_ADD_MEMBERSHIP;
11926 rm -f conftest.$ac_objext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11928 (eval $ac_compile) 2>conftest.er1
11930 grep -v '^ *+' conftest.er1 >conftest.err
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } &&
11935 { ac_try='test -z "$ac_c_werror_flag"
11936 || test ! -s conftest.err'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest.$ac_objext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_cv_have_decl_IPV6_ADD_MEMBERSHIP=yes
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 ac_cv_have_decl_IPV6_ADD_MEMBERSHIP=no
11955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11957 echo "$as_me:$LINENO: result: $ac_cv_have_decl_IPV6_ADD_MEMBERSHIP" >&5
11958 echo "${ECHO_T}$ac_cv_have_decl_IPV6_ADD_MEMBERSHIP" >&6
11959 if test $ac_cv_have_decl_IPV6_ADD_MEMBERSHIP = yes; then
11961 cat >>confdefs.h <<_ACEOF
11962 #define HAVE_DECL_IPV6_ADD_MEMBERSHIP 1
11967 cat >>confdefs.h <<_ACEOF
11968 #define HAVE_DECL_IPV6_ADD_MEMBERSHIP 0
11975 echo "$as_me:$LINENO: checking whether IPV6_MULTICAST_HOPS is declared" >&5
11976 echo $ECHO_N "checking whether IPV6_MULTICAST_HOPS is declared... $ECHO_C" >&6
11977 if test "${ac_cv_have_decl_IPV6_MULTICAST_HOPS+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 cat >conftest.$ac_ext <<_ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 #include "compat/headers_slim.h"
11991 #ifndef IPV6_MULTICAST_HOPS
11992 char *p = (char *) IPV6_MULTICAST_HOPS;
11999 rm -f conftest.$ac_objext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12001 (eval $ac_compile) 2>conftest.er1
12003 grep -v '^ *+' conftest.er1 >conftest.err
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try='test -z "$ac_c_werror_flag"
12009 || test ! -s conftest.err'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest.$ac_objext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_cv_have_decl_IPV6_MULTICAST_HOPS=yes
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 ac_cv_have_decl_IPV6_MULTICAST_HOPS=no
12028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12030 echo "$as_me:$LINENO: result: $ac_cv_have_decl_IPV6_MULTICAST_HOPS" >&5
12031 echo "${ECHO_T}$ac_cv_have_decl_IPV6_MULTICAST_HOPS" >&6
12032 if test $ac_cv_have_decl_IPV6_MULTICAST_HOPS = yes; then
12034 cat >>confdefs.h <<_ACEOF
12035 #define HAVE_DECL_IPV6_MULTICAST_HOPS 1
12040 cat >>confdefs.h <<_ACEOF
12041 #define HAVE_DECL_IPV6_MULTICAST_HOPS 0
12048 echo "$as_me:$LINENO: checking for IPv6 multicast support" >&5
12049 echo $ECHO_N "checking for IPv6 multicast support... $ECHO_C" >&6
12050 ac_cv_have_ipv6_multicast=no
12051 if test "$ac_cv_type_struct_ipv6_mreq" = yes; then
12052 if test "$ac_cv_have_decl_IPV6_ADD_MEMBERSHIP" = yes; then
12053 if test "$ac_cv_have_decl_IPV6_MULTICAST_HOPS" = yes; then
12055 cat >>confdefs.h <<\_ACEOF
12056 #define HAVE_IPV6_MULTICAST 1
12059 ac_cv_have_ipv6_multicast=yes
12063 echo "$as_me:$LINENO: result: $ac_cv_have_ipv6_multicast" >&5
12064 echo "${ECHO_T}$ac_cv_have_ipv6_multicast" >&6
12068 if test "$enable_debuginfo" = yes; then
12070 cat >>confdefs.h <<\_ACEOF
12076 if test "$enable_web100" != no; then
12077 if test -e "/proc/web100"; then
12078 if test -d "/proc/web100"; then
12079 if test -e "/proc/web100/header"; then
12080 if test -f "/proc/web100/header"; then
12081 if test -r "/proc/web100/header"; then
12085 # Extract the first word of "web100-config", so it can be a program name with args.
12086 set dummy web100-config; ac_word=$2
12087 echo "$as_me:$LINENO: checking for $ac_word" >&5
12088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12089 if test "${ac_cv_path_WEB100_CONFIG+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 case $WEB100_CONFIG in
12094 ac_cv_path_WEB100_CONFIG="$WEB100_CONFIG" # Let the user override the test with a path.
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104 ac_cv_path_WEB100_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 test -z "$ac_cv_path_WEB100_CONFIG" && ac_cv_path_WEB100_CONFIG="no"
12115 WEB100_CONFIG=$ac_cv_path_WEB100_CONFIG
12117 if test -n "$WEB100_CONFIG"; then
12118 echo "$as_me:$LINENO: result: $WEB100_CONFIG" >&5
12119 echo "${ECHO_T}$WEB100_CONFIG" >&6
12121 echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12126 echo "$as_me:$LINENO: checking for Web100" >&5
12127 echo $ECHO_N "checking for Web100... $ECHO_C" >&6
12129 if test "$WEB100_CONFIG" != "no"; then
12130 WEB100_CFLAGS=`$WEB100_CONFIG --cflags`
12131 WEB100_LIBS=`$WEB100_CONFIG --libs`
12132 echo "$as_me:$LINENO: result: yes" >&5
12133 echo "${ECHO_T}yes" >&6
12135 echo "$as_me:$LINENO: result: no" >&5
12136 echo "${ECHO_T}no" >&6
12137 echo "*** The web100-config script installed by Web100 could not be found"
12138 echo "*** If Web100 was installed in PREFIX, make sure PREFIX/bin is in"
12139 echo "*** your path, or set the WEB100_CONFIG environment variable to the"
12140 echo "*** full path to web100-config"
12141 web100_success="no"
12144 if test x$web100_success = x; then
12145 if test "x" != "x"; then
12146 echo "$as_me:$LINENO: checking for Web100 - version " >&5
12147 echo $ECHO_N "checking for Web100 - version ... $ECHO_C" >&6
12149 WEB100_VERSION=`$WEB100_CONFIG --version`
12150 if test "$WEB100_VERSION" = ""; then
12151 echo "$as_me:$LINENO: result: yes" >&5
12152 echo "${ECHO_T}yes" >&6
12154 echo "$as_me:$LINENO: result: no" >&5
12155 echo "${ECHO_T}no" >&6
12156 echo "*** The requested () and installed ($WEB100_VERSION) versions"
12157 echo "*** of Web100 do not match."
12158 web100_success="no"
12163 if test x$web100_success = x; then
12164 web100_success="yes"
12167 if test x$web100_success = xyes; then
12178 if test "$web100_success" = yes; then
12180 cat >>confdefs.h <<\_ACEOF
12181 #define HAVE_WEB100 1
12187 echo "$as_me:$LINENO: checking whether make is GNU make" >&5
12188 echo $ECHO_N "checking whether make is GNU make... $ECHO_C" >&6
12191 if $ac_make --version 2> /dev/null | grep '^GNU Make ' > /dev/null ; then
12192 STRIP_BEGIN='$(strip $(STRIP_DUMMY)'
12194 echo "$as_me:$LINENO: result: yes" >&5
12195 echo "${ECHO_T}yes" >&6
12197 echo "$as_me:$LINENO: result: no" >&5
12198 echo "${ECHO_T}no" >&6
12206 ac_config_files="$ac_config_files Makefile compat/Makefile doc/Makefile include/Makefile src/Makefile"
12208 cat >confcache <<\_ACEOF
12209 # This file is a shell script that caches the results of configure
12210 # tests run on this system so they can be shared between configure
12211 # scripts and configure runs, see configure's option --config-cache.
12212 # It is not useful on other systems. If it contains results you don't
12213 # want to keep, you may remove or edit it.
12215 # config.status only pays attention to the cache file if you give it
12216 # the --recheck option to rerun configure.
12218 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12219 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12220 # following values.
12224 # The following way of writing the cache mishandles newlines in values,
12225 # but we know of no workaround that is simple, portable, and efficient.
12226 # So, don't put newlines in cache variables' values.
12227 # Ultrix sh set writes to stderr and can't be redirected directly,
12228 # and sets the high bit in the cache file unless we assign to the vars.
12231 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12233 # `set' does not quote correctly, so add quotes (double-quote
12234 # substitution turns \\\\ into \\, and sed turns \\ into \).
12237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12240 # `set' quotes correctly as required by POSIX, so do not add quotes.
12242 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12251 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12253 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12254 if test -w $cache_file; then
12255 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12256 cat confcache >$cache_file
12258 echo "not updating unwritable cache $cache_file"
12263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12264 # Let make expand exec_prefix.
12265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12267 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12268 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12269 # trailing colons and then remove the whole line if VPATH becomes empty
12270 # (actually we leave an empty line to preserve line numbers).
12271 if test "x$srcdir" = x.; then
12272 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12273 s/:*\$(srcdir):*/:/;
12274 s/:*\${srcdir}:*/:/;
12276 s/^\([^=]*=[ ]*\):*/\1/;
12282 DEFS=-DHAVE_CONFIG_H
12286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12287 # 1. Remove the extension, and $U if already installed.
12288 ac_i=`echo "$ac_i" |
12289 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12291 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12292 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12294 LIBOBJS=$ac_libobjs
12296 LTLIBOBJS=$ac_ltlibobjs
12299 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12300 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12301 Usually this means the macro was only invoked conditionally." >&5
12302 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12303 Usually this means the macro was only invoked conditionally." >&2;}
12304 { (exit 1); exit 1; }; }
12306 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
12307 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
12308 Usually this means the macro was only invoked conditionally." >&5
12309 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
12310 Usually this means the macro was only invoked conditionally." >&2;}
12311 { (exit 1); exit 1; }; }
12313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12314 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12315 Usually this means the macro was only invoked conditionally." >&5
12316 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12317 Usually this means the macro was only invoked conditionally." >&2;}
12318 { (exit 1); exit 1; }; }
12321 : ${CONFIG_STATUS=./config.status}
12322 ac_clean_files_save=$ac_clean_files
12323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12324 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12325 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12326 cat >$CONFIG_STATUS <<_ACEOF
12328 # Generated by $as_me.
12329 # Run this file to recreate the current configuration.
12330 # Compiler output produced by configure, useful for debugging
12331 # configure, is in config.log if it exists.
12334 ac_cs_recheck=false
12336 SHELL=\${CONFIG_SHELL-$SHELL}
12339 cat >>$CONFIG_STATUS <<\_ACEOF
12340 ## --------------------- ##
12341 ## M4sh Initialization. ##
12342 ## --------------------- ##
12344 # Be Bourne compatible
12345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12348 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12349 # is contrary to our usage. Disable this feature.
12350 alias -g '${1+"$@"}'='"$@"'
12351 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12354 DUALCASE=1; export DUALCASE # for MKS sh
12356 # Support unset when possible.
12357 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12364 # Work around bugs in pre-3.0 UWIN ksh.
12365 $as_unset ENV MAIL MAILPATH
12372 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12373 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12374 LC_TELEPHONE LC_TIME
12376 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12377 eval $as_var=C; export $as_var
12383 # Required to use basename.
12384 if expr a : '\(a\)' >/dev/null 2>&1; then
12390 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12391 as_basename=basename
12397 # Name of the executable.
12398 as_me=`$as_basename "$0" ||
12399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12400 X"$0" : 'X\(//\)$' \| \
12401 X"$0" : 'X\(/\)$' \| \
12402 . : '\(.\)' 2>/dev/null ||
12404 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12405 /^X\/\(\/\/\)$/{ s//\1/; q; }
12406 /^X\/\(\/\).*/{ s//\1/; q; }
12410 # PATH needs CR, and LINENO needs CR and PATH.
12411 # Avoid depending upon Character Ranges.
12412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12415 as_cr_digits='0123456789'
12416 as_cr_alnum=$as_cr_Letters$as_cr_digits
12418 # The user is always right.
12419 if test "${PATH_SEPARATOR+set}" != set; then
12420 echo "#! /bin/sh" >conf$$.sh
12421 echo "exit 0" >>conf$$.sh
12423 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12432 as_lineno_1=$LINENO
12433 as_lineno_2=$LINENO
12434 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12435 test "x$as_lineno_1" != "x$as_lineno_2" &&
12436 test "x$as_lineno_3" = "x$as_lineno_2" || {
12437 # Find who we are. Look in the path if we contain no path at all
12440 *[\\/]* ) as_myself=$0 ;;
12441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12445 test -z "$as_dir" && as_dir=.
12446 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12451 # We did not find ourselves, most probably we were run as `sh COMMAND'
12452 # in which case we are not to be found in the path.
12453 if test "x$as_myself" = x; then
12456 if test ! -f "$as_myself"; then
12457 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12458 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12459 { (exit 1); exit 1; }; }
12461 case $CONFIG_SHELL in
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12467 test -z "$as_dir" && as_dir=.
12468 for as_base in sh bash ksh sh5; do
12471 if ("$as_dir/$as_base" -c '
12472 as_lineno_1=$LINENO
12473 as_lineno_2=$LINENO
12474 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12475 test "x$as_lineno_1" != "x$as_lineno_2" &&
12476 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12477 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12478 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12479 CONFIG_SHELL=$as_dir/$as_base
12480 export CONFIG_SHELL
12481 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12489 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12490 # uniformly replaced by the line number. The first 'sed' inserts a
12491 # line-number line before each line; the second 'sed' does the real
12492 # work. The second script uses 'N' to pair each line-number line
12493 # with the numbered line, and appends trailing '-' during
12494 # substitution so that $LINENO is not a special case at line end.
12495 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12496 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12497 sed '=' <$as_myself |
12502 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12505 s,^['$as_cr_digits']*\n,,
12506 ' >$as_me.lineno &&
12507 chmod +x $as_me.lineno ||
12508 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12509 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12510 { (exit 1); exit 1; }; }
12512 # Don't try to exec as it changes $[0], causing all sort of problems
12513 # (the dirname of $[0] is not the place where we might find the
12514 # original and so on. Autoconf is especially sensible to this).
12516 # Exit status is that of the last command.
12521 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12522 *c*,-n*) ECHO_N= ECHO_C='
12524 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12525 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12528 if expr a : '\(a\)' >/dev/null 2>&1; then
12534 rm -f conf$$ conf$$.exe conf$$.file
12536 if ln -s conf$$.file conf$$ 2>/dev/null; then
12537 # We could just check for DJGPP; but this test a) works b) is more generic
12538 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12539 if test -f conf$$.exe; then
12540 # Don't use ln at all; we don't have any links
12545 elif ln conf$$.file conf$$ 2>/dev/null; then
12550 rm -f conf$$ conf$$.exe conf$$.file
12552 if mkdir -p . 2>/dev/null; then
12555 test -d ./-p && rmdir ./-p
12559 as_executable_p="test -f"
12561 # Sed expression to map a string onto a valid CPP name.
12562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12564 # Sed expression to map a string onto a valid variable name.
12565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12569 # We need space, tab and new line, in precisely that order.
12579 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12580 # report actual input values of CONFIG_FILES etc. instead of their
12581 # values after options handling. Logging --version etc. is OK.
12585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12586 ## Running $as_me. ##
12591 This file was extended by Iperf $as_me 2.0.2, which was
12592 generated by GNU Autoconf 2.59. Invocation command line was
12594 CONFIG_FILES = $CONFIG_FILES
12595 CONFIG_HEADERS = $CONFIG_HEADERS
12596 CONFIG_LINKS = $CONFIG_LINKS
12597 CONFIG_COMMANDS = $CONFIG_COMMANDS
12601 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12605 # Files that config.status was made for.
12606 if test -n "$ac_config_files"; then
12607 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12610 if test -n "$ac_config_headers"; then
12611 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12614 if test -n "$ac_config_links"; then
12615 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12618 if test -n "$ac_config_commands"; then
12619 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12622 cat >>$CONFIG_STATUS <<\_ACEOF
12625 \`$as_me' instantiates files from templates according to the
12626 current configuration.
12628 Usage: $0 [OPTIONS] [FILE]...
12630 -h, --help print this help, then exit
12631 -V, --version print version number, then exit
12632 -q, --quiet do not print progress messages
12633 -d, --debug don't remove temporary files
12634 --recheck update $as_me by reconfiguring in the same conditions
12635 --file=FILE[:TEMPLATE]
12636 instantiate the configuration file FILE
12637 --header=FILE[:TEMPLATE]
12638 instantiate the configuration header FILE
12640 Configuration files:
12643 Configuration headers:
12646 Configuration commands:
12649 Report bugs to <bug-autoconf@gnu.org>."
12652 cat >>$CONFIG_STATUS <<_ACEOF
12654 Iperf config.status 2.0.2
12655 configured by $0, generated by GNU Autoconf 2.59,
12656 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12658 Copyright (C) 2003 Free Software Foundation, Inc.
12659 This config.status script is free software; the Free Software Foundation
12660 gives unlimited permission to copy, distribute and modify it."
12665 cat >>$CONFIG_STATUS <<\_ACEOF
12666 # If no file are specified by the user, then we need to provide default
12667 # value. By we need to know if files were specified by the user.
12673 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12674 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12682 *) # This is not an option, so the user has probably given explicit
12685 ac_need_defaults=false;;
12689 # Handling of the options.
12691 cat >>$CONFIG_STATUS <<\_ACEOF
12692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12694 --version | --vers* | -V )
12695 echo "$ac_cs_version"; exit 0 ;;
12697 # Conflict between --help and --header
12698 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12699 Try \`$0 --help' for more information." >&5
12700 echo "$as_me: error: ambiguous option: $1
12701 Try \`$0 --help' for more information." >&2;}
12702 { (exit 1); exit 1; }; };;
12703 --help | --hel | -h )
12704 echo "$ac_cs_usage"; exit 0 ;;
12705 --debug | --d* | -d )
12707 --file | --fil | --fi | --f )
12709 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12710 ac_need_defaults=false;;
12711 --header | --heade | --head | --hea )
12713 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12714 ac_need_defaults=false;;
12715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12716 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12719 # This is an error.
12720 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12721 Try \`$0 --help' for more information." >&5
12722 echo "$as_me: error: unrecognized option: $1
12723 Try \`$0 --help' for more information." >&2;}
12724 { (exit 1); exit 1; }; } ;;
12726 *) ac_config_targets="$ac_config_targets $1" ;;
12732 ac_configure_extra_args=
12734 if $ac_cs_silent; then
12736 ac_configure_extra_args="$ac_configure_extra_args --silent"
12740 cat >>$CONFIG_STATUS <<_ACEOF
12741 if \$ac_cs_recheck; then
12742 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12743 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12748 cat >>$CONFIG_STATUS <<_ACEOF
12750 # INIT-COMMANDS section.
12753 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12754 # variables for create stdint.h replacement
12757 ac_stdint_h="$ac_stdint_h"
12758 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
12759 ac_cv_stdint_message="$ac_cv_stdint_message"
12760 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
12761 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
12762 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
12763 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
12764 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
12765 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
12766 ac_cv_char_data_model="$ac_cv_char_data_model"
12767 ac_cv_long_data_model="$ac_cv_long_data_model"
12768 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
12769 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
12770 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
12777 cat >>$CONFIG_STATUS <<\_ACEOF
12778 for ac_config_target in $ac_config_targets
12780 case "$ac_config_target" in
12781 # Handling of arguments.
12782 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12783 "compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
12784 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12785 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12786 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12787 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12788 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
12789 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12790 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12791 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12792 { (exit 1); exit 1; }; };;
12796 # If the user did not use the arguments to specify the items to instantiate,
12797 # then the envvar interface is used. Set only those that are not.
12798 # We use the long form for the default assignment because of an extremely
12799 # bizarre bug on SunOS 4.1.3.
12800 if $ac_need_defaults; then
12801 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12802 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12803 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12806 # Have a temporary directory for convenience. Make it in the build tree
12807 # simply because there is no reason to put it here, and in addition,
12808 # creating and moving files from /tmp can sometimes cause problems.
12809 # Create a temporary directory, and hook for its removal unless debugging.
12812 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12813 trap '{ (exit 1); exit 1; }' 1 2 13 15
12816 # Create a (secure) tmp directory for tmp files.
12819 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12820 test -n "$tmp" && test -d "$tmp"
12823 tmp=./confstat$$-$RANDOM
12824 (umask 077 && mkdir $tmp)
12827 echo "$me: cannot create a temporary directory in ." >&2
12828 { (exit 1); exit 1; }
12833 cat >>$CONFIG_STATUS <<_ACEOF
12836 # CONFIG_FILES section.
12839 # No need to generate the scripts if there are no CONFIG_FILES.
12840 # This happens for instance when ./config.status config.h
12841 if test -n "\$CONFIG_FILES"; then
12842 # Protect against being on the right side of a sed subst in config.status.
12843 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12844 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12845 s,@SHELL@,$SHELL,;t t
12846 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12847 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12848 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12849 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12850 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12851 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12852 s,@exec_prefix@,$exec_prefix,;t t
12853 s,@prefix@,$prefix,;t t
12854 s,@program_transform_name@,$program_transform_name,;t t
12855 s,@bindir@,$bindir,;t t
12856 s,@sbindir@,$sbindir,;t t
12857 s,@libexecdir@,$libexecdir,;t t
12858 s,@datadir@,$datadir,;t t
12859 s,@sysconfdir@,$sysconfdir,;t t
12860 s,@sharedstatedir@,$sharedstatedir,;t t
12861 s,@localstatedir@,$localstatedir,;t t
12862 s,@libdir@,$libdir,;t t
12863 s,@includedir@,$includedir,;t t
12864 s,@oldincludedir@,$oldincludedir,;t t
12865 s,@infodir@,$infodir,;t t
12866 s,@mandir@,$mandir,;t t
12867 s,@build_alias@,$build_alias,;t t
12868 s,@host_alias@,$host_alias,;t t
12869 s,@target_alias@,$target_alias,;t t
12870 s,@DEFS@,$DEFS,;t t
12871 s,@ECHO_C@,$ECHO_C,;t t
12872 s,@ECHO_N@,$ECHO_N,;t t
12873 s,@ECHO_T@,$ECHO_T,;t t
12874 s,@LIBS@,$LIBS,;t t
12875 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12876 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12877 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12878 s,@CYGPATH_W@,$CYGPATH_W,;t t
12879 s,@PACKAGE@,$PACKAGE,;t t
12880 s,@VERSION@,$VERSION,;t t
12881 s,@ACLOCAL@,$ACLOCAL,;t t
12882 s,@AUTOCONF@,$AUTOCONF,;t t
12883 s,@AUTOMAKE@,$AUTOMAKE,;t t
12884 s,@AUTOHEADER@,$AUTOHEADER,;t t
12885 s,@MAKEINFO@,$MAKEINFO,;t t
12886 s,@install_sh@,$install_sh,;t t
12887 s,@STRIP@,$STRIP,;t t
12888 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12889 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12890 s,@mkdir_p@,$mkdir_p,;t t
12892 s,@SET_MAKE@,$SET_MAKE,;t t
12893 s,@am__leading_dot@,$am__leading_dot,;t t
12894 s,@AMTAR@,$AMTAR,;t t
12895 s,@am__tar@,$am__tar,;t t
12896 s,@am__untar@,$am__untar,;t t
12898 s,@CXXFLAGS@,$CXXFLAGS,;t t
12899 s,@LDFLAGS@,$LDFLAGS,;t t
12900 s,@CPPFLAGS@,$CPPFLAGS,;t t
12901 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12902 s,@EXEEXT@,$EXEEXT,;t t
12903 s,@OBJEXT@,$OBJEXT,;t t
12904 s,@DEPDIR@,$DEPDIR,;t t
12905 s,@am__include@,$am__include,;t t
12906 s,@am__quote@,$am__quote,;t t
12907 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12908 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12909 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12910 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
12911 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
12912 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
12914 s,@CFLAGS@,$CFLAGS,;t t
12915 s,@ac_ct_CC@,$ac_ct_CC,;t t
12916 s,@CCDEPMODE@,$CCDEPMODE,;t t
12917 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12918 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12919 s,@RANLIB@,$RANLIB,;t t
12920 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12921 s,@build@,$build,;t t
12922 s,@build_cpu@,$build_cpu,;t t
12923 s,@build_vendor@,$build_vendor,;t t
12924 s,@build_os@,$build_os,;t t
12925 s,@host@,$host,;t t
12926 s,@host_cpu@,$host_cpu,;t t
12927 s,@host_vendor@,$host_vendor,;t t
12928 s,@host_os@,$host_os,;t t
12929 s,@acx_pthread_config@,$acx_pthread_config,;t t
12930 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
12931 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
12932 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
12934 s,@EGREP@,$EGREP,;t t
12935 s,@LIBOBJS@,$LIBOBJS,;t t
12936 s,@WEB100_CONFIG@,$WEB100_CONFIG,;t t
12937 s,@WEB100_CFLAGS@,$WEB100_CFLAGS,;t t
12938 s,@WEB100_LIBS@,$WEB100_LIBS,;t t
12939 s,@STRIP_DUMMY@,$STRIP_DUMMY,;t t
12940 s,@STRIP_BEGIN@,$STRIP_BEGIN,;t t
12941 s,@STRIP_END@,$STRIP_END,;t t
12942 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12947 cat >>$CONFIG_STATUS <<\_ACEOF
12948 # Split the substitutions into bite-sized pieces for seds with
12949 # small command number limits, like on Digital OSF/1 and HP-UX.
12950 ac_max_sed_lines=48
12951 ac_sed_frag=1 # Number of current file.
12952 ac_beg=1 # First line for current file.
12953 ac_end=$ac_max_sed_lines # Line after last line for current file.
12956 while $ac_more_lines; do
12957 if test $ac_beg -gt 1; then
12958 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12960 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12962 if test ! -s $tmp/subs.frag; then
12963 ac_more_lines=false
12965 # The purpose of the label and of the branching condition is to
12966 # speed up the sed processing (if there are no `@' at all, there
12967 # is no need to browse any of the substitutions).
12968 # These are the two extra sed commands mentioned above.
12970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12971 if test -z "$ac_sed_cmds"; then
12972 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12974 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12976 ac_sed_frag=`expr $ac_sed_frag + 1`
12978 ac_end=`expr $ac_end + $ac_max_sed_lines`
12981 if test -z "$ac_sed_cmds"; then
12984 fi # test -n "$CONFIG_FILES"
12987 cat >>$CONFIG_STATUS <<\_ACEOF
12988 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12989 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12991 - | *:- | *:-:* ) # input from stdin
12993 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12994 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12995 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12996 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12997 * ) ac_file_in=$ac_file.in ;;
13000 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13001 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13003 X"$ac_file" : 'X\(//\)[^/]' \| \
13004 X"$ac_file" : 'X\(//\)$' \| \
13005 X"$ac_file" : 'X\(/\)' \| \
13006 . : '\(.\)' 2>/dev/null ||
13008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13010 /^X\(\/\/\)$/{ s//\1/; q; }
13011 /^X\(\/\).*/{ s//\1/; q; }
13013 { if $as_mkdir_p; then
13018 while test ! -d "$as_dir"; do
13019 as_dirs="$as_dir $as_dirs"
13020 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13022 X"$as_dir" : 'X\(//\)[^/]' \| \
13023 X"$as_dir" : 'X\(//\)$' \| \
13024 X"$as_dir" : 'X\(/\)' \| \
13025 . : '\(.\)' 2>/dev/null ||
13027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13029 /^X\(\/\/\)$/{ s//\1/; q; }
13030 /^X\(\/\).*/{ s//\1/; q; }
13033 test ! -n "$as_dirs" || mkdir $as_dirs
13034 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13035 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13036 { (exit 1); exit 1; }; }; }
13040 if test "$ac_dir" != .; then
13041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13042 # A "../" for each directory in $ac_dir_suffix.
13043 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13045 ac_dir_suffix= ac_top_builddir=
13049 .) # No --srcdir option. We are building in place.
13051 if test -z "$ac_top_builddir"; then
13054 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13056 [\\/]* | ?:[\\/]* ) # Absolute path.
13057 ac_srcdir=$srcdir$ac_dir_suffix;
13058 ac_top_srcdir=$srcdir ;;
13059 *) # Relative path.
13060 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13061 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13064 # Do not use `cd foo && pwd` to compute absolute paths, because
13065 # the directories may not exist.
13067 .) ac_abs_builddir="$ac_dir";;
13070 .) ac_abs_builddir=`pwd`;;
13071 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13072 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13075 case $ac_abs_builddir in
13076 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13078 case ${ac_top_builddir}. in
13079 .) ac_abs_top_builddir=$ac_abs_builddir;;
13080 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13081 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13084 case $ac_abs_builddir in
13085 .) ac_abs_srcdir=$ac_srcdir;;
13088 .) ac_abs_srcdir=$ac_abs_builddir;;
13089 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13090 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13093 case $ac_abs_builddir in
13094 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13096 case $ac_top_srcdir in
13097 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13098 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13099 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13105 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13106 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13109 if test x"$ac_file" != x-; then
13110 { echo "$as_me:$LINENO: creating $ac_file" >&5
13111 echo "$as_me: creating $ac_file" >&6;}
13114 # Let's still pretend it is `configure' which instantiates (i.e., don't
13115 # use $as_me), people would be surprised to read:
13116 # /* config.h. Generated by config.status. */
13117 if test x"$ac_file" = x-; then
13120 configure_input="$ac_file. "
13122 configure_input=$configure_input"Generated from `echo $ac_file_in |
13123 sed 's,.*/,,'` by configure."
13125 # First look for the input files in the build tree, otherwise in the
13127 ac_file_inputs=`IFS=:
13128 for f in $ac_file_in; do
13130 -) echo $tmp/stdin ;;
13132 # Absolute (can't be DOS-style, as IFS=:)
13133 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13134 echo "$as_me: error: cannot find input file: $f" >&2;}
13135 { (exit 1); exit 1; }; }
13138 if test -f "$f"; then
13141 elif test -f "$srcdir/$f"; then
13146 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13147 echo "$as_me: error: cannot find input file: $f" >&2;}
13148 { (exit 1); exit 1; }; }
13151 done` || { (exit 1); exit 1; }
13153 cat >>$CONFIG_STATUS <<_ACEOF
13157 cat >>$CONFIG_STATUS <<\_ACEOF
13159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13160 s,@configure_input@,$configure_input,;t t
13161 s,@srcdir@,$ac_srcdir,;t t
13162 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13163 s,@top_srcdir@,$ac_top_srcdir,;t t
13164 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13165 s,@builddir@,$ac_builddir,;t t
13166 s,@abs_builddir@,$ac_abs_builddir,;t t
13167 s,@top_builddir@,$ac_top_builddir,;t t
13168 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13169 s,@INSTALL@,$ac_INSTALL,;t t
13170 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13172 if test x"$ac_file" != x-; then
13173 mv $tmp/out $ac_file
13181 cat >>$CONFIG_STATUS <<\_ACEOF
13184 # CONFIG_HEADER section.
13187 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13188 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13190 # ac_d sets the value in "#define NAME VALUE" lines.
13191 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13192 ac_dB='[ ].*$,\1#\2'
13195 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13196 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13197 ac_uB='$,\1#\2define\3'
13201 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13202 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13204 - | *:- | *:-:* ) # input from stdin
13206 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13207 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13208 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13209 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13210 * ) ac_file_in=$ac_file.in ;;
13213 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13214 echo "$as_me: creating $ac_file" >&6;}
13216 # First look for the input files in the build tree, otherwise in the
13218 ac_file_inputs=`IFS=:
13219 for f in $ac_file_in; do
13221 -) echo $tmp/stdin ;;
13223 # Absolute (can't be DOS-style, as IFS=:)
13224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13225 echo "$as_me: error: cannot find input file: $f" >&2;}
13226 { (exit 1); exit 1; }; }
13227 # Do quote $f, to prevent DOS paths from being IFS'd.
13230 if test -f "$f"; then
13233 elif test -f "$srcdir/$f"; then
13238 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13239 echo "$as_me: error: cannot find input file: $f" >&2;}
13240 { (exit 1); exit 1; }; }
13243 done` || { (exit 1); exit 1; }
13244 # Remove the trailing spaces.
13245 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13249 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13250 # `conftest.undefs', that substitutes the proper values into
13251 # config.h.in to produce config.h. The first handles `#define'
13252 # templates, and the second `#undef' templates.
13253 # And first: Protect against being on the right side of a sed subst in
13254 # config.status. Protect against being in an unquoted here document
13255 # in config.status.
13256 rm -f conftest.defines conftest.undefs
13257 # Using a here document instead of a string reduces the quoting nightmare.
13258 # Putting comments in sed scripts is not portable.
13260 # `end' is used to avoid that the second main sed command (meant for
13261 # 0-ary CPP macros) applies to n-ary macro definitions.
13262 # See the Autoconf documentation for `clear'.
13263 cat >confdef2sed.sed <<\_ACEOF
13268 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13270 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13273 # If some macros were called several times there might be several times
13274 # the same #defines, which is useless. Nevertheless, we may not want to
13275 # sort them, since we want the *last* AC-DEFINE to be honored.
13276 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13277 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13278 rm -f confdef2sed.sed
13280 # This sed command replaces #undef with comments. This is necessary, for
13281 # example, in the case of _POSIX_SOURCE, which is predefined and required
13282 # on some systems where configure will not decide to define it.
13283 cat >>conftest.undefs <<\_ACEOF
13284 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13287 # Break up conftest.defines because some shells have a limit on the size
13288 # of here documents, and old seds have small limits too (100 cmds).
13289 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13290 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13291 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13292 echo ' :' >>$CONFIG_STATUS
13293 rm -f conftest.tail
13294 while grep . conftest.defines >/dev/null
13296 # Write a limited-size here document to $tmp/defines.sed.
13297 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13298 # Speed up: don't consider the non `#define' lines.
13299 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13300 # Work around the forget-to-reset-the-flag bug.
13301 echo 't clr' >>$CONFIG_STATUS
13302 echo ': clr' >>$CONFIG_STATUS
13303 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13305 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13307 mv $tmp/out $tmp/in
13309 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13310 rm -f conftest.defines
13311 mv conftest.tail conftest.defines
13313 rm -f conftest.defines
13314 echo ' fi # grep' >>$CONFIG_STATUS
13315 echo >>$CONFIG_STATUS
13317 # Break up conftest.undefs because some shells have a limit on the size
13318 # of here documents, and old seds have small limits too (100 cmds).
13319 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13320 rm -f conftest.tail
13321 while grep . conftest.undefs >/dev/null
13323 # Write a limited-size here document to $tmp/undefs.sed.
13324 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13325 # Speed up: don't consider the non `#undef'
13326 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13327 # Work around the forget-to-reset-the-flag bug.
13328 echo 't clr' >>$CONFIG_STATUS
13329 echo ': clr' >>$CONFIG_STATUS
13330 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13332 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13334 mv $tmp/out $tmp/in
13336 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13337 rm -f conftest.undefs
13338 mv conftest.tail conftest.undefs
13340 rm -f conftest.undefs
13342 cat >>$CONFIG_STATUS <<\_ACEOF
13343 # Let's still pretend it is `configure' which instantiates (i.e., don't
13344 # use $as_me), people would be surprised to read:
13345 # /* config.h. Generated by config.status. */
13346 if test x"$ac_file" = x-; then
13347 echo "/* Generated by configure. */" >$tmp/config.h
13349 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13351 cat $tmp/in >>$tmp/config.h
13353 if test x"$ac_file" != x-; then
13354 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13355 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13356 echo "$as_me: $ac_file is unchanged" >&6;}
13358 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13360 X"$ac_file" : 'X\(//\)[^/]' \| \
13361 X"$ac_file" : 'X\(//\)$' \| \
13362 X"$ac_file" : 'X\(/\)' \| \
13363 . : '\(.\)' 2>/dev/null ||
13365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13367 /^X\(\/\/\)$/{ s//\1/; q; }
13368 /^X\(\/\).*/{ s//\1/; q; }
13370 { if $as_mkdir_p; then
13375 while test ! -d "$as_dir"; do
13376 as_dirs="$as_dir $as_dirs"
13377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13379 X"$as_dir" : 'X\(//\)[^/]' \| \
13380 X"$as_dir" : 'X\(//\)$' \| \
13381 X"$as_dir" : 'X\(/\)' \| \
13382 . : '\(.\)' 2>/dev/null ||
13384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13386 /^X\(\/\/\)$/{ s//\1/; q; }
13387 /^X\(\/\).*/{ s//\1/; q; }
13390 test ! -n "$as_dirs" || mkdir $as_dirs
13391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13392 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13393 { (exit 1); exit 1; }; }; }
13396 mv $tmp/config.h $ac_file
13400 rm -f $tmp/config.h
13402 # Compute $ac_file's index in $config_headers.
13404 for _am_header in $config_headers :; do
13405 case $_am_header in
13406 $ac_file | $ac_file:* )
13409 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13412 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13413 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13414 X$ac_file : 'X\(//\)[^/]' \| \
13415 X$ac_file : 'X\(//\)$' \| \
13416 X$ac_file : 'X\(/\)' \| \
13417 . : '\(.\)' 2>/dev/null ||
13419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13421 /^X\(\/\/\)$/{ s//\1/; q; }
13422 /^X\(\/\).*/{ s//\1/; q; }
13423 s/.*/./; q'`/stamp-h$_am_stamp_count
13426 cat >>$CONFIG_STATUS <<\_ACEOF
13429 # CONFIG_COMMANDS section.
13431 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13432 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13433 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13434 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13435 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13436 X"$ac_dest" : 'X\(//\)[^/]' \| \
13437 X"$ac_dest" : 'X\(//\)$' \| \
13438 X"$ac_dest" : 'X\(/\)' \| \
13439 . : '\(.\)' 2>/dev/null ||
13441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13443 /^X\(\/\/\)$/{ s//\1/; q; }
13444 /^X\(\/\).*/{ s//\1/; q; }
13446 { if $as_mkdir_p; then
13451 while test ! -d "$as_dir"; do
13452 as_dirs="$as_dir $as_dirs"
13453 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13455 X"$as_dir" : 'X\(//\)[^/]' \| \
13456 X"$as_dir" : 'X\(//\)$' \| \
13457 X"$as_dir" : 'X\(/\)' \| \
13458 . : '\(.\)' 2>/dev/null ||
13460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13462 /^X\(\/\/\)$/{ s//\1/; q; }
13463 /^X\(\/\).*/{ s//\1/; q; }
13466 test ! -n "$as_dirs" || mkdir $as_dirs
13467 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13468 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13469 { (exit 1); exit 1; }; }; }
13473 if test "$ac_dir" != .; then
13474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13475 # A "../" for each directory in $ac_dir_suffix.
13476 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13478 ac_dir_suffix= ac_top_builddir=
13482 .) # No --srcdir option. We are building in place.
13484 if test -z "$ac_top_builddir"; then
13487 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13489 [\\/]* | ?:[\\/]* ) # Absolute path.
13490 ac_srcdir=$srcdir$ac_dir_suffix;
13491 ac_top_srcdir=$srcdir ;;
13492 *) # Relative path.
13493 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13494 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13497 # Do not use `cd foo && pwd` to compute absolute paths, because
13498 # the directories may not exist.
13500 .) ac_abs_builddir="$ac_dir";;
13503 .) ac_abs_builddir=`pwd`;;
13504 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13505 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13508 case $ac_abs_builddir in
13509 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13511 case ${ac_top_builddir}. in
13512 .) ac_abs_top_builddir=$ac_abs_builddir;;
13513 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13514 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13517 case $ac_abs_builddir in
13518 .) ac_abs_srcdir=$ac_srcdir;;
13521 .) ac_abs_srcdir=$ac_abs_builddir;;
13522 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13523 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13526 case $ac_abs_builddir in
13527 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13529 case $ac_top_srcdir in
13530 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13531 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13532 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13537 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13538 echo "$as_me: executing $ac_dest commands" >&6;}
13540 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13541 # Strip MF so we end up with the name of the file.
13542 mf=`echo "$mf" | sed -e 's/:.*$//'`
13543 # Check whether this is an Automake generated Makefile or not.
13544 # We used to match only the files named `Makefile.in', but
13545 # some people rename them; so instead we look at the file content.
13546 # Grep'ing the first line is not enough: some people post-process
13547 # each Makefile.in and add a new line on top of each file to say so.
13548 # So let's grep whole file.
13549 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13550 dirpart=`(dirname "$mf") 2>/dev/null ||
13551 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13552 X"$mf" : 'X\(//\)[^/]' \| \
13553 X"$mf" : 'X\(//\)$' \| \
13554 X"$mf" : 'X\(/\)' \| \
13555 . : '\(.\)' 2>/dev/null ||
13557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13559 /^X\(\/\/\)$/{ s//\1/; q; }
13560 /^X\(\/\).*/{ s//\1/; q; }
13565 # Extract the definition of DEPDIR, am__include, and am__quote
13566 # from the Makefile without running `make'.
13567 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13568 test -z "$DEPDIR" && continue
13569 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13570 test -z "am__include" && continue
13571 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13572 # When using ansi2knr, U may be empty or an underscore; expand it
13573 U=`sed -n 's/^U = //p' < "$mf"`
13574 # Find all dependency output files, they are included files with
13575 # $(DEPDIR) in their names. We invoke sed twice because it is the
13576 # simplest approach to changing $(DEPDIR) to its actual value in the
13578 for file in `sed -n "
13579 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13580 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13581 # Make sure the directory exists.
13582 test -f "$dirpart/$file" && continue
13583 fdir=`(dirname "$file") 2>/dev/null ||
13584 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13585 X"$file" : 'X\(//\)[^/]' \| \
13586 X"$file" : 'X\(//\)$' \| \
13587 X"$file" : 'X\(/\)' \| \
13588 . : '\(.\)' 2>/dev/null ||
13590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13592 /^X\(\/\/\)$/{ s//\1/; q; }
13593 /^X\(\/\).*/{ s//\1/; q; }
13595 { if $as_mkdir_p; then
13596 mkdir -p $dirpart/$fdir
13598 as_dir=$dirpart/$fdir
13600 while test ! -d "$as_dir"; do
13601 as_dirs="$as_dir $as_dirs"
13602 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13604 X"$as_dir" : 'X\(//\)[^/]' \| \
13605 X"$as_dir" : 'X\(//\)$' \| \
13606 X"$as_dir" : 'X\(/\)' \| \
13607 . : '\(.\)' 2>/dev/null ||
13609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13611 /^X\(\/\/\)$/{ s//\1/; q; }
13612 /^X\(\/\).*/{ s//\1/; q; }
13615 test ! -n "$as_dirs" || mkdir $as_dirs
13616 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13617 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13618 { (exit 1); exit 1; }; }; }
13620 # echo "creating $dirpart/$file"
13621 echo '# dummy' > "$dirpart/$file"
13626 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
13627 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
13628 ac_stdint=$tmp/_stdint.h
13630 echo "#ifndef" $_ac_stdint_h >$ac_stdint
13631 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
13632 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
13633 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
13634 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
13635 if test "_$ac_cv_header_stdint_t" != "_" ; then
13636 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
13637 echo "#include <stdint.h>" >>$ac_stdint
13638 echo "#endif" >>$ac_stdint
13639 echo "#endif" >>$ac_stdint
13642 cat >>$ac_stdint <<STDINT_EOF
13644 /* ................... shortcircuit part ........................... */
13646 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
13647 #include <stdint.h>
13649 #include <stddef.h>
13651 /* .................... configured part ............................ */
13655 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
13656 if test "_$ac_cv_header_stdint_x" != "_" ; then
13657 ac_header="$ac_cv_header_stdint_x"
13658 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
13660 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
13663 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
13664 if test "_$ac_cv_header_stdint_o" != "_" ; then
13665 ac_header="$ac_cv_header_stdint_o"
13666 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
13668 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
13671 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
13672 if test "_$ac_cv_header_stdint_u" != "_" ; then
13673 ac_header="$ac_cv_header_stdint_u"
13674 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
13676 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
13679 echo "" >>$ac_stdint
13681 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
13682 echo "#include <$ac_header>" >>$ac_stdint
13683 echo "" >>$ac_stdint
13686 echo "/* which 64bit typedef has been found */" >>$ac_stdint
13687 if test "$ac_cv_type_uint64_t" = "yes" ; then
13688 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
13690 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
13692 if test "$ac_cv_type_u_int64_t" = "yes" ; then
13693 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
13695 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
13697 echo "" >>$ac_stdint
13699 echo "/* which type model has been detected */" >>$ac_stdint
13700 if test "_$ac_cv_char_data_model" != "_" ; then
13701 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
13702 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
13704 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
13705 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
13707 echo "" >>$ac_stdint
13709 echo "/* whether int_least types were detected */" >>$ac_stdint
13710 if test "$ac_cv_type_int_least32_t" = "yes"; then
13711 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
13713 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
13715 echo "/* whether int_fast types were detected */" >>$ac_stdint
13716 if test "$ac_cv_type_int_fast32_t" = "yes"; then
13717 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
13719 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
13721 echo "/* whether intmax_t type was detected */" >>$ac_stdint
13722 if test "$ac_cv_type_intmax_t" = "yes"; then
13723 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
13725 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
13727 echo "" >>$ac_stdint
13729 cat >>$ac_stdint <<STDINT_EOF
13730 /* .................... detections part ............................ */
13732 /* whether we need to define bitspecific types from compiler base types */
13733 #ifndef _STDINT_HEADER_INTPTR
13734 #ifndef _STDINT_HEADER_UINT32
13735 #ifndef _STDINT_HEADER_U_INT32
13736 #define _STDINT_NEED_INT_MODEL_T
13738 #define _STDINT_HAVE_U_INT_TYPES
13743 #ifdef _STDINT_HAVE_U_INT_TYPES
13744 #undef _STDINT_NEED_INT_MODEL_T
13747 #ifdef _STDINT_CHAR_MODEL
13748 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
13749 #ifndef _STDINT_BYTE_MODEL
13750 #define _STDINT_BYTE_MODEL 12
13755 #ifndef _STDINT_HAVE_INT_LEAST32_T
13756 #define _STDINT_NEED_INT_LEAST_T
13759 #ifndef _STDINT_HAVE_INT_FAST32_T
13760 #define _STDINT_NEED_INT_FAST_T
13763 #ifndef _STDINT_HEADER_INTPTR
13764 #define _STDINT_NEED_INTPTR_T
13765 #ifndef _STDINT_HAVE_INTMAX_T
13766 #define _STDINT_NEED_INTMAX_T
13771 /* .................... definition part ............................ */
13773 /* some system headers have good uint64_t */
13774 #ifndef _HAVE_UINT64_T
13775 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
13776 #define _HAVE_UINT64_T
13777 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
13778 #define _HAVE_UINT64_T
13779 typedef u_int64_t uint64_t;
13783 #ifndef _HAVE_UINT64_T
13784 /* .. here are some common heuristics using compiler runtime specifics */
13785 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
13786 #define _HAVE_UINT64_T
13787 #define _HAVE_LONGLONG_UINT64_T
13788 typedef long long int64_t;
13789 typedef unsigned long long uint64_t;
13791 #elif !defined __STRICT_ANSI__
13792 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
13793 #define _HAVE_UINT64_T
13794 typedef __int64 int64_t;
13795 typedef unsigned __int64 uint64_t;
13797 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
13798 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
13799 #if !defined _NO_LONGLONG
13800 #define _HAVE_UINT64_T
13801 #define _HAVE_LONGLONG_UINT64_T
13802 typedef long long int64_t;
13803 typedef unsigned long long uint64_t;
13806 #elif defined __alpha || (defined __mips && defined _ABIN32)
13807 #if !defined _NO_LONGLONG
13808 typedef long int64_t;
13809 typedef unsigned long uint64_t;
13811 /* compiler/cpu type to define int64_t */
13816 #if defined _STDINT_HAVE_U_INT_TYPES
13817 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
13818 typedef u_int8_t uint8_t;
13819 typedef u_int16_t uint16_t;
13820 typedef u_int32_t uint32_t;
13822 /* glibc compatibility */
13823 #ifndef __int8_t_defined
13824 #define __int8_t_defined
13828 #ifdef _STDINT_NEED_INT_MODEL_T
13829 /* we must guess all the basic types. Apart from byte-adressable system, */
13830 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
13831 /* (btw, those nibble-addressable systems are way off, or so we assume) */
13834 #if defined _STDINT_BYTE_MODEL
13835 #if _STDINT_LONG_MODEL+0 == 242
13836 /* 2:4:2 = IP16 = a normal 16-bit system */
13837 typedef unsigned char uint8_t;
13838 typedef unsigned short uint16_t;
13839 typedef unsigned long uint32_t;
13840 #ifndef __int8_t_defined
13841 #define __int8_t_defined
13842 typedef char int8_t;
13843 typedef short int16_t;
13844 typedef long int32_t;
13846 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
13847 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
13848 /* 4:4:4 = ILP32 = a normal 32-bit system */
13849 typedef unsigned char uint8_t;
13850 typedef unsigned short uint16_t;
13851 typedef unsigned int uint32_t;
13852 #ifndef __int8_t_defined
13853 #define __int8_t_defined
13854 typedef char int8_t;
13855 typedef short int16_t;
13856 typedef int int32_t;
13858 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
13859 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
13860 /* 4:8:8 = LP64 = a normal 64-bit system */
13861 typedef unsigned char uint8_t;
13862 typedef unsigned short uint16_t;
13863 typedef unsigned int uint32_t;
13864 #ifndef __int8_t_defined
13865 #define __int8_t_defined
13866 typedef char int8_t;
13867 typedef short int16_t;
13868 typedef int int32_t;
13870 /* this system has a "long" of 64bit */
13871 #ifndef _HAVE_UINT64_T
13872 #define _HAVE_UINT64_T
13873 typedef unsigned long uint64_t;
13874 typedef long int64_t;
13876 #elif _STDINT_LONG_MODEL+0 == 448
13877 /* LLP64 a 64-bit system derived from a 32-bit system */
13878 typedef unsigned char uint8_t;
13879 typedef unsigned short uint16_t;
13880 typedef unsigned int uint32_t;
13881 #ifndef __int8_t_defined
13882 #define __int8_t_defined
13883 typedef char int8_t;
13884 typedef short int16_t;
13885 typedef int int32_t;
13887 /* assuming the system has a "long long" */
13888 #ifndef _HAVE_UINT64_T
13889 #define _HAVE_UINT64_T
13890 #define _HAVE_LONGLONG_UINT64_T
13891 typedef unsigned long long uint64_t;
13892 typedef long long int64_t;
13895 #define _STDINT_NO_INT32_T
13898 #define _STDINT_NO_INT8_T
13899 #define _STDINT_NO_INT32_T
13904 * quote from SunOS-5.8 sys/inttypes.h:
13905 * Use at your own risk. As of February 1996, the committee is squarely
13906 * behind the fixed sized types; the "least" and "fast" types are still being
13907 * discussed. The probability that the "fast" types may be removed before
13908 * the standard is finalized is high enough that they are not currently
13912 #if defined _STDINT_NEED_INT_LEAST_T
13913 typedef int8_t int_least8_t;
13914 typedef int16_t int_least16_t;
13915 typedef int32_t int_least32_t;
13916 #ifdef _HAVE_UINT64_T
13917 typedef int64_t int_least64_t;
13920 typedef uint8_t uint_least8_t;
13921 typedef uint16_t uint_least16_t;
13922 typedef uint32_t uint_least32_t;
13923 #ifdef _HAVE_UINT64_T
13924 typedef uint64_t uint_least64_t;
13929 #if defined _STDINT_NEED_INT_FAST_T
13930 typedef int8_t int_fast8_t;
13931 typedef int int_fast16_t;
13932 typedef int32_t int_fast32_t;
13933 #ifdef _HAVE_UINT64_T
13934 typedef int64_t int_fast64_t;
13937 typedef uint8_t uint_fast8_t;
13938 typedef unsigned uint_fast16_t;
13939 typedef uint32_t uint_fast32_t;
13940 #ifdef _HAVE_UINT64_T
13941 typedef uint64_t uint_fast64_t;
13946 #ifdef _STDINT_NEED_INTMAX_T
13947 #ifdef _HAVE_UINT64_T
13948 typedef int64_t intmax_t;
13949 typedef uint64_t uintmax_t;
13951 typedef long intmax_t;
13952 typedef unsigned long uintmax_t;
13956 #ifdef _STDINT_NEED_INTPTR_T
13957 #ifndef __intptr_t_defined
13958 #define __intptr_t_defined
13959 /* we encourage using "long" to store pointer values, never use "int" ! */
13960 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
13961 typedef unsinged int uintptr_t;
13962 typedef int intptr_t;
13963 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
13964 typedef unsigned long uintptr_t;
13965 typedef long intptr_t;
13966 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
13967 typedef uint64_t uintptr_t;
13968 typedef int64_t intptr_t;
13969 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
13970 typedef unsigned long uintptr_t;
13971 typedef long intptr_t;
13976 /* The ISO C99 standard specifies that in C++ implementations these
13977 should only be defined if explicitly requested. */
13978 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
13982 # define INT8_C(c) c
13983 # define INT16_C(c) c
13984 # define INT32_C(c) c
13985 # ifdef _HAVE_LONGLONG_UINT64_T
13986 # define INT64_C(c) c ## L
13988 # define INT64_C(c) c ## LL
13992 # define UINT8_C(c) c ## U
13993 # define UINT16_C(c) c ## U
13994 # define UINT32_C(c) c ## U
13995 # ifdef _HAVE_LONGLONG_UINT64_T
13996 # define UINT64_C(c) c ## UL
13998 # define UINT64_C(c) c ## ULL
14001 /* Maximal type. */
14002 # ifdef _HAVE_LONGLONG_UINT64_T
14003 # define INTMAX_C(c) c ## L
14004 # define UINTMAX_C(c) c ## UL
14006 # define INTMAX_C(c) c ## LL
14007 # define UINTMAX_C(c) c ## ULL
14010 /* literalnumbers */
14014 /* These limits are merily those of a two complement byte-oriented system */
14016 /* Minimum of signed integral types. */
14017 # define INT8_MIN (-128)
14018 # define INT16_MIN (-32767-1)
14019 # define INT32_MIN (-2147483647-1)
14020 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
14021 /* Maximum of signed integral types. */
14022 # define INT8_MAX (127)
14023 # define INT16_MAX (32767)
14024 # define INT32_MAX (2147483647)
14025 # define INT64_MAX (__INT64_C(9223372036854775807))
14027 /* Maximum of unsigned integral types. */
14028 # define UINT8_MAX (255)
14029 # define UINT16_MAX (65535)
14030 # define UINT32_MAX (4294967295U)
14031 # define UINT64_MAX (__UINT64_C(18446744073709551615))
14033 /* Minimum of signed integral types having a minimum size. */
14034 # define INT_LEAST8_MIN INT8_MIN
14035 # define INT_LEAST16_MIN INT16_MIN
14036 # define INT_LEAST32_MIN INT32_MIN
14037 # define INT_LEAST64_MIN INT64_MIN
14038 /* Maximum of signed integral types having a minimum size. */
14039 # define INT_LEAST8_MAX INT8_MAX
14040 # define INT_LEAST16_MAX INT16_MAX
14041 # define INT_LEAST32_MAX INT32_MAX
14042 # define INT_LEAST64_MAX INT64_MAX
14044 /* Maximum of unsigned integral types having a minimum size. */
14045 # define UINT_LEAST8_MAX UINT8_MAX
14046 # define UINT_LEAST16_MAX UINT16_MAX
14047 # define UINT_LEAST32_MAX UINT32_MAX
14048 # define UINT_LEAST64_MAX UINT64_MAX
14057 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
14058 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
14059 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
14061 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
14062 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14063 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
14064 X"$ac_stdint_h" : 'X\(//\)$' \| \
14065 X"$ac_stdint_h" : 'X\(/\)' \| \
14066 . : '\(.\)' 2>/dev/null ||
14067 echo X"$ac_stdint_h" |
14068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14070 /^X\(\/\/\)$/{ s//\1/; q; }
14071 /^X\(\/\).*/{ s//\1/; q; }
14073 { if $as_mkdir_p; then
14078 while test ! -d "$as_dir"; do
14079 as_dirs="$as_dir $as_dirs"
14080 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14081 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14082 X"$as_dir" : 'X\(//\)[^/]' \| \
14083 X"$as_dir" : 'X\(//\)$' \| \
14084 X"$as_dir" : 'X\(/\)' \| \
14085 . : '\(.\)' 2>/dev/null ||
14087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14088 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14089 /^X\(\/\/\)$/{ s//\1/; q; }
14090 /^X\(\/\).*/{ s//\1/; q; }
14093 test ! -n "$as_dirs" || mkdir $as_dirs
14094 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14095 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14096 { (exit 1); exit 1; }; }; }
14099 mv $ac_stdint $ac_stdint_h
14106 cat >>$CONFIG_STATUS <<\_ACEOF
14108 { (exit 0); exit 0; }
14110 chmod +x $CONFIG_STATUS
14111 ac_clean_files=$ac_clean_files_save
14114 # configure is writing to config.log, and then calls config.status.
14115 # config.status does its own redirection, appending to config.log.
14116 # Unfortunately, on DOS this fails, as config.log is still kept open
14117 # by configure, so config.status won't be able to write to it; its
14118 # output is simply discarded. So we exec the FD to /dev/null,
14119 # effectively closing config.log, so it can be properly (re)opened and
14120 # appended to by config.status. When coming back to configure, we
14121 # need to make the FD available again.
14122 if test "$no_create" != yes; then
14124 ac_config_status_args=
14125 test "$silent" = yes &&
14126 ac_config_status_args="$ac_config_status_args --quiet"
14128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14131 # would make configure fail if this is the last instruction.
14132 $ac_cs_success || { (exit 1); exit 1; }