]> sjero.net Git - iperf/blob - configure
TCP Congestion Control Module via options
[iperf] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Iperf 2.0.2.
4 #
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 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
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
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
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 \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
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 ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
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
85
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
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
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
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
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
122     as_myself=$0
123   fi
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; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
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
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
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 |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
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; }; }
177
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).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
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}
266
267 # Identity of this package.
268 PACKAGE_NAME='Iperf'
269 PACKAGE_TARNAME='iperf'
270 PACKAGE_VERSION='2.0.2'
271 PACKAGE_STRING='Iperf 2.0.2'
272 PACKAGE_BUGREPORT=''
273
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
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'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
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'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
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 ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
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" ;;
402
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'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
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 ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
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 ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
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 ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
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 ;;
464
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 ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
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 ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
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 ;;
511
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 ;;
518
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 ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
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 ;;
573
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 ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
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'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
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" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
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 ;;
617
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 ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
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'"
638     export $ac_envvar ;;
639
640   *)
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}
646     ;;
647
648   esac
649 done
650
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; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
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
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
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.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
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
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
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 ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
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; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
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}
769 ac_env_CC_value=$CC
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
780
781 #
782 # Report the --help message.
783 #
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.
787   cat <<_ACEOF
788 \`configure' configures Iperf 2.0.2 to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
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.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
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 \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
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'.
821
822 For better control, use the options below.
823
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]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 Program names:
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
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853   case $ac_init_help in
854      short | recursive ) echo "Configuration of Iperf 2.0.2:";;
855    esac
856   cat <<\_ACEOF
857
858 Optional Features:
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
868
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
878   CPP         C preprocessor
879
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.
882
883 _ACEOF
884 fi
885
886 if test "$ac_init_help" = "recursive"; then
887   # If there are subdirs, report their specific --help.
888   ac_popdir=`pwd`
889   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890     test -d $ac_dir || continue
891     ac_builddir=.
892
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'`
897 else
898   ac_dir_suffix= ac_top_builddir=
899 fi
900
901 case $srcdir in
902   .)  # No --srcdir option.  We are building in place.
903     ac_srcdir=.
904     if test -z "$ac_top_builddir"; then
905        ac_top_srcdir=.
906     else
907        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
908     fi ;;
909   [\\/]* | ?:[\\/]* )  # Absolute path.
910     ac_srcdir=$srcdir$ac_dir_suffix;
911     ac_top_srcdir=$srcdir ;;
912   *) # Relative path.
913     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914     ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 esac
916
917 # Do not use `cd foo && pwd` to compute absolute paths, because
918 # the directories may not exist.
919 case `pwd` in
920 .) ac_abs_builddir="$ac_dir";;
921 *)
922   case "$ac_dir" in
923   .) ac_abs_builddir=`pwd`;;
924   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
925   *) ac_abs_builddir=`pwd`/"$ac_dir";;
926   esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_top_builddir=${ac_top_builddir}.;;
930 *)
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}.;;
935   esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_srcdir=$ac_srcdir;;
939 *)
940   case $ac_srcdir in
941   .) ac_abs_srcdir=$ac_abs_builddir;;
942   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
943   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944   esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_top_srcdir=$ac_top_srcdir;;
948 *)
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;;
953   esac;;
954 esac
955
956     cd $ac_dir
957     # Check for guested configure; otherwise get Cygnus style configure.
958     if test -f $ac_srcdir/configure.gnu; then
959       echo
960       $SHELL $ac_srcdir/configure.gnu  --help=recursive
961     elif test -f $ac_srcdir/configure; then
962       echo
963       $SHELL $ac_srcdir/configure  --help=recursive
964     elif test -f $ac_srcdir/configure.ac ||
965            test -f $ac_srcdir/configure.in; then
966       echo
967       $ac_configure --help
968     else
969       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970     fi
971     cd $ac_popdir
972   done
973 fi
974
975 test -n "$ac_init_help" && exit 0
976 if $ac_init_version; then
977   cat <<\_ACEOF
978 Iperf configure 2.0.2
979 generated by GNU Autoconf 2.59
980
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.
984 _ACEOF
985   exit 0
986 fi
987 exec 5>config.log
988 cat >&5 <<_ACEOF
989 This file contains any messages produced by compilers while
990 running configure, to aid debugging if configure makes a mistake.
991
992 It was created by Iperf $as_me 2.0.2, which was
993 generated by GNU Autoconf 2.59.  Invocation command line was
994
995   $ $0 $@
996
997 _ACEOF
998 {
999 cat <<_ASUNAME
1000 ## --------- ##
1001 ## Platform. ##
1002 ## --------- ##
1003
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`
1009
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`
1012
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`
1020
1021 _ASUNAME
1022
1023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 for as_dir in $PATH
1025 do
1026   IFS=$as_save_IFS
1027   test -z "$as_dir" && as_dir=.
1028   echo "PATH: $as_dir"
1029 done
1030
1031 } >&5
1032
1033 cat >&5 <<_ACEOF
1034
1035
1036 ## ----------- ##
1037 ## Core tests. ##
1038 ## ----------- ##
1039
1040 _ACEOF
1041
1042
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.
1048 ac_configure_args=
1049 ac_configure_args0=
1050 ac_configure_args1=
1051 ac_sep=
1052 ac_must_keep_next=false
1053 for ac_pass in 1 2
1054 do
1055   for ac_arg
1056   do
1057     case $ac_arg in
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)
1061       continue ;;
1062     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064     esac
1065     case $ac_pass in
1066     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067     2)
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.
1071       else
1072         case $ac_arg in
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 ;;
1079             esac
1080             ;;
1081           -* ) ac_must_keep_next=true ;;
1082         esac
1083       fi
1084       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085       # Get rid of the leading space.
1086       ac_sep=" "
1087       ;;
1088     esac
1089   done
1090 done
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; }
1093
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.
1101   {
1102     echo
1103
1104     cat <<\_ASBOX
1105 ## ---------------- ##
1106 ## Cache variables. ##
1107 ## ---------------- ##
1108 _ASBOX
1109     echo
1110     # The following way of writing the cache mishandles newlines in values,
1111 {
1112   (set) 2>&1 |
1113     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114     *ac_space=\ *)
1115       sed -n \
1116         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118       ;;
1119     *)
1120       sed -n \
1121         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122       ;;
1123     esac;
1124 }
1125     echo
1126
1127     cat <<\_ASBOX
1128 ## ----------------- ##
1129 ## Output variables. ##
1130 ## ----------------- ##
1131 _ASBOX
1132     echo
1133     for ac_var in $ac_subst_vars
1134     do
1135       eval ac_val=$`echo $ac_var`
1136       echo "$ac_var='"'"'$ac_val'"'"'"
1137     done | sort
1138     echo
1139
1140     if test -n "$ac_subst_files"; then
1141       cat <<\_ASBOX
1142 ## ------------- ##
1143 ## Output files. ##
1144 ## ------------- ##
1145 _ASBOX
1146       echo
1147       for ac_var in $ac_subst_files
1148       do
1149         eval ac_val=$`echo $ac_var`
1150         echo "$ac_var='"'"'$ac_val'"'"'"
1151       done | sort
1152       echo
1153     fi
1154
1155     if test -s confdefs.h; then
1156       cat <<\_ASBOX
1157 ## ----------- ##
1158 ## confdefs.h. ##
1159 ## ----------- ##
1160 _ASBOX
1161       echo
1162       sed "/^$/d" confdefs.h | sort
1163       echo
1164     fi
1165     test "$ac_signal" != 0 &&
1166       echo "$as_me: caught signal $ac_signal"
1167     echo "$as_me: exit $exit_status"
1168   } >&5
1169   rm -f core *.core &&
1170   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171     exit $exit_status
1172      ' 0
1173 for ac_signal in 1 2 13 15; do
1174   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175 done
1176 ac_signal=0
1177
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.
1181 echo >confdefs.h
1182
1183 # Predefined preprocessor variables.
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_NAME "$PACKAGE_NAME"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_STRING "$PACKAGE_STRING"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207 _ACEOF
1208
1209
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"
1215   else
1216     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217   fi
1218 fi
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
1224     . "$ac_site_file"
1225   fi
1226 done
1227
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;}
1234     case $cache_file in
1235       [\\/]* | ?:[\\/]* ) . $cache_file;;
1236       *)                      . ./$cache_file;;
1237     esac
1238   fi
1239 else
1240   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241 echo "$as_me: creating cache $cache_file" >&6;}
1242   >$cache_file
1243 fi
1244
1245 # Check that the precious variables saved in the cache have kept the same
1246 # value.
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
1255     set,)
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=: ;;
1259     ,set)
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=: ;;
1263     ,);;
1264     *)
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=:
1273       fi;;
1274   esac
1275   # Pass precious variables to config.status.
1276   if test "$ac_new_set" = set; then
1277     case $ac_new_val in
1278     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280     *) ac_arg=$ac_var=$ac_new_val ;;
1281     esac
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'" ;;
1285     esac
1286   fi
1287 done
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; }; }
1294 fi
1295
1296 ac_ext=c
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
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328           ac_config_headers="$ac_config_headers config.h"
1329
1330 am__api_version="1.9"
1331 ac_aux_dir=
1332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1333   if test -f $ac_dir/install-sh; then
1334     ac_aux_dir=$ac_dir
1335     ac_install_sh="$ac_aux_dir/install-sh -c"
1336     break
1337   elif test -f $ac_dir/install.sh; then
1338     ac_aux_dir=$ac_dir
1339     ac_install_sh="$ac_aux_dir/install.sh -c"
1340     break
1341   elif test -f $ac_dir/shtool; then
1342     ac_aux_dir=$ac_dir
1343     ac_install_sh="$ac_aux_dir/shtool install -c"
1344     break
1345   fi
1346 done
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; }; }
1351 fi
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.
1355
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
1362 # AIX /bin/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
1374 else
1375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376 for as_dir in $PATH
1377 do
1378   IFS=$as_save_IFS
1379   test -z "$as_dir" && as_dir=.
1380   # Account for people who put trailing slashes in PATH elements.
1381 case $as_dir/ in
1382   ./ | .// | /cC/* | \
1383   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1384   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1385   /usr/ucb/* ) ;;
1386   *)
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
1389     # by default.
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.
1396             :
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.
1400             :
1401           else
1402             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1403             break 3
1404           fi
1405         fi
1406       done
1407     done
1408     ;;
1409 esac
1410 done
1411
1412
1413 fi
1414   if test "${ac_cv_path_install+set}" = set; then
1415     INSTALL=$ac_cv_path_install
1416   else
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
1422   fi
1423 fi
1424 echo "$as_me:$LINENO: result: $INSTALL" >&5
1425 echo "${ECHO_T}$INSTALL" >&6
1426
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}'
1430
1431 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1432
1433 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1434
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
1437 # Just in case
1438 sleep 1
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
1444 # directory).
1445 if (
1446    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1447    if test "$*" = "X"; then
1448       # -L didn't work.
1449       set X `ls -t $srcdir/configure conftest.file`
1450    fi
1451    rm -f conftest.file
1452    if test "$*" != "X $srcdir/configure conftest.file" \
1453       && test "$*" != "X conftest.file $srcdir/configure"; then
1454
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; }; }
1464    fi
1465
1466    test "$2" = conftest.file
1467    )
1468 then
1469    # Ok.
1470    :
1471 else
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; }; }
1477 fi
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,$//
1489 _ACEOF
1490 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1491 rm conftest.sed
1492
1493 # expand $ac_aux_dir to an absolute path
1494 am_aux_dir=`cd $ac_aux_dir && pwd`
1495
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 "
1500 else
1501   am_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;}
1504 fi
1505
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
1511   # for two reasons:
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 --'
1522 else
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
1526   # exists.
1527   for d in ./-p ./--version;
1528   do
1529     test -d $d && rmdir $d
1530   done
1531   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1532   if test -f "$ac_aux_dir/mkinstalldirs"; then
1533     mkdir_p='$(mkinstalldirs)'
1534   else
1535     mkdir_p='$(install_sh) -d'
1536   fi
1537 fi
1538
1539 for ac_prog in gawk mawk nawk awk
1540 do
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
1547 else
1548   if test -n "$AWK"; then
1549   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1550 else
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1553 do
1554   IFS=$as_save_IFS
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
1560     break 2
1561   fi
1562 done
1563 done
1564
1565 fi
1566 fi
1567 AWK=$ac_cv_prog_AWK
1568 if test -n "$AWK"; then
1569   echo "$as_me:$LINENO: result: $AWK" >&5
1570 echo "${ECHO_T}$AWK" >&6
1571 else
1572   echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1574 fi
1575
1576   test -n "$AWK" && break
1577 done
1578
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
1584 else
1585   cat >conftest.make <<\_ACEOF
1586 all:
1587         @echo 'ac_maketemp="$(MAKE)"'
1588 _ACEOF
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
1593 else
1594   eval ac_cv_prog_make_${ac_make}_set=no
1595 fi
1596 rm -f conftest.make
1597 fi
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
1601   SET_MAKE=
1602 else
1603   echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1605   SET_MAKE="MAKE=${MAKE-make}"
1606 fi
1607
1608 rm -rf .tst 2>/dev/null
1609 mkdir .tst 2>/dev/null
1610 if test -d .tst; then
1611   am__leading_dot=.
1612 else
1613   am__leading_dot=_
1614 fi
1615 rmdir .tst 2>/dev/null
1616
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; }; }
1623 fi
1624
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'
1629   else
1630     CYGPATH_W=echo
1631   fi
1632 fi
1633
1634
1635 # Define the identity of the package.
1636  PACKAGE='iperf'
1637  VERSION='2.0.2'
1638
1639
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE "$PACKAGE"
1642 _ACEOF
1643
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define VERSION "$VERSION"
1647 _ACEOF
1648
1649 # Some tools Automake needs.
1650
1651 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1652
1653
1654 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1655
1656
1657 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1658
1659
1660 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1661
1662
1663 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1664
1665 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1666
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
1679 else
1680   if test -n "$STRIP"; then
1681   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1682 else
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1685 do
1686   IFS=$as_save_IFS
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
1692     break 2
1693   fi
1694 done
1695 done
1696
1697 fi
1698 fi
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
1703 else
1704   echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1706 fi
1707
1708 fi
1709 if test -z "$ac_cv_prog_STRIP"; then
1710   ac_ct_STRIP=$STRIP
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
1717 else
1718   if test -n "$ac_ct_STRIP"; then
1719   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1720 else
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 for as_dir in $PATH
1723 do
1724   IFS=$as_save_IFS
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
1730     break 2
1731   fi
1732 done
1733 done
1734
1735   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1736 fi
1737 fi
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
1742 else
1743   echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1745 fi
1746
1747   STRIP=$ac_ct_STRIP
1748 else
1749   STRIP="$ac_cv_prog_STRIP"
1750 fi
1751
1752 fi
1753 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1754
1755 # We need awk for the "check" target.  The system "awk" is bad on
1756 # some platforms.
1757 # Always define AMTAR for backward compatibility.
1758
1759 AMTAR=${AMTAR-"${am_missing_run}tar"}
1760
1761 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1762
1763
1764
1765
1766
1767
1768
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
1773 fi;
1774
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
1779 fi;
1780
1781 # Check whether --enable-threads or --disable-threads was given.
1782 if test "${enable_threads+set}" = set; then
1783   enableval="$enable_threads"
1784
1785 fi;
1786
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
1791 else
1792   enable_debuginfo=no
1793 fi;
1794
1795 # Check whether --enable-web100 or --disable-web100 was given.
1796 if test "${enable_web100+set}" = set; then
1797   enableval="$enable_web100"
1798
1799 fi;
1800
1801
1802
1803 ac_ext=cc
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
1810   do
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
1817 else
1818   if test -n "$CXX"; then
1819   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1820 else
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1823 do
1824   IFS=$as_save_IFS
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
1830     break 2
1831   fi
1832 done
1833 done
1834
1835 fi
1836 fi
1837 CXX=$ac_cv_prog_CXX
1838 if test -n "$CXX"; then
1839   echo "$as_me:$LINENO: result: $CXX" >&5
1840 echo "${ECHO_T}$CXX" >&6
1841 else
1842   echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1844 fi
1845
1846     test -n "$CXX" && break
1847   done
1848 fi
1849 if test -z "$CXX"; then
1850   ac_ct_CXX=$CXX
1851   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1852 do
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
1859 else
1860   if test -n "$ac_ct_CXX"; then
1861   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1862 else
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
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
1872     break 2
1873   fi
1874 done
1875 done
1876
1877 fi
1878 fi
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
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 fi
1887
1888   test -n "$ac_ct_CXX" && break
1889 done
1890 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1891
1892   CXX=$ac_ct_CXX
1893 fi
1894
1895
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
1902   ac_status=$?
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
1907   ac_status=$?
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
1912   ac_status=$?
1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914   (exit $ac_status); }
1915
1916 cat >conftest.$ac_ext <<_ACEOF
1917 /* confdefs.h.  */
1918 _ACEOF
1919 cat confdefs.h >>conftest.$ac_ext
1920 cat >>conftest.$ac_ext <<_ACEOF
1921 /* end confdefs.h.  */
1922
1923 int
1924 main ()
1925 {
1926
1927   ;
1928   return 0;
1929 }
1930 _ACEOF
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
1935 # of exeext.
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
1941   ac_status=$?
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
1946 # resort.
1947
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.
1950 ac_cv_exeext=
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
1953 do
1954   test -f "$ac_file" || continue
1955   case $ac_file in
1956     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1957         ;;
1958     conftest.$ac_ext )
1959         # This is the source file.
1960         ;;
1961     [ab].out )
1962         # We found the default executable, but exeext='' is most
1963         # certainly right.
1964         break;;
1965     *.* )
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.
1970         export ac_cv_exeext
1971         break;;
1972     * )
1973         break;;
1974   esac
1975 done
1976 else
1977   echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1979
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; }; }
1985 fi
1986
1987 ac_exeext=$ac_cv_exeext
1988 echo "$as_me:$LINENO: result: $ac_file" >&5
1989 echo "${ECHO_T}$ac_file" >&6
1990
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
2000   (eval $ac_try) 2>&5
2001   ac_status=$?
2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003   (exit $ac_status); }; }; then
2004     cross_compiling=no
2005   else
2006     if test "$cross_compiling" = maybe; then
2007         cross_compiling=yes
2008     else
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; }; }
2016     fi
2017   fi
2018 fi
2019 echo "$as_me:$LINENO: result: yes" >&5
2020 echo "${ECHO_T}yes" >&6
2021
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
2030
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
2035   ac_status=$?
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
2041 # `rm'.
2042 for ac_file in conftest.exe conftest conftest.*; do
2043   test -f "$ac_file" || continue
2044   case $ac_file in
2045     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2046     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2047           export ac_cv_exeext
2048           break;;
2049     * ) break;;
2050   esac
2051 done
2052 else
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; }; }
2058 fi
2059
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
2063
2064 rm -f conftest.$ac_ext
2065 EXEEXT=$ac_cv_exeext
2066 ac_exeext=$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
2071 else
2072   cat >conftest.$ac_ext <<_ACEOF
2073 /* confdefs.h.  */
2074 _ACEOF
2075 cat confdefs.h >>conftest.$ac_ext
2076 cat >>conftest.$ac_ext <<_ACEOF
2077 /* end confdefs.h.  */
2078
2079 int
2080 main ()
2081 {
2082
2083   ;
2084   return 0;
2085 }
2086 _ACEOF
2087 rm -f conftest.o conftest.obj
2088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2089   (eval $ac_compile) 2>&5
2090   ac_status=$?
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
2094   case $ac_file in
2095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2096     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2097        break;;
2098   esac
2099 done
2100 else
2101   echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2103
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; }; }
2109 fi
2110
2111 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2112 fi
2113 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2114 echo "${ECHO_T}$ac_cv_objext" >&6
2115 OBJEXT=$ac_cv_objext
2116 ac_objext=$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
2121 else
2122   cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h.  */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h.  */
2128
2129 int
2130 main ()
2131 {
2132 #ifndef __GNUC__
2133        choke me
2134 #endif
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142   (eval $ac_compile) 2>conftest.er1
2143   ac_status=$?
2144   grep -v '^ *+' conftest.er1 >conftest.err
2145   rm -f conftest.er1
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
2152   (eval $ac_try) 2>&5
2153   ac_status=$?
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
2158   (eval $ac_try) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; }; then
2162   ac_compiler_gnu=yes
2163 else
2164   echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 ac_compiler_gnu=no
2168 fi
2169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2171
2172 fi
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
2178 CXXFLAGS="-g"
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
2183 else
2184   cat >conftest.$ac_ext <<_ACEOF
2185 /* confdefs.h.  */
2186 _ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h.  */
2190
2191 int
2192 main ()
2193 {
2194
2195   ;
2196   return 0;
2197 }
2198 _ACEOF
2199 rm -f conftest.$ac_objext
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201   (eval $ac_compile) 2>conftest.er1
2202   ac_status=$?
2203   grep -v '^ *+' conftest.er1 >conftest.err
2204   rm -f conftest.er1
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
2211   (eval $ac_try) 2>&5
2212   ac_status=$?
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
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; }; then
2221   ac_cv_prog_cxx_g=yes
2222 else
2223   echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 ac_cv_prog_cxx_g=no
2227 fi
2228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229 fi
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
2236     CXXFLAGS="-g -O2"
2237   else
2238     CXXFLAGS="-g"
2239   fi
2240 else
2241   if test "$GXX" = yes; then
2242     CXXFLAGS="-O2"
2243   else
2244     CXXFLAGS=
2245   fi
2246 fi
2247 for ac_declaration in \
2248    '' \
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);' \
2253    'void exit (int);'
2254 do
2255   cat >conftest.$ac_ext <<_ACEOF
2256 /* confdefs.h.  */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h.  */
2261 $ac_declaration
2262 #include <stdlib.h>
2263 int
2264 main ()
2265 {
2266 exit (42);
2267   ;
2268   return 0;
2269 }
2270 _ACEOF
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273   (eval $ac_compile) 2>conftest.er1
2274   ac_status=$?
2275   grep -v '^ *+' conftest.er1 >conftest.err
2276   rm -f conftest.er1
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
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
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
2289   (eval $ac_try) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }; }; then
2293   :
2294 else
2295   echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 continue
2299 fi
2300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2301   cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h.  */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h.  */
2307 $ac_declaration
2308 int
2309 main ()
2310 {
2311 exit (42);
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 rm -f conftest.$ac_objext
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318   (eval $ac_compile) 2>conftest.er1
2319   ac_status=$?
2320   grep -v '^ *+' conftest.er1 >conftest.err
2321   rm -f conftest.er1
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
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
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
2334   (eval $ac_try) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; }; then
2338   break
2339 else
2340   echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342
2343 fi
2344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2345 done
2346 rm -f conftest*
2347 if test -n "$ac_declaration"; then
2348   echo '#ifdef __cplusplus' >>confdefs.h
2349   echo $ac_declaration      >>confdefs.h
2350   echo '#endif'             >>confdefs.h
2351 fi
2352
2353 ac_ext=c
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"
2359
2360           ac_config_commands="$ac_config_commands depfiles"
2361
2362
2363 am_make=${MAKE-make}
2364 cat > confinc << 'END'
2365 am__doit:
2366         @echo done
2367 .PHONY: am__doit
2368 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
2372 am__include="#"
2373 am__quote=
2374 _am_result=none
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
2383    am__include=include
2384    am__quote=
2385    _am_result=GNU
2386 fi
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
2392       am__quote="\""
2393       _am_result=BSD
2394    fi
2395 fi
2396
2397
2398 echo "$as_me:$LINENO: result: $_am_result" >&5
2399 echo "${ECHO_T}$_am_result" >&6
2400 rm -f confinc confmf
2401
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"
2405
2406 fi;
2407 if test "x$enable_dependency_tracking" != xno; then
2408   am_depcomp="$ac_aux_dir/depcomp"
2409   AMDEPBACKSLASH='\'
2410 fi
2411
2412
2413 if test "x$enable_dependency_tracking" != xno; then
2414   AMDEP_TRUE=
2415   AMDEP_FALSE='#'
2416 else
2417   AMDEP_TRUE='#'
2418   AMDEP_FALSE=
2419 fi
2420
2421
2422
2423
2424 depcc="$CXX"  am_compiler_list=
2425
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
2430 else
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
2436   # in D'.
2437   mkdir conftest.dir
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
2441   cd 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
2447   # directory.
2448   mkdir sub
2449
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`
2453   fi
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.
2458     #
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.
2462     : > sub/conftest.c
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
2468     done
2469     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2470
2471     case $depmode in
2472     nosideeffect)
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
2476         continue
2477       else
2478         break
2479       fi
2480       ;;
2481     none) break ;;
2482     esac
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
2504         break
2505       fi
2506     fi
2507   done
2508
2509   cd ..
2510   rm -rf conftest.dir
2511 else
2512   am_cv_CXX_dependencies_compiler_type=none
2513 fi
2514
2515 fi
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
2519
2520
2521
2522 if
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='#'
2527 else
2528   am__fastdepCXX_TRUE='#'
2529   am__fastdepCXX_FALSE=
2530 fi
2531
2532
2533 CXXFLAGS=`echo " $CXXFLAGS " | sed -e "s/ -g / /"` # do not want it implicitly
2534 ac_ext=c
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
2546 else
2547   if test -n "$CC"; then
2548   ac_cv_prog_CC="$CC" # Let the user override the test.
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553   IFS=$as_save_IFS
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
2559     break 2
2560   fi
2561 done
2562 done
2563
2564 fi
2565 fi
2566 CC=$ac_cv_prog_CC
2567 if test -n "$CC"; then
2568   echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6
2570 else
2571   echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6
2573 fi
2574
2575 fi
2576 if test -z "$ac_cv_prog_CC"; then
2577   ac_ct_CC=$CC
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
2584 else
2585   if test -n "$ac_ct_CC"; then
2586   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
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
2597     break 2
2598   fi
2599 done
2600 done
2601
2602 fi
2603 fi
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
2608 else
2609   echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6
2611 fi
2612
2613   CC=$ac_ct_CC
2614 else
2615   CC="$ac_cv_prog_CC"
2616 fi
2617
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
2626 else
2627   if test -n "$CC"; then
2628   ac_cv_prog_CC="$CC" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633   IFS=$as_save_IFS
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
2639     break 2
2640   fi
2641 done
2642 done
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648   echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6
2650 else
2651   echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6
2653 fi
2654
2655 fi
2656 if test -z "$ac_cv_prog_CC"; then
2657   ac_ct_CC=$CC
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
2664 else
2665   if test -n "$ac_ct_CC"; then
2666   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671   IFS=$as_save_IFS
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
2677     break 2
2678   fi
2679 done
2680 done
2681
2682 fi
2683 fi
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
2688 else
2689   echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2691 fi
2692
2693   CC=$ac_ct_CC
2694 else
2695   CC="$ac_cv_prog_CC"
2696 fi
2697
2698 fi
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
2706 else
2707   if test -n "$CC"; then
2708   ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710   ac_prog_rejected=no
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714   IFS=$as_save_IFS
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
2720        continue
2721      fi
2722     ac_cv_prog_CC="cc"
2723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724     break 2
2725   fi
2726 done
2727 done
2728
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
2732   shift
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.
2737     shift
2738     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2739   fi
2740 fi
2741 fi
2742 fi
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745   echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6
2747 else
2748   echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6
2750 fi
2751
2752 fi
2753 if test -z "$CC"; then
2754   if test -n "$ac_tool_prefix"; then
2755   for ac_prog in cl
2756   do
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
2763 else
2764   if test -n "$CC"; then
2765   ac_cv_prog_CC="$CC" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770   IFS=$as_save_IFS
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
2776     break 2
2777   fi
2778 done
2779 done
2780
2781 fi
2782 fi
2783 CC=$ac_cv_prog_CC
2784 if test -n "$CC"; then
2785   echo "$as_me:$LINENO: result: $CC" >&5
2786 echo "${ECHO_T}$CC" >&6
2787 else
2788   echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2790 fi
2791
2792     test -n "$CC" && break
2793   done
2794 fi
2795 if test -z "$CC"; then
2796   ac_ct_CC=$CC
2797   for ac_prog in cl
2798 do
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
2805 else
2806   if test -n "$ac_ct_CC"; then
2807   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
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
2818     break 2
2819   fi
2820 done
2821 done
2822
2823 fi
2824 fi
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
2829 else
2830   echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2832 fi
2833
2834   test -n "$ac_ct_CC" && break
2835 done
2836
2837   CC=$ac_ct_CC
2838 fi
2839
2840 fi
2841
2842
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; }; }
2848
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
2855   ac_status=$?
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
2860   ac_status=$?
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
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }
2868
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
2873 else
2874   cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h.  */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h.  */
2880
2881 int
2882 main ()
2883 {
2884 #ifndef __GNUC__
2885        choke me
2886 #endif
2887
2888   ;
2889   return 0;
2890 }
2891 _ACEOF
2892 rm -f conftest.$ac_objext
2893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2894   (eval $ac_compile) 2>conftest.er1
2895   ac_status=$?
2896   grep -v '^ *+' conftest.er1 >conftest.err
2897   rm -f conftest.er1
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
2904   (eval $ac_try) 2>&5
2905   ac_status=$?
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
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; }; then
2914   ac_compiler_gnu=yes
2915 else
2916   echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 ac_compiler_gnu=no
2920 fi
2921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2922 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2923
2924 fi
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
2930 CFLAGS="-g"
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
2935 else
2936   cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942
2943 int
2944 main ()
2945 {
2946
2947   ;
2948   return 0;
2949 }
2950 _ACEOF
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953   (eval $ac_compile) 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
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
2963   (eval $ac_try) 2>&5
2964   ac_status=$?
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
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; }; then
2973   ac_cv_prog_cc_g=yes
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978 ac_cv_prog_cc_g=no
2979 fi
2980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2981 fi
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
2988     CFLAGS="-g -O2"
2989   else
2990     CFLAGS="-g"
2991   fi
2992 else
2993   if test "$GCC" = yes; then
2994     CFLAGS="-O2"
2995   else
2996     CFLAGS=
2997   fi
2998 fi
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
3003 else
3004   ac_cv_prog_cc_stdc=no
3005 ac_save_CC=$CC
3006 cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012 #include <stdarg.h>
3013 #include <stdio.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)
3020      char **p;
3021      int i;
3022 {
3023   return p[i];
3024 }
3025 static char *f (char * (*g) (char **, int), char **p, ...)
3026 {
3027   char *s;
3028   va_list v;
3029   va_start (v,p);
3030   s = g (p, va_arg (v,int));
3031   va_end (v);
3032   return s;
3033 }
3034
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];
3043
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);
3048 int argc;
3049 char **argv;
3050 int
3051 main ()
3052 {
3053 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
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__"
3066 do
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
3071   ac_status=$?
3072   grep -v '^ *+' conftest.er1 >conftest.err
3073   rm -f conftest.er1
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
3080   (eval $ac_try) 2>&5
3081   ac_status=$?
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
3086   (eval $ac_try) 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; }; then
3090   ac_cv_prog_cc_stdc=$ac_arg
3091 break
3092 else
3093   echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096 fi
3097 rm -f conftest.err conftest.$ac_objext
3098 done
3099 rm -f conftest.$ac_ext conftest.$ac_objext
3100 CC=$ac_save_CC
3101
3102 fi
3103
3104 case "x$ac_cv_prog_cc_stdc" in
3105   x|xno)
3106     echo "$as_me:$LINENO: result: none needed" >&5
3107 echo "${ECHO_T}none needed" >&6 ;;
3108   *)
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" ;;
3112 esac
3113
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
3119 #ifndef __cplusplus
3120   choke me
3121 #endif
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125   (eval $ac_compile) 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
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
3135   (eval $ac_try) 2>&5
3136   ac_status=$?
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
3141   (eval $ac_try) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; }; then
3145   for ac_declaration in \
3146    '' \
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);' \
3151    'void exit (int);'
3152 do
3153   cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159 $ac_declaration
3160 #include <stdlib.h>
3161 int
3162 main ()
3163 {
3164 exit (42);
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 rm -f conftest.$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171   (eval $ac_compile) 2>conftest.er1
3172   ac_status=$?
3173   grep -v '^ *+' conftest.er1 >conftest.err
3174   rm -f conftest.er1
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
3181   (eval $ac_try) 2>&5
3182   ac_status=$?
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
3187   (eval $ac_try) 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; }; then
3191   :
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 continue
3197 fi
3198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3199   cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h.  */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h.  */
3205 $ac_declaration
3206 int
3207 main ()
3208 {
3209 exit (42);
3210   ;
3211   return 0;
3212 }
3213 _ACEOF
3214 rm -f conftest.$ac_objext
3215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3216   (eval $ac_compile) 2>conftest.er1
3217   ac_status=$?
3218   grep -v '^ *+' conftest.er1 >conftest.err
3219   rm -f conftest.er1
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
3226   (eval $ac_try) 2>&5
3227   ac_status=$?
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
3232   (eval $ac_try) 2>&5
3233   ac_status=$?
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); }; }; then
3236   break
3237 else
3238   echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 fi
3242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3243 done
3244 rm -f conftest*
3245 if test -n "$ac_declaration"; then
3246   echo '#ifdef __cplusplus' >>confdefs.h
3247   echo $ac_declaration      >>confdefs.h
3248   echo '#endif'             >>confdefs.h
3249 fi
3250
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 fi
3256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257 ac_ext=c
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
3262
3263 depcc="$CC"   am_compiler_list=
3264
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
3269 else
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
3275   # in D'.
3276   mkdir conftest.dir
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
3280   cd 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
3286   # directory.
3287   mkdir sub
3288
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`
3292   fi
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.
3297     #
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.
3301     : > sub/conftest.c
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
3307     done
3308     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3309
3310     case $depmode in
3311     nosideeffect)
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
3315         continue
3316       else
3317         break
3318       fi
3319       ;;
3320     none) break ;;
3321     esac
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
3343         break
3344       fi
3345     fi
3346   done
3347
3348   cd ..
3349   rm -rf conftest.dir
3350 else
3351   am_cv_CC_dependencies_compiler_type=none
3352 fi
3353
3354 fi
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
3358
3359
3360
3361 if
3362   test "x$enable_dependency_tracking" != xno \
3363   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3364   am__fastdepCC_TRUE=
3365   am__fastdepCC_FALSE='#'
3366 else
3367   am__fastdepCC_TRUE='#'
3368   am__fastdepCC_FALSE=
3369 fi
3370
3371
3372 CFLAGS=`echo " $CFLAGS " | sed -e "s/ -g / /"` # do not want it implicitly
3373
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
3378 else
3379   ac_func_search_save_LIBS=$LIBS
3380 ac_cv_search_strerror=no
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387
3388 /* Override any gcc2 internal prototype to avoid an error.  */
3389 #ifdef __cplusplus
3390 extern "C"
3391 #endif
3392 /* We use char because int might match the return type of a gcc2
3393    builtin and then its argument prototype would still apply.  */
3394 char strerror ();
3395 int
3396 main ()
3397 {
3398 strerror ();
3399   ;
3400   return 0;
3401 }
3402 _ACEOF
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
3406   ac_status=$?
3407   grep -v '^ *+' conftest.er1 >conftest.err
3408   rm -f conftest.er1
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
3415   (eval $ac_try) 2>&5
3416   ac_status=$?
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
3421   (eval $ac_try) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; }; then
3425   ac_cv_search_strerror="none required"
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 fi
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
3437 /* confdefs.h.  */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h.  */
3442
3443 /* Override any gcc2 internal prototype to avoid an error.  */
3444 #ifdef __cplusplus
3445 extern "C"
3446 #endif
3447 /* We use char because int might match the return type of a gcc2
3448    builtin and then its argument prototype would still apply.  */
3449 char strerror ();
3450 int
3451 main ()
3452 {
3453 strerror ();
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
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
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
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
3470   (eval $ac_try) 2>&5
3471   ac_status=$?
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
3476   (eval $ac_try) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; }; then
3480   ac_cv_search_strerror="-l$ac_lib"
3481 break
3482 else
3483   echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486 fi
3487 rm -f conftest.err conftest.$ac_objext \
3488       conftest$ac_exeext conftest.$ac_ext
3489   done
3490 fi
3491 LIBS=$ac_func_search_save_LIBS
3492 fi
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"
3497
3498 fi
3499
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
3506 # AIX /bin/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
3518 else
3519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522   IFS=$as_save_IFS
3523   test -z "$as_dir" && as_dir=.
3524   # Account for people who put trailing slashes in PATH elements.
3525 case $as_dir/ in
3526   ./ | .// | /cC/* | \
3527   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3528   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3529   /usr/ucb/* ) ;;
3530   *)
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
3533     # by default.
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.
3540             :
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.
3544             :
3545           else
3546             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3547             break 3
3548           fi
3549         fi
3550       done
3551     done
3552     ;;
3553 esac
3554 done
3555
3556
3557 fi
3558   if test "${ac_cv_path_install+set}" = set; then
3559     INSTALL=$ac_cv_path_install
3560   else
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
3566   fi
3567 fi
3568 echo "$as_me:$LINENO: result: $INSTALL" >&5
3569 echo "${ECHO_T}$INSTALL" >&6
3570
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}'
3574
3575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3576
3577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3578
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
3584 else
3585   cat >conftest.make <<\_ACEOF
3586 all:
3587         @echo 'ac_maketemp="$(MAKE)"'
3588 _ACEOF
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
3593 else
3594   eval ac_cv_prog_make_${ac_make}_set=no
3595 fi
3596 rm -f conftest.make
3597 fi
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
3601   SET_MAKE=
3602 else
3603   echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6
3605   SET_MAKE="MAKE=${MAKE-make}"
3606 fi
3607
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
3615 else
3616   if test -n "$RANLIB"; then
3617   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3618 else
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH
3621 do
3622   IFS=$as_save_IFS
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
3628     break 2
3629   fi
3630 done
3631 done
3632
3633 fi
3634 fi
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
3639 else
3640   echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3642 fi
3643
3644 fi
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
3653 else
3654   if test -n "$ac_ct_RANLIB"; then
3655   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660   IFS=$as_save_IFS
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
3666     break 2
3667   fi
3668 done
3669 done
3670
3671   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3672 fi
3673 fi
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
3678 else
3679   echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3681 fi
3682
3683   RANLIB=$ac_ct_RANLIB
3684 else
3685   RANLIB="$ac_cv_prog_RANLIB"
3686 fi
3687
3688 ac_ext=c
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
3693
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; }; }
3699
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
3704 else
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; }; }
3716
3717 fi
3718 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3719 echo "${ECHO_T}$ac_cv_build" >&6
3720 build=$ac_cv_build
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/'`
3724
3725
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
3730 else
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; }; }
3738
3739 fi
3740 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3741 echo "${ECHO_T}$ac_cv_host" >&6
3742 host=$ac_cv_host
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/'`
3746
3747
3748
3749
3750
3751 if test "$enable_threads" != no; then
3752
3753
3754
3755
3756 ac_ext=c
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
3761
3762 acx_pthread_ok=no
3763
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.
3767
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
3770 # them:
3771 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
3772         save_CFLAGS="$CFLAGS"
3773         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
3774         save_LIBS="$LIBS"
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
3779 /* confdefs.h.  */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h.  */
3784
3785 /* Override any gcc2 internal prototype to avoid an error.  */
3786 #ifdef __cplusplus
3787 extern "C"
3788 #endif
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 ();
3792 int
3793 main ()
3794 {
3795 pthread_join ();
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
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
3803   ac_status=$?
3804   grep -v '^ *+' conftest.er1 >conftest.err
3805   rm -f conftest.er1
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
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
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
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822   acx_pthread_ok=yes
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 fi
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
3833                 PTHREAD_LIBS=""
3834                 PTHREAD_CFLAGS=""
3835         fi
3836         LIBS="$save_LIBS"
3837         CFLAGS="$save_CFLAGS"
3838 fi
3839
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).
3844
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.
3849
3850 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
3851
3852 # The ordering *is* (sometimes) important.  Some notes on the
3853 # individual items follow:
3854
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)
3870
3871 case "${host_cpu}-${host_os}" in
3872         *solaris*)
3873
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:
3881
3882         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
3883         ;;
3884 esac
3885
3886 if test x"$acx_pthread_ok" = xno; then
3887 for flag in $acx_pthread_flags; do
3888
3889         case $flag in
3890                 none)
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
3893                 ;;
3894
3895                 -*)
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"
3899                 ;;
3900
3901                 pthread-config)
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
3908 else
3909   if test -n "$acx_pthread_config"; then
3910   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915   IFS=$as_save_IFS
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
3921     break 2
3922   fi
3923 done
3924 done
3925
3926   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
3927 fi
3928 fi
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
3933 else
3934   echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3936 fi
3937
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`"
3941                 ;;
3942
3943                 *)
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"
3947                 ;;
3948         esac
3949
3950         save_LIBS="$LIBS"
3951         save_CFLAGS="$CFLAGS"
3952         LIBS="$PTHREAD_LIBS $LIBS"
3953         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
3954
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
3965 /* confdefs.h.  */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h.  */
3970 #include <pthread.h>
3971 int
3972 main ()
3973 {
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);
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
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
3984   ac_status=$?
3985   grep -v '^ *+' conftest.er1 >conftest.err
3986   rm -f conftest.er1
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
3993   (eval $ac_try) 2>&5
3994   ac_status=$?
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
3999   (eval $ac_try) 2>&5
4000   ac_status=$?
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); }; }; then
4003   acx_pthread_ok=yes
4004 else
4005   echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008 fi
4009 rm -f conftest.err conftest.$ac_objext \
4010       conftest$ac_exeext conftest.$ac_ext
4011
4012         LIBS="$save_LIBS"
4013         CFLAGS="$save_CFLAGS"
4014
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
4018                 break;
4019         fi
4020
4021         PTHREAD_LIBS=""
4022         PTHREAD_CFLAGS=""
4023 done
4024 fi
4025
4026 # Various other checks:
4027 if test "x$acx_pthread_ok" = xyes; then
4028         save_LIBS="$LIBS"
4029         LIBS="$PTHREAD_LIBS $LIBS"
4030         save_CFLAGS="$CFLAGS"
4031         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4032
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
4038 /* confdefs.h.  */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h.  */
4043 #include <pthread.h>
4044 int
4045 main ()
4046 {
4047 int attr=PTHREAD_CREATE_JOINABLE;
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
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
4055   ac_status=$?
4056   grep -v '^ *+' conftest.er1 >conftest.err
4057   rm -f conftest.er1
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
4064   (eval $ac_try) 2>&5
4065   ac_status=$?
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
4070   (eval $ac_try) 2>&5
4071   ac_status=$?
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); }; }; then
4074   ok=PTHREAD_CREATE_JOINABLE
4075 else
4076   echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 ok=unknown
4080 fi
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
4085 /* confdefs.h.  */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h.  */
4090 #include <pthread.h>
4091 int
4092 main ()
4093 {
4094 int attr=PTHREAD_CREATE_UNDETACHED;
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
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
4102   ac_status=$?
4103   grep -v '^ *+' conftest.er1 >conftest.err
4104   rm -f conftest.er1
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
4111   (eval $ac_try) 2>&5
4112   ac_status=$?
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
4117   (eval $ac_try) 2>&5
4118   ac_status=$?
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); }; }; then
4121   ok=PTHREAD_CREATE_UNDETACHED
4122 else
4123   echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 ok=unknown
4127 fi
4128 rm -f conftest.err conftest.$ac_objext \
4129       conftest$ac_exeext conftest.$ac_ext
4130         fi
4131         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
4132
4133 cat >>confdefs.h <<\_ACEOF
4134 #define PTHREAD_CREATE_JOINABLE $ok
4135 _ACEOF
4136
4137         fi
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;}
4143         fi
4144
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
4147         flag=no
4148         case "${host_cpu}-${host_os}" in
4149                 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
4150                 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
4151         esac
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"
4156         fi
4157
4158         LIBS="$save_LIBS"
4159         CFLAGS="$save_CFLAGS"
4160
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
4168 else
4169   if test -n "$PTHREAD_CC"; then
4170   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175   IFS=$as_save_IFS
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
4181     break 2
4182   fi
4183 done
4184 done
4185
4186   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
4187 fi
4188 fi
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
4193 else
4194   echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4196 fi
4197
4198 else
4199         PTHREAD_CC="$CC"
4200 fi
4201
4202
4203
4204
4205
4206 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4207 if test x"$acx_pthread_ok" = xyes; then
4208
4209 cat >>confdefs.h <<\_ACEOF
4210 #define HAVE_PTHREAD 1
4211 _ACEOF
4212
4213         :
4214 else
4215         acx_pthread_ok=no
4216
4217 fi
4218 ac_ext=c
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
4223
4224
4225     if test "$acx_pthread_ok" = yes; then
4226       cat >>confdefs.h <<\_ACEOF
4227 #define HAVE_POSIX_THREAD 1
4228 _ACEOF
4229
4230       cat >>confdefs.h <<\_ACEOF
4231 #define _REENTRANT 1
4232 _ACEOF
4233
4234     fi
4235 fi
4236
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
4241 else
4242   cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h.  */
4244 _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
4251
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.  */
4256
4257 #ifdef __STDC__
4258 # include <limits.h>
4259 #else
4260 # include <assert.h>
4261 #endif
4262
4263 #undef gethostbyname
4264
4265 /* Override any gcc2 internal prototype to avoid an error.  */
4266 #ifdef __cplusplus
4267 extern "C"
4268 {
4269 #endif
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)
4277 choke me
4278 #else
4279 char (*f) () = gethostbyname;
4280 #endif
4281 #ifdef __cplusplus
4282 }
4283 #endif
4284
4285 int
4286 main ()
4287 {
4288 return f != gethostbyname;
4289   ;
4290   return 0;
4291 }
4292 _ACEOF
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
4296   ac_status=$?
4297   grep -v '^ *+' conftest.er1 >conftest.err
4298   rm -f conftest.er1
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
4305   (eval $ac_try) 2>&5
4306   ac_status=$?
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
4311   (eval $ac_try) 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); }; }; then
4315   ac_cv_func_gethostbyname=yes
4316 else
4317   echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4319
4320 ac_cv_func_gethostbyname=no
4321 fi
4322 rm -f conftest.err conftest.$ac_objext \
4323       conftest$ac_exeext conftest.$ac_ext
4324 fi
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
4328   :
4329 else
4330
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
4335 else
4336   ac_check_lib_save_LIBS=$LIBS
4337 LIBS="-lnsl  $LIBS"
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h.  */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h.  */
4344
4345 /* Override any gcc2 internal prototype to avoid an error.  */
4346 #ifdef __cplusplus
4347 extern "C"
4348 #endif
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 ();
4352 int
4353 main ()
4354 {
4355 gethostbyname ();
4356   ;
4357   return 0;
4358 }
4359 _ACEOF
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
4363   ac_status=$?
4364   grep -v '^ *+' conftest.er1 >conftest.err
4365   rm -f conftest.er1
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
4372   (eval $ac_try) 2>&5
4373   ac_status=$?
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
4378   (eval $ac_try) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; }; then
4382   ac_cv_lib_nsl_gethostbyname=yes
4383 else
4384   echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4386
4387 ac_cv_lib_nsl_gethostbyname=no
4388 fi
4389 rm -f conftest.err conftest.$ac_objext \
4390       conftest$ac_exeext conftest.$ac_ext
4391 LIBS=$ac_check_lib_save_LIBS
4392 fi
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
4398 _ACEOF
4399
4400   LIBS="-lnsl $LIBS"
4401
4402 fi
4403
4404 fi
4405
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
4410 else
4411   cat >conftest.$ac_ext <<_ACEOF
4412 /* confdefs.h.  */
4413 _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
4420
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.  */
4425
4426 #ifdef __STDC__
4427 # include <limits.h>
4428 #else
4429 # include <assert.h>
4430 #endif
4431
4432 #undef socket
4433
4434 /* Override any gcc2 internal prototype to avoid an error.  */
4435 #ifdef __cplusplus
4436 extern "C"
4437 {
4438 #endif
4439 /* We use char because int might match the return type of a gcc2
4440    builtin and then its argument prototype would still apply.  */
4441 char socket ();
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)
4446 choke me
4447 #else
4448 char (*f) () = socket;
4449 #endif
4450 #ifdef __cplusplus
4451 }
4452 #endif
4453
4454 int
4455 main ()
4456 {
4457 return f != socket;
4458   ;
4459   return 0;
4460 }
4461 _ACEOF
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
4465   ac_status=$?
4466   grep -v '^ *+' conftest.er1 >conftest.err
4467   rm -f conftest.er1
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
4474   (eval $ac_try) 2>&5
4475   ac_status=$?
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
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; }; then
4484   ac_cv_func_socket=yes
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 ac_cv_func_socket=no
4490 fi
4491 rm -f conftest.err conftest.$ac_objext \
4492       conftest$ac_exeext conftest.$ac_ext
4493 fi
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
4497   :
4498 else
4499
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
4504 else
4505   ac_check_lib_save_LIBS=$LIBS
4506 LIBS="-lsocket  $LIBS"
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h.  */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h.  */
4513
4514 /* Override any gcc2 internal prototype to avoid an error.  */
4515 #ifdef __cplusplus
4516 extern "C"
4517 #endif
4518 /* We use char because int might match the return type of a gcc2
4519    builtin and then its argument prototype would still apply.  */
4520 char socket ();
4521 int
4522 main ()
4523 {
4524 socket ();
4525   ;
4526   return 0;
4527 }
4528 _ACEOF
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
4532   ac_status=$?
4533   grep -v '^ *+' conftest.er1 >conftest.err
4534   rm -f conftest.er1
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
4541   (eval $ac_try) 2>&5
4542   ac_status=$?
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
4547   (eval $ac_try) 2>&5
4548   ac_status=$?
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); }; }; then
4551   ac_cv_lib_socket_socket=yes
4552 else
4553   echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556 ac_cv_lib_socket_socket=no
4557 fi
4558 rm -f conftest.err conftest.$ac_objext \
4559       conftest$ac_exeext conftest.$ac_ext
4560 LIBS=$ac_check_lib_save_LIBS
4561 fi
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
4567 _ACEOF
4568
4569   LIBS="-lsocket $LIBS"
4570
4571 fi
4572
4573 fi
4574
4575
4576 ac_ext=c
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
4585   CPP=
4586 fi
4587 if test -z "$CPP"; then
4588   if test "${ac_cv_prog_CPP+set}" = set; then
4589   echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591       # Double quotes because CPP needs to be expanded
4592     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4593     do
4594       ac_preproc_ok=false
4595 for ac_c_preproc_warn_flag in '' yes
4596 do
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
4604 /* confdefs.h.  */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h.  */
4609 #ifdef __STDC__
4610 # include <limits.h>
4611 #else
4612 # include <assert.h>
4613 #endif
4614                      Syntax error
4615 _ACEOF
4616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4618   ac_status=$?
4619   grep -v '^ *+' conftest.er1 >conftest.err
4620   rm -f conftest.er1
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
4627   else
4628     ac_cpp_err=
4629   fi
4630 else
4631   ac_cpp_err=yes
4632 fi
4633 if test -z "$ac_cpp_err"; then
4634   :
4635 else
4636   echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639   # Broken: fails on valid input.
4640 continue
4641 fi
4642 rm -f conftest.err conftest.$ac_ext
4643
4644   # OK, works on sane cases.  Now check whether non-existent headers
4645   # can be detected and how.
4646   cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652 #include <ac_nonexistent.h>
4653 _ACEOF
4654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4656   ac_status=$?
4657   grep -v '^ *+' conftest.er1 >conftest.err
4658   rm -f conftest.er1
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
4665   else
4666     ac_cpp_err=
4667   fi
4668 else
4669   ac_cpp_err=yes
4670 fi
4671 if test -z "$ac_cpp_err"; then
4672   # Broken: success on invalid input.
4673 continue
4674 else
4675   echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678   # Passes both tests.
4679 ac_preproc_ok=:
4680 break
4681 fi
4682 rm -f conftest.err conftest.$ac_ext
4683
4684 done
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
4688   break
4689 fi
4690
4691     done
4692     ac_cv_prog_CPP=$CPP
4693
4694 fi
4695   CPP=$ac_cv_prog_CPP
4696 else
4697   ac_cv_prog_CPP=$CPP
4698 fi
4699 echo "$as_me:$LINENO: result: $CPP" >&5
4700 echo "${ECHO_T}$CPP" >&6
4701 ac_preproc_ok=false
4702 for ac_c_preproc_warn_flag in '' yes
4703 do
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
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716 #ifdef __STDC__
4717 # include <limits.h>
4718 #else
4719 # include <assert.h>
4720 #endif
4721                      Syntax error
4722 _ACEOF
4723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4725   ac_status=$?
4726   grep -v '^ *+' conftest.er1 >conftest.err
4727   rm -f conftest.er1
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
4734   else
4735     ac_cpp_err=
4736   fi
4737 else
4738   ac_cpp_err=yes
4739 fi
4740 if test -z "$ac_cpp_err"; then
4741   :
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746   # Broken: fails on valid input.
4747 continue
4748 fi
4749 rm -f conftest.err conftest.$ac_ext
4750
4751   # OK, works on sane cases.  Now check whether non-existent headers
4752   # can be detected and how.
4753   cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h.  */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h.  */
4759 #include <ac_nonexistent.h>
4760 _ACEOF
4761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4763   ac_status=$?
4764   grep -v '^ *+' conftest.er1 >conftest.err
4765   rm -f conftest.er1
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
4772   else
4773     ac_cpp_err=
4774   fi
4775 else
4776   ac_cpp_err=yes
4777 fi
4778 if test -z "$ac_cpp_err"; then
4779   # Broken: success on invalid input.
4780 continue
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785   # Passes both tests.
4786 ac_preproc_ok=:
4787 break
4788 fi
4789 rm -f conftest.err conftest.$ac_ext
4790
4791 done
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
4795   :
4796 else
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; }; }
4802 fi
4803
4804 ac_ext=c
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
4809
4810
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
4815 else
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'
4819     fi
4820 fi
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
4824
4825
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
4830 else
4831   cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837 #include <stdlib.h>
4838 #include <stdarg.h>
4839 #include <string.h>
4840 #include <float.h>
4841
4842 int
4843 main ()
4844 {
4845
4846   ;
4847   return 0;
4848 }
4849 _ACEOF
4850 rm -f conftest.$ac_objext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852   (eval $ac_compile) 2>conftest.er1
4853   ac_status=$?
4854   grep -v '^ *+' conftest.er1 >conftest.err
4855   rm -f conftest.er1
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
4862   (eval $ac_try) 2>&5
4863   ac_status=$?
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
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; }; then
4872   ac_cv_header_stdc=yes
4873 else
4874   echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4876
4877 ac_cv_header_stdc=no
4878 fi
4879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4880
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
4884 /* confdefs.h.  */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h.  */
4889 #include <string.h>
4890
4891 _ACEOF
4892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4893   $EGREP "memchr" >/dev/null 2>&1; then
4894   :
4895 else
4896   ac_cv_header_stdc=no
4897 fi
4898 rm -f conftest*
4899
4900 fi
4901
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
4905 /* confdefs.h.  */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h.  */
4910 #include <stdlib.h>
4911
4912 _ACEOF
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914   $EGREP "free" >/dev/null 2>&1; then
4915   :
4916 else
4917   ac_cv_header_stdc=no
4918 fi
4919 rm -f conftest*
4920
4921 fi
4922
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
4926   :
4927 else
4928   cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934 #include <ctype.h>
4935 #if ((' ' & 0x0FF) == 0x020)
4936 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4937 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4938 #else
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))
4944 #endif
4945
4946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4947 int
4948 main ()
4949 {
4950   int i;
4951   for (i = 0; i < 256; i++)
4952     if (XOR (islower (i), ISLOWER (i))
4953         || toupper (i) != TOUPPER (i))
4954       exit(2);
4955   exit (0);
4956 }
4957 _ACEOF
4958 rm -f conftest$ac_exeext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4960   (eval $ac_link) 2>&5
4961   ac_status=$?
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
4965   (eval $ac_try) 2>&5
4966   ac_status=$?
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); }; }; then
4969   :
4970 else
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
4974
4975 ( exit $ac_status )
4976 ac_cv_header_stdc=no
4977 fi
4978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4979 fi
4980 fi
4981 fi
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
4985
4986 cat >>confdefs.h <<\_ACEOF
4987 #define STDC_HEADERS 1
4988 _ACEOF
4989
4990 fi
4991
4992 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4993
4994
4995
4996
4997
4998
4999
5000
5001
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
5004 do
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
5010 else
5011   cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017 $ac_includes_default
5018
5019 #include <$ac_header>
5020 _ACEOF
5021 rm -f conftest.$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023   (eval $ac_compile) 2>conftest.er1
5024   ac_status=$?
5025   grep -v '^ *+' conftest.er1 >conftest.err
5026   rm -f conftest.er1
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
5033   (eval $ac_try) 2>&5
5034   ac_status=$?
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
5039   (eval $ac_try) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); }; }; then
5043   eval "$as_ac_Header=yes"
5044 else
5045   echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 eval "$as_ac_Header=no"
5049 fi
5050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5051 fi
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
5057 _ACEOF
5058
5059 fi
5060
5061 done
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
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
5076 do
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
5083 fi
5084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5086 else
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
5091 /* confdefs.h.  */
5092 _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>
5098 _ACEOF
5099 rm -f conftest.$ac_objext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101   (eval $ac_compile) 2>conftest.er1
5102   ac_status=$?
5103   grep -v '^ *+' conftest.er1 >conftest.err
5104   rm -f conftest.er1
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
5111   (eval $ac_try) 2>&5
5112   ac_status=$?
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
5117   (eval $ac_try) 2>&5
5118   ac_status=$?
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); }; }; then
5121   ac_header_compiler=yes
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126 ac_header_compiler=no
5127 fi
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
5131
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
5136 /* confdefs.h.  */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h.  */
5141 #include <$ac_header>
5142 _ACEOF
5143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5145   ac_status=$?
5146   grep -v '^ *+' conftest.er1 >conftest.err
5147   rm -f conftest.er1
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
5154   else
5155     ac_cpp_err=
5156   fi
5157 else
5158   ac_cpp_err=yes
5159 fi
5160 if test -z "$ac_cpp_err"; then
5161   ac_header_preproc=yes
5162 else
5163   echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5165
5166   ac_header_preproc=no
5167 fi
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
5171
5172 # So?  What about this header?
5173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5174   yes:no: )
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
5180     ;;
5181   no: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;}
5194     (
5195       cat <<\_ASBOX
5196 ## -------------------------------- ##
5197 ## Report this to the Iperf lists.  ##
5198 ## -------------------------------- ##
5199 _ASBOX
5200     ) |
5201       sed "s/^/$as_me: WARNING:     /" >&2
5202     ;;
5203 esac
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
5208 else
5209   eval "$as_ac_Header=\$ac_header_preproc"
5210 fi
5211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5213
5214 fi
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
5218 _ACEOF
5219
5220 fi
5221
5222 done
5223
5224
5225
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
5230 else
5231   cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h.  */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h.  */
5237
5238 int
5239 main ()
5240 {
5241 /* FIXME: Include the comments suggested by Paul. */
5242 #ifndef __cplusplus
5243   /* Ultrix mips cc rejects this.  */
5244   typedef int charset[2];
5245   const charset x;
5246   /* SunOS 4.1.1 cc rejects this.  */
5247   char const *const *ccp;
5248   char **p;
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
5255      expression */
5256   const char *g = "string";
5257   ccp = &g + (g ? g-g : 0);
5258   /* HPUX 7.0 cc rejects these. */
5259   ++ccp;
5260   p = (char**) ccp;
5261   ccp = (char const *const *) p;
5262   { /* SCO 3.2v4 cc rejects this.  */
5263     char *t;
5264     char const *s = 0 ? (char *) 0 : (char const *) 0;
5265
5266     *t++ = 0;
5267   }
5268   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5269     int x[] = {25, 17};
5270     const int *foo = &x[0];
5271     ++foo;
5272   }
5273   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5274     typedef const int *iptr;
5275     iptr p = 0;
5276     ++p;
5277   }
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;
5282   }
5283   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5284     const int foo = 10;
5285   }
5286 #endif
5287
5288   ;
5289   return 0;
5290 }
5291 _ACEOF
5292 rm -f conftest.$ac_objext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294   (eval $ac_compile) 2>conftest.er1
5295   ac_status=$?
5296   grep -v '^ *+' conftest.er1 >conftest.err
5297   rm -f conftest.er1
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
5304   (eval $ac_try) 2>&5
5305   ac_status=$?
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
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; }; then
5314   ac_cv_c_const=yes
5315 else
5316   echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5318
5319 ac_cv_c_const=no
5320 fi
5321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5322 fi
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
5326
5327 cat >>confdefs.h <<\_ACEOF
5328 #define const
5329 _ACEOF
5330
5331 fi
5332
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
5337 else
5338   cat >conftest.$ac_ext <<_ACEOF
5339 /* confdefs.h.  */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h.  */
5344 $ac_includes_default
5345 int
5346 main ()
5347 {
5348 if ((size_t *) 0)
5349   return 0;
5350 if (sizeof (size_t))
5351   return 0;
5352   ;
5353   return 0;
5354 }
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358   (eval $ac_compile) 2>conftest.er1
5359   ac_status=$?
5360   grep -v '^ *+' conftest.er1 >conftest.err
5361   rm -f conftest.er1
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
5368   (eval $ac_try) 2>&5
5369   ac_status=$?
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
5374   (eval $ac_try) 2>&5
5375   ac_status=$?
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); }; }; then
5378   ac_cv_type_size_t=yes
5379 else
5380   echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 ac_cv_type_size_t=no
5384 fi
5385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386 fi
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
5390   :
5391 else
5392
5393 cat >>confdefs.h <<_ACEOF
5394 #define size_t unsigned
5395 _ACEOF
5396
5397 fi
5398
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
5403 else
5404   cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h.  */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h.  */
5410 $ac_includes_default
5411 int
5412 main ()
5413 {
5414 if ((ssize_t *) 0)
5415   return 0;
5416 if (sizeof (ssize_t))
5417   return 0;
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424   (eval $ac_compile) 2>conftest.er1
5425   ac_status=$?
5426   grep -v '^ *+' conftest.er1 >conftest.err
5427   rm -f conftest.er1
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
5434   (eval $ac_try) 2>&5
5435   ac_status=$?
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
5440   (eval $ac_try) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; }; then
5444   ac_cv_type_ssize_t=yes
5445 else
5446   echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449 ac_cv_type_ssize_t=no
5450 fi
5451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5452 fi
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
5456
5457 cat >>confdefs.h <<_ACEOF
5458 #define HAVE_SSIZE_T 1
5459 _ACEOF
5460
5461
5462 else
5463   cat >>confdefs.h <<_ACEOF
5464 #define ssize_t int
5465 _ACEOF
5466
5467 fi
5468
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
5473 else
5474   cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h.  */
5476 _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>
5482 #include <time.h>
5483
5484 int
5485 main ()
5486 {
5487 if ((struct tm *) 0)
5488 return 0;
5489   ;
5490   return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495   (eval $ac_compile) 2>conftest.er1
5496   ac_status=$?
5497   grep -v '^ *+' conftest.er1 >conftest.err
5498   rm -f conftest.er1
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
5505   (eval $ac_try) 2>&5
5506   ac_status=$?
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
5511   (eval $ac_try) 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); }; }; then
5515   ac_cv_header_time=yes
5516 else
5517   echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5519
5520 ac_cv_header_time=no
5521 fi
5522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5523 fi
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
5527
5528 cat >>confdefs.h <<\_ACEOF
5529 #define TIME_WITH_SYS_TIME 1
5530 _ACEOF
5531
5532 fi
5533
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
5538 else
5539   cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h.  */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h.  */
5545 #include <sys/types.h>
5546 #include <time.h>
5547
5548 int
5549 main ()
5550 {
5551 struct tm *tp; tp->tm_sec;
5552   ;
5553   return 0;
5554 }
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558   (eval $ac_compile) 2>conftest.er1
5559   ac_status=$?
5560   grep -v '^ *+' conftest.er1 >conftest.err
5561   rm -f conftest.er1
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
5568   (eval $ac_try) 2>&5
5569   ac_status=$?
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
5574   (eval $ac_try) 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); }; }; then
5578   ac_cv_struct_tm=time.h
5579 else
5580   echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583 ac_cv_struct_tm=sys/time.h
5584 fi
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
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
5590
5591 cat >>confdefs.h <<\_ACEOF
5592 #define TM_IN_SYS_TIME 1
5593 _ACEOF
5594
5595 fi
5596
5597
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
5606 else
5607
5608 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
5609 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
5610 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
5611 cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h.  */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h.  */
5617 #include <stdint.h>
5618 int
5619 main ()
5620 {
5621 int_least32_t v = 0;
5622   ;
5623   return 0;
5624 }
5625 _ACEOF
5626 rm -f conftest.$ac_objext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628   (eval $ac_compile) 2>conftest.er1
5629   ac_status=$?
5630   grep -v '^ *+' conftest.er1 >conftest.err
5631   rm -f conftest.er1
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
5638   (eval $ac_try) 2>&5
5639   ac_status=$?
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
5644   (eval $ac_try) 2>&5
5645   ac_status=$?
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";
5650 else
5651   echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654 ac_cv_header_stdint_t=""
5655 fi
5656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5657 CXXFLAGS="$old_CXXFLAGS"
5658 CPPFLAGS="$old_CPPFLAGS"
5659 CFLAGS="$old_CFLAGS"
5660 fi
5661
5662
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
5673 else
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
5677 fi
5678
5679 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
5680
5681
5682 inttype_headers=`echo  | sed -e 's/,/ /g'`
5683
5684 ac_cv_stdint_result="(no helpful system typedefs seen)"
5685
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
5690 else
5691
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
5702 else
5703   cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h.  */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h.  */
5709 #include <$i>
5710
5711 int
5712 main ()
5713 {
5714 if ((uintptr_t *) 0)
5715   return 0;
5716 if (sizeof (uintptr_t))
5717   return 0;
5718   ;
5719   return 0;
5720 }
5721 _ACEOF
5722 rm -f conftest.$ac_objext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724   (eval $ac_compile) 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
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
5734   (eval $ac_try) 2>&5
5735   ac_status=$?
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
5740   (eval $ac_try) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; }; then
5744   ac_cv_type_uintptr_t=yes
5745 else
5746   echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749 ac_cv_type_uintptr_t=no
5750 fi
5751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5752 fi
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
5757 else
5758   continue
5759 fi
5760
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
5765 else
5766   cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h.  */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h.  */
5772 #include<$i>
5773
5774 int
5775 main ()
5776 {
5777 if ((uint64_t *) 0)
5778   return 0;
5779 if (sizeof (uint64_t))
5780   return 0;
5781   ;
5782   return 0;
5783 }
5784 _ACEOF
5785 rm -f conftest.$ac_objext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787   (eval $ac_compile) 2>conftest.er1
5788   ac_status=$?
5789   grep -v '^ *+' conftest.er1 >conftest.err
5790   rm -f conftest.er1
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
5797   (eval $ac_try) 2>&5
5798   ac_status=$?
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
5803   (eval $ac_try) 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); }; }; then
5807   ac_cv_type_uint64_t=yes
5808 else
5809   echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5811
5812 ac_cv_type_uint64_t=no
5813 fi
5814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5815 fi
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
5819   and64="/uint64_t"
5820 else
5821   and64=""
5822 fi
5823
5824       stdint.h inttypes.h sys/inttypes.h $inttype_headers
5825  break
5826   done
5827   echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5828 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5829
5830 fi
5831 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
5832 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
5833
5834
5835 if test "_$ac_cv_header_stdint_x" = "_" ; then
5836
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
5841 else
5842
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
5853 else
5854   cat >conftest.$ac_ext <<_ACEOF
5855 /* confdefs.h.  */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h.  */
5860 #include <$i>
5861
5862 int
5863 main ()
5864 {
5865 if ((uint32_t *) 0)
5866   return 0;
5867 if (sizeof (uint32_t))
5868   return 0;
5869   ;
5870   return 0;
5871 }
5872 _ACEOF
5873 rm -f conftest.$ac_objext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875   (eval $ac_compile) 2>conftest.er1
5876   ac_status=$?
5877   grep -v '^ *+' conftest.er1 >conftest.err
5878   rm -f conftest.er1
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
5885   (eval $ac_try) 2>&5
5886   ac_status=$?
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
5891   (eval $ac_try) 2>&5
5892   ac_status=$?
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); }; }; then
5895   ac_cv_type_uint32_t=yes
5896 else
5897   echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5899
5900 ac_cv_type_uint32_t=no
5901 fi
5902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5903 fi
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
5908 else
5909   continue
5910 fi
5911
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
5916 else
5917   cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h.  */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h.  */
5923 #include<$i>
5924
5925 int
5926 main ()
5927 {
5928 if ((uint64_t *) 0)
5929   return 0;
5930 if (sizeof (uint64_t))
5931   return 0;
5932   ;
5933   return 0;
5934 }
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938   (eval $ac_compile) 2>conftest.er1
5939   ac_status=$?
5940   grep -v '^ *+' conftest.er1 >conftest.err
5941   rm -f conftest.er1
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
5948   (eval $ac_try) 2>&5
5949   ac_status=$?
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
5954   (eval $ac_try) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; }; then
5958   ac_cv_type_uint64_t=yes
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 ac_cv_type_uint64_t=no
5964 fi
5965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5966 fi
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
5970   and64="/uint64_t"
5971 else
5972   and64=""
5973 fi
5974
5975       inttypes.h sys/inttypes.h stdint.h $inttype_headers
5976  break
5977    break;
5978   done
5979   echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5980 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5981
5982 fi
5983 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
5984 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
5985
5986 fi
5987
5988 if test "_$ac_cv_header_stdint_x" = "_" ; then
5989 if test "_$ac_cv_header_stdint_o" = "_" ; then
5990
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
5995 else
5996
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
6007 else
6008   cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h.  */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h.  */
6014 #include <$i>
6015
6016 int
6017 main ()
6018 {
6019 if ((u_int32_t *) 0)
6020   return 0;
6021 if (sizeof (u_int32_t))
6022   return 0;
6023   ;
6024   return 0;
6025 }
6026 _ACEOF
6027 rm -f conftest.$ac_objext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029   (eval $ac_compile) 2>conftest.er1
6030   ac_status=$?
6031   grep -v '^ *+' conftest.er1 >conftest.err
6032   rm -f conftest.er1
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
6039   (eval $ac_try) 2>&5
6040   ac_status=$?
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
6045   (eval $ac_try) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; }; then
6049   ac_cv_type_u_int32_t=yes
6050 else
6051   echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 ac_cv_type_u_int32_t=no
6055 fi
6056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6057 fi
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
6062 else
6063   continue
6064 fi
6065
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
6070 else
6071   cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h.  */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h.  */
6077 #include<$i>
6078
6079 int
6080 main ()
6081 {
6082 if ((u_int64_t *) 0)
6083   return 0;
6084 if (sizeof (u_int64_t))
6085   return 0;
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092   (eval $ac_compile) 2>conftest.er1
6093   ac_status=$?
6094   grep -v '^ *+' conftest.er1 >conftest.err
6095   rm -f conftest.er1
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
6102   (eval $ac_try) 2>&5
6103   ac_status=$?
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
6108   (eval $ac_try) 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); }; }; then
6112   ac_cv_type_u_int64_t=yes
6113 else
6114   echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 ac_cv_type_u_int64_t=no
6118 fi
6119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6120 fi
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
6124   and64="/u_int64_t"
6125 else
6126   and64=""
6127 fi
6128
6129       sys/types.h inttypes.h sys/inttypes.h $inttype_headers
6130  break
6131    break;
6132   done
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
6135
6136 fi
6137 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
6138 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
6139
6140 fi fi
6141
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
6147
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
6152 else
6153   cat >conftest.$ac_ext <<_ACEOF
6154 /* confdefs.h.  */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h.  */
6159 $ac_includes_default
6160 int
6161 main ()
6162 {
6163 if ((char *) 0)
6164   return 0;
6165 if (sizeof (char))
6166   return 0;
6167   ;
6168   return 0;
6169 }
6170 _ACEOF
6171 rm -f conftest.$ac_objext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173   (eval $ac_compile) 2>conftest.er1
6174   ac_status=$?
6175   grep -v '^ *+' conftest.er1 >conftest.err
6176   rm -f conftest.er1
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
6183   (eval $ac_try) 2>&5
6184   ac_status=$?
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
6189   (eval $ac_try) 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; }; then
6193   ac_cv_type_char=yes
6194 else
6195   echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 ac_cv_type_char=no
6199 fi
6200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6201 fi
6202 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6203 echo "${ECHO_T}$ac_cv_type_char" >&6
6204
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
6209 else
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
6218 /* confdefs.h.  */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h.  */
6223 $ac_includes_default
6224 int
6225 main ()
6226 {
6227 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6228 test_array [0] = 0
6229
6230   ;
6231   return 0;
6232 }
6233 _ACEOF
6234 rm -f conftest.$ac_objext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6236   (eval $ac_compile) 2>conftest.er1
6237   ac_status=$?
6238   grep -v '^ *+' conftest.er1 >conftest.err
6239   rm -f conftest.er1
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
6246   (eval $ac_try) 2>&5
6247   ac_status=$?
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
6252   (eval $ac_try) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); }; }; then
6256   ac_lo=0 ac_mid=0
6257   while :; do
6258     cat >conftest.$ac_ext <<_ACEOF
6259 /* confdefs.h.  */
6260 _ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h.  */
6264 $ac_includes_default
6265 int
6266 main ()
6267 {
6268 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6269 test_array [0] = 0
6270
6271   ;
6272   return 0;
6273 }
6274 _ACEOF
6275 rm -f conftest.$ac_objext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6277   (eval $ac_compile) 2>conftest.er1
6278   ac_status=$?
6279   grep -v '^ *+' conftest.er1 >conftest.err
6280   rm -f conftest.er1
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
6287   (eval $ac_try) 2>&5
6288   ac_status=$?
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
6293   (eval $ac_try) 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; }; then
6297   ac_hi=$ac_mid; break
6298 else
6299   echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302 ac_lo=`expr $ac_mid + 1`
6303                     if test $ac_lo -le $ac_mid; then
6304                       ac_lo= ac_hi=
6305                       break
6306                     fi
6307                     ac_mid=`expr 2 '*' $ac_mid + 1`
6308 fi
6309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310   done
6311 else
6312   echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6314
6315 cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321 $ac_includes_default
6322 int
6323 main ()
6324 {
6325 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6326 test_array [0] = 0
6327
6328   ;
6329   return 0;
6330 }
6331 _ACEOF
6332 rm -f conftest.$ac_objext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6334   (eval $ac_compile) 2>conftest.er1
6335   ac_status=$?
6336   grep -v '^ *+' conftest.er1 >conftest.err
6337   rm -f conftest.er1
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
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
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
6350   (eval $ac_try) 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; }; then
6354   ac_hi=-1 ac_mid=-1
6355   while :; do
6356     cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h.  */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h.  */
6362 $ac_includes_default
6363 int
6364 main ()
6365 {
6366 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6367 test_array [0] = 0
6368
6369   ;
6370   return 0;
6371 }
6372 _ACEOF
6373 rm -f conftest.$ac_objext
6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375   (eval $ac_compile) 2>conftest.er1
6376   ac_status=$?
6377   grep -v '^ *+' conftest.er1 >conftest.err
6378   rm -f conftest.er1
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
6385   (eval $ac_try) 2>&5
6386   ac_status=$?
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
6391   (eval $ac_try) 2>&5
6392   ac_status=$?
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); }; }; then
6395   ac_lo=$ac_mid; break
6396 else
6397   echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400 ac_hi=`expr '(' $ac_mid ')' - 1`
6401                        if test $ac_mid -le $ac_hi; then
6402                          ac_lo= ac_hi=
6403                          break
6404                        fi
6405                        ac_mid=`expr 2 '*' $ac_mid`
6406 fi
6407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6408   done
6409 else
6410   echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413 ac_lo= ac_hi=
6414 fi
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416 fi
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
6422 /* confdefs.h.  */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h.  */
6427 $ac_includes_default
6428 int
6429 main ()
6430 {
6431 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6432 test_array [0] = 0
6433
6434   ;
6435   return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440   (eval $ac_compile) 2>conftest.er1
6441   ac_status=$?
6442   grep -v '^ *+' conftest.er1 >conftest.err
6443   rm -f conftest.er1
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
6450   (eval $ac_try) 2>&5
6451   ac_status=$?
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
6456   (eval $ac_try) 2>&5
6457   ac_status=$?
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); }; }; then
6460   ac_hi=$ac_mid
6461 else
6462   echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6464
6465 ac_lo=`expr '(' $ac_mid ')' + 1`
6466 fi
6467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6468 done
6469 case $ac_lo in
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; }; } ;;
6476 esac
6477 else
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; }; }
6484 else
6485   cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h.  */
6487 _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)); }
6494 #include <stdio.h>
6495 #include <stdlib.h>
6496 int
6497 main ()
6498 {
6499
6500   FILE *f = fopen ("conftest.val", "w");
6501   if (! f)
6502     exit (1);
6503   if (((long) (sizeof (char))) < 0)
6504     {
6505       long i = longval ();
6506       if (i != ((long) (sizeof (char))))
6507         exit (1);
6508       fprintf (f, "%ld\n", i);
6509     }
6510   else
6511     {
6512       unsigned long i = ulongval ();
6513       if (i != ((long) (sizeof (char))))
6514         exit (1);
6515       fprintf (f, "%lu\n", i);
6516     }
6517   exit (ferror (f) || fclose (f) != 0);
6518
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 rm -f conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525   (eval $ac_link) 2>&5
6526   ac_status=$?
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
6530   (eval $ac_try) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); }; }; then
6534   ac_cv_sizeof_char=`cat conftest.val`
6535 else
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
6539
6540 ( exit $ac_status )
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; }; }
6546 fi
6547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 fi
6550 rm -f conftest.val
6551 else
6552   ac_cv_sizeof_char=0
6553 fi
6554 fi
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
6559 _ACEOF
6560
6561
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
6566 else
6567   cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h.  */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h.  */
6573 $ac_includes_default
6574 int
6575 main ()
6576 {
6577 if ((short *) 0)
6578   return 0;
6579 if (sizeof (short))
6580   return 0;
6581   ;
6582   return 0;
6583 }
6584 _ACEOF
6585 rm -f conftest.$ac_objext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6587   (eval $ac_compile) 2>conftest.er1
6588   ac_status=$?
6589   grep -v '^ *+' conftest.er1 >conftest.err
6590   rm -f conftest.er1
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
6597   (eval $ac_try) 2>&5
6598   ac_status=$?
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
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; }; then
6607   ac_cv_type_short=yes
6608 else
6609   echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6611
6612 ac_cv_type_short=no
6613 fi
6614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6615 fi
6616 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6617 echo "${ECHO_T}$ac_cv_type_short" >&6
6618
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
6623 else
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
6632 /* confdefs.h.  */
6633 _ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h.  */
6637 $ac_includes_default
6638 int
6639 main ()
6640 {
6641 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6642 test_array [0] = 0
6643
6644   ;
6645   return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650   (eval $ac_compile) 2>conftest.er1
6651   ac_status=$?
6652   grep -v '^ *+' conftest.er1 >conftest.err
6653   rm -f conftest.er1
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
6660   (eval $ac_try) 2>&5
6661   ac_status=$?
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
6666   (eval $ac_try) 2>&5
6667   ac_status=$?
6668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669   (exit $ac_status); }; }; then
6670   ac_lo=0 ac_mid=0
6671   while :; do
6672     cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h.  */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h.  */
6678 $ac_includes_default
6679 int
6680 main ()
6681 {
6682 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6683 test_array [0] = 0
6684
6685   ;
6686   return 0;
6687 }
6688 _ACEOF
6689 rm -f conftest.$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691   (eval $ac_compile) 2>conftest.er1
6692   ac_status=$?
6693   grep -v '^ *+' conftest.er1 >conftest.err
6694   rm -f conftest.er1
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
6701   (eval $ac_try) 2>&5
6702   ac_status=$?
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
6707   (eval $ac_try) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; }; then
6711   ac_hi=$ac_mid; break
6712 else
6713   echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6715
6716 ac_lo=`expr $ac_mid + 1`
6717                     if test $ac_lo -le $ac_mid; then
6718                       ac_lo= ac_hi=
6719                       break
6720                     fi
6721                     ac_mid=`expr 2 '*' $ac_mid + 1`
6722 fi
6723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6724   done
6725 else
6726   echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729 cat >conftest.$ac_ext <<_ACEOF
6730 /* confdefs.h.  */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h.  */
6735 $ac_includes_default
6736 int
6737 main ()
6738 {
6739 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6740 test_array [0] = 0
6741
6742   ;
6743   return 0;
6744 }
6745 _ACEOF
6746 rm -f conftest.$ac_objext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6748   (eval $ac_compile) 2>conftest.er1
6749   ac_status=$?
6750   grep -v '^ *+' conftest.er1 >conftest.err
6751   rm -f conftest.er1
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
6758   (eval $ac_try) 2>&5
6759   ac_status=$?
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
6764   (eval $ac_try) 2>&5
6765   ac_status=$?
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); }; }; then
6768   ac_hi=-1 ac_mid=-1
6769   while :; do
6770     cat >conftest.$ac_ext <<_ACEOF
6771 /* confdefs.h.  */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h.  */
6776 $ac_includes_default
6777 int
6778 main ()
6779 {
6780 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6781 test_array [0] = 0
6782
6783   ;
6784   return 0;
6785 }
6786 _ACEOF
6787 rm -f conftest.$ac_objext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6789   (eval $ac_compile) 2>conftest.er1
6790   ac_status=$?
6791   grep -v '^ *+' conftest.er1 >conftest.err
6792   rm -f conftest.er1
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
6799   (eval $ac_try) 2>&5
6800   ac_status=$?
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
6805   (eval $ac_try) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); }; }; then
6809   ac_lo=$ac_mid; break
6810 else
6811   echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 ac_hi=`expr '(' $ac_mid ')' - 1`
6815                        if test $ac_mid -le $ac_hi; then
6816                          ac_lo= ac_hi=
6817                          break
6818                        fi
6819                        ac_mid=`expr 2 '*' $ac_mid`
6820 fi
6821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6822   done
6823 else
6824   echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 ac_lo= ac_hi=
6828 fi
6829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6830 fi
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
6836 /* confdefs.h.  */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h.  */
6841 $ac_includes_default
6842 int
6843 main ()
6844 {
6845 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6846 test_array [0] = 0
6847
6848   ;
6849   return 0;
6850 }
6851 _ACEOF
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854   (eval $ac_compile) 2>conftest.er1
6855   ac_status=$?
6856   grep -v '^ *+' conftest.er1 >conftest.err
6857   rm -f conftest.er1
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
6864   (eval $ac_try) 2>&5
6865   ac_status=$?
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
6870   (eval $ac_try) 2>&5
6871   ac_status=$?
6872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); }; }; then
6874   ac_hi=$ac_mid
6875 else
6876   echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6878
6879 ac_lo=`expr '(' $ac_mid ')' + 1`
6880 fi
6881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6882 done
6883 case $ac_lo in
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; }; } ;;
6890 esac
6891 else
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; }; }
6898 else
6899   cat >conftest.$ac_ext <<_ACEOF
6900 /* confdefs.h.  */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h.  */
6905 $ac_includes_default
6906 long longval () { return (long) (sizeof (short)); }
6907 unsigned long ulongval () { return (long) (sizeof (short)); }
6908 #include <stdio.h>
6909 #include <stdlib.h>
6910 int
6911 main ()
6912 {
6913
6914   FILE *f = fopen ("conftest.val", "w");
6915   if (! f)
6916     exit (1);
6917   if (((long) (sizeof (short))) < 0)
6918     {
6919       long i = longval ();
6920       if (i != ((long) (sizeof (short))))
6921         exit (1);
6922       fprintf (f, "%ld\n", i);
6923     }
6924   else
6925     {
6926       unsigned long i = ulongval ();
6927       if (i != ((long) (sizeof (short))))
6928         exit (1);
6929       fprintf (f, "%lu\n", i);
6930     }
6931   exit (ferror (f) || fclose (f) != 0);
6932
6933   ;
6934   return 0;
6935 }
6936 _ACEOF
6937 rm -f conftest$ac_exeext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6939   (eval $ac_link) 2>&5
6940   ac_status=$?
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
6944   (eval $ac_try) 2>&5
6945   ac_status=$?
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); }; }; then
6948   ac_cv_sizeof_short=`cat conftest.val`
6949 else
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
6953
6954 ( exit $ac_status )
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; }; }
6960 fi
6961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6962 fi
6963 fi
6964 rm -f conftest.val
6965 else
6966   ac_cv_sizeof_short=0
6967 fi
6968 fi
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
6973 _ACEOF
6974
6975
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
6980 else
6981   cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h.  */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h.  */
6987 $ac_includes_default
6988 int
6989 main ()
6990 {
6991 if ((int *) 0)
6992   return 0;
6993 if (sizeof (int))
6994   return 0;
6995   ;
6996   return 0;
6997 }
6998 _ACEOF
6999 rm -f conftest.$ac_objext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001   (eval $ac_compile) 2>conftest.er1
7002   ac_status=$?
7003   grep -v '^ *+' conftest.er1 >conftest.err
7004   rm -f conftest.er1
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
7011   (eval $ac_try) 2>&5
7012   ac_status=$?
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
7017   (eval $ac_try) 2>&5
7018   ac_status=$?
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); }; }; then
7021   ac_cv_type_int=yes
7022 else
7023   echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7025
7026 ac_cv_type_int=no
7027 fi
7028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029 fi
7030 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7031 echo "${ECHO_T}$ac_cv_type_int" >&6
7032
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
7037 else
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
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051 $ac_includes_default
7052 int
7053 main ()
7054 {
7055 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7056 test_array [0] = 0
7057
7058   ;
7059   return 0;
7060 }
7061 _ACEOF
7062 rm -f conftest.$ac_objext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064   (eval $ac_compile) 2>conftest.er1
7065   ac_status=$?
7066   grep -v '^ *+' conftest.er1 >conftest.err
7067   rm -f conftest.er1
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
7074   (eval $ac_try) 2>&5
7075   ac_status=$?
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
7080   (eval $ac_try) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); }; }; then
7084   ac_lo=0 ac_mid=0
7085   while :; do
7086     cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h.  */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h.  */
7092 $ac_includes_default
7093 int
7094 main ()
7095 {
7096 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7097 test_array [0] = 0
7098
7099   ;
7100   return 0;
7101 }
7102 _ACEOF
7103 rm -f conftest.$ac_objext
7104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7105   (eval $ac_compile) 2>conftest.er1
7106   ac_status=$?
7107   grep -v '^ *+' conftest.er1 >conftest.err
7108   rm -f conftest.er1
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
7115   (eval $ac_try) 2>&5
7116   ac_status=$?
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
7121   (eval $ac_try) 2>&5
7122   ac_status=$?
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); }; }; then
7125   ac_hi=$ac_mid; break
7126 else
7127   echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ac_lo=`expr $ac_mid + 1`
7131                     if test $ac_lo -le $ac_mid; then
7132                       ac_lo= ac_hi=
7133                       break
7134                     fi
7135                     ac_mid=`expr 2 '*' $ac_mid + 1`
7136 fi
7137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7138   done
7139 else
7140   echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7142
7143 cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 $ac_includes_default
7150 int
7151 main ()
7152 {
7153 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7154 test_array [0] = 0
7155
7156   ;
7157   return 0;
7158 }
7159 _ACEOF
7160 rm -f conftest.$ac_objext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162   (eval $ac_compile) 2>conftest.er1
7163   ac_status=$?
7164   grep -v '^ *+' conftest.er1 >conftest.err
7165   rm -f conftest.er1
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
7172   (eval $ac_try) 2>&5
7173   ac_status=$?
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
7178   (eval $ac_try) 2>&5
7179   ac_status=$?
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); }; }; then
7182   ac_hi=-1 ac_mid=-1
7183   while :; do
7184     cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h.  */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h.  */
7190 $ac_includes_default
7191 int
7192 main ()
7193 {
7194 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7195 test_array [0] = 0
7196
7197   ;
7198   return 0;
7199 }
7200 _ACEOF
7201 rm -f conftest.$ac_objext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7203   (eval $ac_compile) 2>conftest.er1
7204   ac_status=$?
7205   grep -v '^ *+' conftest.er1 >conftest.err
7206   rm -f conftest.er1
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
7213   (eval $ac_try) 2>&5
7214   ac_status=$?
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
7219   (eval $ac_try) 2>&5
7220   ac_status=$?
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); }; }; then
7223   ac_lo=$ac_mid; break
7224 else
7225   echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228 ac_hi=`expr '(' $ac_mid ')' - 1`
7229                        if test $ac_mid -le $ac_hi; then
7230                          ac_lo= ac_hi=
7231                          break
7232                        fi
7233                        ac_mid=`expr 2 '*' $ac_mid`
7234 fi
7235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7236   done
7237 else
7238   echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7240
7241 ac_lo= ac_hi=
7242 fi
7243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7244 fi
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
7250 /* confdefs.h.  */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h.  */
7255 $ac_includes_default
7256 int
7257 main ()
7258 {
7259 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7260 test_array [0] = 0
7261
7262   ;
7263   return 0;
7264 }
7265 _ACEOF
7266 rm -f conftest.$ac_objext
7267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268   (eval $ac_compile) 2>conftest.er1
7269   ac_status=$?
7270   grep -v '^ *+' conftest.er1 >conftest.err
7271   rm -f conftest.er1
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
7278   (eval $ac_try) 2>&5
7279   ac_status=$?
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
7284   (eval $ac_try) 2>&5
7285   ac_status=$?
7286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287   (exit $ac_status); }; }; then
7288   ac_hi=$ac_mid
7289 else
7290   echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7292
7293 ac_lo=`expr '(' $ac_mid ')' + 1`
7294 fi
7295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7296 done
7297 case $ac_lo in
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; }; } ;;
7304 esac
7305 else
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; }; }
7312 else
7313   cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h.  */
7315 _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)); }
7322 #include <stdio.h>
7323 #include <stdlib.h>
7324 int
7325 main ()
7326 {
7327
7328   FILE *f = fopen ("conftest.val", "w");
7329   if (! f)
7330     exit (1);
7331   if (((long) (sizeof (int))) < 0)
7332     {
7333       long i = longval ();
7334       if (i != ((long) (sizeof (int))))
7335         exit (1);
7336       fprintf (f, "%ld\n", i);
7337     }
7338   else
7339     {
7340       unsigned long i = ulongval ();
7341       if (i != ((long) (sizeof (int))))
7342         exit (1);
7343       fprintf (f, "%lu\n", i);
7344     }
7345   exit (ferror (f) || fclose (f) != 0);
7346
7347   ;
7348   return 0;
7349 }
7350 _ACEOF
7351 rm -f conftest$ac_exeext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353   (eval $ac_link) 2>&5
7354   ac_status=$?
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
7358   (eval $ac_try) 2>&5
7359   ac_status=$?
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); }; }; then
7362   ac_cv_sizeof_int=`cat conftest.val`
7363 else
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
7367
7368 ( exit $ac_status )
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; }; }
7374 fi
7375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7376 fi
7377 fi
7378 rm -f conftest.val
7379 else
7380   ac_cv_sizeof_int=0
7381 fi
7382 fi
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
7387 _ACEOF
7388
7389
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
7394 else
7395   cat >conftest.$ac_ext <<_ACEOF
7396 /* confdefs.h.  */
7397 _ACEOF
7398 cat confdefs.h >>conftest.$ac_ext
7399 cat >>conftest.$ac_ext <<_ACEOF
7400 /* end confdefs.h.  */
7401 $ac_includes_default
7402 int
7403 main ()
7404 {
7405 if ((long *) 0)
7406   return 0;
7407 if (sizeof (long))
7408   return 0;
7409   ;
7410   return 0;
7411 }
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415   (eval $ac_compile) 2>conftest.er1
7416   ac_status=$?
7417   grep -v '^ *+' conftest.er1 >conftest.err
7418   rm -f conftest.er1
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
7425   (eval $ac_try) 2>&5
7426   ac_status=$?
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
7431   (eval $ac_try) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); }; }; then
7435   ac_cv_type_long=yes
7436 else
7437   echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 ac_cv_type_long=no
7441 fi
7442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7443 fi
7444 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7445 echo "${ECHO_T}$ac_cv_type_long" >&6
7446
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
7451 else
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
7460 /* confdefs.h.  */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h.  */
7465 $ac_includes_default
7466 int
7467 main ()
7468 {
7469 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7470 test_array [0] = 0
7471
7472   ;
7473   return 0;
7474 }
7475 _ACEOF
7476 rm -f conftest.$ac_objext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478   (eval $ac_compile) 2>conftest.er1
7479   ac_status=$?
7480   grep -v '^ *+' conftest.er1 >conftest.err
7481   rm -f conftest.er1
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
7488   (eval $ac_try) 2>&5
7489   ac_status=$?
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
7494   (eval $ac_try) 2>&5
7495   ac_status=$?
7496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497   (exit $ac_status); }; }; then
7498   ac_lo=0 ac_mid=0
7499   while :; do
7500     cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506 $ac_includes_default
7507 int
7508 main ()
7509 {
7510 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7511 test_array [0] = 0
7512
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519   (eval $ac_compile) 2>conftest.er1
7520   ac_status=$?
7521   grep -v '^ *+' conftest.er1 >conftest.err
7522   rm -f conftest.er1
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
7529   (eval $ac_try) 2>&5
7530   ac_status=$?
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
7535   (eval $ac_try) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); }; }; then
7539   ac_hi=$ac_mid; break
7540 else
7541   echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7543
7544 ac_lo=`expr $ac_mid + 1`
7545                     if test $ac_lo -le $ac_mid; then
7546                       ac_lo= ac_hi=
7547                       break
7548                     fi
7549                     ac_mid=`expr 2 '*' $ac_mid + 1`
7550 fi
7551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7552   done
7553 else
7554   echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7556
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h.  */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h.  */
7563 $ac_includes_default
7564 int
7565 main ()
7566 {
7567 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7568 test_array [0] = 0
7569
7570   ;
7571   return 0;
7572 }
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7576   (eval $ac_compile) 2>conftest.er1
7577   ac_status=$?
7578   grep -v '^ *+' conftest.er1 >conftest.err
7579   rm -f conftest.er1
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
7586   (eval $ac_try) 2>&5
7587   ac_status=$?
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
7592   (eval $ac_try) 2>&5
7593   ac_status=$?
7594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595   (exit $ac_status); }; }; then
7596   ac_hi=-1 ac_mid=-1
7597   while :; do
7598     cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h.  */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h.  */
7604 $ac_includes_default
7605 int
7606 main ()
7607 {
7608 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7609 test_array [0] = 0
7610
7611   ;
7612   return 0;
7613 }
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7617   (eval $ac_compile) 2>conftest.er1
7618   ac_status=$?
7619   grep -v '^ *+' conftest.er1 >conftest.err
7620   rm -f conftest.er1
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
7627   (eval $ac_try) 2>&5
7628   ac_status=$?
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
7633   (eval $ac_try) 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; }; then
7637   ac_lo=$ac_mid; break
7638 else
7639   echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7641
7642 ac_hi=`expr '(' $ac_mid ')' - 1`
7643                        if test $ac_mid -le $ac_hi; then
7644                          ac_lo= ac_hi=
7645                          break
7646                        fi
7647                        ac_mid=`expr 2 '*' $ac_mid`
7648 fi
7649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7650   done
7651 else
7652   echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7654
7655 ac_lo= ac_hi=
7656 fi
7657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7658 fi
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
7664 /* confdefs.h.  */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h.  */
7669 $ac_includes_default
7670 int
7671 main ()
7672 {
7673 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7674 test_array [0] = 0
7675
7676   ;
7677   return 0;
7678 }
7679 _ACEOF
7680 rm -f conftest.$ac_objext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7682   (eval $ac_compile) 2>conftest.er1
7683   ac_status=$?
7684   grep -v '^ *+' conftest.er1 >conftest.err
7685   rm -f conftest.er1
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
7692   (eval $ac_try) 2>&5
7693   ac_status=$?
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
7698   (eval $ac_try) 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; }; then
7702   ac_hi=$ac_mid
7703 else
7704   echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707 ac_lo=`expr '(' $ac_mid ')' + 1`
7708 fi
7709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7710 done
7711 case $ac_lo in
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; }; } ;;
7718 esac
7719 else
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; }; }
7726 else
7727   cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h.  */
7729 _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)); }
7736 #include <stdio.h>
7737 #include <stdlib.h>
7738 int
7739 main ()
7740 {
7741
7742   FILE *f = fopen ("conftest.val", "w");
7743   if (! f)
7744     exit (1);
7745   if (((long) (sizeof (long))) < 0)
7746     {
7747       long i = longval ();
7748       if (i != ((long) (sizeof (long))))
7749         exit (1);
7750       fprintf (f, "%ld\n", i);
7751     }
7752   else
7753     {
7754       unsigned long i = ulongval ();
7755       if (i != ((long) (sizeof (long))))
7756         exit (1);
7757       fprintf (f, "%lu\n", i);
7758     }
7759   exit (ferror (f) || fclose (f) != 0);
7760
7761   ;
7762   return 0;
7763 }
7764 _ACEOF
7765 rm -f conftest$ac_exeext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767   (eval $ac_link) 2>&5
7768   ac_status=$?
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
7772   (eval $ac_try) 2>&5
7773   ac_status=$?
7774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775   (exit $ac_status); }; }; then
7776   ac_cv_sizeof_long=`cat conftest.val`
7777 else
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
7781
7782 ( exit $ac_status )
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; }; }
7788 fi
7789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7790 fi
7791 fi
7792 rm -f conftest.val
7793 else
7794   ac_cv_sizeof_long=0
7795 fi
7796 fi
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
7801 _ACEOF
7802
7803
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
7808 else
7809   cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h.  */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h.  */
7815 $ac_includes_default
7816 int
7817 main ()
7818 {
7819 if ((void* *) 0)
7820   return 0;
7821 if (sizeof (void*))
7822   return 0;
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829   (eval $ac_compile) 2>conftest.er1
7830   ac_status=$?
7831   grep -v '^ *+' conftest.er1 >conftest.err
7832   rm -f conftest.er1
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
7839   (eval $ac_try) 2>&5
7840   ac_status=$?
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
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; }; then
7849   ac_cv_type_voidp=yes
7850 else
7851   echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854 ac_cv_type_voidp=no
7855 fi
7856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7857 fi
7858 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7859 echo "${ECHO_T}$ac_cv_type_voidp" >&6
7860
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
7865 else
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
7874 /* confdefs.h.  */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h.  */
7879 $ac_includes_default
7880 int
7881 main ()
7882 {
7883 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
7884 test_array [0] = 0
7885
7886   ;
7887   return 0;
7888 }
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892   (eval $ac_compile) 2>conftest.er1
7893   ac_status=$?
7894   grep -v '^ *+' conftest.er1 >conftest.err
7895   rm -f conftest.er1
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
7902   (eval $ac_try) 2>&5
7903   ac_status=$?
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
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; }; then
7912   ac_lo=0 ac_mid=0
7913   while :; do
7914     cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h.  */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h.  */
7920 $ac_includes_default
7921 int
7922 main ()
7923 {
7924 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
7925 test_array [0] = 0
7926
7927   ;
7928   return 0;
7929 }
7930 _ACEOF
7931 rm -f conftest.$ac_objext
7932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7933   (eval $ac_compile) 2>conftest.er1
7934   ac_status=$?
7935   grep -v '^ *+' conftest.er1 >conftest.err
7936   rm -f conftest.er1
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
7943   (eval $ac_try) 2>&5
7944   ac_status=$?
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
7949   (eval $ac_try) 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); }; }; then
7953   ac_hi=$ac_mid; break
7954 else
7955   echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7957
7958 ac_lo=`expr $ac_mid + 1`
7959                     if test $ac_lo -le $ac_mid; then
7960                       ac_lo= ac_hi=
7961                       break
7962                     fi
7963                     ac_mid=`expr 2 '*' $ac_mid + 1`
7964 fi
7965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7966   done
7967 else
7968   echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h.  */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h.  */
7977 $ac_includes_default
7978 int
7979 main ()
7980 {
7981 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
7982 test_array [0] = 0
7983
7984   ;
7985   return 0;
7986 }
7987 _ACEOF
7988 rm -f conftest.$ac_objext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7990   (eval $ac_compile) 2>conftest.er1
7991   ac_status=$?
7992   grep -v '^ *+' conftest.er1 >conftest.err
7993   rm -f conftest.er1
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
8000   (eval $ac_try) 2>&5
8001   ac_status=$?
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
8006   (eval $ac_try) 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); }; }; then
8010   ac_hi=-1 ac_mid=-1
8011   while :; do
8012     cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h.  */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h.  */
8018 $ac_includes_default
8019 int
8020 main ()
8021 {
8022 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
8023 test_array [0] = 0
8024
8025   ;
8026   return 0;
8027 }
8028 _ACEOF
8029 rm -f conftest.$ac_objext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8031   (eval $ac_compile) 2>conftest.er1
8032   ac_status=$?
8033   grep -v '^ *+' conftest.er1 >conftest.err
8034   rm -f conftest.er1
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
8041   (eval $ac_try) 2>&5
8042   ac_status=$?
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
8047   (eval $ac_try) 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); }; }; then
8051   ac_lo=$ac_mid; break
8052 else
8053   echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8055
8056 ac_hi=`expr '(' $ac_mid ')' - 1`
8057                        if test $ac_mid -le $ac_hi; then
8058                          ac_lo= ac_hi=
8059                          break
8060                        fi
8061                        ac_mid=`expr 2 '*' $ac_mid`
8062 fi
8063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8064   done
8065 else
8066   echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8068
8069 ac_lo= ac_hi=
8070 fi
8071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8072 fi
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
8078 /* confdefs.h.  */
8079 _ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h.  */
8083 $ac_includes_default
8084 int
8085 main ()
8086 {
8087 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
8088 test_array [0] = 0
8089
8090   ;
8091   return 0;
8092 }
8093 _ACEOF
8094 rm -f conftest.$ac_objext
8095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8096   (eval $ac_compile) 2>conftest.er1
8097   ac_status=$?
8098   grep -v '^ *+' conftest.er1 >conftest.err
8099   rm -f conftest.er1
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
8106   (eval $ac_try) 2>&5
8107   ac_status=$?
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
8112   (eval $ac_try) 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); }; }; then
8116   ac_hi=$ac_mid
8117 else
8118   echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8120
8121 ac_lo=`expr '(' $ac_mid ')' + 1`
8122 fi
8123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8124 done
8125 case $ac_lo in
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; }; } ;;
8132 esac
8133 else
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; }; }
8140 else
8141   cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h.  */
8143 _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*)); }
8150 #include <stdio.h>
8151 #include <stdlib.h>
8152 int
8153 main ()
8154 {
8155
8156   FILE *f = fopen ("conftest.val", "w");
8157   if (! f)
8158     exit (1);
8159   if (((long) (sizeof (void*))) < 0)
8160     {
8161       long i = longval ();
8162       if (i != ((long) (sizeof (void*))))
8163         exit (1);
8164       fprintf (f, "%ld\n", i);
8165     }
8166   else
8167     {
8168       unsigned long i = ulongval ();
8169       if (i != ((long) (sizeof (void*))))
8170         exit (1);
8171       fprintf (f, "%lu\n", i);
8172     }
8173   exit (ferror (f) || fclose (f) != 0);
8174
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest$ac_exeext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181   (eval $ac_link) 2>&5
8182   ac_status=$?
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
8186   (eval $ac_try) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   ac_cv_sizeof_voidp=`cat conftest.val`
8191 else
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
8195
8196 ( exit $ac_status )
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; }; }
8202 fi
8203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8204 fi
8205 fi
8206 rm -f conftest.val
8207 else
8208   ac_cv_sizeof_voidp=0
8209 fi
8210 fi
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
8215 _ACEOF
8216
8217
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" ;;
8246    esac
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
8249
8250 fi
8251
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"
8258 else
8259    ac_cv_header_stdint="stddef.h"
8260 fi
8261
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
8272 else
8273   cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279 #include <$ac_cv_header_stdint>
8280
8281 int
8282 main ()
8283 {
8284 if ((int_least32_t *) 0)
8285   return 0;
8286 if (sizeof (int_least32_t))
8287   return 0;
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294   (eval $ac_compile) 2>conftest.er1
8295   ac_status=$?
8296   grep -v '^ *+' conftest.er1 >conftest.err
8297   rm -f conftest.er1
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
8304   (eval $ac_try) 2>&5
8305   ac_status=$?
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
8310   (eval $ac_try) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; }; then
8314   ac_cv_type_int_least32_t=yes
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319 ac_cv_type_int_least32_t=no
8320 fi
8321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8322 fi
8323 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
8324 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
8325
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
8330 else
8331   cat >conftest.$ac_ext <<_ACEOF
8332 /* confdefs.h.  */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h.  */
8337 #include<$ac_cv_header_stdint>
8338
8339 int
8340 main ()
8341 {
8342 if ((int_fast32_t *) 0)
8343   return 0;
8344 if (sizeof (int_fast32_t))
8345   return 0;
8346   ;
8347   return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352   (eval $ac_compile) 2>conftest.er1
8353   ac_status=$?
8354   grep -v '^ *+' conftest.er1 >conftest.err
8355   rm -f conftest.er1
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
8362   (eval $ac_try) 2>&5
8363   ac_status=$?
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
8368   (eval $ac_try) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; }; then
8372   ac_cv_type_int_fast32_t=yes
8373 else
8374   echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8376
8377 ac_cv_type_int_fast32_t=no
8378 fi
8379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8380 fi
8381 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
8382 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
8383
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
8388 else
8389   cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h.  */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h.  */
8395 #include <$ac_cv_header_stdint>
8396
8397 int
8398 main ()
8399 {
8400 if ((intmax_t *) 0)
8401   return 0;
8402 if (sizeof (intmax_t))
8403   return 0;
8404   ;
8405   return 0;
8406 }
8407 _ACEOF
8408 rm -f conftest.$ac_objext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410   (eval $ac_compile) 2>conftest.er1
8411   ac_status=$?
8412   grep -v '^ *+' conftest.er1 >conftest.err
8413   rm -f conftest.er1
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
8420   (eval $ac_try) 2>&5
8421   ac_status=$?
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
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; }; then
8430   ac_cv_type_intmax_t=yes
8431 else
8432   echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435 ac_cv_type_intmax_t=no
8436 fi
8437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
8440 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
8441
8442
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`
8447 else
8448 ac_cv_stdint_message="using $CC"
8449 fi
8450
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
8453
8454 # ----------------- DONE inttypes.h checks START header -------------
8455           ac_config_commands="$ac_config_commands $ac_stdint_h"
8456
8457
8458
8459
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
8464 else
8465
8466
8467   if test -z "$ac_cv_accept_arg" ; then
8468
8469
8470     ac_ext=cc
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
8475
8476
8477     cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h.  */
8479 _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>
8485 int
8486 main ()
8487 {
8488 socklen_t length;
8489        accept( 0, 0, &length );
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496   (eval $ac_compile) 2>conftest.er1
8497   ac_status=$?
8498   grep -v '^ *+' conftest.er1 >conftest.err
8499   rm -f conftest.er1
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
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
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
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; }; then
8516   ac_cv_accept_arg=socklen_t
8517 else
8518   echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 fi
8522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8523
8524     ac_ext=c
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
8529
8530   fi
8531
8532
8533
8534   if test -z "$ac_cv_accept_arg" ; then
8535
8536
8537     ac_ext=cc
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
8542
8543
8544     cat >conftest.$ac_ext <<_ACEOF
8545 /* confdefs.h.  */
8546 _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>
8552 int
8553 main ()
8554 {
8555 int length;
8556        accept( 0, 0, &length );
8557   ;
8558   return 0;
8559 }
8560 _ACEOF
8561 rm -f conftest.$ac_objext
8562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8563   (eval $ac_compile) 2>conftest.er1
8564   ac_status=$?
8565   grep -v '^ *+' conftest.er1 >conftest.err
8566   rm -f conftest.er1
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
8573   (eval $ac_try) 2>&5
8574   ac_status=$?
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
8579   (eval $ac_try) 2>&5
8580   ac_status=$?
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); }; }; then
8583   ac_cv_accept_arg=int
8584 else
8585   echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 fi
8589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8590
8591     ac_ext=c
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
8596
8597   fi
8598
8599
8600
8601   if test -z "$ac_cv_accept_arg" ; then
8602
8603
8604     ac_ext=cc
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
8609
8610
8611     cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h.  */
8613 _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>
8619 int
8620 main ()
8621 {
8622 size_t length;
8623        accept( 0, 0, &length );
8624   ;
8625   return 0;
8626 }
8627 _ACEOF
8628 rm -f conftest.$ac_objext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8630   (eval $ac_compile) 2>conftest.er1
8631   ac_status=$?
8632   grep -v '^ *+' conftest.er1 >conftest.err
8633   rm -f conftest.er1
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
8640   (eval $ac_try) 2>&5
8641   ac_status=$?
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
8646   (eval $ac_try) 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; }; then
8650   ac_cv_accept_arg=size_t
8651 else
8652   echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8654
8655 fi
8656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8657
8658     ac_ext=c
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
8663
8664   fi
8665
8666
8667
8668   if test -z "$ac_cv_accept_arg" ; then
8669
8670
8671     ac_ext=cc
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
8676
8677
8678     cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _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>
8686 int
8687 main ()
8688 {
8689 short length;
8690        accept( 0, 0, &length );
8691   ;
8692   return 0;
8693 }
8694 _ACEOF
8695 rm -f conftest.$ac_objext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8697   (eval $ac_compile) 2>conftest.er1
8698   ac_status=$?
8699   grep -v '^ *+' conftest.er1 >conftest.err
8700   rm -f conftest.er1
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
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
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
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; }; then
8717   ac_cv_accept_arg=short
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 fi
8723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8724
8725     ac_ext=c
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
8730
8731   fi
8732
8733
8734
8735   if test -z "$ac_cv_accept_arg" ; then
8736
8737
8738     ac_ext=cc
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
8743
8744
8745     cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h.  */
8747 _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>
8753 int
8754 main ()
8755 {
8756 long length;
8757        accept( 0, 0, &length );
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764   (eval $ac_compile) 2>conftest.er1
8765   ac_status=$?
8766   grep -v '^ *+' conftest.er1 >conftest.err
8767   rm -f conftest.er1
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
8774   (eval $ac_try) 2>&5
8775   ac_status=$?
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
8780   (eval $ac_try) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); }; }; then
8784   ac_cv_accept_arg=long
8785 else
8786   echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789 fi
8790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791
8792     ac_ext=c
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
8797
8798   fi
8799
8800
8801 fi
8802 echo "$as_me:$LINENO: result: $ac_cv_accept_arg" >&5
8803 echo "${ECHO_T}$ac_cv_accept_arg" >&6
8804
8805 if test -z "$ac_cv_accept_arg" ; then
8806   ac_cv_accept_arg=int
8807 fi
8808
8809
8810 cat >>confdefs.h <<_ACEOF
8811 #define Socklen_t $ac_cv_accept_arg
8812 _ACEOF
8813
8814
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
8819 else
8820   cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826 $ac_includes_default
8827 int
8828 main ()
8829 {
8830 if ((pid_t *) 0)
8831   return 0;
8832 if (sizeof (pid_t))
8833   return 0;
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8840   (eval $ac_compile) 2>conftest.er1
8841   ac_status=$?
8842   grep -v '^ *+' conftest.er1 >conftest.err
8843   rm -f conftest.er1
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
8850   (eval $ac_try) 2>&5
8851   ac_status=$?
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
8856   (eval $ac_try) 2>&5
8857   ac_status=$?
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); }; }; then
8860   ac_cv_type_pid_t=yes
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865 ac_cv_type_pid_t=no
8866 fi
8867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8868 fi
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
8872   :
8873 else
8874
8875 cat >>confdefs.h <<_ACEOF
8876 #define pid_t int
8877 _ACEOF
8878
8879 fi
8880
8881
8882
8883 for ac_header in unistd.h vfork.h
8884 do
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
8891 fi
8892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8894 else
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
8899 /* confdefs.h.  */
8900 _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>
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909   (eval $ac_compile) 2>conftest.er1
8910   ac_status=$?
8911   grep -v '^ *+' conftest.er1 >conftest.err
8912   rm -f conftest.er1
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
8919   (eval $ac_try) 2>&5
8920   ac_status=$?
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
8925   (eval $ac_try) 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); }; }; then
8929   ac_header_compiler=yes
8930 else
8931   echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934 ac_header_compiler=no
8935 fi
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
8939
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
8944 /* confdefs.h.  */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h.  */
8949 #include <$ac_header>
8950 _ACEOF
8951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8953   ac_status=$?
8954   grep -v '^ *+' conftest.er1 >conftest.err
8955   rm -f conftest.er1
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
8962   else
8963     ac_cpp_err=
8964   fi
8965 else
8966   ac_cpp_err=yes
8967 fi
8968 if test -z "$ac_cpp_err"; then
8969   ac_header_preproc=yes
8970 else
8971   echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8973
8974   ac_header_preproc=no
8975 fi
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
8979
8980 # So?  What about this header?
8981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8982   yes:no: )
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
8988     ;;
8989   no: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;}
9002     (
9003       cat <<\_ASBOX
9004 ## -------------------------------- ##
9005 ## Report this to the Iperf lists.  ##
9006 ## -------------------------------- ##
9007 _ASBOX
9008     ) |
9009       sed "s/^/$as_me: WARNING:     /" >&2
9010     ;;
9011 esac
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
9016 else
9017   eval "$as_ac_Header=\$ac_header_preproc"
9018 fi
9019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9021
9022 fi
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
9026 _ACEOF
9027
9028 fi
9029
9030 done
9031
9032
9033
9034 for ac_func in fork vfork
9035 do
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
9041 else
9042   cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h.  */
9044 _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
9051
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.  */
9056
9057 #ifdef __STDC__
9058 # include <limits.h>
9059 #else
9060 # include <assert.h>
9061 #endif
9062
9063 #undef $ac_func
9064
9065 /* Override any gcc2 internal prototype to avoid an error.  */
9066 #ifdef __cplusplus
9067 extern "C"
9068 {
9069 #endif
9070 /* We use char because int might match the return type of a gcc2
9071    builtin and then its argument prototype would still apply.  */
9072 char $ac_func ();
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)
9077 choke me
9078 #else
9079 char (*f) () = $ac_func;
9080 #endif
9081 #ifdef __cplusplus
9082 }
9083 #endif
9084
9085 int
9086 main ()
9087 {
9088 return f != $ac_func;
9089   ;
9090   return 0;
9091 }
9092 _ACEOF
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
9096   ac_status=$?
9097   grep -v '^ *+' conftest.er1 >conftest.err
9098   rm -f conftest.er1
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
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
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
9111   (eval $ac_try) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); }; }; then
9115   eval "$as_ac_var=yes"
9116 else
9117   echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9119
9120 eval "$as_ac_var=no"
9121 fi
9122 rm -f conftest.err conftest.$ac_objext \
9123       conftest$ac_exeext conftest.$ac_ext
9124 fi
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
9130 _ACEOF
9131
9132 fi
9133 done
9134
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
9140 else
9141   if test "$cross_compiling" = yes; then
9142   ac_cv_func_fork_works=cross
9143 else
9144   cat >conftest.$ac_ext <<_ACEOF
9145 /* By Ruediger Kuhlmann. */
9146       #include <sys/types.h>
9147       #if HAVE_UNISTD_H
9148       # include <unistd.h>
9149       #endif
9150       /* Some systems only have a dummy stub for fork() */
9151       int main ()
9152       {
9153         if (fork() < 0)
9154           exit (1);
9155         exit (0);
9156       }
9157 _ACEOF
9158 rm -f conftest$ac_exeext
9159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9160   (eval $ac_link) 2>&5
9161   ac_status=$?
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
9165   (eval $ac_try) 2>&5
9166   ac_status=$?
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); }; }; then
9169   ac_cv_func_fork_works=yes
9170 else
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
9174
9175 ( exit $ac_status )
9176 ac_cv_func_fork_works=no
9177 fi
9178 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9179 fi
9180 fi
9181 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9182 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9183
9184 else
9185   ac_cv_func_fork_works=$ac_cv_func_fork
9186 fi
9187 if test "x$ac_cv_func_fork_works" = xcross; then
9188   case $host in
9189     *-*-amigaos* | *-*-msdosdjgpp*)
9190       # Override, as these systems have only a dummy fork() stub
9191       ac_cv_func_fork_works=no
9192       ;;
9193     *)
9194       ac_cv_func_fork_works=yes
9195       ;;
9196   esac
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;}
9199 fi
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
9206 else
9207   if test "$cross_compiling" = yes; then
9208   ac_cv_func_vfork_works=cross
9209 else
9210   cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h.  */
9212 _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.  */
9217 #include <stdio.h>
9218 #include <stdlib.h>
9219 #include <sys/types.h>
9220 #include <sys/stat.h>
9221 #include <sys/wait.h>
9222 #if HAVE_UNISTD_H
9223 # include <unistd.h>
9224 #endif
9225 #if HAVE_VFORK_H
9226 # include <vfork.h>
9227 #endif
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.  */
9234 static void
9235 #ifdef __cplusplus
9236 sparc_address_test (int arg)
9237 # else
9238 sparc_address_test (arg) int arg;
9239 #endif
9240 {
9241   static pid_t child;
9242   if (!child) {
9243     child = vfork ();
9244     if (child < 0) {
9245       perror ("vfork");
9246       _exit(2);
9247     }
9248     if (!child) {
9249       arg = getpid();
9250       write(-1, "", 0);
9251       _exit (arg);
9252     }
9253   }
9254 }
9255
9256 int
9257 main ()
9258 {
9259   pid_t parent = getpid ();
9260   pid_t child;
9261
9262   sparc_address_test (0);
9263
9264   child = vfork ();
9265
9266   if (child == 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.  */
9276     pid_t
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)
9283       _exit(1);
9284
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);
9290   } else {
9291     int status;
9292     struct stat st;
9293
9294     while (wait(&status) != child)
9295       ;
9296     exit(
9297          /* Was there some problem with vforking?  */
9298          child < 0
9299
9300          /* Did the child fail?  (This shouldn't happen.)  */
9301          || status
9302
9303          /* Did the vfork/compiler bug occur?  */
9304          || parent != getpid()
9305
9306          /* Did the file descriptor bug occur?  */
9307          || fstat(fileno(stdout), &st) != 0
9308          );
9309   }
9310 }
9311 _ACEOF
9312 rm -f conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314   (eval $ac_link) 2>&5
9315   ac_status=$?
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
9319   (eval $ac_try) 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); }; }; then
9323   ac_cv_func_vfork_works=yes
9324 else
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
9328
9329 ( exit $ac_status )
9330 ac_cv_func_vfork_works=no
9331 fi
9332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9333 fi
9334 fi
9335 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9336 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9337
9338 fi;
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;}
9343 fi
9344
9345 if test "x$ac_cv_func_vfork_works" = xyes; then
9346
9347 cat >>confdefs.h <<\_ACEOF
9348 #define HAVE_WORKING_VFORK 1
9349 _ACEOF
9350
9351 else
9352
9353 cat >>confdefs.h <<\_ACEOF
9354 #define vfork fork
9355 _ACEOF
9356
9357 fi
9358 if test "x$ac_cv_func_fork_works" = xyes; then
9359
9360 cat >>confdefs.h <<\_ACEOF
9361 #define HAVE_WORKING_FORK 1
9362 _ACEOF
9363
9364 fi
9365
9366
9367 for ac_header in stdlib.h
9368 do
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
9375 fi
9376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9378 else
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
9383 /* confdefs.h.  */
9384 _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>
9390 _ACEOF
9391 rm -f conftest.$ac_objext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9393   (eval $ac_compile) 2>conftest.er1
9394   ac_status=$?
9395   grep -v '^ *+' conftest.er1 >conftest.err
9396   rm -f conftest.er1
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
9403   (eval $ac_try) 2>&5
9404   ac_status=$?
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
9409   (eval $ac_try) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; }; then
9413   ac_header_compiler=yes
9414 else
9415   echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418 ac_header_compiler=no
9419 fi
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
9423
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
9428 /* confdefs.h.  */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h.  */
9433 #include <$ac_header>
9434 _ACEOF
9435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9436   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9437   ac_status=$?
9438   grep -v '^ *+' conftest.er1 >conftest.err
9439   rm -f conftest.er1
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
9446   else
9447     ac_cpp_err=
9448   fi
9449 else
9450   ac_cpp_err=yes
9451 fi
9452 if test -z "$ac_cpp_err"; then
9453   ac_header_preproc=yes
9454 else
9455   echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458   ac_header_preproc=no
9459 fi
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
9463
9464 # So?  What about this header?
9465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9466   yes:no: )
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
9472     ;;
9473   no: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;}
9486     (
9487       cat <<\_ASBOX
9488 ## -------------------------------- ##
9489 ## Report this to the Iperf lists.  ##
9490 ## -------------------------------- ##
9491 _ASBOX
9492     ) |
9493       sed "s/^/$as_me: WARNING:     /" >&2
9494     ;;
9495 esac
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
9500 else
9501   eval "$as_ac_Header=\$ac_header_preproc"
9502 fi
9503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9505
9506 fi
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
9510 _ACEOF
9511
9512 fi
9513
9514 done
9515
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
9520 else
9521   if test "$cross_compiling" = yes; then
9522   ac_cv_func_malloc_0_nonnull=no
9523 else
9524   cat >conftest.$ac_ext <<_ACEOF
9525 /* confdefs.h.  */
9526 _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>
9532 #else
9533 char *malloc ();
9534 #endif
9535
9536 int
9537 main ()
9538 {
9539 exit (malloc (0) ? 0 : 1);
9540   ;
9541   return 0;
9542 }
9543 _ACEOF
9544 rm -f conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546   (eval $ac_link) 2>&5
9547   ac_status=$?
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
9551   (eval $ac_try) 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }; }; then
9555   ac_cv_func_malloc_0_nonnull=yes
9556 else
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
9560
9561 ( exit $ac_status )
9562 ac_cv_func_malloc_0_nonnull=no
9563 fi
9564 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9565 fi
9566 fi
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
9570
9571 cat >>confdefs.h <<\_ACEOF
9572 #define HAVE_MALLOC 1
9573 _ACEOF
9574
9575 else
9576   cat >>confdefs.h <<\_ACEOF
9577 #define HAVE_MALLOC 0
9578 _ACEOF
9579
9580    case $LIBOBJS in
9581     "malloc.$ac_objext"   | \
9582   *" malloc.$ac_objext"   | \
9583     "malloc.$ac_objext "* | \
9584   *" malloc.$ac_objext "* ) ;;
9585   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
9586 esac
9587
9588
9589 cat >>confdefs.h <<\_ACEOF
9590 #define malloc rpl_malloc
9591 _ACEOF
9592
9593 fi
9594
9595
9596
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
9601 else
9602   if test "$cross_compiling" = yes; then
9603   ac_cv_func_memcmp_working=no
9604 else
9605   cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h.  */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h.  */
9611 $ac_includes_default
9612 int
9613 main ()
9614 {
9615
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)
9619     exit (1);
9620
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.   */
9624   {
9625     char foo[21];
9626     char bar[21];
9627     int i;
9628     for (i = 0; i < 4; i++)
9629       {
9630         char *a = foo + i;
9631         char *b = bar + i;
9632         strcpy (a, "--------01111111");
9633         strcpy (b, "--------10000000");
9634         if (memcmp (a, b, 16) >= 0)
9635           exit (1);
9636       }
9637     exit (0);
9638   }
9639
9640   ;
9641   return 0;
9642 }
9643 _ACEOF
9644 rm -f conftest$ac_exeext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646   (eval $ac_link) 2>&5
9647   ac_status=$?
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
9651   (eval $ac_try) 2>&5
9652   ac_status=$?
9653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654   (exit $ac_status); }; }; then
9655   ac_cv_func_memcmp_working=yes
9656 else
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
9660
9661 ( exit $ac_status )
9662 ac_cv_func_memcmp_working=no
9663 fi
9664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9665 fi
9666 fi
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" ;;
9675 esac
9676
9677
9678
9679
9680 for ac_header in sys/select.h sys/socket.h
9681 do
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
9688 fi
9689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9691 else
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
9696 /* confdefs.h.  */
9697 _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>
9703 _ACEOF
9704 rm -f conftest.$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706   (eval $ac_compile) 2>conftest.er1
9707   ac_status=$?
9708   grep -v '^ *+' conftest.er1 >conftest.err
9709   rm -f conftest.er1
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
9716   (eval $ac_try) 2>&5
9717   ac_status=$?
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
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   ac_header_compiler=yes
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 ac_header_compiler=no
9732 fi
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
9736
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
9741 /* confdefs.h.  */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h.  */
9746 #include <$ac_header>
9747 _ACEOF
9748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9750   ac_status=$?
9751   grep -v '^ *+' conftest.er1 >conftest.err
9752   rm -f conftest.er1
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
9759   else
9760     ac_cpp_err=
9761   fi
9762 else
9763   ac_cpp_err=yes
9764 fi
9765 if test -z "$ac_cpp_err"; then
9766   ac_header_preproc=yes
9767 else
9768   echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771   ac_header_preproc=no
9772 fi
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
9776
9777 # So?  What about this header?
9778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9779   yes:no: )
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
9785     ;;
9786   no: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;}
9799     (
9800       cat <<\_ASBOX
9801 ## -------------------------------- ##
9802 ## Report this to the Iperf lists.  ##
9803 ## -------------------------------- ##
9804 _ASBOX
9805     ) |
9806       sed "s/^/$as_me: WARNING:     /" >&2
9807     ;;
9808 esac
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
9813 else
9814   eval "$as_ac_Header=\$ac_header_preproc"
9815 fi
9816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9818
9819 fi
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
9823 _ACEOF
9824
9825 fi
9826
9827 done
9828
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
9833 else
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
9838 /* confdefs.h.  */
9839 _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>
9846 #endif
9847 #if HAVE_SYS_SOCKET_H
9848 # include <sys/socket.h>
9849 #endif
9850
9851 int
9852 main ()
9853 {
9854 extern int select ($ac_arg1,
9855                                             $ac_arg234, $ac_arg234, $ac_arg234,
9856                                             $ac_arg5);
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest.$ac_objext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9863   (eval $ac_compile) 2>conftest.er1
9864   ac_status=$?
9865   grep -v '^ *+' conftest.er1 >conftest.err
9866   rm -f conftest.er1
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
9873   (eval $ac_try) 2>&5
9874   ac_status=$?
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
9879   (eval $ac_try) 2>&5
9880   ac_status=$?
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
9884 else
9885   echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888 fi
9889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9890   done
9891  done
9892 done
9893 # Provide a safe default value.
9894 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9895
9896 fi
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'`
9901 IFS=$ac_save_IFS
9902 shift
9903
9904 cat >>confdefs.h <<_ACEOF
9905 #define SELECT_TYPE_ARG1 $1
9906 _ACEOF
9907
9908
9909 cat >>confdefs.h <<_ACEOF
9910 #define SELECT_TYPE_ARG234 ($2)
9911 _ACEOF
9912
9913
9914 cat >>confdefs.h <<_ACEOF
9915 #define SELECT_TYPE_ARG5 ($3)
9916 _ACEOF
9917
9918 rm -f conftest*
9919
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
9924 else
9925   cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h.  */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h.  */
9931 #include <sys/types.h>
9932 #include <signal.h>
9933 #ifdef signal
9934 # undef signal
9935 #endif
9936 #ifdef __cplusplus
9937 extern "C" void (*signal (int, void (*)(int)))(int);
9938 #else
9939 void (*signal ()) ();
9940 #endif
9941
9942 int
9943 main ()
9944 {
9945 int i;
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9952   (eval $ac_compile) 2>conftest.er1
9953   ac_status=$?
9954   grep -v '^ *+' conftest.er1 >conftest.err
9955   rm -f conftest.er1
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
9962   (eval $ac_try) 2>&5
9963   ac_status=$?
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
9968   (eval $ac_try) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; }; then
9972   ac_cv_type_signal=void
9973 else
9974   echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9976
9977 ac_cv_type_signal=int
9978 fi
9979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9980 fi
9981 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9982 echo "${ECHO_T}$ac_cv_type_signal" >&6
9983
9984 cat >>confdefs.h <<_ACEOF
9985 #define RETSIGTYPE $ac_cv_type_signal
9986 _ACEOF
9987
9988
9989
9990 for ac_func in strftime
9991 do
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
9997 else
9998   cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h.  */
10000 _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
10007
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.  */
10012
10013 #ifdef __STDC__
10014 # include <limits.h>
10015 #else
10016 # include <assert.h>
10017 #endif
10018
10019 #undef $ac_func
10020
10021 /* Override any gcc2 internal prototype to avoid an error.  */
10022 #ifdef __cplusplus
10023 extern "C"
10024 {
10025 #endif
10026 /* We use char because int might match the return type of a gcc2
10027    builtin and then its argument prototype would still apply.  */
10028 char $ac_func ();
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)
10033 choke me
10034 #else
10035 char (*f) () = $ac_func;
10036 #endif
10037 #ifdef __cplusplus
10038 }
10039 #endif
10040
10041 int
10042 main ()
10043 {
10044 return f != $ac_func;
10045   ;
10046   return 0;
10047 }
10048 _ACEOF
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
10052   ac_status=$?
10053   grep -v '^ *+' conftest.er1 >conftest.err
10054   rm -f conftest.er1
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
10062   ac_status=$?
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
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; }; then
10071   eval "$as_ac_var=yes"
10072 else
10073   echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 eval "$as_ac_var=no"
10077 fi
10078 rm -f conftest.err conftest.$ac_objext \
10079       conftest$ac_exeext conftest.$ac_ext
10080 fi
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
10086 _ACEOF
10087
10088 else
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
10094 else
10095   ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-lintl  $LIBS"
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h.  */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h.  */
10103
10104 /* Override any gcc2 internal prototype to avoid an error.  */
10105 #ifdef __cplusplus
10106 extern "C"
10107 #endif
10108 /* We use char because int might match the return type of a gcc2
10109    builtin and then its argument prototype would still apply.  */
10110 char strftime ();
10111 int
10112 main ()
10113 {
10114 strftime ();
10115   ;
10116   return 0;
10117 }
10118 _ACEOF
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
10122   ac_status=$?
10123   grep -v '^ *+' conftest.er1 >conftest.err
10124   rm -f conftest.er1
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
10132   ac_status=$?
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
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; }; then
10141   ac_cv_lib_intl_strftime=yes
10142 else
10143   echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146 ac_cv_lib_intl_strftime=no
10147 fi
10148 rm -f conftest.err conftest.$ac_objext \
10149       conftest$ac_exeext conftest.$ac_ext
10150 LIBS=$ac_check_lib_save_LIBS
10151 fi
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
10157 _ACEOF
10158
10159 LIBS="-lintl $LIBS"
10160 fi
10161
10162 fi
10163 done
10164
10165
10166 for ac_func in vprintf
10167 do
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
10173 else
10174   cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h.  */
10176 _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
10183
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.  */
10188
10189 #ifdef __STDC__
10190 # include <limits.h>
10191 #else
10192 # include <assert.h>
10193 #endif
10194
10195 #undef $ac_func
10196
10197 /* Override any gcc2 internal prototype to avoid an error.  */
10198 #ifdef __cplusplus
10199 extern "C"
10200 {
10201 #endif
10202 /* We use char because int might match the return type of a gcc2
10203    builtin and then its argument prototype would still apply.  */
10204 char $ac_func ();
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)
10209 choke me
10210 #else
10211 char (*f) () = $ac_func;
10212 #endif
10213 #ifdef __cplusplus
10214 }
10215 #endif
10216
10217 int
10218 main ()
10219 {
10220 return f != $ac_func;
10221   ;
10222   return 0;
10223 }
10224 _ACEOF
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
10228   ac_status=$?
10229   grep -v '^ *+' conftest.er1 >conftest.err
10230   rm -f conftest.er1
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
10238   ac_status=$?
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
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); }; }; then
10247   eval "$as_ac_var=yes"
10248 else
10249   echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10251
10252 eval "$as_ac_var=no"
10253 fi
10254 rm -f conftest.err conftest.$ac_objext \
10255       conftest$ac_exeext conftest.$ac_ext
10256 fi
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
10262 _ACEOF
10263
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
10268 else
10269   cat >conftest.$ac_ext <<_ACEOF
10270 /* confdefs.h.  */
10271 _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
10278
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.  */
10283
10284 #ifdef __STDC__
10285 # include <limits.h>
10286 #else
10287 # include <assert.h>
10288 #endif
10289
10290 #undef _doprnt
10291
10292 /* Override any gcc2 internal prototype to avoid an error.  */
10293 #ifdef __cplusplus
10294 extern "C"
10295 {
10296 #endif
10297 /* We use char because int might match the return type of a gcc2
10298    builtin and then its argument prototype would still apply.  */
10299 char _doprnt ();
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)
10304 choke me
10305 #else
10306 char (*f) () = _doprnt;
10307 #endif
10308 #ifdef __cplusplus
10309 }
10310 #endif
10311
10312 int
10313 main ()
10314 {
10315 return f != _doprnt;
10316   ;
10317   return 0;
10318 }
10319 _ACEOF
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
10323   ac_status=$?
10324   grep -v '^ *+' conftest.er1 >conftest.err
10325   rm -f conftest.er1
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
10333   ac_status=$?
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
10339   ac_status=$?
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); }; }; then
10342   ac_cv_func__doprnt=yes
10343 else
10344   echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347 ac_cv_func__doprnt=no
10348 fi
10349 rm -f conftest.err conftest.$ac_objext \
10350       conftest$ac_exeext conftest.$ac_ext
10351 fi
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
10355
10356 cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_DOPRNT 1
10358 _ACEOF
10359
10360 fi
10361
10362 fi
10363 done
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375 for ac_func in atexit gettimeofday memset pthread_cancel select strchr strerror strtol usleep
10376 do
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
10382 else
10383   cat >conftest.$ac_ext <<_ACEOF
10384 /* confdefs.h.  */
10385 _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
10392
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.  */
10397
10398 #ifdef __STDC__
10399 # include <limits.h>
10400 #else
10401 # include <assert.h>
10402 #endif
10403
10404 #undef $ac_func
10405
10406 /* Override any gcc2 internal prototype to avoid an error.  */
10407 #ifdef __cplusplus
10408 extern "C"
10409 {
10410 #endif
10411 /* We use char because int might match the return type of a gcc2
10412    builtin and then its argument prototype would still apply.  */
10413 char $ac_func ();
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)
10418 choke me
10419 #else
10420 char (*f) () = $ac_func;
10421 #endif
10422 #ifdef __cplusplus
10423 }
10424 #endif
10425
10426 int
10427 main ()
10428 {
10429 return f != $ac_func;
10430   ;
10431   return 0;
10432 }
10433 _ACEOF
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
10437   ac_status=$?
10438   grep -v '^ *+' conftest.er1 >conftest.err
10439   rm -f conftest.er1
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
10447   ac_status=$?
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
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); }; }; then
10456   eval "$as_ac_var=yes"
10457 else
10458   echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10460
10461 eval "$as_ac_var=no"
10462 fi
10463 rm -f conftest.err conftest.$ac_objext \
10464       conftest$ac_exeext conftest.$ac_ext
10465 fi
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
10471 _ACEOF
10472
10473 fi
10474 done
10475
10476
10477
10478
10479
10480 for ac_func in snprintf inet_pton inet_ntop gettimeofday
10481 do
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
10487 else
10488   cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _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
10497
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.  */
10502
10503 #ifdef __STDC__
10504 # include <limits.h>
10505 #else
10506 # include <assert.h>
10507 #endif
10508
10509 #undef $ac_func
10510
10511 /* Override any gcc2 internal prototype to avoid an error.  */
10512 #ifdef __cplusplus
10513 extern "C"
10514 {
10515 #endif
10516 /* We use char because int might match the return type of a gcc2
10517    builtin and then its argument prototype would still apply.  */
10518 char $ac_func ();
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)
10523 choke me
10524 #else
10525 char (*f) () = $ac_func;
10526 #endif
10527 #ifdef __cplusplus
10528 }
10529 #endif
10530
10531 int
10532 main ()
10533 {
10534 return f != $ac_func;
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
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
10542   ac_status=$?
10543   grep -v '^ *+' conftest.er1 >conftest.err
10544   rm -f conftest.er1
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
10552   ac_status=$?
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
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); }; }; then
10561   eval "$as_ac_var=yes"
10562 else
10563   echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 eval "$as_ac_var=no"
10567 fi
10568 rm -f conftest.err conftest.$ac_objext \
10569       conftest$ac_exeext conftest.$ac_ext
10570 fi
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
10576 _ACEOF
10577
10578 else
10579   case $LIBOBJS in
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" ;;
10585 esac
10586
10587 fi
10588 done
10589
10590
10591
10592
10593
10594
10595
10596
10597
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
10602    :
10603 else
10604   cat >conftest.$ac_ext <<_ACEOF
10605 /* confdefs.h.  */
10606 _ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h.  */
10610
10611         #include <stdio.h>
10612         int main() {
10613                 char buf[100];
10614                 sprintf(buf, "%lld", 21726587590LL);
10615                 return (strcmp(buf, "21726587590"));
10616         }
10617
10618 _ACEOF
10619 rm -f conftest$ac_exeext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621   (eval $ac_link) 2>&5
10622   ac_status=$?
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
10627   ac_status=$?
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); }; }; then
10630
10631         echo "$as_me:$LINENO: result: yes" >&5
10632 echo "${ECHO_T}yes" >&6
10633         can_printf_longlong=yes
10634
10635 else
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
10639
10640 ( exit $ac_status )
10641
10642         echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6
10644
10645 fi
10646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10647 fi
10648
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
10653    :
10654 else
10655   cat >conftest.$ac_ext <<_ACEOF
10656 /* confdefs.h.  */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h.  */
10661
10662                 #include <stdio.h>
10663                 int main() {
10664                         char buf[100];
10665                         sprintf(buf, "%qd", 21726587590LL);
10666                         return (strcmp(buf, "21726587590"));
10667                 }
10668
10669 _ACEOF
10670 rm -f conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672   (eval $ac_link) 2>&5
10673   ac_status=$?
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
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }; }; then
10681
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
10687 _ACEOF
10688
10689
10690 else
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
10694
10695 ( exit $ac_status )
10696
10697                 echo "$as_me:$LINENO: result: no" >&5
10698 echo "${ECHO_T}no" >&6
10699
10700 fi
10701 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10702 fi
10703 fi
10704
10705 if test $can_printf_longlong = yes; then
10706         cat >>confdefs.h <<\_ACEOF
10707 #define HAVE_QUAD_SUPPORT 1
10708 _ACEOF
10709
10710 fi
10711
10712
10713
10714
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
10719 else
10720   cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h.  */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h.  */
10726 $ac_includes_default
10727 int
10728 main ()
10729 {
10730 if ((bool *) 0)
10731   return 0;
10732 if (sizeof (bool))
10733   return 0;
10734   ;
10735   return 0;
10736 }
10737 _ACEOF
10738 rm -f conftest.$ac_objext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10740   (eval $ac_compile) 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
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
10751   ac_status=$?
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
10757   ac_status=$?
10758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759   (exit $ac_status); }; }; then
10760   ac_cv_type_bool=yes
10761 else
10762   echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10764
10765 ac_cv_type_bool=no
10766 fi
10767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10768 fi
10769 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10770 echo "${ECHO_T}$ac_cv_type_bool" >&6
10771
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
10776 else
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
10785 /* confdefs.h.  */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h.  */
10790 $ac_includes_default
10791 int
10792 main ()
10793 {
10794 static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= 0)];
10795 test_array [0] = 0
10796
10797   ;
10798   return 0;
10799 }
10800 _ACEOF
10801 rm -f conftest.$ac_objext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803   (eval $ac_compile) 2>conftest.er1
10804   ac_status=$?
10805   grep -v '^ *+' conftest.er1 >conftest.err
10806   rm -f conftest.er1
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
10814   ac_status=$?
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
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); }; }; then
10823   ac_lo=0 ac_mid=0
10824   while :; do
10825     cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h.  */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h.  */
10831 $ac_includes_default
10832 int
10833 main ()
10834 {
10835 static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)];
10836 test_array [0] = 0
10837
10838   ;
10839   return 0;
10840 }
10841 _ACEOF
10842 rm -f conftest.$ac_objext
10843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10844   (eval $ac_compile) 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
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
10855   ac_status=$?
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
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; }; then
10864   ac_hi=$ac_mid; break
10865 else
10866   echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10868
10869 ac_lo=`expr $ac_mid + 1`
10870                     if test $ac_lo -le $ac_mid; then
10871                       ac_lo= ac_hi=
10872                       break
10873                     fi
10874                     ac_mid=`expr 2 '*' $ac_mid + 1`
10875 fi
10876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10877   done
10878 else
10879   echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10881
10882 cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888 $ac_includes_default
10889 int
10890 main ()
10891 {
10892 static int test_array [1 - 2 * !(((long) (sizeof (bool))) < 0)];
10893 test_array [0] = 0
10894
10895   ;
10896   return 0;
10897 }
10898 _ACEOF
10899 rm -f conftest.$ac_objext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901   (eval $ac_compile) 2>conftest.er1
10902   ac_status=$?
10903   grep -v '^ *+' conftest.er1 >conftest.err
10904   rm -f conftest.er1
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
10912   ac_status=$?
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
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); }; }; then
10921   ac_hi=-1 ac_mid=-1
10922   while :; do
10923     cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929 $ac_includes_default
10930 int
10931 main ()
10932 {
10933 static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= $ac_mid)];
10934 test_array [0] = 0
10935
10936   ;
10937   return 0;
10938 }
10939 _ACEOF
10940 rm -f conftest.$ac_objext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942   (eval $ac_compile) 2>conftest.er1
10943   ac_status=$?
10944   grep -v '^ *+' conftest.er1 >conftest.err
10945   rm -f conftest.er1
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
10953   ac_status=$?
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
10959   ac_status=$?
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); }; }; then
10962   ac_lo=$ac_mid; break
10963 else
10964   echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10966
10967 ac_hi=`expr '(' $ac_mid ')' - 1`
10968                        if test $ac_mid -le $ac_hi; then
10969                          ac_lo= ac_hi=
10970                          break
10971                        fi
10972                        ac_mid=`expr 2 '*' $ac_mid`
10973 fi
10974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10975   done
10976 else
10977   echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10979
10980 ac_lo= ac_hi=
10981 fi
10982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10983 fi
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
10989 /* confdefs.h.  */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h.  */
10994 $ac_includes_default
10995 int
10996 main ()
10997 {
10998 static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)];
10999 test_array [0] = 0
11000
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 rm -f conftest.$ac_objext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11007   (eval $ac_compile) 2>conftest.er1
11008   ac_status=$?
11009   grep -v '^ *+' conftest.er1 >conftest.err
11010   rm -f conftest.er1
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
11018   ac_status=$?
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
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; }; then
11027   ac_hi=$ac_mid
11028 else
11029   echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032 ac_lo=`expr '(' $ac_mid ')' + 1`
11033 fi
11034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11035 done
11036 case $ac_lo in
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; }; } ;;
11043 esac
11044 else
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; }; }
11051 else
11052   cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h.  */
11054 _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)); }
11061 #include <stdio.h>
11062 #include <stdlib.h>
11063 int
11064 main ()
11065 {
11066
11067   FILE *f = fopen ("conftest.val", "w");
11068   if (! f)
11069     exit (1);
11070   if (((long) (sizeof (bool))) < 0)
11071     {
11072       long i = longval ();
11073       if (i != ((long) (sizeof (bool))))
11074         exit (1);
11075       fprintf (f, "%ld\n", i);
11076     }
11077   else
11078     {
11079       unsigned long i = ulongval ();
11080       if (i != ((long) (sizeof (bool))))
11081         exit (1);
11082       fprintf (f, "%lu\n", i);
11083     }
11084   exit (ferror (f) || fclose (f) != 0);
11085
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest$ac_exeext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092   (eval $ac_link) 2>&5
11093   ac_status=$?
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
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); }; }; then
11101   ac_cv_sizeof_bool=`cat conftest.val`
11102 else
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
11106
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; }; }
11113 fi
11114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11115 fi
11116 fi
11117 rm -f conftest.val
11118 else
11119   ac_cv_sizeof_bool=0
11120 fi
11121 fi
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
11126 _ACEOF
11127
11128
11129 if test "$ac_cv_sizeof_bool" = 0 ; then
11130   cat >>confdefs.h <<\_ACEOF
11131 #define bool int
11132 _ACEOF
11133
11134 fi
11135
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
11140 else
11141
11142
11143   ac_ext=cc
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
11148
11149   cat >conftest.$ac_ext <<_ACEOF
11150 /* confdefs.h.  */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h.  */
11155
11156 int
11157 main ()
11158 {
11159 unsigned int i = true
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 rm -f conftest.$ac_objext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11166   (eval $ac_compile) 2>conftest.er1
11167   ac_status=$?
11168   grep -v '^ *+' conftest.er1 >conftest.err
11169   rm -f conftest.er1
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
11177   ac_status=$?
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
11183   ac_status=$?
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); }; }; then
11186   ac_cv_have_true=yes
11187 else
11188   echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11190
11191 ac_cv_have_true=no
11192 fi
11193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11194   ac_ext=c
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
11199
11200
11201 fi
11202 echo "$as_me:$LINENO: result: $ac_cv_have_true" >&5
11203 echo "${ECHO_T}$ac_cv_have_true" >&6
11204
11205 if test "$ac_cv_have_true" != yes ; then
11206   cat >>confdefs.h <<\_ACEOF
11207 #define true 1
11208 _ACEOF
11209
11210   cat >>confdefs.h <<\_ACEOF
11211 #define false 0
11212 _ACEOF
11213
11214 fi
11215
11216
11217
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
11222 else
11223   # See if sys/param.h defines the BYTE_ORDER macro.
11224 cat >conftest.$ac_ext <<_ACEOF
11225 /* confdefs.h.  */
11226 _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>
11232
11233 int
11234 main ()
11235 {
11236 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11237  bogus endian macros
11238 #endif
11239
11240   ;
11241   return 0;
11242 }
11243 _ACEOF
11244 rm -f conftest.$ac_objext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11246   (eval $ac_compile) 2>conftest.er1
11247   ac_status=$?
11248   grep -v '^ *+' conftest.er1 >conftest.err
11249   rm -f conftest.er1
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
11257   ac_status=$?
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
11263   ac_status=$?
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
11268 /* confdefs.h.  */
11269 _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>
11275
11276 int
11277 main ()
11278 {
11279 #if BYTE_ORDER != BIG_ENDIAN
11280  not big endian
11281 #endif
11282
11283   ;
11284   return 0;
11285 }
11286 _ACEOF
11287 rm -f conftest.$ac_objext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11289   (eval $ac_compile) 2>conftest.er1
11290   ac_status=$?
11291   grep -v '^ *+' conftest.er1 >conftest.err
11292   rm -f conftest.er1
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
11300   ac_status=$?
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
11306   ac_status=$?
11307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308   (exit $ac_status); }; }; then
11309   ac_cv_c_bigendian=yes
11310 else
11311   echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11313
11314 ac_cv_c_bigendian=no
11315 fi
11316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11317 else
11318   echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
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
11326 /* confdefs.h.  */
11327 _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; }
11337 int
11338 main ()
11339 {
11340  _ascii (); _ebcdic ();
11341   ;
11342   return 0;
11343 }
11344 _ACEOF
11345 rm -f conftest.$ac_objext
11346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11347   (eval $ac_compile) 2>conftest.er1
11348   ac_status=$?
11349   grep -v '^ *+' conftest.er1 >conftest.err
11350   rm -f conftest.er1
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
11358   ac_status=$?
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
11364   ac_status=$?
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
11369 fi
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
11373   else
11374     # finding both strings is unlikely to happen, but who knows?
11375     ac_cv_c_bigendian=unknown
11376   fi
11377 fi
11378 else
11379   echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11381
11382 fi
11383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11384 else
11385   cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h.  */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h.  */
11391 int
11392 main ()
11393 {
11394   /* Are we little or big endian?  From Harbison&Steele.  */
11395   union
11396   {
11397     long l;
11398     char c[sizeof (long)];
11399   } u;
11400   u.l = 1;
11401   exit (u.c[sizeof (long) - 1] == 1);
11402 }
11403 _ACEOF
11404 rm -f conftest$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406   (eval $ac_link) 2>&5
11407   ac_status=$?
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
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; }; then
11415   ac_cv_c_bigendian=no
11416 else
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
11420
11421 ( exit $ac_status )
11422 ac_cv_c_bigendian=yes
11423 fi
11424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11425 fi
11426 fi
11427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11428 fi
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
11432   yes)
11433
11434 cat >>confdefs.h <<\_ACEOF
11435 #define WORDS_BIGENDIAN 1
11436 _ACEOF
11437  ;;
11438   no)
11439      ;;
11440   *)
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; }; } ;;
11446 esac
11447
11448
11449
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
11455 else
11456   cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h.  */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h.  */
11462 #include "compat/headers_slim.h"
11463
11464 int
11465 main ()
11466 {
11467 if ((struct ip_mreq *) 0)
11468   return 0;
11469 if (sizeof (struct ip_mreq))
11470   return 0;
11471   ;
11472   return 0;
11473 }
11474 _ACEOF
11475 rm -f conftest.$ac_objext
11476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11477   (eval $ac_compile) 2>conftest.er1
11478   ac_status=$?
11479   grep -v '^ *+' conftest.er1 >conftest.err
11480   rm -f conftest.er1
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
11488   ac_status=$?
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
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); }; }; then
11497   ac_cv_type_struct_ip_mreq=yes
11498 else
11499   echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11501
11502 ac_cv_type_struct_ip_mreq=no
11503 fi
11504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11505 fi
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
11509
11510 cat >>confdefs.h <<_ACEOF
11511 #define HAVE_STRUCT_IP_MREQ 1
11512 _ACEOF
11513
11514
11515 fi
11516
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
11521 else
11522   cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h.  */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h.  */
11528 #include "compat/headers_slim.h"
11529
11530 int
11531 main ()
11532 {
11533 #ifndef IP_ADD_MEMBERSHIP
11534   char *p = (char *) IP_ADD_MEMBERSHIP;
11535 #endif
11536
11537   ;
11538   return 0;
11539 }
11540 _ACEOF
11541 rm -f conftest.$ac_objext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11543   (eval $ac_compile) 2>conftest.er1
11544   ac_status=$?
11545   grep -v '^ *+' conftest.er1 >conftest.err
11546   rm -f conftest.er1
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
11554   ac_status=$?
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
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); }; }; then
11563   ac_cv_have_decl_IP_ADD_MEMBERSHIP=yes
11564 else
11565   echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11567
11568 ac_cv_have_decl_IP_ADD_MEMBERSHIP=no
11569 fi
11570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11571 fi
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
11575
11576 cat >>confdefs.h <<_ACEOF
11577 #define HAVE_DECL_IP_ADD_MEMBERSHIP 1
11578 _ACEOF
11579
11580
11581 else
11582   cat >>confdefs.h <<_ACEOF
11583 #define HAVE_DECL_IP_ADD_MEMBERSHIP 0
11584 _ACEOF
11585
11586
11587 fi
11588
11589
11590   echo "$as_me:$LINENO: checking for multicast support" >&5
11591 echo $ECHO_N "checking for multicast support... $ECHO_C" >&6
11592   ac_cv_multicast=no
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
11596     fi
11597   fi
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
11601
11602 cat >>confdefs.h <<\_ACEOF
11603 #define HAVE_MULTICAST 1
11604 _ACEOF
11605
11606   fi
11607 fi
11608
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
11614 else
11615   cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621 #include "compat/headers_slim.h"
11622
11623 int
11624 main ()
11625 {
11626 if ((struct sockaddr_storage *) 0)
11627   return 0;
11628 if (sizeof (struct sockaddr_storage))
11629   return 0;
11630   ;
11631   return 0;
11632 }
11633 _ACEOF
11634 rm -f conftest.$ac_objext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11636   (eval $ac_compile) 2>conftest.er1
11637   ac_status=$?
11638   grep -v '^ *+' conftest.er1 >conftest.err
11639   rm -f conftest.er1
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
11647   ac_status=$?
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
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); }; }; then
11656   ac_cv_type_struct_sockaddr_storage=yes
11657 else
11658   echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11660
11661 ac_cv_type_struct_sockaddr_storage=no
11662 fi
11663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11664 fi
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
11668
11669 cat >>confdefs.h <<_ACEOF
11670 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11671 _ACEOF
11672
11673
11674 fi
11675
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
11680 else
11681   cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h.  */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h.  */
11687 #include "compat/headers_slim.h"
11688
11689 int
11690 main ()
11691 {
11692 if ((struct sockaddr_in6 *) 0)
11693   return 0;
11694 if (sizeof (struct sockaddr_in6))
11695   return 0;
11696   ;
11697   return 0;
11698 }
11699 _ACEOF
11700 rm -f conftest.$ac_objext
11701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11702   (eval $ac_compile) 2>conftest.er1
11703   ac_status=$?
11704   grep -v '^ *+' conftest.er1 >conftest.err
11705   rm -f conftest.er1
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
11713   ac_status=$?
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
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; }; then
11722   ac_cv_type_struct_sockaddr_in6=yes
11723 else
11724   echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727 ac_cv_type_struct_sockaddr_in6=no
11728 fi
11729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11730 fi
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
11734
11735 cat >>confdefs.h <<_ACEOF
11736 #define HAVE_STRUCT_SOCKADDR_IN6 1
11737 _ACEOF
11738
11739
11740 fi
11741
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
11746 else
11747   cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 #include "compat/headers_slim.h"
11754
11755 int
11756 main ()
11757 {
11758 #ifndef AF_INET6
11759   char *p = (char *) AF_INET6;
11760 #endif
11761
11762   ;
11763   return 0;
11764 }
11765 _ACEOF
11766 rm -f conftest.$ac_objext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768   (eval $ac_compile) 2>conftest.er1
11769   ac_status=$?
11770   grep -v '^ *+' conftest.er1 >conftest.err
11771   rm -f conftest.er1
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
11779   ac_status=$?
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
11785   ac_status=$?
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); }; }; then
11788   ac_cv_have_decl_AF_INET6=yes
11789 else
11790   echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11792
11793 ac_cv_have_decl_AF_INET6=no
11794 fi
11795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11796 fi
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
11800
11801 cat >>confdefs.h <<_ACEOF
11802 #define HAVE_DECL_AF_INET6 1
11803 _ACEOF
11804
11805
11806 else
11807   cat >>confdefs.h <<_ACEOF
11808 #define HAVE_DECL_AF_INET6 0
11809 _ACEOF
11810
11811
11812 fi
11813
11814
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
11817   ac_cv_have_ipv6=no
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
11821
11822 cat >>confdefs.h <<\_ACEOF
11823 #define HAVE_IPV6 1
11824 _ACEOF
11825
11826         ac_cv_have_ipv6=yes
11827       fi
11828     fi
11829   fi
11830   echo "$as_me:$LINENO: result: $ac_cv_have_ipv6" >&5
11831 echo "${ECHO_T}$ac_cv_have_ipv6" >&6
11832 fi
11833
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
11840 else
11841   cat >conftest.$ac_ext <<_ACEOF
11842 /* confdefs.h.  */
11843 _ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h.  */
11847 #include "compat/headers_slim.h"
11848
11849 int
11850 main ()
11851 {
11852 if ((struct ipv6_mreq *) 0)
11853   return 0;
11854 if (sizeof (struct ipv6_mreq))
11855   return 0;
11856   ;
11857   return 0;
11858 }
11859 _ACEOF
11860 rm -f conftest.$ac_objext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862   (eval $ac_compile) 2>conftest.er1
11863   ac_status=$?
11864   grep -v '^ *+' conftest.er1 >conftest.err
11865   rm -f conftest.er1
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
11873   ac_status=$?
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
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; }; then
11882   ac_cv_type_struct_ipv6_mreq=yes
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887 ac_cv_type_struct_ipv6_mreq=no
11888 fi
11889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11890 fi
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
11894
11895 cat >>confdefs.h <<_ACEOF
11896 #define HAVE_STRUCT_IPV6_MREQ 1
11897 _ACEOF
11898
11899
11900 fi
11901
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
11906 else
11907   cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h.  */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h.  */
11913 #include "compat/headers_slim.h"
11914
11915 int
11916 main ()
11917 {
11918 #ifndef IPV6_ADD_MEMBERSHIP
11919   char *p = (char *) IPV6_ADD_MEMBERSHIP;
11920 #endif
11921
11922   ;
11923   return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11928   (eval $ac_compile) 2>conftest.er1
11929   ac_status=$?
11930   grep -v '^ *+' conftest.er1 >conftest.err
11931   rm -f conftest.er1
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
11939   ac_status=$?
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
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; }; then
11948   ac_cv_have_decl_IPV6_ADD_MEMBERSHIP=yes
11949 else
11950   echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 ac_cv_have_decl_IPV6_ADD_MEMBERSHIP=no
11954 fi
11955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11956 fi
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
11960
11961 cat >>confdefs.h <<_ACEOF
11962 #define HAVE_DECL_IPV6_ADD_MEMBERSHIP 1
11963 _ACEOF
11964
11965
11966 else
11967   cat >>confdefs.h <<_ACEOF
11968 #define HAVE_DECL_IPV6_ADD_MEMBERSHIP 0
11969 _ACEOF
11970
11971
11972 fi
11973
11974
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
11979 else
11980   cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986 #include "compat/headers_slim.h"
11987
11988 int
11989 main ()
11990 {
11991 #ifndef IPV6_MULTICAST_HOPS
11992   char *p = (char *) IPV6_MULTICAST_HOPS;
11993 #endif
11994
11995   ;
11996   return 0;
11997 }
11998 _ACEOF
11999 rm -f conftest.$ac_objext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12001   (eval $ac_compile) 2>conftest.er1
12002   ac_status=$?
12003   grep -v '^ *+' conftest.er1 >conftest.err
12004   rm -f conftest.er1
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
12012   ac_status=$?
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
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; }; then
12021   ac_cv_have_decl_IPV6_MULTICAST_HOPS=yes
12022 else
12023   echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026 ac_cv_have_decl_IPV6_MULTICAST_HOPS=no
12027 fi
12028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12029 fi
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
12033
12034 cat >>confdefs.h <<_ACEOF
12035 #define HAVE_DECL_IPV6_MULTICAST_HOPS 1
12036 _ACEOF
12037
12038
12039 else
12040   cat >>confdefs.h <<_ACEOF
12041 #define HAVE_DECL_IPV6_MULTICAST_HOPS 0
12042 _ACEOF
12043
12044
12045 fi
12046
12047
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
12054
12055 cat >>confdefs.h <<\_ACEOF
12056 #define HAVE_IPV6_MULTICAST 1
12057 _ACEOF
12058
12059           ac_cv_have_ipv6_multicast=yes
12060         fi
12061       fi
12062     fi
12063     echo "$as_me:$LINENO: result: $ac_cv_have_ipv6_multicast" >&5
12064 echo "${ECHO_T}$ac_cv_have_ipv6_multicast" >&6
12065   fi
12066 fi
12067
12068 if test "$enable_debuginfo" = yes; then
12069
12070 cat >>confdefs.h <<\_ACEOF
12071 #define DBG_MJZ 1
12072 _ACEOF
12073
12074 fi
12075
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
12082
12083 web100_success=""
12084
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
12091 else
12092   case $WEB100_CONFIG in
12093   [\\/]* | ?:[\\/]*)
12094   ac_cv_path_WEB100_CONFIG="$WEB100_CONFIG" # Let the user override the test with a path.
12095   ;;
12096   *)
12097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12099 do
12100   IFS=$as_save_IFS
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
12106     break 2
12107   fi
12108 done
12109 done
12110
12111   test -z "$ac_cv_path_WEB100_CONFIG" && ac_cv_path_WEB100_CONFIG="no"
12112   ;;
12113 esac
12114 fi
12115 WEB100_CONFIG=$ac_cv_path_WEB100_CONFIG
12116
12117 if test -n "$WEB100_CONFIG"; then
12118   echo "$as_me:$LINENO: result: $WEB100_CONFIG" >&5
12119 echo "${ECHO_T}$WEB100_CONFIG" >&6
12120 else
12121   echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12123 fi
12124
12125
12126 echo "$as_me:$LINENO: checking for Web100" >&5
12127 echo $ECHO_N "checking for Web100... $ECHO_C" >&6
12128
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
12134 else
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"
12142 fi
12143
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
12148
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
12153     else
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"
12159     fi
12160   fi
12161 fi
12162
12163 if test x$web100_success = x; then
12164   web100_success="yes"
12165 fi
12166
12167 if test x$web100_success = xyes; then
12168   :
12169 else
12170   WEB100_CFLAGS=""
12171   WEB100_LIBS=""
12172   :
12173 fi
12174
12175
12176
12177
12178 if test "$web100_success" = yes; then
12179
12180 cat >>confdefs.h <<\_ACEOF
12181 #define HAVE_WEB100 1
12182 _ACEOF
12183
12184 fi fi fi fi fi fi
12185 fi
12186
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
12189 STRIP_BEGIN=
12190 STRIP_END=
12191 if $ac_make --version 2> /dev/null | grep '^GNU Make ' > /dev/null ; then
12192     STRIP_BEGIN='$(strip $(STRIP_DUMMY)'
12193     STRIP_END=')'
12194     echo "$as_me:$LINENO: result: yes" >&5
12195 echo "${ECHO_T}yes" >&6
12196 else
12197     echo "$as_me:$LINENO: result: no" >&5
12198 echo "${ECHO_T}no" >&6
12199 fi
12200
12201 STRIP_DUMMY=
12202
12203
12204
12205
12206                                                   ac_config_files="$ac_config_files Makefile compat/Makefile doc/Makefile include/Makefile src/Makefile"
12207
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.
12214 #
12215 # config.status only pays attention to the cache file if you give it
12216 # the --recheck option to rerun configure.
12217 #
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.
12221
12222 _ACEOF
12223
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.
12229 {
12230   (set) 2>&1 |
12231     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12232     *ac_space=\ *)
12233       # `set' does not quote correctly, so add quotes (double-quote
12234       # substitution turns \\\\ into \\, and sed turns \\ into \).
12235       sed -n \
12236         "s/'/'\\\\''/g;
12237           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12238       ;;
12239     *)
12240       # `set' quotes correctly as required by POSIX, so do not add quotes.
12241       sed -n \
12242         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12243       ;;
12244     esac;
12245 } |
12246   sed '
12247      t clear
12248      : clear
12249      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12250      t end
12251      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12252      : end' >>confcache
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
12257   else
12258     echo "not updating unwritable cache $cache_file"
12259   fi
12260 fi
12261 rm -f confcache
12262
12263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12264 # Let make expand exec_prefix.
12265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12266
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}:*/:/;
12275 s/:*@srcdir@:*/:/;
12276 s/^\([^=]*=[     ]*\):*/\1/;
12277 s/:*$//;
12278 s/^[^=]*=[       ]*$//;
12279 }'
12280 fi
12281
12282 DEFS=-DHAVE_CONFIG_H
12283
12284 ac_libobjs=
12285 ac_ltlibobjs=
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$//'`
12290   # 2. Add them.
12291   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12292   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12293 done
12294 LIBOBJS=$ac_libobjs
12295
12296 LTLIBOBJS=$ac_ltlibobjs
12297
12298
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; }; }
12305 fi
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; }; }
12312 fi
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; }; }
12319 fi
12320
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
12327 #! $SHELL
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.
12332
12333 debug=false
12334 ac_cs_recheck=false
12335 ac_cs_silent=false
12336 SHELL=\${CONFIG_SHELL-$SHELL}
12337 _ACEOF
12338
12339 cat >>$CONFIG_STATUS <<\_ACEOF
12340 ## --------------------- ##
12341 ## M4sh Initialization.  ##
12342 ## --------------------- ##
12343
12344 # Be Bourne compatible
12345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12346   emulate sh
12347   NULLCMD=:
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
12352   set -o posix
12353 fi
12354 DUALCASE=1; export DUALCASE # for MKS sh
12355
12356 # Support unset when possible.
12357 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12358   as_unset=unset
12359 else
12360   as_unset=false
12361 fi
12362
12363
12364 # Work around bugs in pre-3.0 UWIN ksh.
12365 $as_unset ENV MAIL MAILPATH
12366 PS1='$ '
12367 PS2='> '
12368 PS4='+ '
12369
12370 # NLS nuisances.
12371 for as_var in \
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
12375 do
12376   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12377     eval $as_var=C; export $as_var
12378   else
12379     $as_unset $as_var
12380   fi
12381 done
12382
12383 # Required to use basename.
12384 if expr a : '\(a\)' >/dev/null 2>&1; then
12385   as_expr=expr
12386 else
12387   as_expr=false
12388 fi
12389
12390 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12391   as_basename=basename
12392 else
12393   as_basename=false
12394 fi
12395
12396
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 ||
12403 echo X/"$0" |
12404     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12405           /^X\/\(\/\/\)$/{ s//\1/; q; }
12406           /^X\/\(\/\).*/{ s//\1/; q; }
12407           s/.*/./; q'`
12408
12409
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
12417
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
12422   chmod +x conf$$.sh
12423   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12424     PATH_SEPARATOR=';'
12425   else
12426     PATH_SEPARATOR=:
12427   fi
12428   rm -f conf$$.sh
12429 fi
12430
12431
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
12438   # relative or not.
12439   case $0 in
12440     *[\\/]* ) as_myself=$0 ;;
12441     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12443 do
12444   IFS=$as_save_IFS
12445   test -z "$as_dir" && as_dir=.
12446   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12447 done
12448
12449        ;;
12450   esac
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
12454     as_myself=$0
12455   fi
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; }; }
12460   fi
12461   case $CONFIG_SHELL in
12462   '')
12463     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12465 do
12466   IFS=$as_save_IFS
12467   test -z "$as_dir" && as_dir=.
12468   for as_base in sh bash ksh sh5; do
12469          case $as_dir in
12470          /*)
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+"$@"}
12482            fi;;
12483          esac
12484        done
12485 done
12486 ;;
12487   esac
12488
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 |
12498     sed '
12499       N
12500       s,$,-,
12501       : loop
12502       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12503       t loop
12504       s,-$,,
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; }; }
12511
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).
12515   . ./$as_me.lineno
12516   # Exit status is that of the last command.
12517   exit
12518 }
12519
12520
12521 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12522   *c*,-n*) ECHO_N= ECHO_C='
12523 ' ECHO_T='      ' ;;
12524   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12525   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12526 esac
12527
12528 if expr a : '\(a\)' >/dev/null 2>&1; then
12529   as_expr=expr
12530 else
12531   as_expr=false
12532 fi
12533
12534 rm -f conf$$ conf$$.exe conf$$.file
12535 echo >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
12541     as_ln_s='cp -p'
12542   else
12543     as_ln_s='ln -s'
12544   fi
12545 elif ln conf$$.file conf$$ 2>/dev/null; then
12546   as_ln_s=ln
12547 else
12548   as_ln_s='cp -p'
12549 fi
12550 rm -f conf$$ conf$$.exe conf$$.file
12551
12552 if mkdir -p . 2>/dev/null; then
12553   as_mkdir_p=:
12554 else
12555   test -d ./-p && rmdir ./-p
12556   as_mkdir_p=false
12557 fi
12558
12559 as_executable_p="test -f"
12560
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'"
12563
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'"
12566
12567
12568 # IFS
12569 # We need space, tab and new line, in precisely that order.
12570 as_nl='
12571 '
12572 IFS="   $as_nl"
12573
12574 # CDPATH.
12575 $as_unset CDPATH
12576
12577 exec 6>&1
12578
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.
12582 exec 5>>config.log
12583 {
12584   echo
12585   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12586 ## Running $as_me. ##
12587 _ASBOX
12588 } >&5
12589 cat >&5 <<_CSEOF
12590
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
12593
12594   CONFIG_FILES    = $CONFIG_FILES
12595   CONFIG_HEADERS  = $CONFIG_HEADERS
12596   CONFIG_LINKS    = $CONFIG_LINKS
12597   CONFIG_COMMANDS = $CONFIG_COMMANDS
12598   $ $0 $@
12599
12600 _CSEOF
12601 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12602 echo >&5
12603 _ACEOF
12604
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
12608 fi
12609
12610 if test -n "$ac_config_headers"; then
12611   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12612 fi
12613
12614 if test -n "$ac_config_links"; then
12615   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12616 fi
12617
12618 if test -n "$ac_config_commands"; then
12619   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12620 fi
12621
12622 cat >>$CONFIG_STATUS <<\_ACEOF
12623
12624 ac_cs_usage="\
12625 \`$as_me' instantiates files from templates according to the
12626 current configuration.
12627
12628 Usage: $0 [OPTIONS] [FILE]...
12629
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
12639
12640 Configuration files:
12641 $config_files
12642
12643 Configuration headers:
12644 $config_headers
12645
12646 Configuration commands:
12647 $config_commands
12648
12649 Report bugs to <bug-autoconf@gnu.org>."
12650 _ACEOF
12651
12652 cat >>$CONFIG_STATUS <<_ACEOF
12653 ac_cs_version="\\
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'`\\"
12657
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."
12661 srcdir=$srcdir
12662 INSTALL="$INSTALL"
12663 _ACEOF
12664
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.
12668 ac_need_defaults=:
12669 while test $# != 0
12670 do
12671   case $1 in
12672   --*=*)
12673     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12674     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12675     ac_shift=:
12676     ;;
12677   -*)
12678     ac_option=$1
12679     ac_optarg=$2
12680     ac_shift=shift
12681     ;;
12682   *) # This is not an option, so the user has probably given explicit
12683      # arguments.
12684      ac_option=$1
12685      ac_need_defaults=false;;
12686   esac
12687
12688   case $ac_option in
12689   # Handling of the options.
12690 _ACEOF
12691 cat >>$CONFIG_STATUS <<\_ACEOF
12692   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12693     ac_cs_recheck=: ;;
12694   --version | --vers* | -V )
12695     echo "$ac_cs_version"; exit 0 ;;
12696   --he | --h)
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 )
12706     debug=: ;;
12707   --file | --fil | --fi | --f )
12708     $ac_shift
12709     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12710     ac_need_defaults=false;;
12711   --header | --heade | --head | --hea )
12712     $ac_shift
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)
12717     ac_cs_silent=: ;;
12718
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; }; } ;;
12725
12726   *) ac_config_targets="$ac_config_targets $1" ;;
12727
12728   esac
12729   shift
12730 done
12731
12732 ac_configure_extra_args=
12733
12734 if $ac_cs_silent; then
12735   exec 6>/dev/null
12736   ac_configure_extra_args="$ac_configure_extra_args --silent"
12737 fi
12738
12739 _ACEOF
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
12744 fi
12745
12746 _ACEOF
12747
12748 cat >>$CONFIG_STATUS <<_ACEOF
12749 #
12750 # INIT-COMMANDS section.
12751 #
12752
12753 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12754 # variables for create stdint.h replacement
12755 PACKAGE="$PACKAGE"
12756 VERSION="$VERSION"
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"
12771
12772
12773 _ACEOF
12774
12775
12776
12777 cat >>$CONFIG_STATUS <<\_ACEOF
12778 for ac_config_target in $ac_config_targets
12779 do
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; }; };;
12793   esac
12794 done
12795
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
12804 fi
12805
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.
12810 $debug ||
12811 {
12812   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12813   trap '{ (exit 1); exit 1; }' 1 2 13 15
12814 }
12815
12816 # Create a (secure) tmp directory for tmp files.
12817
12818 {
12819   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12820   test -n "$tmp" && test -d "$tmp"
12821 }  ||
12822 {
12823   tmp=./confstat$$-$RANDOM
12824   (umask 077 && mkdir $tmp)
12825 } ||
12826 {
12827    echo "$me: cannot create a temporary directory in ." >&2
12828    { (exit 1); exit 1; }
12829 }
12830
12831 _ACEOF
12832
12833 cat >>$CONFIG_STATUS <<_ACEOF
12834
12835 #
12836 # CONFIG_FILES section.
12837 #
12838
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
12891 s,@AWK@,$AWK,;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
12897 s,@CXX@,$CXX,;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
12913 s,@CC@,$CC,;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
12933 s,@CPP@,$CPP,;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
12943 CEOF
12944
12945 _ACEOF
12946
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.
12954   ac_more_lines=:
12955   ac_sed_cmds=
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
12959     else
12960       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12961     fi
12962     if test ! -s $tmp/subs.frag; then
12963       ac_more_lines=false
12964     else
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.
12969       (echo ':t
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"
12973       else
12974         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12975       fi
12976       ac_sed_frag=`expr $ac_sed_frag + 1`
12977       ac_beg=$ac_end
12978       ac_end=`expr $ac_end + $ac_max_sed_lines`
12979     fi
12980   done
12981   if test -z "$ac_sed_cmds"; then
12982     ac_sed_cmds=cat
12983   fi
12984 fi # test -n "$CONFIG_FILES"
12985
12986 _ACEOF
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".
12990   case $ac_file in
12991   - | *:- | *:-:* ) # input from stdin
12992         cat >$tmp/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 ;;
12998   esac
12999
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 ||
13007 echo X"$ac_file" |
13008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13009           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13010           /^X\(\/\/\)$/{ s//\1/; q; }
13011           /^X\(\/\).*/{ s//\1/; q; }
13012           s/.*/./; q'`
13013   { if $as_mkdir_p; then
13014     mkdir -p "$ac_dir"
13015   else
13016     as_dir="$ac_dir"
13017     as_dirs=
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 ||
13026 echo X"$as_dir" |
13027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13028           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13029           /^X\(\/\/\)$/{ s//\1/; q; }
13030           /^X\(\/\).*/{ s//\1/; q; }
13031           s/.*/./; q'`
13032     done
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; }; }; }
13037
13038   ac_builddir=.
13039
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'`
13044 else
13045   ac_dir_suffix= ac_top_builddir=
13046 fi
13047
13048 case $srcdir in
13049   .)  # No --srcdir option.  We are building in place.
13050     ac_srcdir=.
13051     if test -z "$ac_top_builddir"; then
13052        ac_top_srcdir=.
13053     else
13054        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13055     fi ;;
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 ;;
13062 esac
13063
13064 # Do not use `cd foo && pwd` to compute absolute paths, because
13065 # the directories may not exist.
13066 case `pwd` in
13067 .) ac_abs_builddir="$ac_dir";;
13068 *)
13069   case "$ac_dir" in
13070   .) ac_abs_builddir=`pwd`;;
13071   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13072   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13073   esac;;
13074 esac
13075 case $ac_abs_builddir in
13076 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13077 *)
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}.;;
13082   esac;;
13083 esac
13084 case $ac_abs_builddir in
13085 .) ac_abs_srcdir=$ac_srcdir;;
13086 *)
13087   case $ac_srcdir in
13088   .) ac_abs_srcdir=$ac_abs_builddir;;
13089   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13090   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13091   esac;;
13092 esac
13093 case $ac_abs_builddir in
13094 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13095 *)
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;;
13100   esac;;
13101 esac
13102
13103
13104   case $INSTALL in
13105   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13106   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13107   esac
13108
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;}
13112     rm -f "$ac_file"
13113   fi
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
13118     configure_input=
13119   else
13120     configure_input="$ac_file.  "
13121   fi
13122   configure_input=$configure_input"Generated from `echo $ac_file_in |
13123                                      sed 's,.*/,,'` by configure."
13124
13125   # First look for the input files in the build tree, otherwise in the
13126   # src tree.
13127   ac_file_inputs=`IFS=:
13128     for f in $ac_file_in; do
13129       case $f in
13130       -) echo $tmp/stdin ;;
13131       [\\/$]*)
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; }; }
13136          echo "$f";;
13137       *) # Relative
13138          if test -f "$f"; then
13139            # Build tree
13140            echo "$f"
13141          elif test -f "$srcdir/$f"; then
13142            # Source tree
13143            echo "$srcdir/$f"
13144          else
13145            # /dev/null tree
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; }; }
13149          fi;;
13150       esac
13151     done` || { (exit 1); exit 1; }
13152 _ACEOF
13153 cat >>$CONFIG_STATUS <<_ACEOF
13154   sed "$ac_vpsub
13155 $extrasub
13156 _ACEOF
13157 cat >>$CONFIG_STATUS <<\_ACEOF
13158 :t
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
13171   rm -f $tmp/stdin
13172   if test x"$ac_file" != x-; then
13173     mv $tmp/out $ac_file
13174   else
13175     cat $tmp/out
13176     rm -f $tmp/out
13177   fi
13178
13179 done
13180 _ACEOF
13181 cat >>$CONFIG_STATUS <<\_ACEOF
13182
13183 #
13184 # CONFIG_HEADER section.
13185 #
13186
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.
13189 #
13190 # ac_d sets the value in "#define NAME VALUE" lines.
13191 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13192 ac_dB='[         ].*$,\1#\2'
13193 ac_dC=' '
13194 ac_dD=',;t'
13195 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13196 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13197 ac_uB='$,\1#\2define\3'
13198 ac_uC=' '
13199 ac_uD=',;t'
13200
13201 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13202   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13203   case $ac_file in
13204   - | *:- | *:-:* ) # input from stdin
13205         cat >$tmp/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 ;;
13211   esac
13212
13213   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13214 echo "$as_me: creating $ac_file" >&6;}
13215
13216   # First look for the input files in the build tree, otherwise in the
13217   # src tree.
13218   ac_file_inputs=`IFS=:
13219     for f in $ac_file_in; do
13220       case $f in
13221       -) echo $tmp/stdin ;;
13222       [\\/$]*)
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.
13228          echo "$f";;
13229       *) # Relative
13230          if test -f "$f"; then
13231            # Build tree
13232            echo "$f"
13233          elif test -f "$srcdir/$f"; then
13234            # Source tree
13235            echo "$srcdir/$f"
13236          else
13237            # /dev/null tree
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; }; }
13241          fi;;
13242       esac
13243     done` || { (exit 1); exit 1; }
13244   # Remove the trailing spaces.
13245   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13246
13247 _ACEOF
13248
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.
13259 #
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
13264 s/[\\&,]/\\&/g
13265 s,[\\$`],\\&,g
13266 t clear
13267 : clear
13268 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13269 t end
13270 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13271 : end
13272 _ACEOF
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
13279
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]*,/* & */,
13285 _ACEOF
13286
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
13295 do
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
13304   echo 'CEOF
13305   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13306   rm -f $tmp/in
13307   mv $tmp/out $tmp/in
13308 ' >>$CONFIG_STATUS
13309   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13310   rm -f conftest.defines
13311   mv conftest.tail conftest.defines
13312 done
13313 rm -f conftest.defines
13314 echo '  fi # grep' >>$CONFIG_STATUS
13315 echo >>$CONFIG_STATUS
13316
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
13322 do
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
13331   echo 'CEOF
13332   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13333   rm -f $tmp/in
13334   mv $tmp/out $tmp/in
13335 ' >>$CONFIG_STATUS
13336   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13337   rm -f conftest.undefs
13338   mv conftest.tail conftest.undefs
13339 done
13340 rm -f conftest.undefs
13341
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
13348   else
13349     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13350   fi
13351   cat $tmp/in >>$tmp/config.h
13352   rm -f $tmp/in
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;}
13357     else
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 ||
13364 echo X"$ac_file" |
13365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13366           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13367           /^X\(\/\/\)$/{ s//\1/; q; }
13368           /^X\(\/\).*/{ s//\1/; q; }
13369           s/.*/./; q'`
13370       { if $as_mkdir_p; then
13371     mkdir -p "$ac_dir"
13372   else
13373     as_dir="$ac_dir"
13374     as_dirs=
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 ||
13383 echo X"$as_dir" |
13384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13385           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13386           /^X\(\/\/\)$/{ s//\1/; q; }
13387           /^X\(\/\).*/{ s//\1/; q; }
13388           s/.*/./; q'`
13389     done
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; }; }; }
13394
13395       rm -f $ac_file
13396       mv $tmp/config.h $ac_file
13397     fi
13398   else
13399     cat $tmp/config.h
13400     rm -f $tmp/config.h
13401   fi
13402 # Compute $ac_file's index in $config_headers.
13403 _am_stamp_count=1
13404 for _am_header in $config_headers :; do
13405   case $_am_header in
13406     $ac_file | $ac_file:* )
13407       break ;;
13408     * )
13409       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13410   esac
13411 done
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 ||
13418 echo X$ac_file |
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
13424 done
13425 _ACEOF
13426 cat >>$CONFIG_STATUS <<\_ACEOF
13427
13428 #
13429 # CONFIG_COMMANDS section.
13430 #
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 ||
13440 echo X"$ac_dest" |
13441     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13442           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13443           /^X\(\/\/\)$/{ s//\1/; q; }
13444           /^X\(\/\).*/{ s//\1/; q; }
13445           s/.*/./; q'`
13446   { if $as_mkdir_p; then
13447     mkdir -p "$ac_dir"
13448   else
13449     as_dir="$ac_dir"
13450     as_dirs=
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 ||
13459 echo X"$as_dir" |
13460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13461           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13462           /^X\(\/\/\)$/{ s//\1/; q; }
13463           /^X\(\/\).*/{ s//\1/; q; }
13464           s/.*/./; q'`
13465     done
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; }; }; }
13470
13471   ac_builddir=.
13472
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'`
13477 else
13478   ac_dir_suffix= ac_top_builddir=
13479 fi
13480
13481 case $srcdir in
13482   .)  # No --srcdir option.  We are building in place.
13483     ac_srcdir=.
13484     if test -z "$ac_top_builddir"; then
13485        ac_top_srcdir=.
13486     else
13487        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13488     fi ;;
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 ;;
13495 esac
13496
13497 # Do not use `cd foo && pwd` to compute absolute paths, because
13498 # the directories may not exist.
13499 case `pwd` in
13500 .) ac_abs_builddir="$ac_dir";;
13501 *)
13502   case "$ac_dir" in
13503   .) ac_abs_builddir=`pwd`;;
13504   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13505   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13506   esac;;
13507 esac
13508 case $ac_abs_builddir in
13509 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13510 *)
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}.;;
13515   esac;;
13516 esac
13517 case $ac_abs_builddir in
13518 .) ac_abs_srcdir=$ac_srcdir;;
13519 *)
13520   case $ac_srcdir in
13521   .) ac_abs_srcdir=$ac_abs_builddir;;
13522   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13523   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13524   esac;;
13525 esac
13526 case $ac_abs_builddir in
13527 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13528 *)
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;;
13533   esac;;
13534 esac
13535
13536
13537   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13538 echo "$as_me: executing $ac_dest commands" >&6;}
13539   case $ac_dest in
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 ||
13556 echo X"$mf" |
13557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13558           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13559           /^X\(\/\/\)$/{ s//\1/; q; }
13560           /^X\(\/\).*/{ s//\1/; q; }
13561           s/.*/./; q'`
13562   else
13563     continue
13564   fi
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
13577   # expansion.
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 ||
13589 echo X"$file" |
13590     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13591           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13592           /^X\(\/\/\)$/{ s//\1/; q; }
13593           /^X\(\/\).*/{ s//\1/; q; }
13594           s/.*/./; q'`
13595     { if $as_mkdir_p; then
13596     mkdir -p $dirpart/$fdir
13597   else
13598     as_dir=$dirpart/$fdir
13599     as_dirs=
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 ||
13608 echo X"$as_dir" |
13609     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13610           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13611           /^X\(\/\/\)$/{ s//\1/; q; }
13612           /^X\(\/\).*/{ s//\1/; q; }
13613           s/.*/./; q'`
13614     done
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; }; }; }
13619
13620     # echo "creating $dirpart/$file"
13621     echo '# dummy' > "$dirpart/$file"
13622   done
13623 done
13624  ;;
13625     $ac_stdint_h )
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
13629
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
13640 else
13641
13642 cat >>$ac_stdint <<STDINT_EOF
13643
13644 /* ................... shortcircuit part ........................... */
13645
13646 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
13647 #include <stdint.h>
13648 #else
13649 #include <stddef.h>
13650
13651 /* .................... configured part ............................ */
13652
13653 STDINT_EOF
13654
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
13659 else
13660   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
13661 fi
13662
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
13667 else
13668   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
13669 fi
13670
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
13675 else
13676   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
13677 fi
13678
13679 echo "" >>$ac_stdint
13680
13681 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
13682   echo "#include <$ac_header>" >>$ac_stdint
13683   echo "" >>$ac_stdint
13684 fi fi
13685
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
13689 else
13690 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
13691 fi
13692 if test "$ac_cv_type_u_int64_t" = "yes" ; then
13693 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
13694 else
13695 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
13696 fi
13697 echo "" >>$ac_stdint
13698
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
13703 else
13704 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
13705 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
13706 fi
13707 echo "" >>$ac_stdint
13708
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
13712 else
13713 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
13714 fi
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
13718 else
13719 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
13720 fi
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
13724 else
13725 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
13726 fi
13727 echo "" >>$ac_stdint
13728
13729   cat >>$ac_stdint <<STDINT_EOF
13730 /* .................... detections part ............................ */
13731
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
13737 #else
13738 #define _STDINT_HAVE_U_INT_TYPES
13739 #endif
13740 #endif
13741 #endif
13742
13743 #ifdef _STDINT_HAVE_U_INT_TYPES
13744 #undef _STDINT_NEED_INT_MODEL_T
13745 #endif
13746
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
13751 #endif
13752 #endif
13753 #endif
13754
13755 #ifndef _STDINT_HAVE_INT_LEAST32_T
13756 #define _STDINT_NEED_INT_LEAST_T
13757 #endif
13758
13759 #ifndef _STDINT_HAVE_INT_FAST32_T
13760 #define _STDINT_NEED_INT_FAST_T
13761 #endif
13762
13763 #ifndef _STDINT_HEADER_INTPTR
13764 #define _STDINT_NEED_INTPTR_T
13765 #ifndef _STDINT_HAVE_INTMAX_T
13766 #define _STDINT_NEED_INTMAX_T
13767 #endif
13768 #endif
13769
13770
13771 /* .................... definition part ............................ */
13772
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;
13780 #endif
13781 #endif
13782
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;
13790
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;
13796
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;
13804 #endif
13805
13806 #elif defined __alpha || (defined __mips && defined _ABIN32)
13807 #if !defined _NO_LONGLONG
13808 typedef long int64_t;
13809 typedef unsigned long uint64_t;
13810 #endif
13811   /* compiler/cpu type to define int64_t */
13812 #endif
13813 #endif
13814 #endif
13815
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;
13821
13822 /* glibc compatibility */
13823 #ifndef __int8_t_defined
13824 #define __int8_t_defined
13825 #endif
13826 #endif
13827
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) */
13832
13833
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;
13845 #endif
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;
13857 #endif
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;
13869 #endif
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;
13875 #endif
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;
13886 #endif
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;
13893 #endif
13894 #else
13895 #define _STDINT_NO_INT32_T
13896 #endif
13897 #else
13898 #define _STDINT_NO_INT8_T
13899 #define _STDINT_NO_INT32_T
13900 #endif
13901 #endif
13902
13903 /*
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
13909  * implemented.
13910  */
13911
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;
13918 #endif
13919
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;
13925 #endif
13926   /* least types */
13927 #endif
13928
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;
13935 #endif
13936
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;
13942 #endif
13943   /* fast types */
13944 #endif
13945
13946 #ifdef _STDINT_NEED_INTMAX_T
13947 #ifdef _HAVE_UINT64_T
13948 typedef  int64_t       intmax_t;
13949 typedef uint64_t      uintmax_t;
13950 #else
13951 typedef          long  intmax_t;
13952 typedef unsigned long uintmax_t;
13953 #endif
13954 #endif
13955
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;
13972 #endif
13973 #endif
13974 #endif
13975
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
13979 #ifndef UINT32_C
13980
13981 /* Signed.  */
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
13987 # else
13988 #  define INT64_C(c)    c ## LL
13989 # endif
13990
13991 /* Unsigned.  */
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
13997 # else
13998 #  define UINT64_C(c)   c ## ULL
13999 # endif
14000
14001 /* Maximal type.  */
14002 # ifdef _HAVE_LONGLONG_UINT64_T
14003 #  define INTMAX_C(c)   c ## L
14004 #  define UINTMAX_C(c)  c ## UL
14005 # else
14006 #  define INTMAX_C(c)   c ## LL
14007 #  define UINTMAX_C(c)  c ## ULL
14008 # endif
14009
14010   /* literalnumbers */
14011 #endif
14012 #endif
14013
14014 /* These limits are merily those of a two complement byte-oriented system */
14015
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))
14026
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))
14032
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
14043
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
14049
14050   /* shortcircuit*/
14051 #endif
14052   /* once */
14053 #endif
14054 #endif
14055 STDINT_EOF
14056 fi
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;}
14060     else
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; }
14072           s/.*/./; q'`
14073       { if $as_mkdir_p; then
14074     mkdir -p "$ac_dir"
14075   else
14076     as_dir="$ac_dir"
14077     as_dirs=
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 ||
14086 echo X"$as_dir" |
14087     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14088           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14089           /^X\(\/\/\)$/{ s//\1/; q; }
14090           /^X\(\/\).*/{ s//\1/; q; }
14091           s/.*/./; q'`
14092     done
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; }; }; }
14097
14098       rm -f $ac_stdint_h
14099       mv $ac_stdint $ac_stdint_h
14100     fi
14101  ;;
14102   esac
14103 done
14104 _ACEOF
14105
14106 cat >>$CONFIG_STATUS <<\_ACEOF
14107
14108 { (exit 0); exit 0; }
14109 _ACEOF
14110 chmod +x $CONFIG_STATUS
14111 ac_clean_files=$ac_clean_files_save
14112
14113
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
14123   ac_cs_success=:
14124   ac_config_status_args=
14125   test "$silent" = yes &&
14126     ac_config_status_args="$ac_config_status_args --quiet"
14127   exec 5>/dev/null
14128   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14129   exec 5>>config.log
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; }
14133 fi
14134