]> The Tcpdump Group git mirrors - tcpdump/blob - configure
d2a13c318d0cad573b9827e88dcbb1867c2f34ed
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.196.2.2 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27 as_unset=unset
28 else
29 as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 LC_TELEPHONE LC_TIME
44 do
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
47 else
48 $as_unset $as_var
49 fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54 as_expr=expr
55 else
56 as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60 as_basename=basename
61 else
62 as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
76 s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
91 chmod +x conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93 PATH_SEPARATOR=';'
94 else
95 PATH_SEPARATOR=:
96 fi
97 rm -f conf$$.sh
98 fi
99
100
101 as_lineno_1=$LINENO
102 as_lineno_2=$LINENO
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
107 # relative or not.
108 case $0 in
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113 IFS=$as_save_IFS
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118 ;;
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
124 fi
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
128 fi
129 case $CONFIG_SHELL in
130 '')
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
137 case $as_dir in
138 /*)
139 if ("$as_dir/$as_base" -c '
140 as_lineno_1=$LINENO
141 as_lineno_2=$LINENO
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
148 export CONFIG_SHELL
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 fi;;
151 esac
152 done
153 done
154 ;;
155 esac
156
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
166 sed '
167 N
168 s,$,-,
169 : loop
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 t loop
172 s,-$,,
173 s,^['$as_cr_digits']*\n,,
174 ' >$as_me.lineno &&
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
178
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
182 . ./$as_me.lineno
183 # Exit status is that of the last command.
184 exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T=' ' ;;
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196 as_expr=expr
197 else
198 as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
208 as_ln_s='cp -p'
209 else
210 as_ln_s='ln -s'
211 fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213 as_ln_s=ln
214 else
215 as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220 as_mkdir_p=:
221 else
222 test -d ./-p && rmdir ./-p
223 as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS=" $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME=
270 PACKAGE_TARNAME=
271 PACKAGE_VERSION=
272 PACKAGE_STRING=
273 PACKAGE_BUGREPORT=
274
275 ac_unique_file="tcpdump.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS RANLIB ac_ct_RANLIB V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-smb enable possibly-buggy SMB printer default=yes
849 --disable-smb disable possibly-buggy SMB printer
850 --enable-ipv6 enable ipv6 (with ipv4) support
851 --disable-ipv6 disable ipv6 support
852
853 Optional Packages:
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --without-gcc don't use gcc
857 --with-user=USERNAME drop privileges by default to USERNAME
858 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
859 --without-crypto disable crypto support
860
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
869
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
872
873 _ACEOF
874 fi
875
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
882
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
889 fi
890
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
911 *)
912 case "$ac_dir" in
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 *)
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
929 *)
930 case $ac_srcdir in
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 *)
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943 esac;;
944 esac
945
946 cd $ac_dir
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
949 echo
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
952 echo
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
956 echo
957 $ac_configure --help
958 else
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960 fi
961 cd $ac_popdir
962 done
963 fi
964
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967 cat <<\_ACEOF
968
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
972 _ACEOF
973 exit 0
974 fi
975 exec 5>config.log
976 cat >&5 <<_ACEOF
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
979
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59. Invocation command line was
982
983 $ $0 $@
984
985 _ACEOF
986 {
987 cat <<_ASUNAME
988 ## --------- ##
989 ## Platform. ##
990 ## --------- ##
991
992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
997
998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1000
1001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1008
1009 _ASUNAME
1010
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 for as_dir in $PATH
1013 do
1014 IFS=$as_save_IFS
1015 test -z "$as_dir" && as_dir=.
1016 echo "PATH: $as_dir"
1017 done
1018
1019 } >&5
1020
1021 cat >&5 <<_ACEOF
1022
1023
1024 ## ----------- ##
1025 ## Core tests. ##
1026 ## ----------- ##
1027
1028 _ACEOF
1029
1030
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1036 ac_configure_args=
1037 ac_configure_args0=
1038 ac_configure_args1=
1039 ac_sep=
1040 ac_must_keep_next=false
1041 for ac_pass in 1 2
1042 do
1043 for ac_arg
1044 do
1045 case $ac_arg in
1046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 continue ;;
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052 esac
1053 case $ac_pass in
1054 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055 2)
1056 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057 if test $ac_must_keep_next = true; then
1058 ac_must_keep_next=false # Got value, back to normal.
1059 else
1060 case $ac_arg in
1061 *=* | --config-cache | -C | -disable-* | --disable-* \
1062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064 | -with-* | --with-* | -without-* | --without-* | --x)
1065 case "$ac_configure_args0 " in
1066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067 esac
1068 ;;
1069 -* ) ac_must_keep_next=true ;;
1070 esac
1071 fi
1072 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1074 ac_sep=" "
1075 ;;
1076 esac
1077 done
1078 done
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log. We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close' the trap.
1087 trap 'exit_status=$?
1088 # Save into config.log some information that might help in debugging.
1089 {
1090 echo
1091
1092 cat <<\_ASBOX
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1096 _ASBOX
1097 echo
1098 # The following way of writing the cache mishandles newlines in values,
1099 {
1100 (set) 2>&1 |
1101 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102 *ac_space=\ *)
1103 sed -n \
1104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106 ;;
1107 *)
1108 sed -n \
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1110 ;;
1111 esac;
1112 }
1113 echo
1114
1115 cat <<\_ASBOX
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1119 _ASBOX
1120 echo
1121 for ac_var in $ac_subst_vars
1122 do
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1125 done | sort
1126 echo
1127
1128 if test -n "$ac_subst_files"; then
1129 cat <<\_ASBOX
1130 ## ------------- ##
1131 ## Output files. ##
1132 ## ------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_files
1136 do
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1141 fi
1142
1143 if test -s confdefs.h; then
1144 cat <<\_ASBOX
1145 ## ----------- ##
1146 ## confdefs.h. ##
1147 ## ----------- ##
1148 _ASBOX
1149 echo
1150 sed "/^$/d" confdefs.h | sort
1151 echo
1152 fi
1153 test "$ac_signal" != 0 &&
1154 echo "$as_me: caught signal $ac_signal"
1155 echo "$as_me: exit $exit_status"
1156 } >&5
1157 rm -f core *.core &&
1158 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159 exit $exit_status
1160 ' 0
1161 for ac_signal in 1 2 13 15; do
1162 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 done
1164 ac_signal=0
1165
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169 echo >confdefs.h
1170
1171 # Predefined preprocessor variables.
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 _ACEOF
1176
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 _ACEOF
1181
1182
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 _ACEOF
1186
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 _ACEOF
1196
1197
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE; then
1202 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203 else
1204 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1205 fi
1206 fi
1207 for ac_site_file in $CONFIG_SITE; do
1208 if test -r "$ac_site_file"; then
1209 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211 sed 's/^/| /' "$ac_site_file" >&5
1212 . "$ac_site_file"
1213 fi
1214 done
1215
1216 if test -r "$cache_file"; then
1217 # Some versions of bash will fail to source /dev/null (special
1218 # files actually), so we avoid doing that.
1219 if test -f "$cache_file"; then
1220 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1222 case $cache_file in
1223 [\\/]* | ?:[\\/]* ) . $cache_file;;
1224 *) . ./$cache_file;;
1225 esac
1226 fi
1227 else
1228 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1230 >$cache_file
1231 fi
1232
1233 # Check that the precious variables saved in the cache have kept the same
1234 # value.
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239 eval ac_new_set=\$ac_env_${ac_var}_set
1240 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val="\$ac_env_${ac_var}_value"
1242 case $ac_old_set,$ac_new_set in
1243 set,)
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1247 ,set)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,);;
1252 *)
1253 if test "x$ac_old_val" != "x$ac_new_val"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1257 echo "$as_me: former value: $ac_old_val" >&2;}
1258 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1259 echo "$as_me: current value: $ac_new_val" >&2;}
1260 ac_cache_corrupted=:
1261 fi;;
1262 esac
1263 # Pass precious variables to config.status.
1264 if test "$ac_new_set" = set; then
1265 case $ac_new_val in
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 *) ac_arg=$ac_var=$ac_new_val ;;
1269 esac
1270 case " $ac_configure_args " in
1271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1272 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273 esac
1274 fi
1275 done
1276 if $ac_cache_corrupted; then
1277 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281 { (exit 1); exit 1; }; }
1282 fi
1283
1284 ac_ext=c
1285 ac_cpp='$CPP $CPPFLAGS'
1286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309 ac_aux_dir=
1310 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1311 if test -f $ac_dir/install-sh; then
1312 ac_aux_dir=$ac_dir
1313 ac_install_sh="$ac_aux_dir/install-sh -c"
1314 break
1315 elif test -f $ac_dir/install.sh; then
1316 ac_aux_dir=$ac_dir
1317 ac_install_sh="$ac_aux_dir/install.sh -c"
1318 break
1319 elif test -f $ac_dir/shtool; then
1320 ac_aux_dir=$ac_dir
1321 ac_install_sh="$ac_aux_dir/shtool install -c"
1322 break
1323 fi
1324 done
1325 if test -z "$ac_aux_dir"; then
1326 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1327 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1328 { (exit 1); exit 1; }; }
1329 fi
1330 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1331 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1332 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1333
1334 # Make sure we can run config.sub.
1335 $ac_config_sub sun4 >/dev/null 2>&1 ||
1336 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1337 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1338 { (exit 1); exit 1; }; }
1339
1340 echo "$as_me:$LINENO: checking build system type" >&5
1341 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1342 if test "${ac_cv_build+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1344 else
1345 ac_cv_build_alias=$build_alias
1346 test -z "$ac_cv_build_alias" &&
1347 ac_cv_build_alias=`$ac_config_guess`
1348 test -z "$ac_cv_build_alias" &&
1349 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1350 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1351 { (exit 1); exit 1; }; }
1352 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1353 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1354 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1355 { (exit 1); exit 1; }; }
1356
1357 fi
1358 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1359 echo "${ECHO_T}$ac_cv_build" >&6
1360 build=$ac_cv_build
1361 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1362 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1363 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1364
1365
1366 echo "$as_me:$LINENO: checking host system type" >&5
1367 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1368 if test "${ac_cv_host+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371 ac_cv_host_alias=$host_alias
1372 test -z "$ac_cv_host_alias" &&
1373 ac_cv_host_alias=$ac_cv_build_alias
1374 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1375 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1376 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1377 { (exit 1); exit 1; }; }
1378
1379 fi
1380 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1381 echo "${ECHO_T}$ac_cv_host" >&6
1382 host=$ac_cv_host
1383 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1386
1387
1388
1389
1390
1391
1392
1393
1394 # Check whether --with-gcc or --without-gcc was given.
1395 if test "${with_gcc+set}" = set; then
1396 withval="$with_gcc"
1397
1398 fi;
1399 V_CCOPT="-O"
1400 V_INCLS=""
1401 if test "${srcdir}" != "." ; then
1402 V_INCLS="-I\$(srcdir)"
1403 fi
1404 if test "${CFLAGS+set}" = set; then
1405 LBL_CFLAGS="$CFLAGS"
1406 fi
1407 if test -z "$CC" ; then
1408 case "$host_os" in
1409
1410 bsdi*)
1411 # Extract the first word of "shlicc2", so it can be a program name with args.
1412 set dummy shlicc2; ac_word=$2
1413 echo "$as_me:$LINENO: checking for $ac_word" >&5
1414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 else
1418 if test -n "$SHLICC2"; then
1419 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1420 else
1421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 for as_dir in $PATH
1423 do
1424 IFS=$as_save_IFS
1425 test -z "$as_dir" && as_dir=.
1426 for ac_exec_ext in '' $ac_executable_extensions; do
1427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1428 ac_cv_prog_SHLICC2="yes"
1429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430 break 2
1431 fi
1432 done
1433 done
1434
1435 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1436 fi
1437 fi
1438 SHLICC2=$ac_cv_prog_SHLICC2
1439 if test -n "$SHLICC2"; then
1440 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1441 echo "${ECHO_T}$SHLICC2" >&6
1442 else
1443 echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1445 fi
1446
1447 if test $SHLICC2 = yes ; then
1448 CC=shlicc2
1449 export CC
1450 fi
1451 ;;
1452 esac
1453 fi
1454 if test -z "$CC" -a "$with_gcc" = no ; then
1455 CC=cc
1456 export CC
1457 fi
1458 ac_ext=c
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463 if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1466 echo "$as_me:$LINENO: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1473 else
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1476 do
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 break 2
1484 fi
1485 done
1486 done
1487
1488 fi
1489 fi
1490 CC=$ac_cv_prog_CC
1491 if test -n "$CC"; then
1492 echo "$as_me:$LINENO: result: $CC" >&5
1493 echo "${ECHO_T}$CC" >&6
1494 else
1495 echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1497 fi
1498
1499 fi
1500 if test -z "$ac_cv_prog_CC"; then
1501 ac_ct_CC=$CC
1502 # Extract the first word of "gcc", so it can be a program name with args.
1503 set dummy gcc; ac_word=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 else
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511 else
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 for as_dir in $PATH
1514 do
1515 IFS=$as_save_IFS
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_ac_ct_CC="gcc"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 break 2
1522 fi
1523 done
1524 done
1525
1526 fi
1527 fi
1528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1532 else
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1535 fi
1536
1537 CC=$ac_ct_CC
1538 else
1539 CC="$ac_cv_prog_CC"
1540 fi
1541
1542 if test -z "$CC"; then
1543 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1545 set dummy ${ac_tool_prefix}cc; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1553 else
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1556 do
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC="${ac_tool_prefix}cc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
1564 fi
1565 done
1566 done
1567
1568 fi
1569 fi
1570 CC=$ac_cv_prog_CC
1571 if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1574 else
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1577 fi
1578
1579 fi
1580 if test -z "$ac_cv_prog_CC"; then
1581 ac_ct_CC=$CC
1582 # Extract the first word of "cc", so it can be a program name with args.
1583 set dummy cc; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="cc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
1602 fi
1603 done
1604 done
1605
1606 fi
1607 fi
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1612 else
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1615 fi
1616
1617 CC=$ac_ct_CC
1618 else
1619 CC="$ac_cv_prog_CC"
1620 fi
1621
1622 fi
1623 if test -z "$CC"; then
1624 # Extract the first word of "cc", so it can be a program name with args.
1625 set dummy cc; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631 if test -n "$CC"; then
1632 ac_cv_prog_CC="$CC" # Let the user override the test.
1633 else
1634 ac_prog_rejected=no
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1637 do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1643 ac_prog_rejected=yes
1644 continue
1645 fi
1646 ac_cv_prog_CC="cc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1649 fi
1650 done
1651 done
1652
1653 if test $ac_prog_rejected = yes; then
1654 # We found a bogon in the path, so make sure we never use it.
1655 set dummy $ac_cv_prog_CC
1656 shift
1657 if test $# != 0; then
1658 # We chose a different compiler from the bogus one.
1659 # However, it has the same basename, so the bogon will be chosen
1660 # first if we set CC to just the basename; use the full file name.
1661 shift
1662 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1663 fi
1664 fi
1665 fi
1666 fi
1667 CC=$ac_cv_prog_CC
1668 if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670 echo "${ECHO_T}$CC" >&6
1671 else
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674 fi
1675
1676 fi
1677 if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
1679 for ac_prog in cl
1680 do
1681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1690 else
1691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 for as_dir in $PATH
1693 do
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1701 fi
1702 done
1703 done
1704
1705 fi
1706 fi
1707 CC=$ac_cv_prog_CC
1708 if test -n "$CC"; then
1709 echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6
1711 else
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1714 fi
1715
1716 test -n "$CC" && break
1717 done
1718 fi
1719 if test -z "$CC"; then
1720 ac_ct_CC=$CC
1721 for ac_prog in cl
1722 do
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy $ac_prog; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1735 do
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1743 fi
1744 done
1745 done
1746
1747 fi
1748 fi
1749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1753 else
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1756 fi
1757
1758 test -n "$ac_ct_CC" && break
1759 done
1760
1761 CC=$ac_ct_CC
1762 fi
1763
1764 fi
1765
1766
1767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: no acceptable C compiler found in \$PATH
1770 See \`config.log' for more details." >&2;}
1771 { (exit 1); exit 1; }; }
1772
1773 # Provide some information about the compiler.
1774 echo "$as_me:$LINENO:" \
1775 "checking for C compiler version" >&5
1776 ac_compiler=`set X $ac_compile; echo $2`
1777 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778 (eval $ac_compiler --version </dev/null >&5) 2>&5
1779 ac_status=$?
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }
1782 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783 (eval $ac_compiler -v </dev/null >&5) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788 (eval $ac_compiler -V </dev/null >&5) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1792
1793 cat >conftest.$ac_ext <<_ACEOF
1794 /* confdefs.h. */
1795 _ACEOF
1796 cat confdefs.h >>conftest.$ac_ext
1797 cat >>conftest.$ac_ext <<_ACEOF
1798 /* end confdefs.h. */
1799
1800 int
1801 main ()
1802 {
1803
1804 ;
1805 return 0;
1806 }
1807 _ACEOF
1808 ac_clean_files_save=$ac_clean_files
1809 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1810 # Try to create an executable without -o first, disregard a.out.
1811 # It will help us diagnose broken compilers, and finding out an intuition
1812 # of exeext.
1813 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1814 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1815 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817 (eval $ac_link_default) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # Find the output, starting from the most likely. This scheme is
1822 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1823 # resort.
1824
1825 # Be careful to initialize this variable, since it used to be cached.
1826 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1827 ac_cv_exeext=
1828 # b.out is created by i960 compilers.
1829 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1830 do
1831 test -f "$ac_file" || continue
1832 case $ac_file in
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1834 ;;
1835 conftest.$ac_ext )
1836 # This is the source file.
1837 ;;
1838 [ab].out )
1839 # We found the default executable, but exeext='' is most
1840 # certainly right.
1841 break;;
1842 *.* )
1843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 # FIXME: I believe we export ac_cv_exeext for Libtool,
1845 # but it would be cool to find out if it's true. Does anybody
1846 # maintain Libtool? --akim.
1847 export ac_cv_exeext
1848 break;;
1849 * )
1850 break;;
1851 esac
1852 done
1853 else
1854 echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&2;}
1861 { (exit 77); exit 77; }; }
1862 fi
1863
1864 ac_exeext=$ac_cv_exeext
1865 echo "$as_me:$LINENO: result: $ac_file" >&5
1866 echo "${ECHO_T}$ac_file" >&6
1867
1868 # Check the compiler produces executables we can run. If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873 # If not cross compiling, check that we can run a simple program.
1874 if test "$cross_compiling" != yes; then
1875 if { ac_try='./$ac_file'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877 (eval $ac_try) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1881 cross_compiling=no
1882 else
1883 if test "$cross_compiling" = maybe; then
1884 cross_compiling=yes
1885 else
1886 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot run C compiled programs.
1890 If you meant to cross compile, use \`--host'.
1891 See \`config.log' for more details." >&2;}
1892 { (exit 1); exit 1; }; }
1893 fi
1894 fi
1895 fi
1896 echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6
1898
1899 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1900 ac_clean_files=$ac_clean_files_save
1901 # Check the compiler produces executables we can run. If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906 echo "${ECHO_T}$cross_compiling" >&6
1907
1908 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
1912 ac_status=$?
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1917 # work properly (i.e., refer to `conftest.exe'), while it won't with
1918 # `rm'.
1919 for ac_file in conftest.exe conftest conftest.*; do
1920 test -f "$ac_file" || continue
1921 case $ac_file in
1922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1924 export ac_cv_exeext
1925 break;;
1926 * ) break;;
1927 esac
1928 done
1929 else
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
1935 fi
1936
1937 rm -f conftest$ac_cv_exeext
1938 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939 echo "${ECHO_T}$ac_cv_exeext" >&6
1940
1941 rm -f conftest.$ac_ext
1942 EXEEXT=$ac_cv_exeext
1943 ac_exeext=$EXEEXT
1944 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946 if test "${ac_cv_objext+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 cat >conftest.$ac_ext <<_ACEOF
1950 /* confdefs.h. */
1951 _ACEOF
1952 cat confdefs.h >>conftest.$ac_ext
1953 cat >>conftest.$ac_ext <<_ACEOF
1954 /* end confdefs.h. */
1955
1956 int
1957 main ()
1958 {
1959
1960 ;
1961 return 0;
1962 }
1963 _ACEOF
1964 rm -f conftest.o conftest.obj
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; then
1970 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1971 case $ac_file in
1972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1974 break;;
1975 esac
1976 done
1977 else
1978 echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982 See \`config.log' for more details." >&5
1983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
1986 fi
1987
1988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1989 fi
1990 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991 echo "${ECHO_T}$ac_cv_objext" >&6
1992 OBJEXT=$ac_cv_objext
1993 ac_objext=$OBJEXT
1994 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1995 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1996 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 cat >conftest.$ac_ext <<_ACEOF
2000 /* confdefs.h. */
2001 _ACEOF
2002 cat confdefs.h >>conftest.$ac_ext
2003 cat >>conftest.$ac_ext <<_ACEOF
2004 /* end confdefs.h. */
2005
2006 int
2007 main ()
2008 {
2009 #ifndef __GNUC__
2010 choke me
2011 #endif
2012
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 rm -f conftest.$ac_objext
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>conftest.er1
2020 ac_status=$?
2021 grep -v '^ *+' conftest.er1 >conftest.err
2022 rm -f conftest.er1
2023 cat conftest.err >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -z "$ac_c_werror_flag"
2027 || test ! -s conftest.err'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 (eval $ac_try) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; } &&
2033 { ac_try='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2039 ac_compiler_gnu=yes
2040 else
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 ac_compiler_gnu=no
2045 fi
2046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2048
2049 fi
2050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052 GCC=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CFLAGS=${CFLAGS+set}
2054 ac_save_CFLAGS=$CFLAGS
2055 CFLAGS="-g"
2056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cc_g+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061 cat >conftest.$ac_ext <<_ACEOF
2062 /* confdefs.h. */
2063 _ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h. */
2067
2068 int
2069 main ()
2070 {
2071
2072 ;
2073 return 0;
2074 }
2075 _ACEOF
2076 rm -f conftest.$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>conftest.er1
2079 ac_status=$?
2080 grep -v '^ *+' conftest.er1 >conftest.err
2081 rm -f conftest.er1
2082 cat conftest.err >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try='test -z "$ac_c_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 (eval $ac_try) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2098 ac_cv_prog_cc_g=yes
2099 else
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_cv_prog_cc_g=no
2104 fi
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106 fi
2107 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2108 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2109 if test "$ac_test_CFLAGS" = set; then
2110 CFLAGS=$ac_save_CFLAGS
2111 elif test $ac_cv_prog_cc_g = yes; then
2112 if test "$GCC" = yes; then
2113 CFLAGS="-g -O2"
2114 else
2115 CFLAGS="-g"
2116 fi
2117 else
2118 if test "$GCC" = yes; then
2119 CFLAGS="-O2"
2120 else
2121 CFLAGS=
2122 fi
2123 fi
2124 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2125 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2126 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129 ac_cv_prog_cc_stdc=no
2130 ac_save_CC=$CC
2131 cat >conftest.$ac_ext <<_ACEOF
2132 /* confdefs.h. */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2137 #include <stdarg.h>
2138 #include <stdio.h>
2139 #include <sys/types.h>
2140 #include <sys/stat.h>
2141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2142 struct buf { int x; };
2143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2144 static char *e (p, i)
2145 char **p;
2146 int i;
2147 {
2148 return p[i];
2149 }
2150 static char *f (char * (*g) (char **, int), char **p, ...)
2151 {
2152 char *s;
2153 va_list v;
2154 va_start (v,p);
2155 s = g (p, va_arg (v,int));
2156 va_end (v);
2157 return s;
2158 }
2159
2160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2161 function prototypes and stuff, but not '\xHH' hex character constants.
2162 These don't provoke an error unfortunately, instead are silently treated
2163 as 'x'. The following induces an error, until -std1 is added to get
2164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2165 array size at least. It's necessary to write '\x00'==0 to get something
2166 that's true only with -std1. */
2167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2168
2169 int test (int i, double x);
2170 struct s1 {int (*f) (int a);};
2171 struct s2 {int (*f) (double a);};
2172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2173 int argc;
2174 char **argv;
2175 int
2176 main ()
2177 {
2178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2179 ;
2180 return 0;
2181 }
2182 _ACEOF
2183 # Don't try gcc -ansi; that turns off useful extensions and
2184 # breaks some systems' header files.
2185 # AIX -qlanglvl=ansi
2186 # Ultrix and OSF/1 -std1
2187 # HP-UX 10.20 and later -Ae
2188 # HP-UX older versions -Aa -D_HPUX_SOURCE
2189 # SVR4 -Xc -D__EXTENSIONS__
2190 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2191 do
2192 CC="$ac_save_CC $ac_arg"
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2215 ac_cv_prog_cc_stdc=$ac_arg
2216 break
2217 else
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220
2221 fi
2222 rm -f conftest.err conftest.$ac_objext
2223 done
2224 rm -f conftest.$ac_ext conftest.$ac_objext
2225 CC=$ac_save_CC
2226
2227 fi
2228
2229 case "x$ac_cv_prog_cc_stdc" in
2230 x|xno)
2231 echo "$as_me:$LINENO: result: none needed" >&5
2232 echo "${ECHO_T}none needed" >&6 ;;
2233 *)
2234 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2235 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2236 CC="$CC $ac_cv_prog_cc_stdc" ;;
2237 esac
2238
2239 # Some people use a C++ compiler to compile C. Since we use `exit',
2240 # in C++ we need to declare it. In case someone uses the same compiler
2241 # for both compiling C and C++ we need to have the C++ compiler decide
2242 # the declaration of exit, since it's the most demanding environment.
2243 cat >conftest.$ac_ext <<_ACEOF
2244 #ifndef __cplusplus
2245 choke me
2246 #endif
2247 _ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2251 ac_status=$?
2252 grep -v '^ *+' conftest.er1 >conftest.err
2253 rm -f conftest.er1
2254 cat conftest.err >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 for ac_declaration in \
2271 '' \
2272 'extern "C" void std::exit (int) throw (); using std::exit;' \
2273 'extern "C" void std::exit (int); using std::exit;' \
2274 'extern "C" void exit (int) throw ();' \
2275 'extern "C" void exit (int);' \
2276 'void exit (int);'
2277 do
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h. */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2284 $ac_declaration
2285 #include <stdlib.h>
2286 int
2287 main ()
2288 {
2289 exit (42);
2290 ;
2291 return 0;
2292 }
2293 _ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>conftest.er1
2297 ac_status=$?
2298 grep -v '^ *+' conftest.er1 >conftest.err
2299 rm -f conftest.er1
2300 cat conftest.err >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -z "$ac_c_werror_flag"
2304 || test ! -s conftest.err'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; } &&
2310 { ac_try='test -s conftest.$ac_objext'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 (eval $ac_try) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; }; then
2316 :
2317 else
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2320
2321 continue
2322 fi
2323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2324 cat >conftest.$ac_ext <<_ACEOF
2325 /* confdefs.h. */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2330 $ac_declaration
2331 int
2332 main ()
2333 {
2334 exit (42);
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>conftest.er1
2342 ac_status=$?
2343 grep -v '^ *+' conftest.er1 >conftest.err
2344 rm -f conftest.er1
2345 cat conftest.err >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try='test -z "$ac_c_werror_flag"
2349 || test ! -s conftest.err'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 (eval $ac_try) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2361 break
2362 else
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 fi
2367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2368 done
2369 rm -f conftest*
2370 if test -n "$ac_declaration"; then
2371 echo '#ifdef __cplusplus' >>confdefs.h
2372 echo $ac_declaration >>confdefs.h
2373 echo '#endif' >>confdefs.h
2374 fi
2375
2376 else
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 fi
2381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388 if test "$GCC" = yes ; then
2389 if test "$SHLICC2" = yes ; then
2390 ac_cv_lbl_gcc_vers=2
2391 V_CCOPT="-O2"
2392 else
2393 echo "$as_me:$LINENO: checking gcc version" >&5
2394 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2395 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2399 sed -e '/^gcc version /!d' \
2400 -e 's/^gcc version //' \
2401 -e 's/ .*//' -e 's/^[^0-9]*//' \
2402 -e 's/\..*//'`
2403 fi
2404
2405 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2406 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2407 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2408 V_CCOPT="-O2"
2409 fi
2410 fi
2411 else
2412 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2413 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2414 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417
2418 cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h. */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2424 #include <sys/types.h>
2425 int
2426 main ()
2427 {
2428 int frob(int, char *)
2429 ;
2430 return 0;
2431 }
2432 _ACEOF
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>conftest.er1
2436 ac_status=$?
2437 grep -v '^ *+' conftest.er1 >conftest.err
2438 rm -f conftest.er1
2439 cat conftest.err >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } &&
2442 { ac_try='test -z "$ac_c_werror_flag"
2443 || test ! -s conftest.err'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 (eval $ac_try) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; } &&
2449 { ac_try='test -s conftest.$ac_objext'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; }; then
2455 ac_cv_lbl_cc_ansi_prototypes=yes
2456 else
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460 ac_cv_lbl_cc_ansi_prototypes=no
2461 fi
2462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 fi
2464
2465 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2466 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2467 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2468 case "$host_os" in
2469
2470 hpux*)
2471 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2472 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2473 savedcflags="$CFLAGS"
2474 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2475 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2484 #include <sys/types.h>
2485 int
2486 main ()
2487 {
2488 int frob(int, char *)
2489 ;
2490 return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 ac_cv_lbl_cc_hpux_cc_aa=yes
2516 else
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 ac_cv_lbl_cc_hpux_cc_aa=no
2521 fi
2522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523 fi
2524
2525 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2526 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2527 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2528 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2529 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2530 { (exit 1); exit 1; }; }
2531 fi
2532 CFLAGS="$savedcflags"
2533 V_CCOPT="-Aa $V_CCOPT"
2534 cat >>confdefs.h <<\_ACEOF
2535 #define _HPUX_SOURCE 1
2536 _ACEOF
2537
2538 ;;
2539
2540 *)
2541 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2542 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2543 { (exit 1); exit 1; }; }
2544 ;;
2545 esac
2546 fi
2547 V_INCLS="$V_INCLS -I/usr/local/include"
2548 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2549
2550 case "$host_os" in
2551
2552 irix*)
2553 V_CCOPT="$V_CCOPT -xansi -signed -O"
2554 ;;
2555
2556 osf*)
2557 V_CCOPT="$V_CCOPT -std1 -O"
2558 ;;
2559
2560 ultrix*)
2561 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2562 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2563 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2572 #include <sys/types.h>
2573 int
2574 main ()
2575 {
2576 struct a { int b; };
2577 void c(const struct a *)
2578 ;
2579 return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>conftest.er1
2585 ac_status=$?
2586 grep -v '^ *+' conftest.er1 >conftest.err
2587 rm -f conftest.er1
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag"
2592 || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 (eval $ac_try) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 ac_cv_lbl_cc_const_proto=yes
2605 else
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 ac_cv_lbl_cc_const_proto=no
2610 fi
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613
2614 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2615 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2616 if test $ac_cv_lbl_cc_const_proto = no ; then
2617 cat >>confdefs.h <<\_ACEOF
2618 #define const
2619 _ACEOF
2620
2621 fi
2622 ;;
2623 esac
2624 fi
2625
2626 echo "$as_me:$LINENO: checking for inline" >&5
2627 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2628 if test "${ac_cv_lbl_inline+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631
2632 ac_cv_lbl_inline=""
2633 ac_lbl_cc_inline=no
2634 for ac_lbl_inline in inline __inline__ __inline
2635 do
2636 cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h. */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2642 #define inline $ac_lbl_inline
2643 static inline struct iltest *foo(void);
2644 struct iltest {
2645 int iltest1;
2646 int iltest2;
2647 };
2648
2649 static inline struct iltest *
2650 foo()
2651 {
2652 static struct iltest xxx;
2653
2654 return &xxx;
2655 }
2656 int
2657 main ()
2658 {
2659
2660 ;
2661 return 0;
2662 }
2663 _ACEOF
2664 rm -f conftest.$ac_objext
2665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666 (eval $ac_compile) 2>conftest.er1
2667 ac_status=$?
2668 grep -v '^ *+' conftest.er1 >conftest.err
2669 rm -f conftest.er1
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -z "$ac_c_werror_flag"
2674 || test ! -s conftest.err'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; } &&
2680 { ac_try='test -s conftest.$ac_objext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2686 ac_lbl_cc_inline=yes
2687 else
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691 fi
2692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693 if test "$ac_lbl_cc_inline" = yes ; then
2694 break;
2695 fi
2696 done
2697 if test "$ac_lbl_cc_inline" = yes ; then
2698 ac_cv_lbl_inline=$ac_lbl_inline
2699 fi
2700 fi
2701
2702 if test ! -z "$ac_cv_lbl_inline" ; then
2703 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2704 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2708 fi
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define inline $ac_cv_lbl_inline
2712 _ACEOF
2713
2714
2715 echo "$as_me:$LINENO: checking for __attribute__" >&5
2716 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2717 if test "${ac_cv___attribute__+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720
2721 cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h. */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2727
2728 #include <stdlib.h>
2729
2730 static void foo(void) __attribute__ ((noreturn));
2731
2732 static void
2733 foo(void)
2734 {
2735 exit(1);
2736 }
2737
2738 int
2739 main(int argc, char **argv)
2740 {
2741 foo();
2742 }
2743
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>conftest.er1
2748 ac_status=$?
2749 grep -v '^ *+' conftest.er1 >conftest.err
2750 rm -f conftest.er1
2751 cat conftest.err >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try='test -z "$ac_c_werror_flag"
2755 || test ! -s conftest.err'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; } &&
2761 { ac_try='test -s conftest.$ac_objext'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; }; then
2767 ac_cv___attribute__=yes
2768 else
2769 echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2771
2772 ac_cv___attribute__=no
2773 fi
2774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775 fi
2776
2777 if test "$ac_cv___attribute__" = "yes"; then
2778
2779 cat >>confdefs.h <<\_ACEOF
2780 #define HAVE___ATTRIBUTE__ 1
2781 _ACEOF
2782
2783 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2784 else
2785 V_DEFS="$V_DEFS -D_U_=\"\""
2786 fi
2787 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2788 echo "${ECHO_T}$ac_cv___attribute__" >&6
2789
2790 ac_ext=c
2791 ac_cpp='$CPP $CPPFLAGS'
2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2796 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2797 # On Suns, sometimes $CPP names a directory.
2798 if test -n "$CPP" && test -d "$CPP"; then
2799 CPP=
2800 fi
2801 if test -z "$CPP"; then
2802 if test "${ac_cv_prog_CPP+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805 # Double quotes because CPP needs to be expanded
2806 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2807 do
2808 ac_preproc_ok=false
2809 for ac_c_preproc_warn_flag in '' yes
2810 do
2811 # Use a header file that comes with gcc, so configuring glibc
2812 # with a fresh cross-compiler works.
2813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2814 # <limits.h> exists even on freestanding compilers.
2815 # On the NeXT, cc -E runs the code through the compiler's parser,
2816 # not just through cpp. "Syntax error" is here to catch this case.
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h. */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2823 #ifdef __STDC__
2824 # include <limits.h>
2825 #else
2826 # include <assert.h>
2827 #endif
2828 Syntax error
2829 _ACEOF
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2832 ac_status=$?
2833 grep -v '^ *+' conftest.er1 >conftest.err
2834 rm -f conftest.er1
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } >/dev/null; then
2838 if test -s conftest.err; then
2839 ac_cpp_err=$ac_c_preproc_warn_flag
2840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2841 else
2842 ac_cpp_err=
2843 fi
2844 else
2845 ac_cpp_err=yes
2846 fi
2847 if test -z "$ac_cpp_err"; then
2848 :
2849 else
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 # Broken: fails on valid input.
2854 continue
2855 fi
2856 rm -f conftest.err conftest.$ac_ext
2857
2858 # OK, works on sane cases. Now check whether non-existent headers
2859 # can be detected and how.
2860 cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h. */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866 #include <ac_nonexistent.h>
2867 _ACEOF
2868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2870 ac_status=$?
2871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } >/dev/null; then
2876 if test -s conftest.err; then
2877 ac_cpp_err=$ac_c_preproc_warn_flag
2878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2879 else
2880 ac_cpp_err=
2881 fi
2882 else
2883 ac_cpp_err=yes
2884 fi
2885 if test -z "$ac_cpp_err"; then
2886 # Broken: success on invalid input.
2887 continue
2888 else
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892 # Passes both tests.
2893 ac_preproc_ok=:
2894 break
2895 fi
2896 rm -f conftest.err conftest.$ac_ext
2897
2898 done
2899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2900 rm -f conftest.err conftest.$ac_ext
2901 if $ac_preproc_ok; then
2902 break
2903 fi
2904
2905 done
2906 ac_cv_prog_CPP=$CPP
2907
2908 fi
2909 CPP=$ac_cv_prog_CPP
2910 else
2911 ac_cv_prog_CPP=$CPP
2912 fi
2913 echo "$as_me:$LINENO: result: $CPP" >&5
2914 echo "${ECHO_T}$CPP" >&6
2915 ac_preproc_ok=false
2916 for ac_c_preproc_warn_flag in '' yes
2917 do
2918 # Use a header file that comes with gcc, so configuring glibc
2919 # with a fresh cross-compiler works.
2920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2921 # <limits.h> exists even on freestanding compilers.
2922 # On the NeXT, cc -E runs the code through the compiler's parser,
2923 # not just through cpp. "Syntax error" is here to catch this case.
2924 cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h. */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2930 #ifdef __STDC__
2931 # include <limits.h>
2932 #else
2933 # include <assert.h>
2934 #endif
2935 Syntax error
2936 _ACEOF
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939 ac_status=$?
2940 grep -v '^ *+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev/null; then
2945 if test -s conftest.err; then
2946 ac_cpp_err=$ac_c_preproc_warn_flag
2947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2948 else
2949 ac_cpp_err=
2950 fi
2951 else
2952 ac_cpp_err=yes
2953 fi
2954 if test -z "$ac_cpp_err"; then
2955 :
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 # Broken: fails on valid input.
2961 continue
2962 fi
2963 rm -f conftest.err conftest.$ac_ext
2964
2965 # OK, works on sane cases. Now check whether non-existent headers
2966 # can be detected and how.
2967 cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h. */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2973 #include <ac_nonexistent.h>
2974 _ACEOF
2975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2977 ac_status=$?
2978 grep -v '^ *+' conftest.er1 >conftest.err
2979 rm -f conftest.er1
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } >/dev/null; then
2983 if test -s conftest.err; then
2984 ac_cpp_err=$ac_c_preproc_warn_flag
2985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2986 else
2987 ac_cpp_err=
2988 fi
2989 else
2990 ac_cpp_err=yes
2991 fi
2992 if test -z "$ac_cpp_err"; then
2993 # Broken: success on invalid input.
2994 continue
2995 else
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999 # Passes both tests.
3000 ac_preproc_ok=:
3001 break
3002 fi
3003 rm -f conftest.err conftest.$ac_ext
3004
3005 done
3006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3007 rm -f conftest.err conftest.$ac_ext
3008 if $ac_preproc_ok; then
3009 :
3010 else
3011 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3014 See \`config.log' for more details." >&2;}
3015 { (exit 1); exit 1; }; }
3016 fi
3017
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023
3024
3025 echo "$as_me:$LINENO: checking for egrep" >&5
3026 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3027 if test "${ac_cv_prog_egrep+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3031 then ac_cv_prog_egrep='grep -E'
3032 else ac_cv_prog_egrep='egrep'
3033 fi
3034 fi
3035 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3036 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3037 EGREP=$ac_cv_prog_egrep
3038
3039
3040 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3042 if test "${ac_cv_header_stdc+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045 cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h. */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3051 #include <stdlib.h>
3052 #include <stdarg.h>
3053 #include <string.h>
3054 #include <float.h>
3055
3056 int
3057 main ()
3058 {
3059
3060 ;
3061 return 0;
3062 }
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066 (eval $ac_compile) 2>conftest.er1
3067 ac_status=$?
3068 grep -v '^ *+' conftest.er1 >conftest.err
3069 rm -f conftest.er1
3070 cat conftest.err >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } &&
3073 { ac_try='test -z "$ac_c_werror_flag"
3074 || test ! -s conftest.err'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 (eval $ac_try) 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 (eval $ac_try) 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
3086 ac_cv_header_stdc=yes
3087 else
3088 echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091 ac_cv_header_stdc=no
3092 fi
3093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3094
3095 if test $ac_cv_header_stdc = yes; then
3096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3097 cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h. */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3103 #include <string.h>
3104
3105 _ACEOF
3106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107 $EGREP "memchr" >/dev/null 2>&1; then
3108 :
3109 else
3110 ac_cv_header_stdc=no
3111 fi
3112 rm -f conftest*
3113
3114 fi
3115
3116 if test $ac_cv_header_stdc = yes; then
3117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3118 cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h. */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3124 #include <stdlib.h>
3125
3126 _ACEOF
3127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3128 $EGREP "free" >/dev/null 2>&1; then
3129 :
3130 else
3131 ac_cv_header_stdc=no
3132 fi
3133 rm -f conftest*
3134
3135 fi
3136
3137 if test $ac_cv_header_stdc = yes; then
3138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3139 if test "$cross_compiling" = yes; then
3140 :
3141 else
3142 cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h. */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3148 #include <ctype.h>
3149 #if ((' ' & 0x0FF) == 0x020)
3150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3152 #else
3153 # define ISLOWER(c) \
3154 (('a' <= (c) && (c) <= 'i') \
3155 || ('j' <= (c) && (c) <= 'r') \
3156 || ('s' <= (c) && (c) <= 'z'))
3157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3158 #endif
3159
3160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3161 int
3162 main ()
3163 {
3164 int i;
3165 for (i = 0; i < 256; i++)
3166 if (XOR (islower (i), ISLOWER (i))
3167 || toupper (i) != TOUPPER (i))
3168 exit(2);
3169 exit (0);
3170 }
3171 _ACEOF
3172 rm -f conftest$ac_exeext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174 (eval $ac_link) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 :
3184 else
3185 echo "$as_me: program exited with status $ac_status" >&5
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 ( exit $ac_status )
3190 ac_cv_header_stdc=no
3191 fi
3192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3193 fi
3194 fi
3195 fi
3196 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3197 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3198 if test $ac_cv_header_stdc = yes; then
3199
3200 cat >>confdefs.h <<\_ACEOF
3201 #define STDC_HEADERS 1
3202 _ACEOF
3203
3204 fi
3205
3206 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3217 inttypes.h stdint.h unistd.h
3218 do
3219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3220 echo "$as_me:$LINENO: checking for $ac_header" >&5
3221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225 cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h. */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3231 $ac_includes_default
3232
3233 #include <$ac_header>
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237 (eval $ac_compile) 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -z "$ac_c_werror_flag"
3245 || test ! -s conftest.err'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; } &&
3251 { ac_try='test -s conftest.$ac_objext'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 (eval $ac_try) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
3257 eval "$as_ac_Header=yes"
3258 else
3259 echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 eval "$as_ac_Header=no"
3263 fi
3264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3265 fi
3266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3269 cat >>confdefs.h <<_ACEOF
3270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3271 _ACEOF
3272
3273 fi
3274
3275 done
3276
3277
3278
3279
3280
3281 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3282 do
3283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3285 echo "$as_me:$LINENO: checking for $ac_header" >&5
3286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 fi
3290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3292 else
3293 # Is the header compilable?
3294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302 $ac_includes_default
3303 #include <$ac_header>
3304 _ACEOF
3305 rm -f conftest.$ac_objext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307 (eval $ac_compile) 2>conftest.er1
3308 ac_status=$?
3309 grep -v '^ *+' conftest.er1 >conftest.err
3310 rm -f conftest.er1
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -z "$ac_c_werror_flag"
3315 || test ! -s conftest.err'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 (eval $ac_try) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; } &&
3321 { ac_try='test -s conftest.$ac_objext'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3327 ac_header_compiler=yes
3328 else
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 ac_header_compiler=no
3333 fi
3334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3336 echo "${ECHO_T}$ac_header_compiler" >&6
3337
3338 # Is the header present?
3339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 #include <$ac_header>
3348 _ACEOF
3349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3351 ac_status=$?
3352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } >/dev/null; then
3357 if test -s conftest.err; then
3358 ac_cpp_err=$ac_c_preproc_warn_flag
3359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3360 else
3361 ac_cpp_err=
3362 fi
3363 else
3364 ac_cpp_err=yes
3365 fi
3366 if test -z "$ac_cpp_err"; then
3367 ac_header_preproc=yes
3368 else
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372 ac_header_preproc=no
3373 fi
3374 rm -f conftest.err conftest.$ac_ext
3375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3376 echo "${ECHO_T}$ac_header_preproc" >&6
3377
3378 # So? What about this header?
3379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3380 yes:no: )
3381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3385 ac_header_preproc=yes
3386 ;;
3387 no:yes:* )
3388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3400 (
3401 cat <<\_ASBOX
3402 ## ------------------------------------------ ##
3403 ## Report this to the AC_PACKAGE_NAME lists. ##
3404 ## ------------------------------------------ ##
3405 _ASBOX
3406 ) |
3407 sed "s/^/$as_me: WARNING: /" >&2
3408 ;;
3409 esac
3410 echo "$as_me:$LINENO: checking for $ac_header" >&5
3411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 eval "$as_ac_Header=\$ac_header_preproc"
3416 fi
3417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3419
3420 fi
3421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3422 cat >>confdefs.h <<_ACEOF
3423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3424 _ACEOF
3425
3426 fi
3427
3428 done
3429
3430
3431 for ac_header in net/pfvar.h
3432 do
3433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3434 echo "$as_me:$LINENO: checking for $ac_header" >&5
3435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h. */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445 #include <sys/types.h>
3446 #include <sys/socket.h>
3447 #include <net/if.h>
3448
3449 #include <$ac_header>
3450 _ACEOF
3451 rm -f conftest.$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -z "$ac_c_werror_flag"
3461 || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 eval "$as_ac_Header=yes"
3474 else
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 eval "$as_ac_Header=no"
3479 fi
3480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3481 fi
3482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3485 cat >>confdefs.h <<_ACEOF
3486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3487 _ACEOF
3488
3489 fi
3490
3491 done
3492
3493 if test "$ac_cv_header_net_pfvar_h" = yes; then
3494 LOCALSRC="print-pflog.c $LOCALSRC"
3495 fi
3496
3497 for ac_header in netinet/if_ether.h
3498 do
3499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3500 echo "$as_me:$LINENO: checking for $ac_header" >&5
3501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h. */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 #include <sys/types.h>
3512 #include <sys/socket.h>
3513
3514 #include <$ac_header>
3515 _ACEOF
3516 rm -f conftest.$ac_objext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518 (eval $ac_compile) 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } &&
3525 { ac_try='test -z "$ac_c_werror_flag"
3526 || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 eval "$as_ac_Header=yes"
3539 else
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3542
3543 eval "$as_ac_Header=no"
3544 fi
3545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3546 fi
3547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3550 cat >>confdefs.h <<_ACEOF
3551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3552 _ACEOF
3553
3554 fi
3555
3556 done
3557
3558 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3559 #
3560 # The simple test didn't work.
3561 # Do we need to include <net/if.h> first?
3562 # Unset ac_cv_header_netinet_if_ether_h so we don't
3563 # treat the previous failure as a cached value and
3564 # suppress the next test.
3565 #
3566 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3567 echo "$as_me: Rechecking with some additional includes" >&6;}
3568 unset ac_cv_header_netinet_if_ether_h
3569
3570 for ac_header in netinet/if_ether.h
3571 do
3572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3573 echo "$as_me:$LINENO: checking for $ac_header" >&5
3574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578 cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h. */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3584 #include <sys/types.h>
3585 #include <sys/socket.h>
3586 #include <netinet/in.h>
3587 struct mbuf;
3588 struct rtentry;
3589 #include <net/if.h>
3590
3591 #include <$ac_header>
3592 _ACEOF
3593 rm -f conftest.$ac_objext
3594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3595 (eval $ac_compile) 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } &&
3602 { ac_try='test -z "$ac_c_werror_flag"
3603 || test ! -s conftest.err'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 (eval $ac_try) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; } &&
3609 { ac_try='test -s conftest.$ac_objext'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3615 eval "$as_ac_Header=yes"
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 eval "$as_ac_Header=no"
3621 fi
3622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3623 fi
3624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3627 cat >>confdefs.h <<_ACEOF
3628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3629 _ACEOF
3630
3631 fi
3632
3633 done
3634
3635 fi
3636
3637 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3638 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3639 if test "${ac_cv_header_time+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 #include <sys/types.h>
3649 #include <sys/time.h>
3650 #include <time.h>
3651
3652 int
3653 main ()
3654 {
3655 if ((struct tm *) 0)
3656 return 0;
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.$ac_objext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663 (eval $ac_compile) 2>conftest.er1
3664 ac_status=$?
3665 grep -v '^ *+' conftest.er1 >conftest.err
3666 rm -f conftest.er1
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -z "$ac_c_werror_flag"
3671 || test ! -s conftest.err'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_cv_header_time=yes
3684 else
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 ac_cv_header_time=no
3689 fi
3690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691 fi
3692 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3693 echo "${ECHO_T}$ac_cv_header_time" >&6
3694 if test $ac_cv_header_time = yes; then
3695
3696 cat >>confdefs.h <<\_ACEOF
3697 #define TIME_WITH_SYS_TIME 1
3698 _ACEOF
3699
3700 fi
3701
3702
3703 case "$host_os" in
3704
3705 linux*)
3706 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3707 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3708 if test "$cross_compiling" = yes; then
3709 if test "${ac_cv_linux_vers+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 ac_cv_linux_vers=unknown
3713 fi
3714
3715 else
3716 if test "${ac_cv_linux_vers+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719 ac_cv_linux_vers=`uname -r 2>&1 | \
3720 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3721 fi
3722
3723 fi
3724 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3725 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3726 if test $ac_cv_linux_vers = unknown ; then
3727 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3728 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3729 { (exit 1); exit 1; }; }
3730 fi
3731 if test $ac_cv_linux_vers -lt 2 ; then
3732 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3733 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3734 { (exit 1); exit 1; }; }
3735 fi
3736 ;;
3737
3738 *)
3739 ;;
3740 esac
3741
3742
3743
3744 for ac_header in smi.h
3745 do
3746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3748 echo "$as_me:$LINENO: checking for $ac_header" >&5
3749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 fi
3753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3755 else
3756 # Is the header compilable?
3757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 $ac_includes_default
3766 #include <$ac_header>
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>conftest.er1
3771 ac_status=$?
3772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -z "$ac_c_werror_flag"
3778 || test ! -s conftest.err'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; } &&
3784 { ac_try='test -s conftest.$ac_objext'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 ac_header_compiler=yes
3791 else
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 ac_header_compiler=no
3796 fi
3797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3799 echo "${ECHO_T}$ac_header_compiler" >&6
3800
3801 # Is the header present?
3802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3804 cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h. */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3810 #include <$ac_header>
3811 _ACEOF
3812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev/null; then
3820 if test -s conftest.err; then
3821 ac_cpp_err=$ac_c_preproc_warn_flag
3822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3823 else
3824 ac_cpp_err=
3825 fi
3826 else
3827 ac_cpp_err=yes
3828 fi
3829 if test -z "$ac_cpp_err"; then
3830 ac_header_preproc=yes
3831 else
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 ac_header_preproc=no
3836 fi
3837 rm -f conftest.err conftest.$ac_ext
3838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3839 echo "${ECHO_T}$ac_header_preproc" >&6
3840
3841 # So? What about this header?
3842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3843 yes:no: )
3844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3848 ac_header_preproc=yes
3849 ;;
3850 no:yes:* )
3851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3863 (
3864 cat <<\_ASBOX
3865 ## ------------------------------------------ ##
3866 ## Report this to the AC_PACKAGE_NAME lists. ##
3867 ## ------------------------------------------ ##
3868 _ASBOX
3869 ) |
3870 sed "s/^/$as_me: WARNING: /" >&2
3871 ;;
3872 esac
3873 echo "$as_me:$LINENO: checking for $ac_header" >&5
3874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878 eval "$as_ac_Header=\$ac_header_preproc"
3879 fi
3880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3882
3883 fi
3884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3885 cat >>confdefs.h <<_ACEOF
3886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3887 _ACEOF
3888
3889 fi
3890
3891 done
3892
3893
3894 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3895 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3896 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 ac_check_lib_save_LIBS=$LIBS
3900 LIBS="-lsmi $LIBS"
3901 cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h. */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907
3908 /* Override any gcc2 internal prototype to avoid an error. */
3909 #ifdef __cplusplus
3910 extern "C"
3911 #endif
3912 /* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3914 char smiInit ();
3915 int
3916 main ()
3917 {
3918 smiInit ();
3919 ;
3920 return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest.$ac_objext conftest$ac_exeext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3925 (eval $ac_link) 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -z "$ac_c_werror_flag"
3933 || test ! -s conftest.err'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 (eval $ac_try) 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; } &&
3939 { ac_try='test -s conftest$ac_exeext'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 (eval $ac_try) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 ac_cv_lib_smi_smiInit=yes
3946 else
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 ac_cv_lib_smi_smiInit=no
3951 fi
3952 rm -f conftest.err conftest.$ac_objext \
3953 conftest$ac_exeext conftest.$ac_ext
3954 LIBS=$ac_check_lib_save_LIBS
3955 fi
3956 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3957 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3958 if test $ac_cv_lib_smi_smiInit = yes; then
3959 cat >>confdefs.h <<_ACEOF
3960 #define HAVE_LIBSMI 1
3961 _ACEOF
3962
3963 LIBS="-lsmi $LIBS"
3964
3965 fi
3966
3967 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3968 then
3969 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3970 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3971 if test "$cross_compiling" = yes; then
3972 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3973 echo "${ECHO_T}not when cross-compiling" >&6
3974 libsmi=no
3975
3976 else
3977 cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h. */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983 /* libsmi available check */
3984 #include <smi.h>
3985 main()
3986 {
3987 int current, revision, age, n;
3988 const int required = 2;
3989 if (smiInit(""))
3990 exit(1);
3991 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3992 exit(2);
3993 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3994 if (n != 3)
3995 exit(3);
3996 if (required < current - age || required > current)
3997 exit(4);
3998 exit(0);
3999 }
4000
4001 _ACEOF
4002 rm -f conftest$ac_exeext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4004 (eval $ac_link) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 (eval $ac_try) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 echo "$as_me:$LINENO: result: yes" >&5
4014 echo "${ECHO_T}yes" >&6
4015 cat >>confdefs.h <<\_ACEOF
4016 #define LIBSMI 1
4017 _ACEOF
4018
4019 libsmi=yes
4020 else
4021 echo "$as_me: program exited with status $ac_status" >&5
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 ( exit $ac_status )
4026 case $? in
4027 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4028 echo "${ECHO_T}no - smiInit failed" >&6 ;;
4029 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4030 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
4031 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4032 echo "${ECHO_T}no - can't determine library version" >&6 ;;
4033 4) echo "$as_me:$LINENO: result: no - too old" >&5
4034 echo "${ECHO_T}no - too old" >&6 ;;
4035 *) echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6 ;;
4037 esac
4038 libsmi=no
4039 fi
4040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4041 fi
4042 fi
4043
4044 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4045 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
4046 # Check whether --enable-smb or --disable-smb was given.
4047 if test "${enable_smb+set}" = set; then
4048 enableval="$enable_smb"
4049
4050 else
4051 enableval=yes
4052 fi;
4053 case "$enableval" in
4054 yes) echo "$as_me:$LINENO: result: yes" >&5
4055 echo "${ECHO_T}yes" >&6
4056 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4057 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4058 cat >>confdefs.h <<\_ACEOF
4059 #define TCPDUMP_DO_SMB 1
4060 _ACEOF
4061
4062 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4063 ;;
4064 *) echo "$as_me:$LINENO: result: no" >&5
4065 echo "${ECHO_T}no" >&6
4066 ;;
4067 esac
4068
4069
4070 # Check whether --with-user or --without-user was given.
4071 if test "${with_user+set}" = set; then
4072 withval="$with_user"
4073
4074 fi;
4075 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4076 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
4077 if test ! -z "$with_user" ; then
4078 cat >>confdefs.h <<_ACEOF
4079 #define WITH_USER "$withval"
4080 _ACEOF
4081
4082 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4083 echo "${ECHO_T}to \"$withval\"" >&6
4084 else
4085 echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4087 fi
4088
4089
4090 # Check whether --with-chroot or --without-chroot was given.
4091 if test "${with_chroot+set}" = set; then
4092 withval="$with_chroot"
4093
4094 fi;
4095 echo "$as_me:$LINENO: checking whether to chroot" >&5
4096 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
4097 if test ! -z "$with_chroot" ; then
4098 cat >>confdefs.h <<_ACEOF
4099 #define WITH_CHROOT "$withval"
4100 _ACEOF
4101
4102 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4103 echo "${ECHO_T}to \"$withval\"" >&6
4104 else
4105 echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4107 fi
4108
4109 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4110 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
4111 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4112 if test "${enable_ipv6+set}" = set; then
4113 enableval="$enable_ipv6"
4114 case "$enableval" in
4115 yes) echo "$as_me:$LINENO: result: yes" >&5
4116 echo "${ECHO_T}yes" >&6
4117 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
4118 cat >>confdefs.h <<\_ACEOF
4119 #define INET6 1
4120 _ACEOF
4121
4122 ipv6=yes
4123 ;;
4124 *)
4125 echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6
4127 ipv6=no
4128 ;;
4129 esac
4130 else
4131 if test "$cross_compiling" = yes; then
4132 echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4134 ipv6=no
4135
4136 else
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 /* AF_INET6 available check */
4144 #include <sys/types.h>
4145 #include <sys/socket.h>
4146 main()
4147 {
4148 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4149 exit(1);
4150 else
4151 exit(0);
4152 }
4153
4154 _ACEOF
4155 rm -f conftest$ac_exeext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4157 (eval $ac_link) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 echo "$as_me:$LINENO: result: yes" >&5
4167 echo "${ECHO_T}yes" >&6
4168 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
4169 cat >>confdefs.h <<\_ACEOF
4170 #define INET6 1
4171 _ACEOF
4172
4173 ipv6=yes
4174 else
4175 echo "$as_me: program exited with status $ac_status" >&5
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 ( exit $ac_status )
4180 echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4182 ipv6=no
4183 fi
4184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4185 fi
4186 fi;
4187
4188 ipv6type=unknown
4189 ipv6lib=none
4190 ipv6trylibc=no
4191
4192 if test "$ipv6" = "yes"; then
4193 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4194 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
4195 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4196 case $i in
4197 inria)
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h. */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 #include <netinet/in.h>
4205 #ifdef IPV6_INRIA_VERSION
4206 yes
4207 #endif
4208 _ACEOF
4209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4210 $EGREP "yes" >/dev/null 2>&1; then
4211 ipv6type=$i;
4212 CFLAGS="-DINET6 $CFLAGS"
4213 fi
4214 rm -f conftest*
4215
4216 ;;
4217 kame)
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h. */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 #include <netinet/in.h>
4225 #ifdef __KAME__
4226 yes
4227 #endif
4228 _ACEOF
4229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4230 $EGREP "yes" >/dev/null 2>&1; then
4231 ipv6type=$i;
4232 ipv6lib=inet6;
4233 ipv6libdir=/usr/local/v6/lib;
4234 ipv6trylibc=yes;
4235 CFLAGS="-DINET6 $CFLAGS"
4236 fi
4237 rm -f conftest*
4238
4239 ;;
4240 linux-glibc)
4241 cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h. */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 #include <features.h>
4248 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4249 yes
4250 #endif
4251 _ACEOF
4252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4253 $EGREP "yes" >/dev/null 2>&1; then
4254 ipv6type=$i;
4255 CFLAGS="-DINET6 $CFLAGS"
4256 fi
4257 rm -f conftest*
4258
4259 ;;
4260 linux-libinet6)
4261 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4262 ipv6type=$i
4263 ipv6lib=inet6
4264 ipv6libdir=/usr/inet6/lib
4265 ipv6trylibc=yes;
4266 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4267 fi
4268 ;;
4269 toshiba)
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 #include <sys/param.h>
4277 #ifdef _TOSHIBA_INET6
4278 yes
4279 #endif
4280 _ACEOF
4281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4282 $EGREP "yes" >/dev/null 2>&1; then
4283 ipv6type=$i;
4284 ipv6lib=inet6;
4285 ipv6libdir=/usr/local/v6/lib;
4286 CFLAGS="-DINET6 $CFLAGS"
4287 fi
4288 rm -f conftest*
4289
4290 ;;
4291 v6d)
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h. */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 #include </usr/local/v6/include/sys/v6config.h>
4299 #ifdef __V6D__
4300 yes
4301 #endif
4302 _ACEOF
4303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4304 $EGREP "yes" >/dev/null 2>&1; then
4305 ipv6type=$i;
4306 ipv6lib=v6;
4307 ipv6libdir=/usr/local/v6/lib;
4308 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4309 fi
4310 rm -f conftest*
4311
4312 ;;
4313 zeta)
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #include <sys/param.h>
4321 #ifdef _ZETA_MINAMI_INET6
4322 yes
4323 #endif
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "yes" >/dev/null 2>&1; then
4327 ipv6type=$i;
4328 ipv6lib=inet6;
4329 ipv6libdir=/usr/local/v6/lib;
4330 CFLAGS="-DINET6 $CFLAGS"
4331 fi
4332 rm -f conftest*
4333
4334 ;;
4335 esac
4336 if test "$ipv6type" != "unknown"; then
4337 break
4338 fi
4339 done
4340 echo "$as_me:$LINENO: result: $ipv6type" >&5
4341 echo "${ECHO_T}$ipv6type" >&6
4342 fi
4343
4344 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4345 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4346 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4347 echo "You have $ipv6lib library, using it"
4348 else
4349 if test "$ipv6trylibc" = "yes"; then
4350 echo "You do not have $ipv6lib library, using libc"
4351 else
4352 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4353 echo "You need to fetch lib$ipv6lib.a from appropriate"
4354 echo 'ipv6 kit and compile beforehand.'
4355 exit 1
4356 fi
4357 fi
4358 fi
4359
4360
4361 if test "$ipv6" = "yes"; then
4362 #
4363 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4364 # function in libc; there are "ngetaddrinfo()" and
4365 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4366 # "getaddrinfo" to be either "ngetaddrinfo" or
4367 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4368 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4369 #
4370 # So this test doesn't work on Tru64 5.1, and possibly
4371 # on other 5.x releases. This causes the configure
4372 # script to become confused, and results in libpcap
4373 # being unbuildable.
4374 #
4375 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4376 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4377 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 ac_func_search_save_LIBS=$LIBS
4381 ac_cv_search_getaddrinfo=no
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388
4389 /* Override any gcc2 internal prototype to avoid an error. */
4390 #ifdef __cplusplus
4391 extern "C"
4392 #endif
4393 /* We use char because int might match the return type of a gcc2
4394 builtin and then its argument prototype would still apply. */
4395 char getaddrinfo ();
4396 int
4397 main ()
4398 {
4399 getaddrinfo ();
4400 ;
4401 return 0;
4402 }
4403 _ACEOF
4404 rm -f conftest.$ac_objext conftest$ac_exeext
4405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4406 (eval $ac_link) 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_c_werror_flag"
4414 || test ! -s conftest.err'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; } &&
4420 { ac_try='test -s conftest$ac_exeext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_cv_search_getaddrinfo="none required"
4427 else
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4430
4431 fi
4432 rm -f conftest.err conftest.$ac_objext \
4433 conftest$ac_exeext conftest.$ac_ext
4434 if test "$ac_cv_search_getaddrinfo" = no; then
4435 for ac_lib in socket; do
4436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4437 cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443
4444 /* Override any gcc2 internal prototype to avoid an error. */
4445 #ifdef __cplusplus
4446 extern "C"
4447 #endif
4448 /* We use char because int might match the return type of a gcc2
4449 builtin and then its argument prototype would still apply. */
4450 char getaddrinfo ();
4451 int
4452 main ()
4453 {
4454 getaddrinfo ();
4455 ;
4456 return 0;
4457 }
4458 _ACEOF
4459 rm -f conftest.$ac_objext conftest$ac_exeext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4461 (eval $ac_link) 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -z "$ac_c_werror_flag"
4469 || test ! -s conftest.err'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try='test -s conftest$ac_exeext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_search_getaddrinfo="-l$ac_lib"
4482 break
4483 else
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 fi
4488 rm -f conftest.err conftest.$ac_objext \
4489 conftest$ac_exeext conftest.$ac_ext
4490 done
4491 fi
4492 LIBS=$ac_func_search_save_LIBS
4493 fi
4494 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4495 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4496 if test "$ac_cv_search_getaddrinfo" != no; then
4497 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4498 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4499 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4500 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503 if test "$cross_compiling" = yes; then
4504 td_cv_buggygetaddrinfo=yes
4505 else
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h. */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512
4513 #include <sys/types.h>
4514 #include <netdb.h>
4515 #include <string.h>
4516 #include <sys/socket.h>
4517 #include <netinet/in.h>
4518
4519 main()
4520 {
4521 int passive, gaierr, inet4 = 0, inet6 = 0;
4522 struct addrinfo hints, *ai, *aitop;
4523 char straddr[INET6_ADDRSTRLEN], strport[16];
4524
4525 for (passive = 0; passive <= 1; passive++) {
4526 memset(&hints, 0, sizeof(hints));
4527 hints.ai_family = AF_UNSPEC;
4528 hints.ai_flags = passive ? AI_PASSIVE : 0;
4529 hints.ai_socktype = SOCK_STREAM;
4530 hints.ai_protocol = IPPROTO_TCP;
4531 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4532 (void)gai_strerror(gaierr);
4533 goto bad;
4534 }
4535 for (ai = aitop; ai; ai = ai->ai_next) {
4536 if (ai->ai_addr == NULL ||
4537 ai->ai_addrlen == 0 ||
4538 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4539 straddr, sizeof(straddr), strport, sizeof(strport),
4540 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4541 goto bad;
4542 }
4543 switch (ai->ai_family) {
4544 case AF_INET:
4545 if (strcmp(strport, "54321") != 0) {
4546 goto bad;
4547 }
4548 if (passive) {
4549 if (strcmp(straddr, "0.0.0.0") != 0) {
4550 goto bad;
4551 }
4552 } else {
4553 if (strcmp(straddr, "127.0.0.1") != 0) {
4554 goto bad;
4555 }
4556 }
4557 inet4++;
4558 break;
4559 case AF_INET6:
4560 if (strcmp(strport, "54321") != 0) {
4561 goto bad;
4562 }
4563 if (passive) {
4564 if (strcmp(straddr, "::") != 0) {
4565 goto bad;
4566 }
4567 } else {
4568 if (strcmp(straddr, "::1") != 0) {
4569 goto bad;
4570 }
4571 }
4572 inet6++;
4573 break;
4574 case AF_UNSPEC:
4575 goto bad;
4576 break;
4577 #ifdef AF_UNIX
4578 case AF_UNIX:
4579 #else
4580 #ifdef AF_LOCAL
4581 case AF_LOCAL:
4582 #endif
4583 #endif
4584 default:
4585 /* another family support? */
4586 break;
4587 }
4588 }
4589 }
4590
4591 /* supported family should be 2, unsupported family should be 0 */
4592 if (!(inet4 == 0 || inet4 == 2))
4593 goto bad;
4594 if (!(inet6 == 0 || inet6 == 2))
4595 goto bad;
4596
4597 if (aitop)
4598 freeaddrinfo(aitop);
4599 exit(0);
4600
4601 bad:
4602 if (aitop)
4603 freeaddrinfo(aitop);
4604 exit(1);
4605 }
4606
4607 _ACEOF
4608 rm -f conftest$ac_exeext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4610 (eval $ac_link) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 td_cv_buggygetaddrinfo=no
4620 else
4621 echo "$as_me: program exited with status $ac_status" >&5
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 ( exit $ac_status )
4626 td_cv_buggygetaddrinfo=yes
4627 fi
4628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4629 fi
4630 fi
4631
4632 if test "$td_cv_buggygetaddrinfo" = no; then
4633 echo "$as_me:$LINENO: result: good" >&5
4634 echo "${ECHO_T}good" >&6
4635 else
4636 echo "$as_me:$LINENO: result: buggy" >&5
4637 echo "${ECHO_T}buggy" >&6
4638 fi
4639
4640 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4641 #
4642 # XXX - it doesn't appear that "ipv6type" can ever be
4643 # set to "linux". Should this be testing for
4644 # "linux-glibc", or for that *or* "linux-libinet6"?
4645 # If the latter, note that "linux-libinet6" is also
4646 # the type given to some non-Linux OSes.
4647 #
4648 if test "$ipv6type" != "linux"; then
4649 echo 'Fatal: You must get working getaddrinfo() function.'
4650 echo ' or you can specify "--disable-ipv6"'.
4651 exit 1
4652 else
4653 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4654 echo ' Better upgrade your system library to newest version'
4655 echo ' of GNU C library (aka glibc).'
4656 fi
4657 fi
4658
4659 fi
4660
4661
4662
4663 for ac_func in getaddrinfo getnameinfo
4664 do
4665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4666 echo "$as_me:$LINENO: checking for $ac_func" >&5
4667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4668 if eval "test \"\${$as_ac_var+set}\" = set"; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671 cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h. */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4679 #define $ac_func innocuous_$ac_func
4680
4681 /* System header to define __stub macros and hopefully few prototypes,
4682 which can conflict with char $ac_func (); below.
4683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4684 <limits.h> exists even on freestanding compilers. */
4685
4686 #ifdef __STDC__
4687 # include <limits.h>
4688 #else
4689 # include <assert.h>
4690 #endif
4691
4692 #undef $ac_func
4693
4694 /* Override any gcc2 internal prototype to avoid an error. */
4695 #ifdef __cplusplus
4696 extern "C"
4697 {
4698 #endif
4699 /* We use char because int might match the return type of a gcc2
4700 builtin and then its argument prototype would still apply. */
4701 char $ac_func ();
4702 /* The GNU C library defines this for functions which it implements
4703 to always fail with ENOSYS. Some functions are actually named
4704 something starting with __ and the normal name is an alias. */
4705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4706 choke me
4707 #else
4708 char (*f) () = $ac_func;
4709 #endif
4710 #ifdef __cplusplus
4711 }
4712 #endif
4713
4714 int
4715 main ()
4716 {
4717 return f != $ac_func;
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 rm -f conftest.$ac_objext conftest$ac_exeext
4723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4724 (eval $ac_link) 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); } &&
4731 { ac_try='test -z "$ac_c_werror_flag"
4732 || test ! -s conftest.err'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; } &&
4738 { ac_try='test -s conftest$ac_exeext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 eval "$as_ac_var=yes"
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 eval "$as_ac_var=no"
4750 fi
4751 rm -f conftest.err conftest.$ac_objext \
4752 conftest$ac_exeext conftest.$ac_ext
4753 fi
4754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4756 if test `eval echo '${'$as_ac_var'}'` = yes; then
4757 cat >>confdefs.h <<_ACEOF
4758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4759 _ACEOF
4760
4761 else
4762 case $LIBOBJS in
4763 "$ac_func.$ac_objext" | \
4764 *" $ac_func.$ac_objext" | \
4765 "$ac_func.$ac_objext "* | \
4766 *" $ac_func.$ac_objext "* ) ;;
4767 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
4768 esac
4769
4770 fi
4771 done
4772
4773
4774 fi
4775
4776 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4777 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4778 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781 cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h. */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4787 #include <netdnet/dnetdb.h>
4788
4789 _ACEOF
4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4792 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4793 else
4794 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4795 fi
4796 rm -f conftest*
4797
4798 fi
4799 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4800 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4801 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4802 cat >>confdefs.h <<\_ACEOF
4803 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4804 _ACEOF
4805
4806 fi
4807
4808 echo "$as_me:$LINENO: checking for char" >&5
4809 echo $ECHO_N "checking for char... $ECHO_C" >&6
4810 if test "${ac_cv_type_char+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h. */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 $ac_includes_default
4820 int
4821 main ()
4822 {
4823 if ((char *) 0)
4824 return 0;
4825 if (sizeof (char))
4826 return 0;
4827 ;
4828 return 0;
4829 }
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_cv_type_char=yes
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 ac_cv_type_char=no
4859 fi
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4861 fi
4862 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4863 echo "${ECHO_T}$ac_cv_type_char" >&6
4864
4865 echo "$as_me:$LINENO: checking size of char" >&5
4866 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4867 if test "${ac_cv_sizeof_char+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 if test "$ac_cv_type_char" = yes; then
4871 # The cast to unsigned long works around a bug in the HP C Compiler
4872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4874 # This bug is HP SR number 8606223364.
4875 if test "$cross_compiling" = yes; then
4876 # Depending upon the size, compute the lo and hi bounds.
4877 cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h. */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4883 $ac_includes_default
4884 int
4885 main ()
4886 {
4887 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4888 test_array [0] = 0
4889
4890 ;
4891 return 0;
4892 }
4893 _ACEOF
4894 rm -f conftest.$ac_objext
4895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4896 (eval $ac_compile) 2>conftest.er1
4897 ac_status=$?
4898 grep -v '^ *+' conftest.er1 >conftest.err
4899 rm -f conftest.er1
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } &&
4903 { ac_try='test -z "$ac_c_werror_flag"
4904 || test ! -s conftest.err'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; } &&
4910 { ac_try='test -s conftest.$ac_objext'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4916 ac_lo=0 ac_mid=0
4917 while :; do
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924 $ac_includes_default
4925 int
4926 main ()
4927 {
4928 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4929 test_array [0] = 0
4930
4931 ;
4932 return 0;
4933 }
4934 _ACEOF
4935 rm -f conftest.$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -z "$ac_c_werror_flag"
4945 || test ! -s conftest.err'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 (eval $ac_try) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; } &&
4951 { ac_try='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_hi=$ac_mid; break
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 ac_lo=`expr $ac_mid + 1`
4963 if test $ac_lo -le $ac_mid; then
4964 ac_lo= ac_hi=
4965 break
4966 fi
4967 ac_mid=`expr 2 '*' $ac_mid + 1`
4968 fi
4969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4970 done
4971 else
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4974
4975 cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h. */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 $ac_includes_default
4982 int
4983 main ()
4984 {
4985 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4986 test_array [0] = 0
4987
4988 ;
4989 return 0;
4990 }
4991 _ACEOF
4992 rm -f conftest.$ac_objext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>conftest.er1
4995 ac_status=$?
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -z "$ac_c_werror_flag"
5002 || test ! -s conftest.err'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; } &&
5008 { ac_try='test -s conftest.$ac_objext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 ac_hi=-1 ac_mid=-1
5015 while :; do
5016 cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h. */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 $ac_includes_default
5023 int
5024 main ()
5025 {
5026 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5027 test_array [0] = 0
5028
5029 ;
5030 return 0;
5031 }
5032 _ACEOF
5033 rm -f conftest.$ac_objext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035 (eval $ac_compile) 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -z "$ac_c_werror_flag"
5043 || test ! -s conftest.err'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; } &&
5049 { ac_try='test -s conftest.$ac_objext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 ac_lo=$ac_mid; break
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 ac_hi=`expr '(' $ac_mid ')' - 1`
5061 if test $ac_mid -le $ac_hi; then
5062 ac_lo= ac_hi=
5063 break
5064 fi
5065 ac_mid=`expr 2 '*' $ac_mid`
5066 fi
5067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068 done
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073 ac_lo= ac_hi=
5074 fi
5075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5076 fi
5077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5078 # Binary search between lo and hi bounds.
5079 while test "x$ac_lo" != "x$ac_hi"; do
5080 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5081 cat >conftest.$ac_ext <<_ACEOF
5082 /* confdefs.h. */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5087 $ac_includes_default
5088 int
5089 main ()
5090 {
5091 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5092 test_array [0] = 0
5093
5094 ;
5095 return 0;
5096 }
5097 _ACEOF
5098 rm -f conftest.$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
5107 { ac_try='test -z "$ac_c_werror_flag"
5108 || test ! -s conftest.err'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; } &&
5114 { ac_try='test -s conftest.$ac_objext'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 (eval $ac_try) 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5120 ac_hi=$ac_mid
5121 else
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125 ac_lo=`expr '(' $ac_mid ')' + 1`
5126 fi
5127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5128 done
5129 case $ac_lo in
5130 ?*) ac_cv_sizeof_char=$ac_lo;;
5131 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5132 See \`config.log' for more details." >&5
5133 echo "$as_me: error: cannot compute sizeof (char), 77
5134 See \`config.log' for more details." >&2;}
5135 { (exit 1); exit 1; }; } ;;
5136 esac
5137 else
5138 if test "$cross_compiling" = yes; then
5139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5140 See \`config.log' for more details." >&5
5141 echo "$as_me: error: cannot run test program while cross compiling
5142 See \`config.log' for more details." >&2;}
5143 { (exit 1); exit 1; }; }
5144 else
5145 cat >conftest.$ac_ext <<_ACEOF
5146 /* confdefs.h. */
5147 _ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 $ac_includes_default
5152 long longval () { return (long) (sizeof (char)); }
5153 unsigned long ulongval () { return (long) (sizeof (char)); }
5154 #include <stdio.h>
5155 #include <stdlib.h>
5156 int
5157 main ()
5158 {
5159
5160 FILE *f = fopen ("conftest.val", "w");
5161 if (! f)
5162 exit (1);
5163 if (((long) (sizeof (char))) < 0)
5164 {
5165 long i = longval ();
5166 if (i != ((long) (sizeof (char))))
5167 exit (1);
5168 fprintf (f, "%ld\n", i);
5169 }
5170 else
5171 {
5172 unsigned long i = ulongval ();
5173 if (i != ((long) (sizeof (char))))
5174 exit (1);
5175 fprintf (f, "%lu\n", i);
5176 }
5177 exit (ferror (f) || fclose (f) != 0);
5178
5179 ;
5180 return 0;
5181 }
5182 _ACEOF
5183 rm -f conftest$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185 (eval $ac_link) 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5194 ac_cv_sizeof_char=`cat conftest.val`
5195 else
5196 echo "$as_me: program exited with status $ac_status" >&5
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200 ( exit $ac_status )
5201 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5202 See \`config.log' for more details." >&5
5203 echo "$as_me: error: cannot compute sizeof (char), 77
5204 See \`config.log' for more details." >&2;}
5205 { (exit 1); exit 1; }; }
5206 fi
5207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5208 fi
5209 fi
5210 rm -f conftest.val
5211 else
5212 ac_cv_sizeof_char=0
5213 fi
5214 fi
5215 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5216 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5217 cat >>confdefs.h <<_ACEOF
5218 #define SIZEOF_CHAR $ac_cv_sizeof_char
5219 _ACEOF
5220
5221
5222 echo "$as_me:$LINENO: checking for short" >&5
5223 echo $ECHO_N "checking for short... $ECHO_C" >&6
5224 if test "${ac_cv_type_short+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 $ac_includes_default
5234 int
5235 main ()
5236 {
5237 if ((short *) 0)
5238 return 0;
5239 if (sizeof (short))
5240 return 0;
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247 (eval $ac_compile) 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -z "$ac_c_werror_flag"
5255 || test ! -s conftest.err'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 (eval $ac_try) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; } &&
5261 { ac_try='test -s conftest.$ac_objext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 ac_cv_type_short=yes
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 ac_cv_type_short=no
5273 fi
5274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5275 fi
5276 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5277 echo "${ECHO_T}$ac_cv_type_short" >&6
5278
5279 echo "$as_me:$LINENO: checking size of short" >&5
5280 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5281 if test "${ac_cv_sizeof_short+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 if test "$ac_cv_type_short" = yes; then
5285 # The cast to unsigned long works around a bug in the HP C Compiler
5286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5288 # This bug is HP SR number 8606223364.
5289 if test "$cross_compiling" = yes; then
5290 # Depending upon the size, compute the lo and hi bounds.
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5298 int
5299 main ()
5300 {
5301 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5302 test_array [0] = 0
5303
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest.$ac_objext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 (eval $ac_try) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_lo=0 ac_mid=0
5331 while :; do
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 $ac_includes_default
5339 int
5340 main ()
5341 {
5342 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5343 test_array [0] = 0
5344
5345 ;
5346 return 0;
5347 }
5348 _ACEOF
5349 rm -f conftest.$ac_objext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5351 (eval $ac_compile) 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -z "$ac_c_werror_flag"
5359 || test ! -s conftest.err'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_hi=$ac_mid; break
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 ac_lo=`expr $ac_mid + 1`
5377 if test $ac_lo -le $ac_mid; then
5378 ac_lo= ac_hi=
5379 break
5380 fi
5381 ac_mid=`expr 2 '*' $ac_mid + 1`
5382 fi
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384 done
5385 else
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389 cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h. */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 $ac_includes_default
5396 int
5397 main ()
5398 {
5399 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5400 test_array [0] = 0
5401
5402 ;
5403 return 0;
5404 }
5405 _ACEOF
5406 rm -f conftest.$ac_objext
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408 (eval $ac_compile) 2>conftest.er1
5409 ac_status=$?
5410 grep -v '^ *+' conftest.er1 >conftest.err
5411 rm -f conftest.er1
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 { ac_try='test -z "$ac_c_werror_flag"
5416 || test ! -s conftest.err'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 (eval $ac_try) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; } &&
5422 { ac_try='test -s conftest.$ac_objext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 (eval $ac_try) 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_hi=-1 ac_mid=-1
5429 while :; do
5430 cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h. */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 int
5438 main ()
5439 {
5440 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5441 test_array [0] = 0
5442
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 rm -f conftest.$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449 (eval $ac_compile) 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -z "$ac_c_werror_flag"
5457 || test ! -s conftest.err'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; } &&
5463 { ac_try='test -s conftest.$ac_objext'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; }; then
5469 ac_lo=$ac_mid; break
5470 else
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474 ac_hi=`expr '(' $ac_mid ')' - 1`
5475 if test $ac_mid -le $ac_hi; then
5476 ac_lo= ac_hi=
5477 break
5478 fi
5479 ac_mid=`expr 2 '*' $ac_mid`
5480 fi
5481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482 done
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 ac_lo= ac_hi=
5488 fi
5489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5490 fi
5491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5492 # Binary search between lo and hi bounds.
5493 while test "x$ac_lo" != "x$ac_hi"; do
5494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 $ac_includes_default
5502 int
5503 main ()
5504 {
5505 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5506 test_array [0] = 0
5507
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 rm -f conftest.$ac_objext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514 (eval $ac_compile) 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag"
5522 || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest.$ac_objext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_hi=$ac_mid
5535 else
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539 ac_lo=`expr '(' $ac_mid ')' + 1`
5540 fi
5541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5542 done
5543 case $ac_lo in
5544 ?*) ac_cv_sizeof_short=$ac_lo;;
5545 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5546 See \`config.log' for more details." >&5
5547 echo "$as_me: error: cannot compute sizeof (short), 77
5548 See \`config.log' for more details." >&2;}
5549 { (exit 1); exit 1; }; } ;;
5550 esac
5551 else
5552 if test "$cross_compiling" = yes; then
5553 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5554 See \`config.log' for more details." >&5
5555 echo "$as_me: error: cannot run test program while cross compiling
5556 See \`config.log' for more details." >&2;}
5557 { (exit 1); exit 1; }; }
5558 else
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h. */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 $ac_includes_default
5566 long longval () { return (long) (sizeof (short)); }
5567 unsigned long ulongval () { return (long) (sizeof (short)); }
5568 #include <stdio.h>
5569 #include <stdlib.h>
5570 int
5571 main ()
5572 {
5573
5574 FILE *f = fopen ("conftest.val", "w");
5575 if (! f)
5576 exit (1);
5577 if (((long) (sizeof (short))) < 0)
5578 {
5579 long i = longval ();
5580 if (i != ((long) (sizeof (short))))
5581 exit (1);
5582 fprintf (f, "%ld\n", i);
5583 }
5584 else
5585 {
5586 unsigned long i = ulongval ();
5587 if (i != ((long) (sizeof (short))))
5588 exit (1);
5589 fprintf (f, "%lu\n", i);
5590 }
5591 exit (ferror (f) || fclose (f) != 0);
5592
5593 ;
5594 return 0;
5595 }
5596 _ACEOF
5597 rm -f conftest$ac_exeext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5599 (eval $ac_link) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 (eval $ac_try) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_cv_sizeof_short=`cat conftest.val`
5609 else
5610 echo "$as_me: program exited with status $ac_status" >&5
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5613
5614 ( exit $ac_status )
5615 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5616 See \`config.log' for more details." >&5
5617 echo "$as_me: error: cannot compute sizeof (short), 77
5618 See \`config.log' for more details." >&2;}
5619 { (exit 1); exit 1; }; }
5620 fi
5621 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5622 fi
5623 fi
5624 rm -f conftest.val
5625 else
5626 ac_cv_sizeof_short=0
5627 fi
5628 fi
5629 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5630 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5631 cat >>confdefs.h <<_ACEOF
5632 #define SIZEOF_SHORT $ac_cv_sizeof_short
5633 _ACEOF
5634
5635
5636 echo "$as_me:$LINENO: checking for int" >&5
5637 echo $ECHO_N "checking for int... $ECHO_C" >&6
5638 if test "${ac_cv_type_int+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 $ac_includes_default
5648 int
5649 main ()
5650 {
5651 if ((int *) 0)
5652 return 0;
5653 if (sizeof (int))
5654 return 0;
5655 ;
5656 return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try='test -z "$ac_c_werror_flag"
5669 || test ! -s conftest.err'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest.$ac_objext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 ac_cv_type_int=yes
5682 else
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686 ac_cv_type_int=no
5687 fi
5688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5689 fi
5690 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5691 echo "${ECHO_T}$ac_cv_type_int" >&6
5692
5693 echo "$as_me:$LINENO: checking size of int" >&5
5694 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5695 if test "${ac_cv_sizeof_int+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698 if test "$ac_cv_type_int" = yes; then
5699 # The cast to unsigned long works around a bug in the HP C Compiler
5700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5702 # This bug is HP SR number 8606223364.
5703 if test "$cross_compiling" = yes; then
5704 # Depending upon the size, compute the lo and hi bounds.
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 $ac_includes_default
5712 int
5713 main ()
5714 {
5715 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5716 test_array [0] = 0
5717
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_lo=0 ac_mid=0
5745 while :; do
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h. */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 $ac_includes_default
5753 int
5754 main ()
5755 {
5756 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5757 test_array [0] = 0
5758
5759 ;
5760 return 0;
5761 }
5762 _ACEOF
5763 rm -f conftest.$ac_objext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765 (eval $ac_compile) 2>conftest.er1
5766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -z "$ac_c_werror_flag"
5773 || test ! -s conftest.err'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 (eval $ac_try) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 ac_hi=$ac_mid; break
5786 else
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 ac_lo=`expr $ac_mid + 1`
5791 if test $ac_lo -le $ac_mid; then
5792 ac_lo= ac_hi=
5793 break
5794 fi
5795 ac_mid=`expr 2 '*' $ac_mid + 1`
5796 fi
5797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5798 done
5799 else
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5802
5803 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h. */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 $ac_includes_default
5810 int
5811 main ()
5812 {
5813 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5814 test_array [0] = 0
5815
5816 ;
5817 return 0;
5818 }
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 ac_hi=-1 ac_mid=-1
5843 while :; do
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 $ac_includes_default
5851 int
5852 main ()
5853 {
5854 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5855 test_array [0] = 0
5856
5857 ;
5858 return 0;
5859 }
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5863 (eval $ac_compile) 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } &&
5870 { ac_try='test -z "$ac_c_werror_flag"
5871 || test ! -s conftest.err'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 (eval $ac_try) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_lo=$ac_mid; break
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888 ac_hi=`expr '(' $ac_mid ')' - 1`
5889 if test $ac_mid -le $ac_hi; then
5890 ac_lo= ac_hi=
5891 break
5892 fi
5893 ac_mid=`expr 2 '*' $ac_mid`
5894 fi
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 done
5897 else
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901 ac_lo= ac_hi=
5902 fi
5903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5904 fi
5905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906 # Binary search between lo and hi bounds.
5907 while test "x$ac_lo" != "x$ac_hi"; do
5908 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 $ac_includes_default
5916 int
5917 main ()
5918 {
5919 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5920 test_array [0] = 0
5921
5922 ;
5923 return 0;
5924 }
5925 _ACEOF
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag"
5936 || test ! -s conftest.err'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 (eval $ac_try) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 ac_hi=$ac_mid
5949 else
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ac_lo=`expr '(' $ac_mid ')' + 1`
5954 fi
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 done
5957 case $ac_lo in
5958 ?*) ac_cv_sizeof_int=$ac_lo;;
5959 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5960 See \`config.log' for more details." >&5
5961 echo "$as_me: error: cannot compute sizeof (int), 77
5962 See \`config.log' for more details." >&2;}
5963 { (exit 1); exit 1; }; } ;;
5964 esac
5965 else
5966 if test "$cross_compiling" = yes; then
5967 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5968 See \`config.log' for more details." >&5
5969 echo "$as_me: error: cannot run test program while cross compiling
5970 See \`config.log' for more details." >&2;}
5971 { (exit 1); exit 1; }; }
5972 else
5973 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h. */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 $ac_includes_default
5980 long longval () { return (long) (sizeof (int)); }
5981 unsigned long ulongval () { return (long) (sizeof (int)); }
5982 #include <stdio.h>
5983 #include <stdlib.h>
5984 int
5985 main ()
5986 {
5987
5988 FILE *f = fopen ("conftest.val", "w");
5989 if (! f)
5990 exit (1);
5991 if (((long) (sizeof (int))) < 0)
5992 {
5993 long i = longval ();
5994 if (i != ((long) (sizeof (int))))
5995 exit (1);
5996 fprintf (f, "%ld\n", i);
5997 }
5998 else
5999 {
6000 unsigned long i = ulongval ();
6001 if (i != ((long) (sizeof (int))))
6002 exit (1);
6003 fprintf (f, "%lu\n", i);
6004 }
6005 exit (ferror (f) || fclose (f) != 0);
6006
6007 ;
6008 return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_sizeof_int=`cat conftest.val`
6023 else
6024 echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 ( exit $ac_status )
6029 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6030 See \`config.log' for more details." >&5
6031 echo "$as_me: error: cannot compute sizeof (int), 77
6032 See \`config.log' for more details." >&2;}
6033 { (exit 1); exit 1; }; }
6034 fi
6035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6036 fi
6037 fi
6038 rm -f conftest.val
6039 else
6040 ac_cv_sizeof_int=0
6041 fi
6042 fi
6043 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6044 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6045 cat >>confdefs.h <<_ACEOF
6046 #define SIZEOF_INT $ac_cv_sizeof_int
6047 _ACEOF
6048
6049
6050 echo "$as_me:$LINENO: checking for long" >&5
6051 echo $ECHO_N "checking for long... $ECHO_C" >&6
6052 if test "${ac_cv_type_long+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 $ac_includes_default
6062 int
6063 main ()
6064 {
6065 if ((long *) 0)
6066 return 0;
6067 if (sizeof (long))
6068 return 0;
6069 ;
6070 return 0;
6071 }
6072 _ACEOF
6073 rm -f conftest.$ac_objext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try='test -z "$ac_c_werror_flag"
6083 || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 (eval $ac_try) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_type_long=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 ac_cv_type_long=no
6101 fi
6102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6103 fi
6104 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6105 echo "${ECHO_T}$ac_cv_type_long" >&6
6106
6107 echo "$as_me:$LINENO: checking size of long" >&5
6108 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6109 if test "${ac_cv_sizeof_long+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 if test "$ac_cv_type_long" = yes; then
6113 # The cast to unsigned long works around a bug in the HP C Compiler
6114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6116 # This bug is HP SR number 8606223364.
6117 if test "$cross_compiling" = yes; then
6118 # Depending upon the size, compute the lo and hi bounds.
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 $ac_includes_default
6126 int
6127 main ()
6128 {
6129 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6130 test_array [0] = 0
6131
6132 ;
6133 return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_lo=0 ac_mid=0
6159 while :; do
6160 cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h. */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 $ac_includes_default
6167 int
6168 main ()
6169 {
6170 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6171 test_array [0] = 0
6172
6173 ;
6174 return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -z "$ac_c_werror_flag"
6187 || test ! -s conftest.err'
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); }; } &&
6193 { ac_try='test -s conftest.$ac_objext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 ac_hi=$ac_mid; break
6200 else
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 ac_lo=`expr $ac_mid + 1`
6205 if test $ac_lo -le $ac_mid; then
6206 ac_lo= ac_hi=
6207 break
6208 fi
6209 ac_mid=`expr 2 '*' $ac_mid + 1`
6210 fi
6211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6212 done
6213 else
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6216
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 (long))) < 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_hi=-1 ac_mid=-1
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 (long))) >= $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_lo=$ac_mid; break
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302 ac_hi=`expr '(' $ac_mid ')' - 1`
6303 if test $ac_mid -le $ac_hi; then
6304 ac_lo= ac_hi=
6305 break
6306 fi
6307 ac_mid=`expr 2 '*' $ac_mid`
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 ac_lo= ac_hi=
6316 fi
6317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6318 fi
6319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6320 # Binary search between lo and hi bounds.
6321 while test "x$ac_lo" != "x$ac_hi"; do
6322 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6323 cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h. */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 $ac_includes_default
6330 int
6331 main ()
6332 {
6333 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6334 test_array [0] = 0
6335
6336 ;
6337 return 0;
6338 }
6339 _ACEOF
6340 rm -f conftest.$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -z "$ac_c_werror_flag"
6350 || test ! -s conftest.err'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try='test -s conftest.$ac_objext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 ac_hi=$ac_mid
6363 else
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367 ac_lo=`expr '(' $ac_mid ')' + 1`
6368 fi
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370 done
6371 case $ac_lo in
6372 ?*) ac_cv_sizeof_long=$ac_lo;;
6373 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6374 See \`config.log' for more details." >&5
6375 echo "$as_me: error: cannot compute sizeof (long), 77
6376 See \`config.log' for more details." >&2;}
6377 { (exit 1); exit 1; }; } ;;
6378 esac
6379 else
6380 if test "$cross_compiling" = yes; then
6381 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6382 See \`config.log' for more details." >&5
6383 echo "$as_me: error: cannot run test program while cross compiling
6384 See \`config.log' for more details." >&2;}
6385 { (exit 1); exit 1; }; }
6386 else
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6394 long longval () { return (long) (sizeof (long)); }
6395 unsigned long ulongval () { return (long) (sizeof (long)); }
6396 #include <stdio.h>
6397 #include <stdlib.h>
6398 int
6399 main ()
6400 {
6401
6402 FILE *f = fopen ("conftest.val", "w");
6403 if (! f)
6404 exit (1);
6405 if (((long) (sizeof (long))) < 0)
6406 {
6407 long i = longval ();
6408 if (i != ((long) (sizeof (long))))
6409 exit (1);
6410 fprintf (f, "%ld\n", i);
6411 }
6412 else
6413 {
6414 unsigned long i = ulongval ();
6415 if (i != ((long) (sizeof (long))))
6416 exit (1);
6417 fprintf (f, "%lu\n", i);
6418 }
6419 exit (ferror (f) || fclose (f) != 0);
6420
6421 ;
6422 return 0;
6423 }
6424 _ACEOF
6425 rm -f conftest$ac_exeext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6427 (eval $ac_link) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 ac_cv_sizeof_long=`cat conftest.val`
6437 else
6438 echo "$as_me: program exited with status $ac_status" >&5
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ( exit $ac_status )
6443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6444 See \`config.log' for more details." >&5
6445 echo "$as_me: error: cannot compute sizeof (long), 77
6446 See \`config.log' for more details." >&2;}
6447 { (exit 1); exit 1; }; }
6448 fi
6449 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6450 fi
6451 fi
6452 rm -f conftest.val
6453 else
6454 ac_cv_sizeof_long=0
6455 fi
6456 fi
6457 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6458 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6459 cat >>confdefs.h <<_ACEOF
6460 #define SIZEOF_LONG $ac_cv_sizeof_long
6461 _ACEOF
6462
6463
6464 echo "$as_me:$LINENO: checking for long long" >&5
6465 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6466 if test "${ac_cv_type_long_long+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 $ac_includes_default
6476 int
6477 main ()
6478 {
6479 if ((long long *) 0)
6480 return 0;
6481 if (sizeof (long long))
6482 return 0;
6483 ;
6484 return 0;
6485 }
6486 _ACEOF
6487 rm -f conftest.$ac_objext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489 (eval $ac_compile) 2>conftest.er1
6490 ac_status=$?
6491 grep -v '^ *+' conftest.er1 >conftest.err
6492 rm -f conftest.er1
6493 cat conftest.err >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } &&
6496 { ac_try='test -z "$ac_c_werror_flag"
6497 || test ! -s conftest.err'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 (eval $ac_try) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; } &&
6503 { ac_try='test -s conftest.$ac_objext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_cv_type_long_long=yes
6510 else
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6513
6514 ac_cv_type_long_long=no
6515 fi
6516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6517 fi
6518 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6519 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6520
6521 echo "$as_me:$LINENO: checking size of long long" >&5
6522 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6523 if test "${ac_cv_sizeof_long_long+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526 if test "$ac_cv_type_long_long" = yes; then
6527 # The cast to unsigned long works around a bug in the HP C Compiler
6528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6530 # This bug is HP SR number 8606223364.
6531 if test "$cross_compiling" = yes; then
6532 # Depending upon the size, compute the lo and hi bounds.
6533 cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h. */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 $ac_includes_default
6540 int
6541 main ()
6542 {
6543 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6544 test_array [0] = 0
6545
6546 ;
6547 return 0;
6548 }
6549 _ACEOF
6550 rm -f conftest.$ac_objext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552 (eval $ac_compile) 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try='test -z "$ac_c_werror_flag"
6560 || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 ac_lo=0 ac_mid=0
6573 while :; do
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 $ac_includes_default
6581 int
6582 main ()
6583 {
6584 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6585 test_array [0] = 0
6586
6587 ;
6588 return 0;
6589 }
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6593 (eval $ac_compile) 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -z "$ac_c_werror_flag"
6601 || test ! -s conftest.err'
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); }; } &&
6607 { ac_try='test -s conftest.$ac_objext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 (eval $ac_try) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_hi=$ac_mid; break
6614 else
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_lo=`expr $ac_mid + 1`
6619 if test $ac_lo -le $ac_mid; then
6620 ac_lo= ac_hi=
6621 break
6622 fi
6623 ac_mid=`expr 2 '*' $ac_mid + 1`
6624 fi
6625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6626 done
6627 else
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
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 (long long))) < 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_hi=-1 ac_mid=-1
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 (long long))) >= $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_lo=$ac_mid; break
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6715
6716 ac_hi=`expr '(' $ac_mid ')' - 1`
6717 if test $ac_mid -le $ac_hi; then
6718 ac_lo= ac_hi=
6719 break
6720 fi
6721 ac_mid=`expr 2 '*' $ac_mid`
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 ac_lo= ac_hi=
6730 fi
6731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6732 fi
6733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6734 # Binary search between lo and hi bounds.
6735 while test "x$ac_lo" != "x$ac_hi"; do
6736 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 $ac_includes_default
6744 int
6745 main ()
6746 {
6747 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6748 test_array [0] = 0
6749
6750 ;
6751 return 0;
6752 }
6753 _ACEOF
6754 rm -f conftest.$ac_objext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>conftest.er1
6757 ac_status=$?
6758 grep -v '^ *+' conftest.er1 >conftest.err
6759 rm -f conftest.er1
6760 cat conftest.err >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try='test -z "$ac_c_werror_flag"
6764 || test ! -s conftest.err'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; } &&
6770 { ac_try='test -s conftest.$ac_objext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 (eval $ac_try) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_hi=$ac_mid
6777 else
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781 ac_lo=`expr '(' $ac_mid ')' + 1`
6782 fi
6783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6784 done
6785 case $ac_lo in
6786 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6787 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6788 See \`config.log' for more details." >&5
6789 echo "$as_me: error: cannot compute sizeof (long long), 77
6790 See \`config.log' for more details." >&2;}
6791 { (exit 1); exit 1; }; } ;;
6792 esac
6793 else
6794 if test "$cross_compiling" = yes; then
6795 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6796 See \`config.log' for more details." >&5
6797 echo "$as_me: error: cannot run test program while cross compiling
6798 See \`config.log' for more details." >&2;}
6799 { (exit 1); exit 1; }; }
6800 else
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6808 long longval () { return (long) (sizeof (long long)); }
6809 unsigned long ulongval () { return (long) (sizeof (long long)); }
6810 #include <stdio.h>
6811 #include <stdlib.h>
6812 int
6813 main ()
6814 {
6815
6816 FILE *f = fopen ("conftest.val", "w");
6817 if (! f)
6818 exit (1);
6819 if (((long) (sizeof (long long))) < 0)
6820 {
6821 long i = longval ();
6822 if (i != ((long) (sizeof (long long))))
6823 exit (1);
6824 fprintf (f, "%ld\n", i);
6825 }
6826 else
6827 {
6828 unsigned long i = ulongval ();
6829 if (i != ((long) (sizeof (long long))))
6830 exit (1);
6831 fprintf (f, "%lu\n", i);
6832 }
6833 exit (ferror (f) || fclose (f) != 0);
6834
6835 ;
6836 return 0;
6837 }
6838 _ACEOF
6839 rm -f conftest$ac_exeext
6840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6841 (eval $ac_link) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 (eval $ac_try) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_sizeof_long_long=`cat conftest.val`
6851 else
6852 echo "$as_me: program exited with status $ac_status" >&5
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6855
6856 ( exit $ac_status )
6857 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6858 See \`config.log' for more details." >&5
6859 echo "$as_me: error: cannot compute sizeof (long long), 77
6860 See \`config.log' for more details." >&2;}
6861 { (exit 1); exit 1; }; }
6862 fi
6863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6864 fi
6865 fi
6866 rm -f conftest.val
6867 else
6868 ac_cv_sizeof_long_long=0
6869 fi
6870 fi
6871 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6872 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6873 cat >>confdefs.h <<_ACEOF
6874 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6875 _ACEOF
6876
6877
6878
6879
6880
6881 echo "$as_me:$LINENO: checking for addrinfo" >&5
6882 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6883 if test "${ac_cv_addrinfo+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h. */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892
6893 # include <netdb.h>
6894 int
6895 main ()
6896 {
6897 struct addrinfo a
6898 ;
6899 return 0;
6900 }
6901 _ACEOF
6902 rm -f conftest.$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904 (eval $ac_compile) 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -z "$ac_c_werror_flag"
6912 || test ! -s conftest.err'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; } &&
6918 { ac_try='test -s conftest.$ac_objext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 (eval $ac_try) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6924 ac_cv_addrinfo=yes
6925 else
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929 ac_cv_addrinfo=no
6930 fi
6931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6932 fi
6933
6934 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6935 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6936 if test $ac_cv_addrinfo = yes; then
6937 cat >>confdefs.h <<\_ACEOF
6938 #define HAVE_ADDRINFO 1
6939 _ACEOF
6940
6941 else
6942 cat >>confdefs.h <<\_ACEOF
6943 #define NEED_ADDRINFO_H 1
6944 _ACEOF
6945
6946 fi
6947
6948 if test "$ac_cv_addrinfo" = no; then
6949 missing_includes=yes
6950 fi
6951
6952
6953 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6954 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6955 if test "${ac_cv_maxserv+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h. */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 #include <netdb.h>
6965 #ifdef NI_MAXSERV
6966 yes
6967 #endif
6968 _ACEOF
6969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970 $EGREP "yes" >/dev/null 2>&1; then
6971 ac_cv_maxserv=yes
6972 else
6973 ac_cv_maxserv=no
6974 fi
6975 rm -f conftest*
6976
6977 fi
6978
6979 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6980 echo "${ECHO_T}$ac_cv_maxserv" >&6
6981 if test $ac_cv_maxserv != yes; then
6982 cat >>confdefs.h <<\_ACEOF
6983 #define NEED_ADDRINFO_H 1
6984 _ACEOF
6985
6986 fi
6987
6988 if test "$ac_cv_maxserv" = no; then
6989 missing_includes=yes
6990 fi
6991
6992
6993 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6994 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6995 if test "${ac_cv_namereqd+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h. */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 #include <netdb.h>
7005 #ifdef NI_NOFQDN
7006 yes
7007 #endif
7008 _ACEOF
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "yes" >/dev/null 2>&1; then
7011 ac_cv_namereqd=yes
7012 else
7013 ac_cv_namereqd=no
7014 fi
7015 rm -f conftest*
7016
7017 fi
7018
7019 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7020 echo "${ECHO_T}$ac_cv_namereqd" >&6
7021 if test $ac_cv_namereqd != yes; then
7022 cat >>confdefs.h <<\_ACEOF
7023 #define NEED_ADDRINFO_H 1
7024 _ACEOF
7025
7026 fi
7027
7028 if test "$ac_cv_namereqd" = no; then
7029 missing_includes=yes
7030 fi
7031
7032
7033 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7034 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
7035 if test "${ac_cv_sa_storage+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044
7045 # include <sys/types.h>
7046 # include <sys/socket.h>
7047 int
7048 main ()
7049 {
7050 struct sockaddr_storage s
7051 ;
7052 return 0;
7053 }
7054 _ACEOF
7055 rm -f conftest.$ac_objext
7056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057 (eval $ac_compile) 2>conftest.er1
7058 ac_status=$?
7059 grep -v '^ *+' conftest.er1 >conftest.err
7060 rm -f conftest.er1
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } &&
7064 { ac_try='test -z "$ac_c_werror_flag"
7065 || test ! -s conftest.err'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 (eval $ac_try) 2>&5
7068 ac_status=$?
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; } &&
7071 { ac_try='test -s conftest.$ac_objext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 ac_cv_sa_storage=yes
7078 else
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082 ac_cv_sa_storage=no
7083 fi
7084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7085 fi
7086
7087 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7088 echo "${ECHO_T}$ac_cv_sa_storage" >&6
7089 if test $ac_cv_sa_storage = yes; then
7090 cat >>confdefs.h <<\_ACEOF
7091 #define HAVE_SOCKADDR_STORAGE 1
7092 _ACEOF
7093
7094 fi
7095
7096 if test "$ac_cv_sa_storage" = no; then
7097 missing_includes=yes
7098 fi
7099
7100
7101 ac_cv_addrsz=yes
7102 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7103 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
7104 if test "${ac_cv_inaddrsz+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113
7114 # include <arpa/nameser.h>
7115 int
7116 main ()
7117 {
7118 int a = INADDRSZ
7119 ;
7120 return 0;
7121 }
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7125 (eval $ac_compile) 2>conftest.er1
7126 ac_status=$?
7127 grep -v '^ *+' conftest.er1 >conftest.err
7128 rm -f conftest.er1
7129 cat conftest.err >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } &&
7132 { ac_try='test -z "$ac_c_werror_flag"
7133 || test ! -s conftest.err'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 (eval $ac_try) 2>&5
7136 ac_status=$?
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; } &&
7139 { ac_try='test -s conftest.$ac_objext'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 (eval $ac_try) 2>&5
7142 ac_status=$?
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 ac_cv_inaddrsz=yes
7146 else
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7149
7150 ac_cv_inaddrsz=no
7151 fi
7152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7153 fi
7154
7155 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7156 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
7157 if test $ac_cv_inaddrsz = yes; then
7158 cat >>confdefs.h <<\_ACEOF
7159 #define HAVE_INADDRSZ 1
7160 _ACEOF
7161
7162 else
7163 ac_cv_addrsz=no
7164 fi
7165 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7166 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
7167 if test "${ac_cv_in6addrsz+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170 cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h. */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176
7177 # include <arpa/nameser.h>
7178 int
7179 main ()
7180 {
7181 int a = IN6ADDRSZ
7182 ;
7183 return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188 (eval $ac_compile) 2>conftest.er1
7189 ac_status=$?
7190 grep -v '^ *+' conftest.er1 >conftest.err
7191 rm -f conftest.er1
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try='test -z "$ac_c_werror_flag"
7196 || test ! -s conftest.err'
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 (eval $ac_try) 2>&5
7199 ac_status=$?
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; } &&
7202 { ac_try='test -s conftest.$ac_objext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 (eval $ac_try) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 ac_cv_in6addrsz=yes
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213 ac_cv_in6addrsz=no
7214 fi
7215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7216 fi
7217
7218 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7219 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
7220 if test $ac_cv_in6addrsz = yes; then
7221 cat >>confdefs.h <<\_ACEOF
7222 #define HAVE_IN6ADDRSZ 1
7223 _ACEOF
7224
7225 else
7226 ac_cv_addrsz=no
7227 fi
7228
7229 if test "$ac_cv_addrsz" = no; then
7230 missing_includes=yes
7231 fi
7232
7233
7234 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7235 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
7236 if test "${ac_cv_res_inet6+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245
7246 # include <sys/types.h>
7247 # include <netinet/in.h>
7248 # include <resolv.h>
7249 int
7250 main ()
7251 {
7252 int a = RES_USE_INET6
7253 ;
7254 return 0;
7255 }
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259 (eval $ac_compile) 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } &&
7266 { ac_try='test -z "$ac_c_werror_flag"
7267 || test ! -s conftest.err'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 (eval $ac_try) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; } &&
7273 { ac_try='test -s conftest.$ac_objext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_cv_res_inet6=yes
7280 else
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 ac_cv_res_inet6=no
7285 fi
7286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7287 fi
7288
7289 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7290 echo "${ECHO_T}$ac_cv_res_inet6" >&6
7291 if test $ac_cv_res_inet6 = yes; then
7292 cat >>confdefs.h <<\_ACEOF
7293 #define HAVE_RES_USE_INET6 1
7294 _ACEOF
7295
7296 fi
7297
7298 if test "$ac_cv_res_inet6" = no; then
7299 missing_includes=yes
7300 fi
7301
7302
7303 echo "$as_me:$LINENO: checking for res_state_ext" >&5
7304 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
7305 if test "${ac_cv_res_state_ext+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314
7315 # include <sys/types.h>
7316 # include <netinet/in.h>
7317 # include <netinet6/in6.h>
7318 # include <resolv.h>
7319 int
7320 main ()
7321 {
7322 struct __res_state_ext e
7323 ;
7324 return 0;
7325 }
7326 _ACEOF
7327 rm -f conftest.$ac_objext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329 (eval $ac_compile) 2>conftest.er1
7330 ac_status=$?
7331 grep -v '^ *+' conftest.er1 >conftest.err
7332 rm -f conftest.er1
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try='test -z "$ac_c_werror_flag"
7337 || test ! -s conftest.err'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; } &&
7343 { ac_try='test -s conftest.$ac_objext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_cv_res_state_ext=yes
7350 else
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354 ac_cv_res_state_ext=no
7355 fi
7356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7357 fi
7358
7359 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7360 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
7361 if test $ac_cv_res_state_ext = yes; then
7362 cat >>confdefs.h <<\_ACEOF
7363 #define HAVE_RES_STATE_EXT 1
7364 _ACEOF
7365
7366 fi
7367
7368 if test "$ac_cv_res_state_ext" = no; then
7369 missing_includes=yes
7370 fi
7371
7372
7373 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7374 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
7375 if test "${ac_cv_res_state+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384
7385 # include <sys/types.h>
7386 # include <netinet/in.h>
7387 # include <netinet6/in6.h>
7388 # include <resolv.h>
7389 int
7390 main ()
7391 {
7392 struct __res_state e; e.nsort = 0
7393 ;
7394 return 0;
7395 }
7396 _ACEOF
7397 rm -f conftest.$ac_objext
7398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7399 (eval $ac_compile) 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } &&
7406 { ac_try='test -z "$ac_c_werror_flag"
7407 || test ! -s conftest.err'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 (eval $ac_try) 2>&5
7410 ac_status=$?
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; } &&
7413 { ac_try='test -s conftest.$ac_objext'
7414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 (eval $ac_try) 2>&5
7416 ac_status=$?
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; }; then
7419 ac_cv_res_state=yes
7420 else
7421 echo "$as_me: failed program was:" >&5
7422 sed 's/^/| /' conftest.$ac_ext >&5
7423
7424 ac_cv_res_state=no
7425 fi
7426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7427 fi
7428
7429 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7430 echo "${ECHO_T}$ac_cv_res_state" >&6
7431 if test $ac_cv_res_state = yes; then
7432 cat >>confdefs.h <<\_ACEOF
7433 #define HAVE_NEW_RES_STATE 1
7434 _ACEOF
7435
7436 fi
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7447 do
7448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7449 echo "$as_me:$LINENO: checking for $ac_func" >&5
7450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7451 if eval "test \"\${$as_ac_var+set}\" = set"; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7462 #define $ac_func innocuous_$ac_func
7463
7464 /* System header to define __stub macros and hopefully few prototypes,
7465 which can conflict with char $ac_func (); below.
7466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7467 <limits.h> exists even on freestanding compilers. */
7468
7469 #ifdef __STDC__
7470 # include <limits.h>
7471 #else
7472 # include <assert.h>
7473 #endif
7474
7475 #undef $ac_func
7476
7477 /* Override any gcc2 internal prototype to avoid an error. */
7478 #ifdef __cplusplus
7479 extern "C"
7480 {
7481 #endif
7482 /* We use char because int might match the return type of a gcc2
7483 builtin and then its argument prototype would still apply. */
7484 char $ac_func ();
7485 /* The GNU C library defines this for functions which it implements
7486 to always fail with ENOSYS. Some functions are actually named
7487 something starting with __ and the normal name is an alias. */
7488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7489 choke me
7490 #else
7491 char (*f) () = $ac_func;
7492 #endif
7493 #ifdef __cplusplus
7494 }
7495 #endif
7496
7497 int
7498 main ()
7499 {
7500 return f != $ac_func;
7501 ;
7502 return 0;
7503 }
7504 _ACEOF
7505 rm -f conftest.$ac_objext conftest$ac_exeext
7506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7507 (eval $ac_link) 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try='test -z "$ac_c_werror_flag"
7515 || test ! -s conftest.err'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest$ac_exeext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 eval "$as_ac_var=yes"
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7531
7532 eval "$as_ac_var=no"
7533 fi
7534 rm -f conftest.err conftest.$ac_objext \
7535 conftest$ac_exeext conftest.$ac_ext
7536 fi
7537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7539 if test `eval echo '${'$as_ac_var'}'` = yes; then
7540 cat >>confdefs.h <<_ACEOF
7541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7542 _ACEOF
7543
7544 else
7545 case $LIBOBJS in
7546 "$ac_func.$ac_objext" | \
7547 *" $ac_func.$ac_objext" | \
7548 "$ac_func.$ac_objext "* | \
7549 *" $ac_func.$ac_objext "* ) ;;
7550 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7551 esac
7552
7553 fi
7554 done
7555
7556
7557
7558 for ac_func in strftime
7559 do
7560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7561 echo "$as_me:$LINENO: checking for $ac_func" >&5
7562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7563 if eval "test \"\${$as_ac_var+set}\" = set"; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566 cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h. */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7574 #define $ac_func innocuous_$ac_func
7575
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func (); below.
7578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7579 <limits.h> exists even on freestanding compilers. */
7580
7581 #ifdef __STDC__
7582 # include <limits.h>
7583 #else
7584 # include <assert.h>
7585 #endif
7586
7587 #undef $ac_func
7588
7589 /* Override any gcc2 internal prototype to avoid an error. */
7590 #ifdef __cplusplus
7591 extern "C"
7592 {
7593 #endif
7594 /* We use char because int might match the return type of a gcc2
7595 builtin and then its argument prototype would still apply. */
7596 char $ac_func ();
7597 /* The GNU C library defines this for functions which it implements
7598 to always fail with ENOSYS. Some functions are actually named
7599 something starting with __ and the normal name is an alias. */
7600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7601 choke me
7602 #else
7603 char (*f) () = $ac_func;
7604 #endif
7605 #ifdef __cplusplus
7606 }
7607 #endif
7608
7609 int
7610 main ()
7611 {
7612 return f != $ac_func;
7613 ;
7614 return 0;
7615 }
7616 _ACEOF
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7619 (eval $ac_link) 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try='test -s conftest$ac_exeext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 (eval $ac_try) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 eval "$as_ac_var=yes"
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 eval "$as_ac_var=no"
7645 fi
7646 rm -f conftest.err conftest.$ac_objext \
7647 conftest$ac_exeext conftest.$ac_ext
7648 fi
7649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7651 if test `eval echo '${'$as_ac_var'}'` = yes; then
7652 cat >>confdefs.h <<_ACEOF
7653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7654 _ACEOF
7655
7656 fi
7657 done
7658
7659
7660
7661 for ac_func in setlinebuf alarm
7662 do
7663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7664 echo "$as_me:$LINENO: checking for $ac_func" >&5
7665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7666 if eval "test \"\${$as_ac_var+set}\" = set"; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h. */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7677 #define $ac_func innocuous_$ac_func
7678
7679 /* System header to define __stub macros and hopefully few prototypes,
7680 which can conflict with char $ac_func (); below.
7681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7682 <limits.h> exists even on freestanding compilers. */
7683
7684 #ifdef __STDC__
7685 # include <limits.h>
7686 #else
7687 # include <assert.h>
7688 #endif
7689
7690 #undef $ac_func
7691
7692 /* Override any gcc2 internal prototype to avoid an error. */
7693 #ifdef __cplusplus
7694 extern "C"
7695 {
7696 #endif
7697 /* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7699 char $ac_func ();
7700 /* The GNU C library defines this for functions which it implements
7701 to always fail with ENOSYS. Some functions are actually named
7702 something starting with __ and the normal name is an alias. */
7703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7704 choke me
7705 #else
7706 char (*f) () = $ac_func;
7707 #endif
7708 #ifdef __cplusplus
7709 }
7710 #endif
7711
7712 int
7713 main ()
7714 {
7715 return f != $ac_func;
7716 ;
7717 return 0;
7718 }
7719 _ACEOF
7720 rm -f conftest.$ac_objext conftest$ac_exeext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7722 (eval $ac_link) 2>conftest.er1
7723 ac_status=$?
7724 grep -v '^ *+' conftest.er1 >conftest.err
7725 rm -f conftest.er1
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -z "$ac_c_werror_flag"
7730 || test ! -s conftest.err'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 (eval $ac_try) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try='test -s conftest$ac_exeext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 eval "$as_ac_var=yes"
7743 else
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747 eval "$as_ac_var=no"
7748 fi
7749 rm -f conftest.err conftest.$ac_objext \
7750 conftest$ac_exeext conftest.$ac_ext
7751 fi
7752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7754 if test `eval echo '${'$as_ac_var'}'` = yes; then
7755 cat >>confdefs.h <<_ACEOF
7756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7757 _ACEOF
7758
7759 fi
7760 done
7761
7762
7763 needsnprintf=no
7764
7765
7766 for ac_func in vsnprintf snprintf
7767 do
7768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7769 echo "$as_me:$LINENO: checking for $ac_func" >&5
7770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7771 if eval "test \"\${$as_ac_var+set}\" = set"; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774 cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7782 #define $ac_func innocuous_$ac_func
7783
7784 /* System header to define __stub macros and hopefully few prototypes,
7785 which can conflict with char $ac_func (); below.
7786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7787 <limits.h> exists even on freestanding compilers. */
7788
7789 #ifdef __STDC__
7790 # include <limits.h>
7791 #else
7792 # include <assert.h>
7793 #endif
7794
7795 #undef $ac_func
7796
7797 /* Override any gcc2 internal prototype to avoid an error. */
7798 #ifdef __cplusplus
7799 extern "C"
7800 {
7801 #endif
7802 /* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7804 char $ac_func ();
7805 /* The GNU C library defines this for functions which it implements
7806 to always fail with ENOSYS. Some functions are actually named
7807 something starting with __ and the normal name is an alias. */
7808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7809 choke me
7810 #else
7811 char (*f) () = $ac_func;
7812 #endif
7813 #ifdef __cplusplus
7814 }
7815 #endif
7816
7817 int
7818 main ()
7819 {
7820 return f != $ac_func;
7821 ;
7822 return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 eval "$as_ac_var=yes"
7848 else
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 eval "$as_ac_var=no"
7853 fi
7854 rm -f conftest.err conftest.$ac_objext \
7855 conftest$ac_exeext conftest.$ac_ext
7856 fi
7857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7859 if test `eval echo '${'$as_ac_var'}'` = yes; then
7860 cat >>confdefs.h <<_ACEOF
7861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7862 _ACEOF
7863
7864 else
7865 needsnprintf=yes
7866 fi
7867 done
7868
7869 if test $needsnprintf = yes; then
7870 case $LIBOBJS in
7871 "snprintf.$ac_objext" | \
7872 *" snprintf.$ac_objext" | \
7873 "snprintf.$ac_objext "* | \
7874 *" snprintf.$ac_objext "* ) ;;
7875 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
7876 esac
7877
7878 fi
7879
7880
7881 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7882 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7883 if test "${ac_cv_type_signal+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886 cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h. */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 #include <sys/types.h>
7893 #include <signal.h>
7894 #ifdef signal
7895 # undef signal
7896 #endif
7897 #ifdef __cplusplus
7898 extern "C" void (*signal (int, void (*)(int)))(int);
7899 #else
7900 void (*signal ()) ();
7901 #endif
7902
7903 int
7904 main ()
7905 {
7906 int i;
7907 ;
7908 return 0;
7909 }
7910 _ACEOF
7911 rm -f conftest.$ac_objext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7913 (eval $ac_compile) 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try='test -z "$ac_c_werror_flag"
7921 || test ! -s conftest.err'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 (eval $ac_try) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; } &&
7927 { ac_try='test -s conftest.$ac_objext'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 ac_cv_type_signal=void
7934 else
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7937
7938 ac_cv_type_signal=int
7939 fi
7940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7941 fi
7942 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7943 echo "${ECHO_T}$ac_cv_type_signal" >&6
7944
7945 cat >>confdefs.h <<_ACEOF
7946 #define RETSIGTYPE $ac_cv_type_signal
7947 _ACEOF
7948
7949
7950 if test "$ac_cv_type_signal" = void ; then
7951 cat >>confdefs.h <<\_ACEOF
7952 #define RETSIGVAL
7953 _ACEOF
7954
7955 else
7956 cat >>confdefs.h <<\_ACEOF
7957 #define RETSIGVAL (0)
7958 _ACEOF
7959
7960 fi
7961 case "$host_os" in
7962
7963 irix*)
7964 cat >>confdefs.h <<\_ACEOF
7965 #define _BSD_SIGNALS 1
7966 _ACEOF
7967
7968 ;;
7969
7970 *)
7971
7972 for ac_func in sigaction
7973 do
7974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7975 echo "$as_me:$LINENO: checking for $ac_func" >&5
7976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7977 if eval "test \"\${$as_ac_var+set}\" = set"; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7988 #define $ac_func innocuous_$ac_func
7989
7990 /* System header to define __stub macros and hopefully few prototypes,
7991 which can conflict with char $ac_func (); below.
7992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7993 <limits.h> exists even on freestanding compilers. */
7994
7995 #ifdef __STDC__
7996 # include <limits.h>
7997 #else
7998 # include <assert.h>
7999 #endif
8000
8001 #undef $ac_func
8002
8003 /* Override any gcc2 internal prototype to avoid an error. */
8004 #ifdef __cplusplus
8005 extern "C"
8006 {
8007 #endif
8008 /* We use char because int might match the return type of a gcc2
8009 builtin and then its argument prototype would still apply. */
8010 char $ac_func ();
8011 /* The GNU C library defines this for functions which it implements
8012 to always fail with ENOSYS. Some functions are actually named
8013 something starting with __ and the normal name is an alias. */
8014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8015 choke me
8016 #else
8017 char (*f) () = $ac_func;
8018 #endif
8019 #ifdef __cplusplus
8020 }
8021 #endif
8022
8023 int
8024 main ()
8025 {
8026 return f != $ac_func;
8027 ;
8028 return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8033 (eval $ac_link) 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest$ac_exeext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 eval "$as_ac_var=yes"
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 eval "$as_ac_var=no"
8059 fi
8060 rm -f conftest.err conftest.$ac_objext \
8061 conftest$ac_exeext conftest.$ac_ext
8062 fi
8063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8065 if test `eval echo '${'$as_ac_var'}'` = yes; then
8066 cat >>confdefs.h <<_ACEOF
8067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8068 _ACEOF
8069
8070 fi
8071 done
8072
8073 if test $ac_cv_func_sigaction = no ; then
8074
8075 for ac_func in sigset
8076 do
8077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8078 echo "$as_me:$LINENO: checking for $ac_func" >&5
8079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8080 if eval "test \"\${$as_ac_var+set}\" = set"; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083 cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h. */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8091 #define $ac_func innocuous_$ac_func
8092
8093 /* System header to define __stub macros and hopefully few prototypes,
8094 which can conflict with char $ac_func (); below.
8095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8096 <limits.h> exists even on freestanding compilers. */
8097
8098 #ifdef __STDC__
8099 # include <limits.h>
8100 #else
8101 # include <assert.h>
8102 #endif
8103
8104 #undef $ac_func
8105
8106 /* Override any gcc2 internal prototype to avoid an error. */
8107 #ifdef __cplusplus
8108 extern "C"
8109 {
8110 #endif
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8113 char $ac_func ();
8114 /* The GNU C library defines this for functions which it implements
8115 to always fail with ENOSYS. Some functions are actually named
8116 something starting with __ and the normal name is an alias. */
8117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8118 choke me
8119 #else
8120 char (*f) () = $ac_func;
8121 #endif
8122 #ifdef __cplusplus
8123 }
8124 #endif
8125
8126 int
8127 main ()
8128 {
8129 return f != $ac_func;
8130 ;
8131 return 0;
8132 }
8133 _ACEOF
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8136 (eval $ac_link) 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } &&
8143 { ac_try='test -z "$ac_c_werror_flag"
8144 || test ! -s conftest.err'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; } &&
8150 { ac_try='test -s conftest$ac_exeext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8156 eval "$as_ac_var=yes"
8157 else
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8160
8161 eval "$as_ac_var=no"
8162 fi
8163 rm -f conftest.err conftest.$ac_objext \
8164 conftest$ac_exeext conftest.$ac_ext
8165 fi
8166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8168 if test `eval echo '${'$as_ac_var'}'` = yes; then
8169 cat >>confdefs.h <<_ACEOF
8170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8171 _ACEOF
8172
8173 fi
8174 done
8175
8176 fi
8177 ;;
8178 esac
8179
8180 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8181 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
8182 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185 ac_func_search_save_LIBS=$LIBS
8186 ac_cv_search_dnet_htoa=no
8187 cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h. */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193
8194 /* Override any gcc2 internal prototype to avoid an error. */
8195 #ifdef __cplusplus
8196 extern "C"
8197 #endif
8198 /* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */
8200 char dnet_htoa ();
8201 int
8202 main ()
8203 {
8204 dnet_htoa ();
8205 ;
8206 return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211 (eval $ac_link) 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag"
8219 || test ! -s conftest.err'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 (eval $ac_try) 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try='test -s conftest$ac_exeext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 ac_cv_search_dnet_htoa="none required"
8232 else
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8235
8236 fi
8237 rm -f conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239 if test "$ac_cv_search_dnet_htoa" = no; then
8240 for ac_lib in dnet; do
8241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8242 cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h. */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248
8249 /* Override any gcc2 internal prototype to avoid an error. */
8250 #ifdef __cplusplus
8251 extern "C"
8252 #endif
8253 /* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8255 char dnet_htoa ();
8256 int
8257 main ()
8258 {
8259 dnet_htoa ();
8260 ;
8261 return 0;
8262 }
8263 _ACEOF
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
8273 { ac_try='test -z "$ac_c_werror_flag"
8274 || test ! -s conftest.err'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 ac_cv_search_dnet_htoa="-l$ac_lib"
8287 break
8288 else
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292 fi
8293 rm -f conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8295 done
8296 fi
8297 LIBS=$ac_func_search_save_LIBS
8298 fi
8299 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8300 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
8301 if test "$ac_cv_search_dnet_htoa" != no; then
8302 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_DNET_HTOA 1
8305 _ACEOF
8306
8307 fi
8308
8309
8310
8311 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8312 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
8313 if test "${ac_cv_lib_rpc_main+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316 ac_check_lib_save_LIBS=$LIBS
8317 LIBS="-lrpc $LIBS"
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h. */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324
8325
8326 int
8327 main ()
8328 {
8329 main ();
8330 ;
8331 return 0;
8332 }
8333 _ACEOF
8334 rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8336 (eval $ac_link) 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try='test -z "$ac_c_werror_flag"
8344 || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest$ac_exeext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_lib_rpc_main=yes
8357 else
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361 ac_cv_lib_rpc_main=no
8362 fi
8363 rm -f conftest.err conftest.$ac_objext \
8364 conftest$ac_exeext conftest.$ac_ext
8365 LIBS=$ac_check_lib_save_LIBS
8366 fi
8367 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8368 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
8369 if test $ac_cv_lib_rpc_main = yes; then
8370 cat >>confdefs.h <<_ACEOF
8371 #define HAVE_LIBRPC 1
8372 _ACEOF
8373
8374 LIBS="-lrpc $LIBS"
8375
8376 fi
8377
8378 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8379 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
8380 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383 ac_func_search_save_LIBS=$LIBS
8384 ac_cv_search_getrpcbynumber=no
8385 cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h. */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8391
8392 /* Override any gcc2 internal prototype to avoid an error. */
8393 #ifdef __cplusplus
8394 extern "C"
8395 #endif
8396 /* We use char because int might match the return type of a gcc2
8397 builtin and then its argument prototype would still apply. */
8398 char getrpcbynumber ();
8399 int
8400 main ()
8401 {
8402 getrpcbynumber ();
8403 ;
8404 return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>conftest.er1
8410 ac_status=$?
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } &&
8416 { ac_try='test -z "$ac_c_werror_flag"
8417 || test ! -s conftest.err'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; } &&
8423 { ac_try='test -s conftest$ac_exeext'
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 (eval $ac_try) 2>&5
8426 ac_status=$?
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }; }; then
8429 ac_cv_search_getrpcbynumber="none required"
8430 else
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8433
8434 fi
8435 rm -f conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437 if test "$ac_cv_search_getrpcbynumber" = no; then
8438 for ac_lib in nsl; do
8439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446
8447 /* Override any gcc2 internal prototype to avoid an error. */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 /* We use char because int might match the return type of a gcc2
8452 builtin and then its argument prototype would still apply. */
8453 char getrpcbynumber ();
8454 int
8455 main ()
8456 {
8457 getrpcbynumber ();
8458 ;
8459 return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag"
8472 || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 (eval $ac_try) 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest$ac_exeext'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_search_getrpcbynumber="-l$ac_lib"
8485 break
8486 else
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8489
8490 fi
8491 rm -f conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
8493 done
8494 fi
8495 LIBS=$ac_func_search_save_LIBS
8496 fi
8497 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8498 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
8499 if test "$ac_cv_search_getrpcbynumber" != no; then
8500 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
8501 cat >>confdefs.h <<\_ACEOF
8502 #define HAVE_GETRPCBYNUMBER 1
8503 _ACEOF
8504
8505 fi
8506
8507
8508
8509
8510 # Most operating systems have gethostbyname() in the default searched
8511 # libraries (i.e. libc):
8512 # Some OSes (eg. Solaris) place it in libnsl
8513 # Some strange OSes (SINIX) have it in libsocket:
8514 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8515 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8516 if test "${ac_cv_search_gethostbyname+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519 ac_func_search_save_LIBS=$LIBS
8520 ac_cv_search_gethostbyname=no
8521 cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h. */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527
8528 /* Override any gcc2 internal prototype to avoid an error. */
8529 #ifdef __cplusplus
8530 extern "C"
8531 #endif
8532 /* We use char because int might match the return type of a gcc2
8533 builtin and then its argument prototype would still apply. */
8534 char gethostbyname ();
8535 int
8536 main ()
8537 {
8538 gethostbyname ();
8539 ;
8540 return 0;
8541 }
8542 _ACEOF
8543 rm -f conftest.$ac_objext conftest$ac_exeext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8545 (eval $ac_link) 2>conftest.er1
8546 ac_status=$?
8547 grep -v '^ *+' conftest.er1 >conftest.err
8548 rm -f conftest.er1
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -z "$ac_c_werror_flag"
8553 || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest$ac_exeext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_cv_search_gethostbyname="none required"
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570 fi
8571 rm -f conftest.err conftest.$ac_objext \
8572 conftest$ac_exeext conftest.$ac_ext
8573 if test "$ac_cv_search_gethostbyname" = no; then
8574 for ac_lib in nsl socket resolv; do
8575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8576 cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h. */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582
8583 /* Override any gcc2 internal prototype to avoid an error. */
8584 #ifdef __cplusplus
8585 extern "C"
8586 #endif
8587 /* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8589 char gethostbyname ();
8590 int
8591 main ()
8592 {
8593 gethostbyname ();
8594 ;
8595 return 0;
8596 }
8597 _ACEOF
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8600 (eval $ac_link) 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag"
8608 || test ! -s conftest.err'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try='test -s conftest$ac_exeext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 ac_cv_search_gethostbyname="-l$ac_lib"
8621 break
8622 else
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626 fi
8627 rm -f conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8629 done
8630 fi
8631 LIBS=$ac_func_search_save_LIBS
8632 fi
8633 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8634 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8635 if test "$ac_cv_search_gethostbyname" != no; then
8636 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
8637
8638 fi
8639
8640 # Unfortunately libsocket sometimes depends on libnsl and
8641 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8642 if test "$ac_cv_search_gethostbyname" = "no"
8643 then
8644 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8645 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
8646 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 ac_check_lib_save_LIBS=$LIBS
8650 LIBS="-lsocket -lnsl $LIBS"
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657
8658 /* Override any gcc2 internal prototype to avoid an error. */
8659 #ifdef __cplusplus
8660 extern "C"
8661 #endif
8662 /* We use char because int might match the return type of a gcc2
8663 builtin and then its argument prototype would still apply. */
8664 char gethostbyname ();
8665 int
8666 main ()
8667 {
8668 gethostbyname ();
8669 ;
8670 return 0;
8671 }
8672 _ACEOF
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675 (eval $ac_link) 2>conftest.er1
8676 ac_status=$?
8677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -z "$ac_c_werror_flag"
8683 || test ! -s conftest.err'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 (eval $ac_try) 2>&5
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; } &&
8689 { ac_try='test -s conftest$ac_exeext'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 ac_cv_lib_socket_gethostbyname=yes
8696 else
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700 ac_cv_lib_socket_gethostbyname=no
8701 fi
8702 rm -f conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8704 LIBS=$ac_check_lib_save_LIBS
8705 fi
8706 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8707 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
8708 if test $ac_cv_lib_socket_gethostbyname = yes; then
8709 LIBS="-lsocket -lnsl $LIBS"
8710 fi
8711
8712 fi
8713 echo "$as_me:$LINENO: checking for library containing socket" >&5
8714 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
8715 if test "${ac_cv_search_socket+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8718 ac_func_search_save_LIBS=$LIBS
8719 ac_cv_search_socket=no
8720 cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h. */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8726
8727 /* Override any gcc2 internal prototype to avoid an error. */
8728 #ifdef __cplusplus
8729 extern "C"
8730 #endif
8731 /* We use char because int might match the return type of a gcc2
8732 builtin and then its argument prototype would still apply. */
8733 char socket ();
8734 int
8735 main ()
8736 {
8737 socket ();
8738 ;
8739 return 0;
8740 }
8741 _ACEOF
8742 rm -f conftest.$ac_objext conftest$ac_exeext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>conftest.er1
8745 ac_status=$?
8746 grep -v '^ *+' conftest.er1 >conftest.err
8747 rm -f conftest.er1
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -z "$ac_c_werror_flag"
8752 || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 (eval $ac_try) 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_cv_search_socket="none required"
8765 else
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769 fi
8770 rm -f conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
8772 if test "$ac_cv_search_socket" = no; then
8773 for ac_lib in socket; do
8774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8775 cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h. */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781
8782 /* Override any gcc2 internal prototype to avoid an error. */
8783 #ifdef __cplusplus
8784 extern "C"
8785 #endif
8786 /* We use char because int might match the return type of a gcc2
8787 builtin and then its argument prototype would still apply. */
8788 char socket ();
8789 int
8790 main ()
8791 {
8792 socket ();
8793 ;
8794 return 0;
8795 }
8796 _ACEOF
8797 rm -f conftest.$ac_objext conftest$ac_exeext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8799 (eval $ac_link) 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try='test -z "$ac_c_werror_flag"
8807 || test ! -s conftest.err'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; } &&
8813 { ac_try='test -s conftest$ac_exeext'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819 ac_cv_search_socket="-l$ac_lib"
8820 break
8821 else
8822 echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8824
8825 fi
8826 rm -f conftest.err conftest.$ac_objext \
8827 conftest$ac_exeext conftest.$ac_ext
8828 done
8829 fi
8830 LIBS=$ac_func_search_save_LIBS
8831 fi
8832 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8833 echo "${ECHO_T}$ac_cv_search_socket" >&6
8834 if test "$ac_cv_search_socket" != no; then
8835 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
8836
8837 else
8838 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8839 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8840 if test "${ac_cv_lib_socket_socket+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843 ac_check_lib_save_LIBS=$LIBS
8844 LIBS="-lsocket -lnsl $LIBS"
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851
8852 /* Override any gcc2 internal prototype to avoid an error. */
8853 #ifdef __cplusplus
8854 extern "C"
8855 #endif
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8858 char socket ();
8859 int
8860 main ()
8861 {
8862 socket ();
8863 ;
8864 return 0;
8865 }
8866 _ACEOF
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_cv_lib_socket_socket=yes
8890 else
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8893
8894 ac_cv_lib_socket_socket=no
8895 fi
8896 rm -f conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8898 LIBS=$ac_check_lib_save_LIBS
8899 fi
8900 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8901 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8902 if test $ac_cv_lib_socket_socket = yes; then
8903 LIBS="-lsocket -lnsl $LIBS"
8904 fi
8905
8906 fi
8907
8908 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8909 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8910 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8911 if test "${ac_cv_search_putmsg+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8913 else
8914 ac_func_search_save_LIBS=$LIBS
8915 ac_cv_search_putmsg=no
8916 cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h. */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922
8923 /* Override any gcc2 internal prototype to avoid an error. */
8924 #ifdef __cplusplus
8925 extern "C"
8926 #endif
8927 /* We use char because int might match the return type of a gcc2
8928 builtin and then its argument prototype would still apply. */
8929 char putmsg ();
8930 int
8931 main ()
8932 {
8933 putmsg ();
8934 ;
8935 return 0;
8936 }
8937 _ACEOF
8938 rm -f conftest.$ac_objext conftest$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest$ac_exeext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_cv_search_putmsg="none required"
8961 else
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8964
8965 fi
8966 rm -f conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 if test "$ac_cv_search_putmsg" = no; then
8969 for ac_lib in str; do
8970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8971 cat >conftest.$ac_ext <<_ACEOF
8972 /* confdefs.h. */
8973 _ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8977
8978 /* Override any gcc2 internal prototype to avoid an error. */
8979 #ifdef __cplusplus
8980 extern "C"
8981 #endif
8982 /* We use char because int might match the return type of a gcc2
8983 builtin and then its argument prototype would still apply. */
8984 char putmsg ();
8985 int
8986 main ()
8987 {
8988 putmsg ();
8989 ;
8990 return 0;
8991 }
8992 _ACEOF
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag"
9003 || test ! -s conftest.err'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; } &&
9009 { ac_try='test -s conftest$ac_exeext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 ac_cv_search_putmsg="-l$ac_lib"
9016 break
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021 fi
9022 rm -f conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext conftest.$ac_ext
9024 done
9025 fi
9026 LIBS=$ac_func_search_save_LIBS
9027 fi
9028 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9029 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
9030 if test "$ac_cv_search_putmsg" != no; then
9031 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
9032
9033 fi
9034
9035
9036
9037 LBL_LIBS="$LIBS"
9038 pfopen=/usr/examples/packetfilter/pfopen.c
9039 if test -f $pfopen ; then
9040
9041 for ac_func in pfopen
9042 do
9043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9044 echo "$as_me:$LINENO: checking for $ac_func" >&5
9045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9046 if eval "test \"\${$as_ac_var+set}\" = set"; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 else
9049 cat >conftest.$ac_ext <<_ACEOF
9050 /* confdefs.h. */
9051 _ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9057 #define $ac_func innocuous_$ac_func
9058
9059 /* System header to define __stub macros and hopefully few prototypes,
9060 which can conflict with char $ac_func (); below.
9061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9062 <limits.h> exists even on freestanding compilers. */
9063
9064 #ifdef __STDC__
9065 # include <limits.h>
9066 #else
9067 # include <assert.h>
9068 #endif
9069
9070 #undef $ac_func
9071
9072 /* Override any gcc2 internal prototype to avoid an error. */
9073 #ifdef __cplusplus
9074 extern "C"
9075 {
9076 #endif
9077 /* We use char because int might match the return type of a gcc2
9078 builtin and then its argument prototype would still apply. */
9079 char $ac_func ();
9080 /* The GNU C library defines this for functions which it implements
9081 to always fail with ENOSYS. Some functions are actually named
9082 something starting with __ and the normal name is an alias. */
9083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9084 choke me
9085 #else
9086 char (*f) () = $ac_func;
9087 #endif
9088 #ifdef __cplusplus
9089 }
9090 #endif
9091
9092 int
9093 main ()
9094 {
9095 return f != $ac_func;
9096 ;
9097 return 0;
9098 }
9099 _ACEOF
9100 rm -f conftest.$ac_objext conftest$ac_exeext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102 (eval $ac_link) 2>conftest.er1
9103 ac_status=$?
9104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } &&
9109 { ac_try='test -z "$ac_c_werror_flag"
9110 || test ! -s conftest.err'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 (eval $ac_try) 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; } &&
9116 { ac_try='test -s conftest$ac_exeext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 (eval $ac_try) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 eval "$as_ac_var=yes"
9123 else
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127 eval "$as_ac_var=no"
9128 fi
9129 rm -f conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
9131 fi
9132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9134 if test `eval echo '${'$as_ac_var'}'` = yes; then
9135 cat >>confdefs.h <<_ACEOF
9136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9137 _ACEOF
9138
9139 fi
9140 done
9141
9142 if test $ac_cv_func_pfopen = "no" ; then
9143 echo "$as_me:$LINENO: result: Using $pfopen" >&5
9144 echo "${ECHO_T}Using $pfopen" >&6
9145 LIBS="$LIBS $pfopen"
9146 fi
9147 fi
9148 echo "$as_me:$LINENO: checking for local pcap library" >&5
9149 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
9150 libpcap=FAIL
9151 lastdir=FAIL
9152 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9153 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9154 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9155 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9156 if test $lastdir = $basedir ; then
9157 continue;
9158 fi
9159 lastdir=$dir
9160 if test -r $dir/libpcap.a ; then
9161 libpcap=$dir/libpcap.a
9162 d=$dir
9163 fi
9164 done
9165 if test $libpcap = FAIL ; then
9166 echo "$as_me:$LINENO: result: not found" >&5
9167 echo "${ECHO_T}not found" >&6
9168 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9169 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
9170 if test "${ac_cv_lib_pcap_main+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173 ac_check_lib_save_LIBS=$LIBS
9174 LIBS="-lpcap $LIBS"
9175 cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h. */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9181
9182
9183 int
9184 main ()
9185 {
9186 main ();
9187 ;
9188 return 0;
9189 }
9190 _ACEOF
9191 rm -f conftest.$ac_objext conftest$ac_exeext
9192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9193 (eval $ac_link) 2>conftest.er1
9194 ac_status=$?
9195 grep -v '^ *+' conftest.er1 >conftest.err
9196 rm -f conftest.er1
9197 cat conftest.err >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try='test -z "$ac_c_werror_flag"
9201 || test ! -s conftest.err'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 (eval $ac_try) 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; } &&
9207 { ac_try='test -s conftest$ac_exeext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 (eval $ac_try) 2>&5
9210 ac_status=$?
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 ac_cv_lib_pcap_main=yes
9214 else
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9217
9218 ac_cv_lib_pcap_main=no
9219 fi
9220 rm -f conftest.err conftest.$ac_objext \
9221 conftest$ac_exeext conftest.$ac_ext
9222 LIBS=$ac_check_lib_save_LIBS
9223 fi
9224 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9225 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
9226 if test $ac_cv_lib_pcap_main = yes; then
9227 libpcap="-lpcap"
9228 fi
9229
9230 if test $libpcap = FAIL ; then
9231 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9232 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9233 { (exit 1); exit 1; }; }
9234 fi
9235 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9236 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
9237 if test \( ! -r /usr/local/include/pcap.h \) -a \
9238 \( ! -r /usr/include/pcap.h \); then
9239 if test -r /usr/local/include/pcap/pcap.h; then
9240 d="/usr/local/include/pcap"
9241 elif test -r /usr/include/pcap/pcap.h; then
9242 d="/usr/include/pcap"
9243 fi
9244 fi
9245 if test -z "$d" ; then
9246 echo "$as_me:$LINENO: result: not found" >&5
9247 echo "${ECHO_T}not found" >&6
9248 else
9249 V_INCLS="-I$d $V_INCLS"
9250 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9251 echo "${ECHO_T}found -- -I$d added" >&6
9252 fi
9253 else
9254 V_PCAPDEP=$libpcap
9255 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9256 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9257 if test -r $d/pcap.h; then
9258 V_INCLS="-I$d $V_INCLS"
9259 elif test -r $places/pcap.h; then
9260 V_INCLS="-I$places $V_INCLS"
9261 else
9262 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9263 echo "$as_me: error: cannot find pcap.h" >&2;}
9264 { (exit see INSTALL); exit see INSTALL; }; }
9265 fi
9266 echo "$as_me:$LINENO: result: $libpcap" >&5
9267 echo "${ECHO_T}$libpcap" >&6
9268 fi
9269 LIBS="$libpcap $LIBS"
9270 case "$host_os" in
9271
9272 aix*)
9273 pseexe="/lib/pse.exp"
9274 echo "$as_me:$LINENO: checking for $pseexe" >&5
9275 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
9276 if test -f $pseexe ; then
9277 echo "$as_me:$LINENO: result: yes" >&5
9278 echo "${ECHO_T}yes" >&6
9279 LIBS="$LIBS -I:$pseexe"
9280 fi
9281 #
9282 # We need "-lodm" and "-lcfg", as libpcap requires them on
9283 # AIX, and we just build a static libpcap.a and thus can't
9284 # arrange that when you link with libpcap you automatically
9285 # link with those libraries.
9286 #
9287 LIBS="$LIBS -lodm -lcfg"
9288 ;;
9289 esac
9290
9291 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9292 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
9293 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h. */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9304 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9305
9306 /* System header to define __stub macros and hopefully few prototypes,
9307 which can conflict with char pcap_list_datalinks (); below.
9308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9309 <limits.h> exists even on freestanding compilers. */
9310
9311 #ifdef __STDC__
9312 # include <limits.h>
9313 #else
9314 # include <assert.h>
9315 #endif
9316
9317 #undef pcap_list_datalinks
9318
9319 /* Override any gcc2 internal prototype to avoid an error. */
9320 #ifdef __cplusplus
9321 extern "C"
9322 {
9323 #endif
9324 /* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9326 char pcap_list_datalinks ();
9327 /* The GNU C library defines this for functions which it implements
9328 to always fail with ENOSYS. Some functions are actually named
9329 something starting with __ and the normal name is an alias. */
9330 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
9331 choke me
9332 #else
9333 char (*f) () = pcap_list_datalinks;
9334 #endif
9335 #ifdef __cplusplus
9336 }
9337 #endif
9338
9339 int
9340 main ()
9341 {
9342 return f != pcap_list_datalinks;
9343 ;
9344 return 0;
9345 }
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>conftest.er1
9350 ac_status=$?
9351 grep -v '^ *+' conftest.er1 >conftest.err
9352 rm -f conftest.er1
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -z "$ac_c_werror_flag"
9357 || test ! -s conftest.err'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 (eval $ac_try) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } &&
9363 { ac_try='test -s conftest$ac_exeext'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 (eval $ac_try) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9369 ac_cv_func_pcap_list_datalinks=yes
9370 else
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9373
9374 ac_cv_func_pcap_list_datalinks=no
9375 fi
9376 rm -f conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
9378 fi
9379 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9380 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
9381 if test $ac_cv_func_pcap_list_datalinks = yes; then
9382 cat >>confdefs.h <<\_ACEOF
9383 #define HAVE_PCAP_LIST_DATALINKS 1
9384 _ACEOF
9385
9386 else
9387
9388 case $LIBOBJS in
9389 "datalinks.$ac_objext" | \
9390 *" datalinks.$ac_objext" | \
9391 "datalinks.$ac_objext "* | \
9392 *" datalinks.$ac_objext "* ) ;;
9393 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext" ;;
9394 esac
9395
9396
9397 fi
9398
9399 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9400 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
9401 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404 cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h. */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9412 #define pcap_set_datalink innocuous_pcap_set_datalink
9413
9414 /* System header to define __stub macros and hopefully few prototypes,
9415 which can conflict with char pcap_set_datalink (); below.
9416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9417 <limits.h> exists even on freestanding compilers. */
9418
9419 #ifdef __STDC__
9420 # include <limits.h>
9421 #else
9422 # include <assert.h>
9423 #endif
9424
9425 #undef pcap_set_datalink
9426
9427 /* Override any gcc2 internal prototype to avoid an error. */
9428 #ifdef __cplusplus
9429 extern "C"
9430 {
9431 #endif
9432 /* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
9434 char pcap_set_datalink ();
9435 /* The GNU C library defines this for functions which it implements
9436 to always fail with ENOSYS. Some functions are actually named
9437 something starting with __ and the normal name is an alias. */
9438 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
9439 choke me
9440 #else
9441 char (*f) () = pcap_set_datalink;
9442 #endif
9443 #ifdef __cplusplus
9444 }
9445 #endif
9446
9447 int
9448 main ()
9449 {
9450 return f != pcap_set_datalink;
9451 ;
9452 return 0;
9453 }
9454 _ACEOF
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>conftest.er1
9458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag"
9465 || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try='test -s conftest$ac_exeext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_func_pcap_set_datalink=yes
9478 else
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482 ac_cv_func_pcap_set_datalink=no
9483 fi
9484 rm -f conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9486 fi
9487 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9488 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
9489 if test $ac_cv_func_pcap_set_datalink = yes; then
9490 cat >>confdefs.h <<\_ACEOF
9491 #define HAVE_PCAP_SET_DATALINK 1
9492 _ACEOF
9493
9494 fi
9495
9496 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9497 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
9498 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 cat >conftest.$ac_ext <<_ACEOF
9502 /* confdefs.h. */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9509 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9510
9511 /* System header to define __stub macros and hopefully few prototypes,
9512 which can conflict with char pcap_datalink_name_to_val (); below.
9513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9514 <limits.h> exists even on freestanding compilers. */
9515
9516 #ifdef __STDC__
9517 # include <limits.h>
9518 #else
9519 # include <assert.h>
9520 #endif
9521
9522 #undef pcap_datalink_name_to_val
9523
9524 /* Override any gcc2 internal prototype to avoid an error. */
9525 #ifdef __cplusplus
9526 extern "C"
9527 {
9528 #endif
9529 /* We use char because int might match the return type of a gcc2
9530 builtin and then its argument prototype would still apply. */
9531 char pcap_datalink_name_to_val ();
9532 /* The GNU C library defines this for functions which it implements
9533 to always fail with ENOSYS. Some functions are actually named
9534 something starting with __ and the normal name is an alias. */
9535 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
9536 choke me
9537 #else
9538 char (*f) () = pcap_datalink_name_to_val;
9539 #endif
9540 #ifdef __cplusplus
9541 }
9542 #endif
9543
9544 int
9545 main ()
9546 {
9547 return f != pcap_datalink_name_to_val;
9548 ;
9549 return 0;
9550 }
9551 _ACEOF
9552 rm -f conftest.$ac_objext conftest$ac_exeext
9553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9554 (eval $ac_link) 2>conftest.er1
9555 ac_status=$?
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } &&
9561 { ac_try='test -z "$ac_c_werror_flag"
9562 || test ! -s conftest.err'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 (eval $ac_try) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; } &&
9568 { ac_try='test -s conftest$ac_exeext'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 (eval $ac_try) 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; }; then
9574 ac_cv_func_pcap_datalink_name_to_val=yes
9575 else
9576 echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9578
9579 ac_cv_func_pcap_datalink_name_to_val=no
9580 fi
9581 rm -f conftest.err conftest.$ac_objext \
9582 conftest$ac_exeext conftest.$ac_ext
9583 fi
9584 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9585 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
9586 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9587
9588 cat >>confdefs.h <<\_ACEOF
9589 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9590 _ACEOF
9591
9592 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9593 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
9594 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h. */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9603 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9605 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9606
9607 /* System header to define __stub macros and hopefully few prototypes,
9608 which can conflict with char pcap_datalink_val_to_description (); below.
9609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9610 <limits.h> exists even on freestanding compilers. */
9611
9612 #ifdef __STDC__
9613 # include <limits.h>
9614 #else
9615 # include <assert.h>
9616 #endif
9617
9618 #undef pcap_datalink_val_to_description
9619
9620 /* Override any gcc2 internal prototype to avoid an error. */
9621 #ifdef __cplusplus
9622 extern "C"
9623 {
9624 #endif
9625 /* We use char because int might match the return type of a gcc2
9626 builtin and then its argument prototype would still apply. */
9627 char pcap_datalink_val_to_description ();
9628 /* The GNU C library defines this for functions which it implements
9629 to always fail with ENOSYS. Some functions are actually named
9630 something starting with __ and the normal name is an alias. */
9631 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
9632 choke me
9633 #else
9634 char (*f) () = pcap_datalink_val_to_description;
9635 #endif
9636 #ifdef __cplusplus
9637 }
9638 #endif
9639
9640 int
9641 main ()
9642 {
9643 return f != pcap_datalink_val_to_description;
9644 ;
9645 return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9650 (eval $ac_link) 2>conftest.er1
9651 ac_status=$?
9652 grep -v '^ *+' conftest.er1 >conftest.err
9653 rm -f conftest.er1
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try='test -z "$ac_c_werror_flag"
9658 || test ! -s conftest.err'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 (eval $ac_try) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; } &&
9664 { ac_try='test -s conftest$ac_exeext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_func_pcap_datalink_val_to_description=yes
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 ac_cv_func_pcap_datalink_val_to_description=no
9676 fi
9677 rm -f conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
9679 fi
9680 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9681 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
9682 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9683 cat >>confdefs.h <<\_ACEOF
9684 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9685 _ACEOF
9686
9687 else
9688
9689 case $LIBOBJS in
9690 "dlnames.$ac_objext" | \
9691 *" dlnames.$ac_objext" | \
9692 "dlnames.$ac_objext "* | \
9693 *" dlnames.$ac_objext "* ) ;;
9694 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" ;;
9695 esac
9696
9697
9698 fi
9699
9700
9701 else
9702
9703 case $LIBOBJS in
9704 "dlnames.$ac_objext" | \
9705 *" dlnames.$ac_objext" | \
9706 "dlnames.$ac_objext "* | \
9707 *" dlnames.$ac_objext "* ) ;;
9708 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" ;;
9709 esac
9710
9711
9712 fi
9713
9714
9715
9716 for ac_func in pcap_breakloop
9717 do
9718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9719 echo "$as_me:$LINENO: checking for $ac_func" >&5
9720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9721 if eval "test \"\${$as_ac_var+set}\" = set"; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h. */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9732 #define $ac_func innocuous_$ac_func
9733
9734 /* System header to define __stub macros and hopefully few prototypes,
9735 which can conflict with char $ac_func (); below.
9736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9737 <limits.h> exists even on freestanding compilers. */
9738
9739 #ifdef __STDC__
9740 # include <limits.h>
9741 #else
9742 # include <assert.h>
9743 #endif
9744
9745 #undef $ac_func
9746
9747 /* Override any gcc2 internal prototype to avoid an error. */
9748 #ifdef __cplusplus
9749 extern "C"
9750 {
9751 #endif
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9754 char $ac_func ();
9755 /* The GNU C library defines this for functions which it implements
9756 to always fail with ENOSYS. Some functions are actually named
9757 something starting with __ and the normal name is an alias. */
9758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9759 choke me
9760 #else
9761 char (*f) () = $ac_func;
9762 #endif
9763 #ifdef __cplusplus
9764 }
9765 #endif
9766
9767 int
9768 main ()
9769 {
9770 return f != $ac_func;
9771 ;
9772 return 0;
9773 }
9774 _ACEOF
9775 rm -f conftest.$ac_objext conftest$ac_exeext
9776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9777 (eval $ac_link) 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
9784 { ac_try='test -z "$ac_c_werror_flag"
9785 || test ! -s conftest.err'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 (eval $ac_try) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; } &&
9791 { ac_try='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 (eval $ac_try) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797 eval "$as_ac_var=yes"
9798 else
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9801
9802 eval "$as_ac_var=no"
9803 fi
9804 rm -f conftest.err conftest.$ac_objext \
9805 conftest$ac_exeext conftest.$ac_ext
9806 fi
9807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9809 if test `eval echo '${'$as_ac_var'}'` = yes; then
9810 cat >>confdefs.h <<_ACEOF
9811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9812 _ACEOF
9813
9814 fi
9815 done
9816
9817
9818 echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9819 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6
9820 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h. */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9831 #define pcap_dump_ftell innocuous_pcap_dump_ftell
9832
9833 /* System header to define __stub macros and hopefully few prototypes,
9834 which can conflict with char pcap_dump_ftell (); below.
9835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9836 <limits.h> exists even on freestanding compilers. */
9837
9838 #ifdef __STDC__
9839 # include <limits.h>
9840 #else
9841 # include <assert.h>
9842 #endif
9843
9844 #undef pcap_dump_ftell
9845
9846 /* Override any gcc2 internal prototype to avoid an error. */
9847 #ifdef __cplusplus
9848 extern "C"
9849 {
9850 #endif
9851 /* We use char because int might match the return type of a gcc2
9852 builtin and then its argument prototype would still apply. */
9853 char pcap_dump_ftell ();
9854 /* The GNU C library defines this for functions which it implements
9855 to always fail with ENOSYS. Some functions are actually named
9856 something starting with __ and the normal name is an alias. */
9857 #if defined (__stub_pcap_dump_ftell) || defined (__stub___pcap_dump_ftell)
9858 choke me
9859 #else
9860 char (*f) () = pcap_dump_ftell;
9861 #endif
9862 #ifdef __cplusplus
9863 }
9864 #endif
9865
9866 int
9867 main ()
9868 {
9869 return f != pcap_dump_ftell;
9870 ;
9871 return 0;
9872 }
9873 _ACEOF
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9876 (eval $ac_link) 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } &&
9883 { ac_try='test -z "$ac_c_werror_flag"
9884 || test ! -s conftest.err'
9885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 (eval $ac_try) 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; } &&
9890 { ac_try='test -s conftest$ac_exeext'
9891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 (eval $ac_try) 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
9896 ac_cv_func_pcap_dump_ftell=yes
9897 else
9898 echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9900
9901 ac_cv_func_pcap_dump_ftell=no
9902 fi
9903 rm -f conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9905 fi
9906 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9907 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6
9908 if test $ac_cv_func_pcap_dump_ftell = yes; then
9909 cat >>confdefs.h <<\_ACEOF
9910 #define HAVE_PCAP_DUMP_FTELL 1
9911 _ACEOF
9912
9913 else
9914
9915 case $LIBOBJS in
9916 "pcap_dump_ftell.$ac_objext" | \
9917 *" pcap_dump_ftell.$ac_objext" | \
9918 "pcap_dump_ftell.$ac_objext "* | \
9919 *" pcap_dump_ftell.$ac_objext "* ) ;;
9920 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" ;;
9921 esac
9922
9923
9924 fi
9925
9926
9927
9928 #
9929 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
9930 # libraries (e.g., "-lsocket -lnsl" on Solaris).
9931 #
9932 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
9933 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
9934 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
9935 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
9936 # it does not ship with a libc symbol "inet_ntop()", it ships with
9937 # "_inet_ntop()", and has a #define macro in one of the system headers
9938 # to rename it.
9939 #
9940 echo "$as_me:$LINENO: checking for inet_ntop" >&5
9941 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h. */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9948 #include <sys/types.h>
9949 #include <sys/socket.h>
9950 #include <netinet/in.h>
9951 #include <arpa/inet.h>
9952 int
9953 main ()
9954 {
9955 char src[4], dst[128];
9956 inet_ntop(AF_INET, src, dst, sizeof(dst));
9957 ;
9958 return 0;
9959 }
9960 _ACEOF
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9963 (eval $ac_link) 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -z "$ac_c_werror_flag"
9971 || test ! -s conftest.err'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 (eval $ac_try) 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; } &&
9977 { ac_try='test -s conftest$ac_exeext'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 echo "$as_me:$LINENO: result: yes" >&5
9984 echo "${ECHO_T}yes" >&6
9985 else
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9988
9989 echo "$as_me:$LINENO: result: no" >&5
9990 echo "${ECHO_T}no" >&6
9991 case $LIBOBJS in
9992 "inet_ntop.$ac_objext" | \
9993 *" inet_ntop.$ac_objext" | \
9994 "inet_ntop.$ac_objext "* | \
9995 *" inet_ntop.$ac_objext "* ) ;;
9996 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" ;;
9997 esac
9998
9999 fi
10000 rm -f conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10002 echo "$as_me:$LINENO: checking for inet_pton" >&5
10003 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 #include <sys/types.h>
10011 #include <sys/socket.h>
10012 #include <netinet/in.h>
10013 #include <arpa/inet.h>
10014 int
10015 main ()
10016 {
10017 char src[128], dst[4];
10018 inet_pton(AF_INET, src, dst);
10019 ;
10020 return 0;
10021 }
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>conftest.er1
10026 ac_status=$?
10027 grep -v '^ *+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 echo "$as_me:$LINENO: result: yes" >&5
10046 echo "${ECHO_T}yes" >&6
10047 else
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051 echo "$as_me:$LINENO: result: no" >&5
10052 echo "${ECHO_T}no" >&6
10053 case $LIBOBJS in
10054 "inet_pton.$ac_objext" | \
10055 *" inet_pton.$ac_objext" | \
10056 "inet_pton.$ac_objext "* | \
10057 *" inet_pton.$ac_objext "* ) ;;
10058 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" ;;
10059 esac
10060
10061 fi
10062 rm -f conftest.err conftest.$ac_objext \
10063 conftest$ac_exeext conftest.$ac_ext
10064 echo "$as_me:$LINENO: checking for inet_aton" >&5
10065 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
10066 cat >conftest.$ac_ext <<_ACEOF
10067 /* confdefs.h. */
10068 _ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h. */
10072 #include <sys/types.h>
10073 #include <netinet/in.h>
10074 #include <arpa/inet.h>
10075 int
10076 main ()
10077 {
10078 char src[128];
10079 struct in_addr dst;
10080 inet_aton(src, &dst);
10081 ;
10082 return 0;
10083 }
10084 _ACEOF
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10087 (eval $ac_link) 2>conftest.er1
10088 ac_status=$?
10089 grep -v '^ *+' conftest.er1 >conftest.err
10090 rm -f conftest.er1
10091 cat conftest.err >&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } &&
10094 { ac_try='test -z "$ac_c_werror_flag"
10095 || test ! -s conftest.err'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; } &&
10101 { ac_try='test -s conftest$ac_exeext'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10107 echo "$as_me:$LINENO: result: yes" >&5
10108 echo "${ECHO_T}yes" >&6
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10112
10113 echo "$as_me:$LINENO: result: no" >&5
10114 echo "${ECHO_T}no" >&6
10115 case $LIBOBJS in
10116 "inet_aton.$ac_objext" | \
10117 *" inet_aton.$ac_objext" | \
10118 "inet_aton.$ac_objext "* | \
10119 *" inet_aton.$ac_objext "* ) ;;
10120 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
10121 esac
10122
10123 fi
10124 rm -f conftest.err conftest.$ac_objext \
10125 conftest$ac_exeext conftest.$ac_ext
10126
10127 #
10128 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10129 #
10130 # You are in a twisty little maze of UN*Xes, all different.
10131 # Some might not have ether_ntohost().
10132 # Some might have it, but not declare it in any header file.
10133 # Some might have it, but declare it in <netinet/if_ether.h>.
10134 # Some might have it, but declare it in <netinet/ether.h>
10135 # (And some might have it but document it as something declared in
10136 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10137 #
10138 # Before you is a C compiler.
10139 #
10140
10141 for ac_func in ether_ntohost
10142 do
10143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10144 echo "$as_me:$LINENO: checking for $ac_func" >&5
10145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10146 if eval "test \"\${$as_ac_var+set}\" = set"; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149 cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h. */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10157 #define $ac_func innocuous_$ac_func
10158
10159 /* System header to define __stub macros and hopefully few prototypes,
10160 which can conflict with char $ac_func (); below.
10161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10162 <limits.h> exists even on freestanding compilers. */
10163
10164 #ifdef __STDC__
10165 # include <limits.h>
10166 #else
10167 # include <assert.h>
10168 #endif
10169
10170 #undef $ac_func
10171
10172 /* Override any gcc2 internal prototype to avoid an error. */
10173 #ifdef __cplusplus
10174 extern "C"
10175 {
10176 #endif
10177 /* We use char because int might match the return type of a gcc2
10178 builtin and then its argument prototype would still apply. */
10179 char $ac_func ();
10180 /* The GNU C library defines this for functions which it implements
10181 to always fail with ENOSYS. Some functions are actually named
10182 something starting with __ and the normal name is an alias. */
10183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10184 choke me
10185 #else
10186 char (*f) () = $ac_func;
10187 #endif
10188 #ifdef __cplusplus
10189 }
10190 #endif
10191
10192 int
10193 main ()
10194 {
10195 return f != $ac_func;
10196 ;
10197 return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest$ac_exeext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 eval "$as_ac_var=yes"
10223 else
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10226
10227 eval "$as_ac_var=no"
10228 fi
10229 rm -f conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 fi
10232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10234 if test `eval echo '${'$as_ac_var'}'` = yes; then
10235 cat >>confdefs.h <<_ACEOF
10236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10237 _ACEOF
10238
10239 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10240 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
10241 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244
10245 if test "$cross_compiling" = yes; then
10246 ac_cv_buggy_ether_ntohost="not while cross-compiling"
10247 else
10248 cat >conftest.$ac_ext <<_ACEOF
10249 /* confdefs.h. */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h. */
10254
10255 #include <netdb.h>
10256 #include <sys/types.h>
10257 #include <sys/param.h>
10258 #include <sys/socket.h>
10259
10260 int
10261 main(int argc, char **argv)
10262 {
10263 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10264 char name[MAXHOSTNAMELEN];
10265
10266 ether_ntohost(name, (struct ether_addr *)ea);
10267 exit(0);
10268 }
10269
10270 _ACEOF
10271 rm -f conftest$ac_exeext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273 (eval $ac_link) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_buggy_ether_ntohost=no
10283 else
10284 echo "$as_me: program exited with status $ac_status" >&5
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10287
10288 ( exit $ac_status )
10289 ac_cv_buggy_ether_ntohost=yes
10290 fi
10291 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10292 fi
10293 fi
10294 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10295 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
10296 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10297 cat >>confdefs.h <<\_ACEOF
10298 #define USE_ETHER_NTOHOST 1
10299 _ACEOF
10300
10301 fi
10302
10303 fi
10304 done
10305
10306 if test "$ac_cv_func_ether_ntohost" = yes -a \
10307 "$ac_cv_buggy_ether_ntohost" = "no"; then
10308 #
10309 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10310 #
10311 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10312 #
10313 # Yes. Does it declare ether_ntohost()?
10314 #
10315 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10316 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10317 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320 cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h. */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326
10327 #include <sys/types.h>
10328 #include <sys/socket.h>
10329 #include <netinet/in.h>
10330 #include <arpa/inet.h>
10331 struct mbuf;
10332 struct rtentry;
10333 #include <net/if.h>
10334 #include <netinet/if_ether.h>
10335
10336
10337 int
10338 main ()
10339 {
10340 #ifndef ether_ntohost
10341 char *p = (char *) ether_ntohost;
10342 #endif
10343
10344 ;
10345 return 0;
10346 }
10347 _ACEOF
10348 rm -f conftest.$ac_objext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10350 (eval $ac_compile) 2>conftest.er1
10351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
10353 rm -f conftest.er1
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -z "$ac_c_werror_flag"
10358 || test ! -s conftest.err'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; } &&
10364 { ac_try='test -s conftest.$ac_objext'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; }; then
10370 ac_cv_have_decl_ether_ntohost=yes
10371 else
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10374
10375 ac_cv_have_decl_ether_ntohost=no
10376 fi
10377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10378 fi
10379 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10380 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10381 if test $ac_cv_have_decl_ether_ntohost = yes; then
10382
10383
10384 cat >>confdefs.h <<\_ACEOF
10385 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10386 _ACEOF
10387
10388
10389 fi
10390
10391 fi
10392 #
10393 # Did that succeed?
10394 #
10395 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10396 #
10397 # No, how about <netinet/ether.h>, as on Linux?
10398 #
10399
10400 for ac_header in netinet/ether.h
10401 do
10402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10404 echo "$as_me:$LINENO: checking for $ac_header" >&5
10405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 fi
10409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10411 else
10412 # Is the header compilable?
10413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10415 cat >conftest.$ac_ext <<_ACEOF
10416 /* confdefs.h. */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 $ac_includes_default
10422 #include <$ac_header>
10423 _ACEOF
10424 rm -f conftest.$ac_objext
10425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10426 (eval $ac_compile) 2>conftest.er1
10427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_c_werror_flag"
10434 || test ! -s conftest.err'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; } &&
10440 { ac_try='test -s conftest.$ac_objext'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; }; then
10446 ac_header_compiler=yes
10447 else
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10450
10451 ac_header_compiler=no
10452 fi
10453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10455 echo "${ECHO_T}$ac_header_compiler" >&6
10456
10457 # Is the header present?
10458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10460 cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h. */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10466 #include <$ac_header>
10467 _ACEOF
10468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10470 ac_status=$?
10471 grep -v '^ *+' conftest.er1 >conftest.err
10472 rm -f conftest.er1
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } >/dev/null; then
10476 if test -s conftest.err; then
10477 ac_cpp_err=$ac_c_preproc_warn_flag
10478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10479 else
10480 ac_cpp_err=
10481 fi
10482 else
10483 ac_cpp_err=yes
10484 fi
10485 if test -z "$ac_cpp_err"; then
10486 ac_header_preproc=yes
10487 else
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491 ac_header_preproc=no
10492 fi
10493 rm -f conftest.err conftest.$ac_ext
10494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10495 echo "${ECHO_T}$ac_header_preproc" >&6
10496
10497 # So? What about this header?
10498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10499 yes:no: )
10500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10504 ac_header_preproc=yes
10505 ;;
10506 no:yes:* )
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10519 (
10520 cat <<\_ASBOX
10521 ## ------------------------------------------ ##
10522 ## Report this to the AC_PACKAGE_NAME lists. ##
10523 ## ------------------------------------------ ##
10524 _ASBOX
10525 ) |
10526 sed "s/^/$as_me: WARNING: /" >&2
10527 ;;
10528 esac
10529 echo "$as_me:$LINENO: checking for $ac_header" >&5
10530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534 eval "$as_ac_Header=\$ac_header_preproc"
10535 fi
10536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10538
10539 fi
10540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10541 cat >>confdefs.h <<_ACEOF
10542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10543 _ACEOF
10544
10545 fi
10546
10547 done
10548
10549 if test "$ac_cv_header_netinet_ether_h" = yes; then
10550 #
10551 # We have it - does it declare ether_ntohost()?
10552 # Unset ac_cv_have_decl_ether_ntohost so we don't
10553 # treat the previous failure as a cached value and
10554 # suppress the next test.
10555 #
10556 unset ac_cv_have_decl_ether_ntohost
10557 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10558 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10559 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562 cat >conftest.$ac_ext <<_ACEOF
10563 /* confdefs.h. */
10564 _ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568
10569 #include <netinet/ether.h>
10570
10571
10572 int
10573 main ()
10574 {
10575 #ifndef ether_ntohost
10576 char *p = (char *) ether_ntohost;
10577 #endif
10578
10579 ;
10580 return 0;
10581 }
10582 _ACEOF
10583 rm -f conftest.$ac_objext
10584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10585 (eval $ac_compile) 2>conftest.er1
10586 ac_status=$?
10587 grep -v '^ *+' conftest.er1 >conftest.err
10588 rm -f conftest.er1
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
10592 { ac_try='test -z "$ac_c_werror_flag"
10593 || test ! -s conftest.err'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; } &&
10599 { ac_try='test -s conftest.$ac_objext'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; }; then
10605 ac_cv_have_decl_ether_ntohost=yes
10606 else
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10609
10610 ac_cv_have_decl_ether_ntohost=no
10611 fi
10612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10613 fi
10614 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10615 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10616 if test $ac_cv_have_decl_ether_ntohost = yes; then
10617
10618
10619 cat >>confdefs.h <<\_ACEOF
10620 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10621 _ACEOF
10622
10623
10624 fi
10625
10626 fi
10627 fi
10628 #
10629 # Is ether_ntohost() declared?
10630 #
10631 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10632 #
10633 # No, we'll have to declare it ourselves.
10634 # Do we have "struct ether_addr"?
10635 #
10636 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10637 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
10638 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h. */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647
10648 #include <sys/types.h>
10649 #include <sys/socket.h>
10650 #include <netinet/in.h>
10651 #include <arpa/inet.h>
10652 struct mbuf;
10653 struct rtentry;
10654 #include <net/if.h>
10655 #include <netinet/if_ether.h>
10656
10657
10658 int
10659 main ()
10660 {
10661 if ((struct ether_addr *) 0)
10662 return 0;
10663 if (sizeof (struct ether_addr))
10664 return 0;
10665 ;
10666 return 0;
10667 }
10668 _ACEOF
10669 rm -f conftest.$ac_objext
10670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10671 (eval $ac_compile) 2>conftest.er1
10672 ac_status=$?
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } &&
10678 { ac_try='test -z "$ac_c_werror_flag"
10679 || test ! -s conftest.err'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; } &&
10685 { ac_try='test -s conftest.$ac_objext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 ac_cv_type_struct_ether_addr=yes
10692 else
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10695
10696 ac_cv_type_struct_ether_addr=no
10697 fi
10698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10699 fi
10700 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10701 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
10702 if test $ac_cv_type_struct_ether_addr = yes; then
10703
10704 cat >>confdefs.h <<_ACEOF
10705 #define HAVE_STRUCT_ETHER_ADDR 1
10706 _ACEOF
10707
10708
10709 fi
10710
10711
10712 cat >>confdefs.h <<\_ACEOF
10713 #define HAVE_DECL_ETHER_NTOHOST 0
10714 _ACEOF
10715
10716 else
10717
10718 cat >>confdefs.h <<\_ACEOF
10719 #define HAVE_DECL_ETHER_NTOHOST 1
10720 _ACEOF
10721
10722 fi
10723 fi
10724
10725
10726 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10727 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10728 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h. */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737
10738 # include <sys/types.h>
10739 # include <sys/socket.h>
10740 int
10741 main ()
10742 {
10743 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10744 ;
10745 return 0;
10746 }
10747 _ACEOF
10748 rm -f conftest.$ac_objext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10750 (eval $ac_compile) 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -z "$ac_c_werror_flag"
10758 || test ! -s conftest.err'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest.$ac_objext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 ac_cv_sockaddr_has_sa_len=yes
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775 ac_cv_sockaddr_has_sa_len=no
10776 fi
10777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10778 fi
10779
10780 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10781 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
10782 if test $ac_cv_sockaddr_has_sa_len = yes ; then
10783 cat >>confdefs.h <<\_ACEOF
10784 #define HAVE_SOCKADDR_SA_LEN 1
10785 _ACEOF
10786
10787 fi
10788
10789 if test "$ac_cv_sockaddr_has_sa_len" = no; then
10790 missing_includes=yes
10791 fi
10792
10793
10794
10795
10796 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
10797 do
10798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10799 echo "$as_me:$LINENO: checking for $ac_func" >&5
10800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10801 if eval "test \"\${$as_ac_var+set}\" = set"; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h. */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10812 #define $ac_func innocuous_$ac_func
10813
10814 /* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char $ac_func (); below.
10816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817 <limits.h> exists even on freestanding compilers. */
10818
10819 #ifdef __STDC__
10820 # include <limits.h>
10821 #else
10822 # include <assert.h>
10823 #endif
10824
10825 #undef $ac_func
10826
10827 /* Override any gcc2 internal prototype to avoid an error. */
10828 #ifdef __cplusplus
10829 extern "C"
10830 {
10831 #endif
10832 /* We use char because int might match the return type of a gcc2
10833 builtin and then its argument prototype would still apply. */
10834 char $ac_func ();
10835 /* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
10838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10839 choke me
10840 #else
10841 char (*f) () = $ac_func;
10842 #endif
10843 #ifdef __cplusplus
10844 }
10845 #endif
10846
10847 int
10848 main ()
10849 {
10850 return f != $ac_func;
10851 ;
10852 return 0;
10853 }
10854 _ACEOF
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857 (eval $ac_link) 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag"
10865 || test ! -s conftest.err'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; } &&
10871 { ac_try='test -s conftest$ac_exeext'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; }; then
10877 eval "$as_ac_var=yes"
10878 else
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10881
10882 eval "$as_ac_var=no"
10883 fi
10884 rm -f conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
10886 fi
10887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10889 if test `eval echo '${'$as_ac_var'}'` = yes; then
10890 cat >>confdefs.h <<_ACEOF
10891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10892 _ACEOF
10893
10894 fi
10895 done
10896
10897 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
10898 savedcflags="$CFLAGS"
10899 CFLAGS="$CFLAGS $V_INCLS"
10900 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
10901 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
10902 if test "${ac_cv_type_pcap_if_t+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h. */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911 #include <pcap.h>
10912
10913 int
10914 main ()
10915 {
10916 if ((pcap_if_t *) 0)
10917 return 0;
10918 if (sizeof (pcap_if_t))
10919 return 0;
10920 ;
10921 return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10926 (eval $ac_compile) 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -z "$ac_c_werror_flag"
10934 || test ! -s conftest.err'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest.$ac_objext'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 ac_cv_type_pcap_if_t=yes
10947 else
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 ac_cv_type_pcap_if_t=no
10952 fi
10953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10954 fi
10955 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
10956 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
10957 if test $ac_cv_type_pcap_if_t = yes; then
10958
10959 cat >>confdefs.h <<_ACEOF
10960 #define HAVE_PCAP_IF_T 1
10961 _ACEOF
10962
10963
10964 fi
10965
10966 CFLAGS="$savedcflags"
10967 fi
10968
10969 if test $ac_cv_func_pcap_lib_version = "no" ; then
10970 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
10971 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
10972 cat >conftest.$ac_ext <<_ACEOF
10973 /* confdefs.h. */
10974 _ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h. */
10978
10979 int
10980 main ()
10981 {
10982
10983 extern char pcap_version[];
10984
10985 return (int)pcap_version;
10986
10987 ;
10988 return 0;
10989 }
10990 _ACEOF
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10993 (eval $ac_link) 2>conftest.er1
10994 ac_status=$?
10995 grep -v '^ *+' conftest.er1 >conftest.err
10996 rm -f conftest.er1
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } &&
11000 { ac_try='test -z "$ac_c_werror_flag"
11001 || test ! -s conftest.err'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11004 ac_status=$?
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; } &&
11007 { ac_try='test -s conftest$ac_exeext'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11013 ac_lbl_cv_pcap_version_defined=yes
11014 else
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11017
11018 ac_lbl_cv_pcap_version_defined=no
11019 fi
11020 rm -f conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11023 echo "$as_me:$LINENO: result: yes" >&5
11024 echo "${ECHO_T}yes" >&6
11025 cat >>confdefs.h <<\_ACEOF
11026 #define HAVE_PCAP_VERSION 1
11027 _ACEOF
11028
11029 else
11030 echo "$as_me:$LINENO: result: no" >&5
11031 echo "${ECHO_T}no" >&6
11032 fi
11033 fi
11034 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11035 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042
11043 int
11044 main ()
11045 {
11046
11047 extern int pcap_debug;
11048
11049 return pcap_debug;
11050
11051 ;
11052 return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057 (eval $ac_link) 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -z "$ac_c_werror_flag"
11065 || test ! -s conftest.err'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest$ac_exeext'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 ac_lbl_cv_pcap_debug_defined=yes
11078 else
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082 ac_lbl_cv_pcap_debug_defined=no
11083 fi
11084 rm -f conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11086 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11087 echo "$as_me:$LINENO: result: yes" >&5
11088 echo "${ECHO_T}yes" >&6
11089 cat >>confdefs.h <<\_ACEOF
11090 #define HAVE_PCAP_DEBUG 1
11091 _ACEOF
11092
11093 else
11094 echo "$as_me:$LINENO: result: no" >&5
11095 echo "${ECHO_T}no" >&6
11096 #
11097 # OK, what about "yydebug"?
11098 #
11099 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11100 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
11101 cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h. */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107
11108 int
11109 main ()
11110 {
11111
11112 extern int yydebug;
11113
11114 return yydebug;
11115
11116 ;
11117 return 0;
11118 }
11119 _ACEOF
11120 rm -f conftest.$ac_objext conftest$ac_exeext
11121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11122 (eval $ac_link) 2>conftest.er1
11123 ac_status=$?
11124 grep -v '^ *+' conftest.er1 >conftest.err
11125 rm -f conftest.er1
11126 cat conftest.err >&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } &&
11129 { ac_try='test -z "$ac_c_werror_flag"
11130 || test ! -s conftest.err'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11133 ac_status=$?
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; } &&
11136 { ac_try='test -s conftest$ac_exeext'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_lbl_cv_yydebug_defined=yes
11143 else
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 ac_lbl_cv_yydebug_defined=no
11148 fi
11149 rm -f conftest.err conftest.$ac_objext \
11150 conftest$ac_exeext conftest.$ac_ext
11151 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11152 echo "$as_me:$LINENO: result: yes" >&5
11153 echo "${ECHO_T}yes" >&6
11154 cat >>confdefs.h <<\_ACEOF
11155 #define HAVE_YYDEBUG 1
11156 _ACEOF
11157
11158 else
11159 echo "$as_me:$LINENO: result: no" >&5
11160 echo "${ECHO_T}no" >&6
11161 fi
11162 fi
11163
11164 for ac_func in bpf_dump
11165 do
11166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11167 echo "$as_me:$LINENO: checking for $ac_func" >&5
11168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11169 if eval "test \"\${$as_ac_var+set}\" = set"; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172 cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h. */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11180 #define $ac_func innocuous_$ac_func
11181
11182 /* System header to define __stub macros and hopefully few prototypes,
11183 which can conflict with char $ac_func (); below.
11184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11185 <limits.h> exists even on freestanding compilers. */
11186
11187 #ifdef __STDC__
11188 # include <limits.h>
11189 #else
11190 # include <assert.h>
11191 #endif
11192
11193 #undef $ac_func
11194
11195 /* Override any gcc2 internal prototype to avoid an error. */
11196 #ifdef __cplusplus
11197 extern "C"
11198 {
11199 #endif
11200 /* We use char because int might match the return type of a gcc2
11201 builtin and then its argument prototype would still apply. */
11202 char $ac_func ();
11203 /* The GNU C library defines this for functions which it implements
11204 to always fail with ENOSYS. Some functions are actually named
11205 something starting with __ and the normal name is an alias. */
11206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11207 choke me
11208 #else
11209 char (*f) () = $ac_func;
11210 #endif
11211 #ifdef __cplusplus
11212 }
11213 #endif
11214
11215 int
11216 main ()
11217 {
11218 return f != $ac_func;
11219 ;
11220 return 0;
11221 }
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest$ac_exeext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 eval "$as_ac_var=yes"
11246 else
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11249
11250 eval "$as_ac_var=no"
11251 fi
11252 rm -f conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11254 fi
11255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11257 if test `eval echo '${'$as_ac_var'}'` = yes; then
11258 cat >>confdefs.h <<_ACEOF
11259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11260 _ACEOF
11261
11262 else
11263 case $LIBOBJS in
11264 "$ac_func.$ac_objext" | \
11265 *" $ac_func.$ac_objext" | \
11266 "$ac_func.$ac_objext "* | \
11267 *" $ac_func.$ac_objext "* ) ;;
11268 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
11269 esac
11270
11271 fi
11272 done
11273
11274
11275 V_GROUP=0
11276 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11277 V_GROUP=wheel
11278 fi
11279 case "$host_os" in
11280
11281 aix*)
11282 cat >>confdefs.h <<\_ACEOF
11283 #define _SUN 1
11284 _ACEOF
11285
11286 ;;
11287
11288 irix*)
11289 V_GROUP=sys
11290 ;;
11291
11292 osf*)
11293 V_GROUP=system
11294 ;;
11295
11296 solaris*)
11297 V_GROUP=sys
11298 ;;
11299 esac
11300
11301 if test -f /dev/bpf0 ; then
11302 V_GROUP=bpf
11303 fi
11304
11305
11306 for ac_header in sys/bitypes.h
11307 do
11308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11310 echo "$as_me:$LINENO: checking for $ac_header" >&5
11311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 fi
11315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11317 else
11318 # Is the header compilable?
11319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h. */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 $ac_includes_default
11328 #include <$ac_header>
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332 (eval $ac_compile) 2>conftest.er1
11333 ac_status=$?
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag"
11340 || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest.$ac_objext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 ac_header_compiler=yes
11353 else
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357 ac_header_compiler=no
11358 fi
11359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361 echo "${ECHO_T}$ac_header_compiler" >&6
11362
11363 # Is the header present?
11364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h. */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 #include <$ac_header>
11373 _ACEOF
11374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } >/dev/null; then
11382 if test -s conftest.err; then
11383 ac_cpp_err=$ac_c_preproc_warn_flag
11384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11385 else
11386 ac_cpp_err=
11387 fi
11388 else
11389 ac_cpp_err=yes
11390 fi
11391 if test -z "$ac_cpp_err"; then
11392 ac_header_preproc=yes
11393 else
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 ac_header_preproc=no
11398 fi
11399 rm -f conftest.err conftest.$ac_ext
11400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11401 echo "${ECHO_T}$ac_header_preproc" >&6
11402
11403 # So? What about this header?
11404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11405 yes:no: )
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11410 ac_header_preproc=yes
11411 ;;
11412 no:yes:* )
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11425 (
11426 cat <<\_ASBOX
11427 ## ------------------------------------------ ##
11428 ## Report this to the AC_PACKAGE_NAME lists. ##
11429 ## ------------------------------------------ ##
11430 _ASBOX
11431 ) |
11432 sed "s/^/$as_me: WARNING: /" >&2
11433 ;;
11434 esac
11435 echo "$as_me:$LINENO: checking for $ac_header" >&5
11436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440 eval "$as_ac_Header=\$ac_header_preproc"
11441 fi
11442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11444
11445 fi
11446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11447 cat >>confdefs.h <<_ACEOF
11448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11449 _ACEOF
11450
11451 fi
11452
11453 done
11454
11455
11456 echo "$as_me:$LINENO: checking for int8_t" >&5
11457 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
11458 if test "${ac_cv_type_int8_t+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461 cat >conftest.$ac_ext <<_ACEOF
11462 /* confdefs.h. */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11467 $ac_includes_default
11468 int
11469 main ()
11470 {
11471 if ((int8_t *) 0)
11472 return 0;
11473 if (sizeof (int8_t))
11474 return 0;
11475 ;
11476 return 0;
11477 }
11478 _ACEOF
11479 rm -f conftest.$ac_objext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11481 (eval $ac_compile) 2>conftest.er1
11482 ac_status=$?
11483 grep -v '^ *+' conftest.er1 >conftest.err
11484 rm -f conftest.er1
11485 cat conftest.err >&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } &&
11488 { ac_try='test -z "$ac_c_werror_flag"
11489 || test ! -s conftest.err'
11490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11492 ac_status=$?
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; } &&
11495 { ac_try='test -s conftest.$ac_objext'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_cv_type_int8_t=yes
11502 else
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506 ac_cv_type_int8_t=no
11507 fi
11508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11509 fi
11510 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11511 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
11512 if test $ac_cv_type_int8_t = yes; then
11513 :
11514 else
11515
11516 cat >>confdefs.h <<\_ACEOF
11517 #define int8_t signed char
11518 _ACEOF
11519
11520 fi
11521
11522 echo "$as_me:$LINENO: checking for u_int8_t" >&5
11523 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
11524 if test "${ac_cv_type_u_int8_t+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 else
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h. */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 $ac_includes_default
11534 #ifdef HAVE_SYS_BITYPES_H
11535 #include <sys/bitypes.h>
11536 #endif
11537
11538 int
11539 main ()
11540 {
11541 if ((u_int8_t *) 0)
11542 return 0;
11543 if (sizeof (u_int8_t))
11544 return 0;
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 rm -f conftest.$ac_objext
11550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11551 (eval $ac_compile) 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -z "$ac_c_werror_flag"
11559 || test ! -s conftest.err'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest.$ac_objext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 ac_cv_type_u_int8_t=yes
11572 else
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576 ac_cv_type_u_int8_t=no
11577 fi
11578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11579 fi
11580 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11581 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
11582 if test $ac_cv_type_u_int8_t = yes; then
11583 :
11584 else
11585
11586 cat >>confdefs.h <<\_ACEOF
11587 #define u_int8_t unsigned char
11588 _ACEOF
11589
11590 fi
11591
11592 echo "$as_me:$LINENO: checking for int16_t" >&5
11593 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
11594 if test "${ac_cv_type_int16_t+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h. */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 $ac_includes_default
11604 int
11605 main ()
11606 {
11607 if ((int16_t *) 0)
11608 return 0;
11609 if (sizeof (int16_t))
11610 return 0;
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest.$ac_objext
11616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11617 (eval $ac_compile) 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -z "$ac_c_werror_flag"
11625 || test ! -s conftest.err'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest.$ac_objext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 ac_cv_type_int16_t=yes
11638 else
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642 ac_cv_type_int16_t=no
11643 fi
11644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11645 fi
11646 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11647 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
11648 if test $ac_cv_type_int16_t = yes; then
11649 :
11650 else
11651
11652 cat >>confdefs.h <<\_ACEOF
11653 #define int16_t short
11654 _ACEOF
11655
11656 fi
11657
11658 echo "$as_me:$LINENO: checking for u_int16_t" >&5
11659 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
11660 if test "${ac_cv_type_u_int16_t+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 else
11663 cat >conftest.$ac_ext <<_ACEOF
11664 /* confdefs.h. */
11665 _ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11669 $ac_includes_default
11670 #ifdef HAVE_SYS_BITYPES_H
11671 #include <sys/bitypes.h>
11672 #endif
11673
11674 int
11675 main ()
11676 {
11677 if ((u_int16_t *) 0)
11678 return 0;
11679 if (sizeof (u_int16_t))
11680 return 0;
11681 ;
11682 return 0;
11683 }
11684 _ACEOF
11685 rm -f conftest.$ac_objext
11686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687 (eval $ac_compile) 2>conftest.er1
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag"
11695 || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_cv_type_u_int16_t=yes
11708 else
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ac_cv_type_u_int16_t=no
11713 fi
11714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11715 fi
11716 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11717 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
11718 if test $ac_cv_type_u_int16_t = yes; then
11719 :
11720 else
11721
11722 cat >>confdefs.h <<\_ACEOF
11723 #define u_int16_t unsigned short
11724 _ACEOF
11725
11726 fi
11727
11728 echo "$as_me:$LINENO: checking for int32_t" >&5
11729 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
11730 if test "${ac_cv_type_int32_t+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h. */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739 $ac_includes_default
11740 int
11741 main ()
11742 {
11743 if ((int32_t *) 0)
11744 return 0;
11745 if (sizeof (int32_t))
11746 return 0;
11747 ;
11748 return 0;
11749 }
11750 _ACEOF
11751 rm -f conftest.$ac_objext
11752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11753 (eval $ac_compile) 2>conftest.er1
11754 ac_status=$?
11755 grep -v '^ *+' conftest.er1 >conftest.err
11756 rm -f conftest.er1
11757 cat conftest.err >&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -z "$ac_c_werror_flag"
11761 || test ! -s conftest.err'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; } &&
11767 { ac_try='test -s conftest.$ac_objext'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 ac_cv_type_int32_t=yes
11774 else
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11777
11778 ac_cv_type_int32_t=no
11779 fi
11780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11781 fi
11782 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11783 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
11784 if test $ac_cv_type_int32_t = yes; then
11785 :
11786 else
11787
11788 cat >>confdefs.h <<\_ACEOF
11789 #define int32_t int
11790 _ACEOF
11791
11792 fi
11793
11794 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11795 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11796 if test "${ac_cv_type_u_int32_t+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799 cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h. */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 $ac_includes_default
11806 #ifdef HAVE_SYS_BITYPES_H
11807 #include <sys/bitypes.h>
11808 #endif
11809
11810 int
11811 main ()
11812 {
11813 if ((u_int32_t *) 0)
11814 return 0;
11815 if (sizeof (u_int32_t))
11816 return 0;
11817 ;
11818 return 0;
11819 }
11820 _ACEOF
11821 rm -f conftest.$ac_objext
11822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823 (eval $ac_compile) 2>conftest.er1
11824 ac_status=$?
11825 grep -v '^ *+' conftest.er1 >conftest.err
11826 rm -f conftest.er1
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -z "$ac_c_werror_flag"
11831 || test ! -s conftest.err'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; } &&
11837 { ac_try='test -s conftest.$ac_objext'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 ac_cv_type_u_int32_t=yes
11844 else
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11847
11848 ac_cv_type_u_int32_t=no
11849 fi
11850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11851 fi
11852 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11853 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
11854 if test $ac_cv_type_u_int32_t = yes; then
11855 :
11856 else
11857
11858 cat >>confdefs.h <<\_ACEOF
11859 #define u_int32_t unsigned int
11860 _ACEOF
11861
11862 fi
11863
11864 echo "$as_me:$LINENO: checking for int64_t" >&5
11865 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
11866 if test "${ac_cv_type_int64_t+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869 cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h. */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11875 $ac_includes_default
11876 int
11877 main ()
11878 {
11879 if ((int64_t *) 0)
11880 return 0;
11881 if (sizeof (int64_t))
11882 return 0;
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 rm -f conftest.$ac_objext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889 (eval $ac_compile) 2>conftest.er1
11890 ac_status=$?
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try='test -z "$ac_c_werror_flag"
11897 || test ! -s conftest.err'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest.$ac_objext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 ac_cv_type_int64_t=yes
11910 else
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 ac_cv_type_int64_t=no
11915 fi
11916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11917 fi
11918 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11919 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
11920 if test $ac_cv_type_int64_t = yes; then
11921 :
11922 else
11923
11924 cat >>confdefs.h <<\_ACEOF
11925 #define int64_t long long
11926 _ACEOF
11927
11928 fi
11929
11930 echo "$as_me:$LINENO: checking for u_int64_t" >&5
11931 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
11932 if test "${ac_cv_type_u_int64_t+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935 cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h. */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 $ac_includes_default
11942 #ifdef HAVE_SYS_BITYPES_H
11943 #include <sys/bitypes.h>
11944 #endif
11945
11946 int
11947 main ()
11948 {
11949 if ((u_int64_t *) 0)
11950 return 0;
11951 if (sizeof (u_int64_t))
11952 return 0;
11953 ;
11954 return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest.$ac_objext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11959 (eval $ac_compile) 2>conftest.er1
11960 ac_status=$?
11961 grep -v '^ *+' conftest.er1 >conftest.err
11962 rm -f conftest.er1
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -z "$ac_c_werror_flag"
11967 || test ! -s conftest.err'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; } &&
11973 { ac_try='test -s conftest.$ac_objext'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 ac_cv_type_u_int64_t=yes
11980 else
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11983
11984 ac_cv_type_u_int64_t=no
11985 fi
11986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11987 fi
11988 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11989 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
11990 if test $ac_cv_type_u_int64_t = yes; then
11991 :
11992 else
11993
11994 cat >>confdefs.h <<\_ACEOF
11995 #define u_int64_t unsigned long long
11996 _ACEOF
11997
11998 fi
11999
12000
12001 #
12002 # We can't just check for <inttypes.h> - some systems have one that
12003 # doesn't define all the PRI[doxu]64 macros.
12004 #
12005
12006 for ac_header in inttypes.h
12007 do
12008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12010 echo "$as_me:$LINENO: checking for $ac_header" >&5
12011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 fi
12015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12017 else
12018 # Is the header compilable?
12019 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12021 cat >conftest.$ac_ext <<_ACEOF
12022 /* confdefs.h. */
12023 _ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12027 $ac_includes_default
12028 #include <$ac_header>
12029 _ACEOF
12030 rm -f conftest.$ac_objext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12032 (eval $ac_compile) 2>conftest.er1
12033 ac_status=$?
12034 grep -v '^ *+' conftest.er1 >conftest.err
12035 rm -f conftest.er1
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -z "$ac_c_werror_flag"
12040 || test ! -s conftest.err'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; } &&
12046 { ac_try='test -s conftest.$ac_objext'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12052 ac_header_compiler=yes
12053 else
12054 echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12056
12057 ac_header_compiler=no
12058 fi
12059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12061 echo "${ECHO_T}$ac_header_compiler" >&6
12062
12063 # Is the header present?
12064 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12066 cat >conftest.$ac_ext <<_ACEOF
12067 /* confdefs.h. */
12068 _ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 #include <$ac_header>
12073 _ACEOF
12074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } >/dev/null; then
12082 if test -s conftest.err; then
12083 ac_cpp_err=$ac_c_preproc_warn_flag
12084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12085 else
12086 ac_cpp_err=
12087 fi
12088 else
12089 ac_cpp_err=yes
12090 fi
12091 if test -z "$ac_cpp_err"; then
12092 ac_header_preproc=yes
12093 else
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12096
12097 ac_header_preproc=no
12098 fi
12099 rm -f conftest.err conftest.$ac_ext
12100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12101 echo "${ECHO_T}$ac_header_preproc" >&6
12102
12103 # So? What about this header?
12104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12105 yes:no: )
12106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12110 ac_header_preproc=yes
12111 ;;
12112 no:yes:* )
12113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12125 (
12126 cat <<\_ASBOX
12127 ## ------------------------------------------ ##
12128 ## Report this to the AC_PACKAGE_NAME lists. ##
12129 ## ------------------------------------------ ##
12130 _ASBOX
12131 ) |
12132 sed "s/^/$as_me: WARNING: /" >&2
12133 ;;
12134 esac
12135 echo "$as_me:$LINENO: checking for $ac_header" >&5
12136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140 eval "$as_ac_Header=\$ac_header_preproc"
12141 fi
12142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12144
12145 fi
12146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12147 cat >>confdefs.h <<_ACEOF
12148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12149 _ACEOF
12150
12151 #
12152 # OK, we have inttypes.h, but does it define those macros?
12153 #
12154 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12155 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
12156 cat >conftest.$ac_ext <<_ACEOF
12157
12158 /* confdefs.h. */
12159 _ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12163
12164 #include <inttypes.h>
12165 #include <stdio.h>
12166 #include <sys/types.h>
12167 #ifdef HAVE_SYS_BITYPES_H
12168 #include <sys/bitypes.h>
12169 #endif
12170
12171 main()
12172 {
12173 printf("%" PRId64 "\n", (u_int64_t)1);
12174 printf("%" PRIo64 "\n", (u_int64_t)1);
12175 printf("%" PRIx64 "\n", (u_int64_t)1);
12176 printf("%" PRIu64 "\n", (u_int64_t)1);
12177 }
12178
12179
12180 _ACEOF
12181 rm -f conftest.$ac_objext
12182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
12190 { ac_try='test -z "$ac_c_werror_flag"
12191 || test ! -s conftest.err'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; } &&
12197 { ac_try='test -s conftest.$ac_objext'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203
12204 echo "$as_me:$LINENO: result: yes" >&5
12205 echo "${ECHO_T}yes" >&6
12206 ac_lbl_inttypes_h_defines_formats=yes
12207
12208 else
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12211
12212
12213 echo "$as_me:$LINENO: result: no" >&5
12214 echo "${ECHO_T}no" >&6
12215 ac_lbl_inttypes_h_defines_formats=no
12216
12217 fi
12218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12219
12220 else
12221
12222 #
12223 # We don't have inttypes.h, so it obviously can't define those
12224 # macros.
12225 #
12226 ac_lbl_inttypes_h_defines_formats=no
12227
12228 fi
12229
12230 done
12231
12232 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12233
12234 echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12235 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
12236 if test "$cross_compiling" = yes; then
12237 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12238 See \`config.log' for more details." >&5
12239 echo "$as_me: error: cannot run test program while cross compiling
12240 See \`config.log' for more details." >&2;}
12241 { (exit 1); exit 1; }; }
12242 else
12243 cat >conftest.$ac_ext <<_ACEOF
12244
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250
12251 # ifdef HAVE_INTTYPES_H
12252 #include <inttypes.h>
12253 # endif
12254 # ifdef HAVE_SYS_BITYPES_H
12255 #include <sys/bitypes.h>
12256 # endif
12257 #include <stdio.h>
12258 #include <sys/types.h>
12259
12260 main()
12261 {
12262 u_int64_t t = 1;
12263 char strbuf[16+1];
12264 sprintf(strbuf, "%016lx", t << 32);
12265 if (strcmp(strbuf, "0000000100000000") == 0)
12266 exit(0);
12267 else
12268 exit(1);
12269 }
12270
12271
12272 _ACEOF
12273 rm -f conftest$ac_exeext
12274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12275 (eval $ac_link) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284
12285 cat >>confdefs.h <<\_ACEOF
12286 #define PRId64 "ld"
12287 _ACEOF
12288
12289 cat >>confdefs.h <<\_ACEOF
12290 #define PRIo64 "lo"
12291 _ACEOF
12292
12293 cat >>confdefs.h <<\_ACEOF
12294 #define PRIx64 "lx"
12295 _ACEOF
12296
12297 cat >>confdefs.h <<\_ACEOF
12298 #define PRIu64 "lu"
12299 _ACEOF
12300
12301 echo "$as_me:$LINENO: result: yes" >&5
12302 echo "${ECHO_T}yes" >&6
12303
12304 else
12305 echo "$as_me: program exited with status $ac_status" >&5
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12308
12309 ( exit $ac_status )
12310
12311 echo "$as_me:$LINENO: result: no" >&5
12312 echo "${ECHO_T}no" >&6
12313
12314
12315 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
12316 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
12317 if test "$cross_compiling" = yes; then
12318 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12319 See \`config.log' for more details." >&5
12320 echo "$as_me: error: cannot run test program while cross compiling
12321 See \`config.log' for more details." >&2;}
12322 { (exit 1); exit 1; }; }
12323 else
12324 cat >conftest.$ac_ext <<_ACEOF
12325
12326 /* confdefs.h. */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12331
12332 # ifdef HAVE_INTTYPES_H
12333 #include <inttypes.h>
12334 # endif
12335 # ifdef HAVE_SYS_BITYPES_H
12336 #include <sys/bitypes.h>
12337 # endif
12338 #include <stdio.h>
12339 #include <sys/types.h>
12340
12341 main()
12342 {
12343 u_int64_t t = 1;
12344 char strbuf[16+1];
12345 sprintf(strbuf, "%016llx", t << 32);
12346 if (strcmp(strbuf, "0000000100000000") == 0)
12347 exit(0);
12348 else
12349 exit(1);
12350 }
12351
12352
12353 _ACEOF
12354 rm -f conftest$ac_exeext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12356 (eval $ac_link) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365
12366 cat >>confdefs.h <<\_ACEOF
12367 #define PRId64 "lld"
12368 _ACEOF
12369
12370 cat >>confdefs.h <<\_ACEOF
12371 #define PRIo64 "llo"
12372 _ACEOF
12373
12374 cat >>confdefs.h <<\_ACEOF
12375 #define PRIx64 "llx"
12376 _ACEOF
12377
12378 cat >>confdefs.h <<\_ACEOF
12379 #define PRIu64 "llu"
12380 _ACEOF
12381
12382 echo "$as_me:$LINENO: result: yes" >&5
12383 echo "${ECHO_T}yes" >&6
12384
12385 else
12386 echo "$as_me: program exited with status $ac_status" >&5
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ( exit $ac_status )
12391
12392 echo "$as_me:$LINENO: result: no" >&5
12393 echo "${ECHO_T}no" >&6
12394
12395
12396 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12397 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
12398 if test "$cross_compiling" = yes; then
12399 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12400 See \`config.log' for more details." >&5
12401 echo "$as_me: error: cannot run test program while cross compiling
12402 See \`config.log' for more details." >&2;}
12403 { (exit 1); exit 1; }; }
12404 else
12405 cat >conftest.$ac_ext <<_ACEOF
12406
12407 /* confdefs.h. */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412
12413 # ifdef HAVE_INTTYPES_H
12414 #include <inttypes.h>
12415 # endif
12416 # ifdef HAVE_SYS_BITYPES_H
12417 #include <sys/bitypes.h>
12418 # endif
12419 #include <stdio.h>
12420 #include <sys/types.h>
12421
12422 main()
12423 {
12424 u_int64_t t = 1;
12425 char strbuf[16+1];
12426 sprintf(strbuf, "%016Lx", t << 32);
12427 if (strcmp(strbuf, "0000000100000000") == 0)
12428 exit(0);
12429 else
12430 exit(1);
12431 }
12432
12433
12434 _ACEOF
12435 rm -f conftest$ac_exeext
12436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12437 (eval $ac_link) 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446
12447 cat >>confdefs.h <<\_ACEOF
12448 #define PRId64 "Ld"
12449 _ACEOF
12450
12451 cat >>confdefs.h <<\_ACEOF
12452 #define PRIo64 "Lo"
12453 _ACEOF
12454
12455 cat >>confdefs.h <<\_ACEOF
12456 #define PRIx64 "Lx"
12457 _ACEOF
12458
12459 cat >>confdefs.h <<\_ACEOF
12460 #define PRIu64 "Lu"
12461 _ACEOF
12462
12463 echo "$as_me:$LINENO: result: yes" >&5
12464 echo "${ECHO_T}yes" >&6
12465
12466 else
12467 echo "$as_me: program exited with status $ac_status" >&5
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12470
12471 ( exit $ac_status )
12472
12473 echo "$as_me:$LINENO: result: no" >&5
12474 echo "${ECHO_T}no" >&6
12475
12476
12477 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12478 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
12479 if test "$cross_compiling" = yes; then
12480 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12481 See \`config.log' for more details." >&5
12482 echo "$as_me: error: cannot run test program while cross compiling
12483 See \`config.log' for more details." >&2;}
12484 { (exit 1); exit 1; }; }
12485 else
12486 cat >conftest.$ac_ext <<_ACEOF
12487
12488 /* confdefs.h. */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493
12494 # ifdef HAVE_INTTYPES_H
12495 #include <inttypes.h>
12496 # endif
12497 # ifdef HAVE_SYS_BITYPES_H
12498 #include <sys/bitypes.h>
12499 # endif
12500 #include <stdio.h>
12501 #include <sys/types.h>
12502
12503 main()
12504 {
12505 u_int64_t t = 1;
12506 char strbuf[16+1];
12507 sprintf(strbuf, "%016qx", t << 32);
12508 if (strcmp(strbuf, "0000000100000000") == 0)
12509 exit(0);
12510 else
12511 exit(1);
12512 }
12513
12514
12515 _ACEOF
12516 rm -f conftest$ac_exeext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12518 (eval $ac_link) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527
12528 cat >>confdefs.h <<\_ACEOF
12529 #define PRId64 "qd"
12530 _ACEOF
12531
12532 cat >>confdefs.h <<\_ACEOF
12533 #define PRIo64 "qo"
12534 _ACEOF
12535
12536 cat >>confdefs.h <<\_ACEOF
12537 #define PRIx64 "qx"
12538 _ACEOF
12539
12540 cat >>confdefs.h <<\_ACEOF
12541 #define PRIu64 "qu"
12542 _ACEOF
12543
12544 echo "$as_me:$LINENO: result: yes" >&5
12545 echo "${ECHO_T}yes" >&6
12546
12547 else
12548 echo "$as_me: program exited with status $ac_status" >&5
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12551
12552 ( exit $ac_status )
12553
12554 echo "$as_me:$LINENO: result: no" >&5
12555 echo "${ECHO_T}no" >&6
12556
12557 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
12558 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
12559 { (exit 1); exit 1; }; }
12560
12561
12562 fi
12563 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12564 fi
12565
12566
12567
12568 fi
12569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12570 fi
12571
12572
12573
12574 fi
12575 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12576 fi
12577
12578
12579
12580 fi
12581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12582 fi
12583
12584 fi
12585
12586 if test -n "$ac_tool_prefix"; then
12587 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12588 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12589 echo "$as_me:$LINENO: checking for $ac_word" >&5
12590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12591 if test "${ac_cv_prog_RANLIB+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594 if test -n "$RANLIB"; then
12595 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12596 else
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12599 do
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12607 fi
12608 done
12609 done
12610
12611 fi
12612 fi
12613 RANLIB=$ac_cv_prog_RANLIB
12614 if test -n "$RANLIB"; then
12615 echo "$as_me:$LINENO: result: $RANLIB" >&5
12616 echo "${ECHO_T}$RANLIB" >&6
12617 else
12618 echo "$as_me:$LINENO: result: no" >&5
12619 echo "${ECHO_T}no" >&6
12620 fi
12621
12622 fi
12623 if test -z "$ac_cv_prog_RANLIB"; then
12624 ac_ct_RANLIB=$RANLIB
12625 # Extract the first word of "ranlib", so it can be a program name with args.
12626 set dummy ranlib; ac_word=$2
12627 echo "$as_me:$LINENO: checking for $ac_word" >&5
12628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12629 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632 if test -n "$ac_ct_RANLIB"; then
12633 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12634 else
12635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12637 do
12638 IFS=$as_save_IFS
12639 test -z "$as_dir" && as_dir=.
12640 for ac_exec_ext in '' $ac_executable_extensions; do
12641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12642 ac_cv_prog_ac_ct_RANLIB="ranlib"
12643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12644 break 2
12645 fi
12646 done
12647 done
12648
12649 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12650 fi
12651 fi
12652 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12653 if test -n "$ac_ct_RANLIB"; then
12654 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12655 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12656 else
12657 echo "$as_me:$LINENO: result: no" >&5
12658 echo "${ECHO_T}no" >&6
12659 fi
12660
12661 RANLIB=$ac_ct_RANLIB
12662 else
12663 RANLIB="$ac_cv_prog_RANLIB"
12664 fi
12665
12666
12667 rm -f os-proto.h
12668 if test "${LBL_CFLAGS+set}" = set; then
12669 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
12670 fi
12671 if test -f .devel ; then
12672 if test "$GCC" = yes ; then
12673 if test "${LBL_CFLAGS+set}" != set; then
12674 if test "$ac_cv_prog_cc_g" = yes ; then
12675 V_CCOPT="-g $V_CCOPT"
12676 fi
12677 V_CCOPT="$V_CCOPT -Wall"
12678 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
12679 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
12680 fi
12681 fi
12682 else
12683 case "$host_os" in
12684
12685 irix6*)
12686 V_CCOPT="$V_CCOPT -n32"
12687 ;;
12688
12689 *)
12690 ;;
12691 esac
12692 fi
12693 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
12694 name="lbl/os-$os.h"
12695 if test -f $name ; then
12696 ln -s $name os-proto.h
12697 cat >>confdefs.h <<\_ACEOF
12698 #define HAVE_OS_PROTO_H 1
12699 _ACEOF
12700
12701 else
12702 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
12703 echo "$as_me: WARNING: can't find $name" >&2;}
12704 fi
12705 fi
12706
12707 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
12708 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
12709 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h. */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718
12719 # include <sys/types.h>
12720 # include <sys/socket.h>
12721 int
12722 main ()
12723 {
12724 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
12725 ;
12726 return 0;
12727 }
12728 _ACEOF
12729 rm -f conftest.$ac_objext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12731 (eval $ac_compile) 2>conftest.er1
12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
12738 { ac_try='test -z "$ac_c_werror_flag"
12739 || test ! -s conftest.err'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest.$ac_objext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_cv_lbl_sockaddr_has_sa_len=yes
12752 else
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12755
12756 ac_cv_lbl_sockaddr_has_sa_len=no
12757 fi
12758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759 fi
12760
12761 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
12762 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
12763 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
12764 cat >>confdefs.h <<\_ACEOF
12765 #define HAVE_SOCKADDR_SA_LEN 1
12766 _ACEOF
12767
12768 fi
12769
12770 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
12771 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
12772 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775 case "$host_cpu" in
12776
12777 #
12778 # These are CPU types where:
12779 #
12780 # the CPU faults on an unaligned access, but at least some
12781 # OSes that support that CPU catch the fault and simulate
12782 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
12783 # the simulation is slow, so we don't want to use it;
12784 #
12785 # the CPU, I infer (from the old
12786 #
12787 # XXX: should also check that they don't do weird things (like on arm)
12788 #
12789 # comment) doesn't fault on unaligned accesses, but doesn't
12790 # do a normal unaligned fetch, either (e.g., presumably, ARM);
12791 #
12792 # for whatever reason, the test program doesn't work
12793 # (this has been claimed to be the case for several of those
12794 # CPUs - I don't know what the problem is; the problem
12795 # was reported as "the test program dumps core" for SuperH,
12796 # but that's what the test program is *supposed* to do -
12797 # it dumps core before it writes anything, so the test
12798 # for an empty output file should find an empty output
12799 # file and conclude that unaligned accesses don't work).
12800 #
12801 # This run-time test won't work if you're cross-compiling, so
12802 # in order to support cross-compiling for a particular CPU,
12803 # we have to wire in the list of CPU types anyway, as far as
12804 # I know, so perhaps we should just have a set of CPUs on
12805 # which we know it doesn't work, a set of CPUs on which we
12806 # know it does work, and have the script just fail on other
12807 # cpu types and update it when such a failure occurs.
12808 #
12809 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
12810 ac_cv_lbl_unaligned_fail=yes
12811 ;;
12812
12813 *)
12814 cat >conftest.c <<EOF
12815 # include <sys/types.h>
12816 # include <sys/wait.h>
12817 # include <stdio.h>
12818 unsigned char a[5] = { 1, 2, 3, 4, 5 };
12819 main() {
12820 unsigned int i;
12821 pid_t pid;
12822 int status;
12823 /* avoid "core dumped" message */
12824 pid = fork();
12825 if (pid < 0)
12826 exit(2);
12827 if (pid > 0) {
12828 /* parent */
12829 pid = waitpid(pid, &status, 0);
12830 if (pid < 0)
12831 exit(3);
12832 exit(!WIFEXITED(status));
12833 }
12834 /* child */
12835 i = *(unsigned int *)&a[1];
12836 printf("%d\n", i);
12837 exit(0);
12838 }
12839 EOF
12840 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
12841 conftest.c $LIBS >/dev/null 2>&1
12842 if test ! -x conftest ; then
12843 ac_cv_lbl_unaligned_fail=yes
12844 else
12845 ./conftest >conftest.out
12846 if test ! -s conftest.out ; then
12847 ac_cv_lbl_unaligned_fail=yes
12848 else
12849 ac_cv_lbl_unaligned_fail=no
12850 fi
12851 fi
12852 rm -f conftest* core core.conftest
12853 ;;
12854 esac
12855 fi
12856
12857 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
12858 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
12859 if test $ac_cv_lbl_unaligned_fail = yes ; then
12860 cat >>confdefs.h <<\_ACEOF
12861 #define LBL_ALIGN 1
12862 _ACEOF
12863
12864 fi
12865
12866
12867 echo "$as_me:$LINENO: checking for h_errno" >&5
12868 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
12869 if test "${ac_cv_var_h_errno+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h. */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878
12879 # include <sys/types.h>
12880 # include <netdb.h>
12881 int
12882 main ()
12883 {
12884 int foo = h_errno;
12885 ;
12886 return 0;
12887 }
12888 _ACEOF
12889 rm -f conftest.$ac_objext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891 (eval $ac_compile) 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -z "$ac_c_werror_flag"
12899 || test ! -s conftest.err'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try='test -s conftest.$ac_objext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_cv_var_h_errno=yes
12912 else
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12915
12916 ac_cv_var_h_errno=no
12917 fi
12918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12919 fi
12920
12921 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
12922 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
12923 if test "$ac_cv_var_h_errno" = "yes"; then
12924 cat >>confdefs.h <<\_ACEOF
12925 #define HAVE_H_ERRNO 1
12926 _ACEOF
12927
12928 fi
12929
12930
12931
12932 # Check whether --with-crypto or --without-crypto was given.
12933 if test "${with_crypto+set}" = set; then
12934 withval="$with_crypto"
12935
12936 else
12937
12938 echo "$as_me:$LINENO: checking for SSLeay" >&5
12939 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
12940 ac_cv_ssleay_path=no
12941 incdir=no
12942
12943 #
12944 # If Xprefix is set in the environment, use that value.
12945 # XXX - this should arguably be done by having --with-crypto take an
12946 # optional argument, and have that argument be used to set Xprefix
12947 # if present.
12948 #
12949 if test -z "$Xprefix"; then
12950 Xprefix=`eval echo $prefix`
12951 fi
12952
12953 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
12954 #
12955 # XXX - is there a better way to check if a given library is
12956 # in a given directory than checking each of the possible
12957 # shared library suffixes?
12958 #
12959 # Are there any other suffixes we need to look for? Do we have to
12960 # worry about ".so.{version}"?
12961 #
12962 # Or should we just look for "libcrypto.*"?
12963 #
12964 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
12965 -f $dir/lib/libcrypto.so -o \
12966 -f $dir/lib/libcrypto.sl -o \
12967 -f $dir/lib/libcrypto.dylib \); then
12968 ac_cv_ssleay_path=$dir
12969 fi
12970 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
12971 incdir="-I$dir/include"
12972 fi
12973 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
12974 break;
12975 else
12976 ac_cv_ssleay_path=no
12977 incdir=no
12978 fi
12979 done
12980 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
12981 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
12982 if test "$ac_cv_ssleay_path" != no; then
12983 V_INCLS="$V_INCLS $incdir"
12984 LDFLAGS="-L$dir/lib $LDFLAGS"
12985 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
12986 LIBS="$LIBS -lRSAglue"
12987 fi
12988 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
12989 LIBS="$LIBS -lrsaref"
12990 fi
12991
12992 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
12993 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
12994 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 else
12997 ac_check_lib_save_LIBS=$LIBS
12998 LIBS="-lcrypto $LIBS"
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h. */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005
13006 /* Override any gcc2 internal prototype to avoid an error. */
13007 #ifdef __cplusplus
13008 extern "C"
13009 #endif
13010 /* We use char because int might match the return type of a gcc2
13011 builtin and then its argument prototype would still apply. */
13012 char DES_cbc_encrypt ();
13013 int
13014 main ()
13015 {
13016 DES_cbc_encrypt ();
13017 ;
13018 return 0;
13019 }
13020 _ACEOF
13021 rm -f conftest.$ac_objext conftest$ac_exeext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023 (eval $ac_link) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -z "$ac_c_werror_flag"
13031 || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13044 else
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13047
13048 ac_cv_lib_crypto_DES_cbc_encrypt=no
13049 fi
13050 rm -f conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13052 LIBS=$ac_check_lib_save_LIBS
13053 fi
13054 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13055 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
13056 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13057 cat >>confdefs.h <<_ACEOF
13058 #define HAVE_LIBCRYPTO 1
13059 _ACEOF
13060
13061 LIBS="-lcrypto $LIBS"
13062
13063 fi
13064
13065
13066 CPPFLAGS="$CPPFLAGS $V_INCLS"
13067
13068 for ac_header in openssl/evp.h
13069 do
13070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13072 echo "$as_me:$LINENO: checking for $ac_header" >&5
13073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 fi
13077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13079 else
13080 # Is the header compilable?
13081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h. */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 $ac_includes_default
13090 #include <$ac_header>
13091 _ACEOF
13092 rm -f conftest.$ac_objext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag"
13102 || test ! -s conftest.err'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13105 ac_status=$?
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; } &&
13108 { ac_try='test -s conftest.$ac_objext'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13111 ac_status=$?
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }; then
13114 ac_header_compiler=yes
13115 else
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13118
13119 ac_header_compiler=no
13120 fi
13121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13123 echo "${ECHO_T}$ac_header_compiler" >&6
13124
13125 # Is the header present?
13126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13128 cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h. */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 #include <$ac_header>
13135 _ACEOF
13136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } >/dev/null; then
13144 if test -s conftest.err; then
13145 ac_cpp_err=$ac_c_preproc_warn_flag
13146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13147 else
13148 ac_cpp_err=
13149 fi
13150 else
13151 ac_cpp_err=yes
13152 fi
13153 if test -z "$ac_cpp_err"; then
13154 ac_header_preproc=yes
13155 else
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159 ac_header_preproc=no
13160 fi
13161 rm -f conftest.err conftest.$ac_ext
13162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13163 echo "${ECHO_T}$ac_header_preproc" >&6
13164
13165 # So? What about this header?
13166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13167 yes:no: )
13168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13172 ac_header_preproc=yes
13173 ;;
13174 no:yes:* )
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13187 (
13188 cat <<\_ASBOX
13189 ## ------------------------------------------ ##
13190 ## Report this to the AC_PACKAGE_NAME lists. ##
13191 ## ------------------------------------------ ##
13192 _ASBOX
13193 ) |
13194 sed "s/^/$as_me: WARNING: /" >&2
13195 ;;
13196 esac
13197 echo "$as_me:$LINENO: checking for $ac_header" >&5
13198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202 eval "$as_ac_Header=\$ac_header_preproc"
13203 fi
13204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13206
13207 fi
13208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13209 cat >>confdefs.h <<_ACEOF
13210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13211 _ACEOF
13212
13213 fi
13214
13215 done
13216
13217 fi
13218
13219 fi;
13220
13221 if test "$missing_includes" = "yes"; then
13222 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
13223 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
13224 fi
13225
13226
13227
13228
13229
13230
13231
13232
13233 # Find a good install program. We prefer a C program (faster),
13234 # so one script is as good as another. But avoid the broken or
13235 # incompatible versions:
13236 # SysV /etc/install, /usr/sbin/install
13237 # SunOS /usr/etc/install
13238 # IRIX /sbin/install
13239 # AIX /bin/install
13240 # AmigaOS /C/install, which installs bootblocks on floppy discs
13241 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13242 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13243 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13244 # OS/2's system install, which has a completely different semantic
13245 # ./install, which can be erroneously created by make from ./install.sh.
13246 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13247 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13248 if test -z "$INSTALL"; then
13249 if test "${ac_cv_path_install+set}" = set; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 else
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in $PATH
13254 do
13255 IFS=$as_save_IFS
13256 test -z "$as_dir" && as_dir=.
13257 # Account for people who put trailing slashes in PATH elements.
13258 case $as_dir/ in
13259 ./ | .// | /cC/* | \
13260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13261 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13262 /usr/ucb/* ) ;;
13263 *)
13264 # OSF1 and SCO ODT 3.0 have their own names for install.
13265 # Don't use installbsd from OSF since it installs stuff as root
13266 # by default.
13267 for ac_prog in ginstall scoinst install; do
13268 for ac_exec_ext in '' $ac_executable_extensions; do
13269 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13270 if test $ac_prog = install &&
13271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13272 # AIX install. It has an incompatible calling convention.
13273 :
13274 elif test $ac_prog = install &&
13275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13276 # program-specific install script used by HP pwplus--don't use.
13277 :
13278 else
13279 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13280 break 3
13281 fi
13282 fi
13283 done
13284 done
13285 ;;
13286 esac
13287 done
13288
13289
13290 fi
13291 if test "${ac_cv_path_install+set}" = set; then
13292 INSTALL=$ac_cv_path_install
13293 else
13294 # As a last resort, use the slow shell script. We don't cache a
13295 # path for INSTALL within a source directory, because that will
13296 # break other packages using the cache if that directory is
13297 # removed, or if the path is relative.
13298 INSTALL=$ac_install_sh
13299 fi
13300 fi
13301 echo "$as_me:$LINENO: result: $INSTALL" >&5
13302 echo "${ECHO_T}$INSTALL" >&6
13303
13304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13305 # It thinks the first close brace ends the variable substitution.
13306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13307
13308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13309
13310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13311
13312
13313 ac_config_headers="$ac_config_headers config.h"
13314
13315
13316 ac_config_commands="$ac_config_commands default-1"
13317
13318 ac_config_files="$ac_config_files Makefile"
13319 cat >confcache <<\_ACEOF
13320 # This file is a shell script that caches the results of configure
13321 # tests run on this system so they can be shared between configure
13322 # scripts and configure runs, see configure's option --config-cache.
13323 # It is not useful on other systems. If it contains results you don't
13324 # want to keep, you may remove or edit it.
13325 #
13326 # config.status only pays attention to the cache file if you give it
13327 # the --recheck option to rerun configure.
13328 #
13329 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13330 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13331 # following values.
13332
13333 _ACEOF
13334
13335 # The following way of writing the cache mishandles newlines in values,
13336 # but we know of no workaround that is simple, portable, and efficient.
13337 # So, don't put newlines in cache variables' values.
13338 # Ultrix sh set writes to stderr and can't be redirected directly,
13339 # and sets the high bit in the cache file unless we assign to the vars.
13340 {
13341 (set) 2>&1 |
13342 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13343 *ac_space=\ *)
13344 # `set' does not quote correctly, so add quotes (double-quote
13345 # substitution turns \\\\ into \\, and sed turns \\ into \).
13346 sed -n \
13347 "s/'/'\\\\''/g;
13348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13349 ;;
13350 *)
13351 # `set' quotes correctly as required by POSIX, so do not add quotes.
13352 sed -n \
13353 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13354 ;;
13355 esac;
13356 } |
13357 sed '
13358 t clear
13359 : clear
13360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13361 t end
13362 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13363 : end' >>confcache
13364 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13365 if test -w $cache_file; then
13366 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13367 cat confcache >$cache_file
13368 else
13369 echo "not updating unwritable cache $cache_file"
13370 fi
13371 fi
13372 rm -f confcache
13373
13374 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13375 # Let make expand exec_prefix.
13376 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13377
13378 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13379 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13380 # trailing colons and then remove the whole line if VPATH becomes empty
13381 # (actually we leave an empty line to preserve line numbers).
13382 if test "x$srcdir" = x.; then
13383 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13384 s/:*\$(srcdir):*/:/;
13385 s/:*\${srcdir}:*/:/;
13386 s/:*@srcdir@:*/:/;
13387 s/^\([^=]*=[ ]*\):*/\1/;
13388 s/:*$//;
13389 s/^[^=]*=[ ]*$//;
13390 }'
13391 fi
13392
13393 DEFS=-DHAVE_CONFIG_H
13394
13395 ac_libobjs=
13396 ac_ltlibobjs=
13397 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13398 # 1. Remove the extension, and $U if already installed.
13399 ac_i=`echo "$ac_i" |
13400 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13401 # 2. Add them.
13402 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13403 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13404 done
13405 LIBOBJS=$ac_libobjs
13406
13407 LTLIBOBJS=$ac_ltlibobjs
13408
13409
13410
13411 : ${CONFIG_STATUS=./config.status}
13412 ac_clean_files_save=$ac_clean_files
13413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13414 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13415 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13416 cat >$CONFIG_STATUS <<_ACEOF
13417 #! $SHELL
13418 # Generated by $as_me.
13419 # Run this file to recreate the current configuration.
13420 # Compiler output produced by configure, useful for debugging
13421 # configure, is in config.log if it exists.
13422
13423 debug=false
13424 ac_cs_recheck=false
13425 ac_cs_silent=false
13426 SHELL=\${CONFIG_SHELL-$SHELL}
13427 _ACEOF
13428
13429 cat >>$CONFIG_STATUS <<\_ACEOF
13430 ## --------------------- ##
13431 ## M4sh Initialization. ##
13432 ## --------------------- ##
13433
13434 # Be Bourne compatible
13435 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13436 emulate sh
13437 NULLCMD=:
13438 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13439 # is contrary to our usage. Disable this feature.
13440 alias -g '${1+"$@"}'='"$@"'
13441 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13442 set -o posix
13443 fi
13444 DUALCASE=1; export DUALCASE # for MKS sh
13445
13446 # Support unset when possible.
13447 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13448 as_unset=unset
13449 else
13450 as_unset=false
13451 fi
13452
13453
13454 # Work around bugs in pre-3.0 UWIN ksh.
13455 $as_unset ENV MAIL MAILPATH
13456 PS1='$ '
13457 PS2='> '
13458 PS4='+ '
13459
13460 # NLS nuisances.
13461 for as_var in \
13462 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13463 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13464 LC_TELEPHONE LC_TIME
13465 do
13466 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13467 eval $as_var=C; export $as_var
13468 else
13469 $as_unset $as_var
13470 fi
13471 done
13472
13473 # Required to use basename.
13474 if expr a : '\(a\)' >/dev/null 2>&1; then
13475 as_expr=expr
13476 else
13477 as_expr=false
13478 fi
13479
13480 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13481 as_basename=basename
13482 else
13483 as_basename=false
13484 fi
13485
13486
13487 # Name of the executable.
13488 as_me=`$as_basename "$0" ||
13489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13490 X"$0" : 'X\(//\)$' \| \
13491 X"$0" : 'X\(/\)$' \| \
13492 . : '\(.\)' 2>/dev/null ||
13493 echo X/"$0" |
13494 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13495 /^X\/\(\/\/\)$/{ s//\1/; q; }
13496 /^X\/\(\/\).*/{ s//\1/; q; }
13497 s/.*/./; q'`
13498
13499
13500 # PATH needs CR, and LINENO needs CR and PATH.
13501 # Avoid depending upon Character Ranges.
13502 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13503 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13504 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13505 as_cr_digits='0123456789'
13506 as_cr_alnum=$as_cr_Letters$as_cr_digits
13507
13508 # The user is always right.
13509 if test "${PATH_SEPARATOR+set}" != set; then
13510 echo "#! /bin/sh" >conf$$.sh
13511 echo "exit 0" >>conf$$.sh
13512 chmod +x conf$$.sh
13513 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13514 PATH_SEPARATOR=';'
13515 else
13516 PATH_SEPARATOR=:
13517 fi
13518 rm -f conf$$.sh
13519 fi
13520
13521
13522 as_lineno_1=$LINENO
13523 as_lineno_2=$LINENO
13524 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13525 test "x$as_lineno_1" != "x$as_lineno_2" &&
13526 test "x$as_lineno_3" = "x$as_lineno_2" || {
13527 # Find who we are. Look in the path if we contain no path at all
13528 # relative or not.
13529 case $0 in
13530 *[\\/]* ) as_myself=$0 ;;
13531 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13532 for as_dir in $PATH
13533 do
13534 IFS=$as_save_IFS
13535 test -z "$as_dir" && as_dir=.
13536 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13537 done
13538
13539 ;;
13540 esac
13541 # We did not find ourselves, most probably we were run as `sh COMMAND'
13542 # in which case we are not to be found in the path.
13543 if test "x$as_myself" = x; then
13544 as_myself=$0
13545 fi
13546 if test ! -f "$as_myself"; then
13547 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13548 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13549 { (exit 1); exit 1; }; }
13550 fi
13551 case $CONFIG_SHELL in
13552 '')
13553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13554 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13555 do
13556 IFS=$as_save_IFS
13557 test -z "$as_dir" && as_dir=.
13558 for as_base in sh bash ksh sh5; do
13559 case $as_dir in
13560 /*)
13561 if ("$as_dir/$as_base" -c '
13562 as_lineno_1=$LINENO
13563 as_lineno_2=$LINENO
13564 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13565 test "x$as_lineno_1" != "x$as_lineno_2" &&
13566 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13567 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13568 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13569 CONFIG_SHELL=$as_dir/$as_base
13570 export CONFIG_SHELL
13571 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13572 fi;;
13573 esac
13574 done
13575 done
13576 ;;
13577 esac
13578
13579 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13580 # uniformly replaced by the line number. The first 'sed' inserts a
13581 # line-number line before each line; the second 'sed' does the real
13582 # work. The second script uses 'N' to pair each line-number line
13583 # with the numbered line, and appends trailing '-' during
13584 # substitution so that $LINENO is not a special case at line end.
13585 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13586 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13587 sed '=' <$as_myself |
13588 sed '
13589 N
13590 s,$,-,
13591 : loop
13592 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13593 t loop
13594 s,-$,,
13595 s,^['$as_cr_digits']*\n,,
13596 ' >$as_me.lineno &&
13597 chmod +x $as_me.lineno ||
13598 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13599 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13600 { (exit 1); exit 1; }; }
13601
13602 # Don't try to exec as it changes $[0], causing all sort of problems
13603 # (the dirname of $[0] is not the place where we might find the
13604 # original and so on. Autoconf is especially sensible to this).
13605 . ./$as_me.lineno
13606 # Exit status is that of the last command.
13607 exit
13608 }
13609
13610
13611 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13612 *c*,-n*) ECHO_N= ECHO_C='
13613 ' ECHO_T=' ' ;;
13614 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13615 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13616 esac
13617
13618 if expr a : '\(a\)' >/dev/null 2>&1; then
13619 as_expr=expr
13620 else
13621 as_expr=false
13622 fi
13623
13624 rm -f conf$$ conf$$.exe conf$$.file
13625 echo >conf$$.file
13626 if ln -s conf$$.file conf$$ 2>/dev/null; then
13627 # We could just check for DJGPP; but this test a) works b) is more generic
13628 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13629 if test -f conf$$.exe; then
13630 # Don't use ln at all; we don't have any links
13631 as_ln_s='cp -p'
13632 else
13633 as_ln_s='ln -s'
13634 fi
13635 elif ln conf$$.file conf$$ 2>/dev/null; then
13636 as_ln_s=ln
13637 else
13638 as_ln_s='cp -p'
13639 fi
13640 rm -f conf$$ conf$$.exe conf$$.file
13641
13642 if mkdir -p . 2>/dev/null; then
13643 as_mkdir_p=:
13644 else
13645 test -d ./-p && rmdir ./-p
13646 as_mkdir_p=false
13647 fi
13648
13649 as_executable_p="test -f"
13650
13651 # Sed expression to map a string onto a valid CPP name.
13652 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13653
13654 # Sed expression to map a string onto a valid variable name.
13655 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13656
13657
13658 # IFS
13659 # We need space, tab and new line, in precisely that order.
13660 as_nl='
13661 '
13662 IFS=" $as_nl"
13663
13664 # CDPATH.
13665 $as_unset CDPATH
13666
13667 exec 6>&1
13668
13669 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13670 # report actual input values of CONFIG_FILES etc. instead of their
13671 # values after options handling. Logging --version etc. is OK.
13672 exec 5>>config.log
13673 {
13674 echo
13675 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13676 ## Running $as_me. ##
13677 _ASBOX
13678 } >&5
13679 cat >&5 <<_CSEOF
13680
13681 This file was extended by $as_me, which was
13682 generated by GNU Autoconf 2.59. Invocation command line was
13683
13684 CONFIG_FILES = $CONFIG_FILES
13685 CONFIG_HEADERS = $CONFIG_HEADERS
13686 CONFIG_LINKS = $CONFIG_LINKS
13687 CONFIG_COMMANDS = $CONFIG_COMMANDS
13688 $ $0 $@
13689
13690 _CSEOF
13691 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13692 echo >&5
13693 _ACEOF
13694
13695 # Files that config.status was made for.
13696 if test -n "$ac_config_files"; then
13697 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13698 fi
13699
13700 if test -n "$ac_config_headers"; then
13701 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13702 fi
13703
13704 if test -n "$ac_config_links"; then
13705 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13706 fi
13707
13708 if test -n "$ac_config_commands"; then
13709 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13710 fi
13711
13712 cat >>$CONFIG_STATUS <<\_ACEOF
13713
13714 ac_cs_usage="\
13715 \`$as_me' instantiates files from templates according to the
13716 current configuration.
13717
13718 Usage: $0 [OPTIONS] [FILE]...
13719
13720 -h, --help print this help, then exit
13721 -V, --version print version number, then exit
13722 -q, --quiet do not print progress messages
13723 -d, --debug don't remove temporary files
13724 --recheck update $as_me by reconfiguring in the same conditions
13725 --file=FILE[:TEMPLATE]
13726 instantiate the configuration file FILE
13727 --header=FILE[:TEMPLATE]
13728 instantiate the configuration header FILE
13729
13730 Configuration files:
13731 $config_files
13732
13733 Configuration headers:
13734 $config_headers
13735
13736 Configuration commands:
13737 $config_commands
13738
13739 Report bugs to <bug-autoconf@gnu.org>."
13740 _ACEOF
13741
13742 cat >>$CONFIG_STATUS <<_ACEOF
13743 ac_cs_version="\\
13744 config.status
13745 configured by $0, generated by GNU Autoconf 2.59,
13746 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13747
13748 Copyright (C) 2003 Free Software Foundation, Inc.
13749 This config.status script is free software; the Free Software Foundation
13750 gives unlimited permission to copy, distribute and modify it."
13751 srcdir=$srcdir
13752 INSTALL="$INSTALL"
13753 _ACEOF
13754
13755 cat >>$CONFIG_STATUS <<\_ACEOF
13756 # If no file are specified by the user, then we need to provide default
13757 # value. By we need to know if files were specified by the user.
13758 ac_need_defaults=:
13759 while test $# != 0
13760 do
13761 case $1 in
13762 --*=*)
13763 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13764 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13765 ac_shift=:
13766 ;;
13767 -*)
13768 ac_option=$1
13769 ac_optarg=$2
13770 ac_shift=shift
13771 ;;
13772 *) # This is not an option, so the user has probably given explicit
13773 # arguments.
13774 ac_option=$1
13775 ac_need_defaults=false;;
13776 esac
13777
13778 case $ac_option in
13779 # Handling of the options.
13780 _ACEOF
13781 cat >>$CONFIG_STATUS <<\_ACEOF
13782 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13783 ac_cs_recheck=: ;;
13784 --version | --vers* | -V )
13785 echo "$ac_cs_version"; exit 0 ;;
13786 --he | --h)
13787 # Conflict between --help and --header
13788 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13789 Try \`$0 --help' for more information." >&5
13790 echo "$as_me: error: ambiguous option: $1
13791 Try \`$0 --help' for more information." >&2;}
13792 { (exit 1); exit 1; }; };;
13793 --help | --hel | -h )
13794 echo "$ac_cs_usage"; exit 0 ;;
13795 --debug | --d* | -d )
13796 debug=: ;;
13797 --file | --fil | --fi | --f )
13798 $ac_shift
13799 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13800 ac_need_defaults=false;;
13801 --header | --heade | --head | --hea )
13802 $ac_shift
13803 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13804 ac_need_defaults=false;;
13805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13806 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13807 ac_cs_silent=: ;;
13808
13809 # This is an error.
13810 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13811 Try \`$0 --help' for more information." >&5
13812 echo "$as_me: error: unrecognized option: $1
13813 Try \`$0 --help' for more information." >&2;}
13814 { (exit 1); exit 1; }; } ;;
13815
13816 *) ac_config_targets="$ac_config_targets $1" ;;
13817
13818 esac
13819 shift
13820 done
13821
13822 ac_configure_extra_args=
13823
13824 if $ac_cs_silent; then
13825 exec 6>/dev/null
13826 ac_configure_extra_args="$ac_configure_extra_args --silent"
13827 fi
13828
13829 _ACEOF
13830 cat >>$CONFIG_STATUS <<_ACEOF
13831 if \$ac_cs_recheck; then
13832 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13833 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13834 fi
13835
13836 _ACEOF
13837
13838 cat >>$CONFIG_STATUS <<_ACEOF
13839 #
13840 # INIT-COMMANDS section.
13841 #
13842
13843
13844
13845 _ACEOF
13846
13847
13848
13849 cat >>$CONFIG_STATUS <<\_ACEOF
13850 for ac_config_target in $ac_config_targets
13851 do
13852 case "$ac_config_target" in
13853 # Handling of arguments.
13854 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13855 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13856 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13857 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13858 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13859 { (exit 1); exit 1; }; };;
13860 esac
13861 done
13862
13863 # If the user did not use the arguments to specify the items to instantiate,
13864 # then the envvar interface is used. Set only those that are not.
13865 # We use the long form for the default assignment because of an extremely
13866 # bizarre bug on SunOS 4.1.3.
13867 if $ac_need_defaults; then
13868 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13869 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13870 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13871 fi
13872
13873 # Have a temporary directory for convenience. Make it in the build tree
13874 # simply because there is no reason to put it here, and in addition,
13875 # creating and moving files from /tmp can sometimes cause problems.
13876 # Create a temporary directory, and hook for its removal unless debugging.
13877 $debug ||
13878 {
13879 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13880 trap '{ (exit 1); exit 1; }' 1 2 13 15
13881 }
13882
13883 # Create a (secure) tmp directory for tmp files.
13884
13885 {
13886 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13887 test -n "$tmp" && test -d "$tmp"
13888 } ||
13889 {
13890 tmp=./confstat$$-$RANDOM
13891 (umask 077 && mkdir $tmp)
13892 } ||
13893 {
13894 echo "$me: cannot create a temporary directory in ." >&2
13895 { (exit 1); exit 1; }
13896 }
13897
13898 _ACEOF
13899
13900 cat >>$CONFIG_STATUS <<_ACEOF
13901
13902 #
13903 # CONFIG_FILES section.
13904 #
13905
13906 # No need to generate the scripts if there are no CONFIG_FILES.
13907 # This happens for instance when ./config.status config.h
13908 if test -n "\$CONFIG_FILES"; then
13909 # Protect against being on the right side of a sed subst in config.status.
13910 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13911 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13912 s,@SHELL@,$SHELL,;t t
13913 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13914 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13915 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13916 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13917 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13918 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13919 s,@exec_prefix@,$exec_prefix,;t t
13920 s,@prefix@,$prefix,;t t
13921 s,@program_transform_name@,$program_transform_name,;t t
13922 s,@bindir@,$bindir,;t t
13923 s,@sbindir@,$sbindir,;t t
13924 s,@libexecdir@,$libexecdir,;t t
13925 s,@datadir@,$datadir,;t t
13926 s,@sysconfdir@,$sysconfdir,;t t
13927 s,@sharedstatedir@,$sharedstatedir,;t t
13928 s,@localstatedir@,$localstatedir,;t t
13929 s,@libdir@,$libdir,;t t
13930 s,@includedir@,$includedir,;t t
13931 s,@oldincludedir@,$oldincludedir,;t t
13932 s,@infodir@,$infodir,;t t
13933 s,@mandir@,$mandir,;t t
13934 s,@build_alias@,$build_alias,;t t
13935 s,@host_alias@,$host_alias,;t t
13936 s,@target_alias@,$target_alias,;t t
13937 s,@DEFS@,$DEFS,;t t
13938 s,@ECHO_C@,$ECHO_C,;t t
13939 s,@ECHO_N@,$ECHO_N,;t t
13940 s,@ECHO_T@,$ECHO_T,;t t
13941 s,@LIBS@,$LIBS,;t t
13942 s,@build@,$build,;t t
13943 s,@build_cpu@,$build_cpu,;t t
13944 s,@build_vendor@,$build_vendor,;t t
13945 s,@build_os@,$build_os,;t t
13946 s,@host@,$host,;t t
13947 s,@host_cpu@,$host_cpu,;t t
13948 s,@host_vendor@,$host_vendor,;t t
13949 s,@host_os@,$host_os,;t t
13950 s,@SHLICC2@,$SHLICC2,;t t
13951 s,@CC@,$CC,;t t
13952 s,@CFLAGS@,$CFLAGS,;t t
13953 s,@LDFLAGS@,$LDFLAGS,;t t
13954 s,@CPPFLAGS@,$CPPFLAGS,;t t
13955 s,@ac_ct_CC@,$ac_ct_CC,;t t
13956 s,@EXEEXT@,$EXEEXT,;t t
13957 s,@OBJEXT@,$OBJEXT,;t t
13958 s,@CPP@,$CPP,;t t
13959 s,@EGREP@,$EGREP,;t t
13960 s,@LIBOBJS@,$LIBOBJS,;t t
13961 s,@RANLIB@,$RANLIB,;t t
13962 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13963 s,@V_CCOPT@,$V_CCOPT,;t t
13964 s,@V_DEFS@,$V_DEFS,;t t
13965 s,@V_GROUP@,$V_GROUP,;t t
13966 s,@V_INCLS@,$V_INCLS,;t t
13967 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
13968 s,@LOCALSRC@,$LOCALSRC,;t t
13969 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13970 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13971 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13972 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13973 CEOF
13974
13975 _ACEOF
13976
13977 cat >>$CONFIG_STATUS <<\_ACEOF
13978 # Split the substitutions into bite-sized pieces for seds with
13979 # small command number limits, like on Digital OSF/1 and HP-UX.
13980 ac_max_sed_lines=48
13981 ac_sed_frag=1 # Number of current file.
13982 ac_beg=1 # First line for current file.
13983 ac_end=$ac_max_sed_lines # Line after last line for current file.
13984 ac_more_lines=:
13985 ac_sed_cmds=
13986 while $ac_more_lines; do
13987 if test $ac_beg -gt 1; then
13988 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13989 else
13990 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13991 fi
13992 if test ! -s $tmp/subs.frag; then
13993 ac_more_lines=false
13994 else
13995 # The purpose of the label and of the branching condition is to
13996 # speed up the sed processing (if there are no `@' at all, there
13997 # is no need to browse any of the substitutions).
13998 # These are the two extra sed commands mentioned above.
13999 (echo ':t
14000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14001 if test -z "$ac_sed_cmds"; then
14002 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14003 else
14004 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14005 fi
14006 ac_sed_frag=`expr $ac_sed_frag + 1`
14007 ac_beg=$ac_end
14008 ac_end=`expr $ac_end + $ac_max_sed_lines`
14009 fi
14010 done
14011 if test -z "$ac_sed_cmds"; then
14012 ac_sed_cmds=cat
14013 fi
14014 fi # test -n "$CONFIG_FILES"
14015
14016 _ACEOF
14017 cat >>$CONFIG_STATUS <<\_ACEOF
14018 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14019 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14020 case $ac_file in
14021 - | *:- | *:-:* ) # input from stdin
14022 cat >$tmp/stdin
14023 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14024 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14025 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14026 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14027 * ) ac_file_in=$ac_file.in ;;
14028 esac
14029
14030 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14031 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14032 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14033 X"$ac_file" : 'X\(//\)[^/]' \| \
14034 X"$ac_file" : 'X\(//\)$' \| \
14035 X"$ac_file" : 'X\(/\)' \| \
14036 . : '\(.\)' 2>/dev/null ||
14037 echo X"$ac_file" |
14038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14040 /^X\(\/\/\)$/{ s//\1/; q; }
14041 /^X\(\/\).*/{ s//\1/; q; }
14042 s/.*/./; q'`
14043 { if $as_mkdir_p; then
14044 mkdir -p "$ac_dir"
14045 else
14046 as_dir="$ac_dir"
14047 as_dirs=
14048 while test ! -d "$as_dir"; do
14049 as_dirs="$as_dir $as_dirs"
14050 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14052 X"$as_dir" : 'X\(//\)[^/]' \| \
14053 X"$as_dir" : 'X\(//\)$' \| \
14054 X"$as_dir" : 'X\(/\)' \| \
14055 . : '\(.\)' 2>/dev/null ||
14056 echo X"$as_dir" |
14057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14059 /^X\(\/\/\)$/{ s//\1/; q; }
14060 /^X\(\/\).*/{ s//\1/; q; }
14061 s/.*/./; q'`
14062 done
14063 test ! -n "$as_dirs" || mkdir $as_dirs
14064 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14065 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14066 { (exit 1); exit 1; }; }; }
14067
14068 ac_builddir=.
14069
14070 if test "$ac_dir" != .; then
14071 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14072 # A "../" for each directory in $ac_dir_suffix.
14073 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14074 else
14075 ac_dir_suffix= ac_top_builddir=
14076 fi
14077
14078 case $srcdir in
14079 .) # No --srcdir option. We are building in place.
14080 ac_srcdir=.
14081 if test -z "$ac_top_builddir"; then
14082 ac_top_srcdir=.
14083 else
14084 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14085 fi ;;
14086 [\\/]* | ?:[\\/]* ) # Absolute path.
14087 ac_srcdir=$srcdir$ac_dir_suffix;
14088 ac_top_srcdir=$srcdir ;;
14089 *) # Relative path.
14090 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14091 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14092 esac
14093
14094 # Do not use `cd foo && pwd` to compute absolute paths, because
14095 # the directories may not exist.
14096 case `pwd` in
14097 .) ac_abs_builddir="$ac_dir";;
14098 *)
14099 case "$ac_dir" in
14100 .) ac_abs_builddir=`pwd`;;
14101 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14102 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14103 esac;;
14104 esac
14105 case $ac_abs_builddir in
14106 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14107 *)
14108 case ${ac_top_builddir}. in
14109 .) ac_abs_top_builddir=$ac_abs_builddir;;
14110 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14111 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14112 esac;;
14113 esac
14114 case $ac_abs_builddir in
14115 .) ac_abs_srcdir=$ac_srcdir;;
14116 *)
14117 case $ac_srcdir in
14118 .) ac_abs_srcdir=$ac_abs_builddir;;
14119 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14120 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14121 esac;;
14122 esac
14123 case $ac_abs_builddir in
14124 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14125 *)
14126 case $ac_top_srcdir in
14127 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14128 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14129 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14130 esac;;
14131 esac
14132
14133
14134 case $INSTALL in
14135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14136 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14137 esac
14138
14139 if test x"$ac_file" != x-; then
14140 { echo "$as_me:$LINENO: creating $ac_file" >&5
14141 echo "$as_me: creating $ac_file" >&6;}
14142 rm -f "$ac_file"
14143 fi
14144 # Let's still pretend it is `configure' which instantiates (i.e., don't
14145 # use $as_me), people would be surprised to read:
14146 # /* config.h. Generated by config.status. */
14147 if test x"$ac_file" = x-; then
14148 configure_input=
14149 else
14150 configure_input="$ac_file. "
14151 fi
14152 configure_input=$configure_input"Generated from `echo $ac_file_in |
14153 sed 's,.*/,,'` by configure."
14154
14155 # First look for the input files in the build tree, otherwise in the
14156 # src tree.
14157 ac_file_inputs=`IFS=:
14158 for f in $ac_file_in; do
14159 case $f in
14160 -) echo $tmp/stdin ;;
14161 [\\/$]*)
14162 # Absolute (can't be DOS-style, as IFS=:)
14163 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14164 echo "$as_me: error: cannot find input file: $f" >&2;}
14165 { (exit 1); exit 1; }; }
14166 echo "$f";;
14167 *) # Relative
14168 if test -f "$f"; then
14169 # Build tree
14170 echo "$f"
14171 elif test -f "$srcdir/$f"; then
14172 # Source tree
14173 echo "$srcdir/$f"
14174 else
14175 # /dev/null tree
14176 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14177 echo "$as_me: error: cannot find input file: $f" >&2;}
14178 { (exit 1); exit 1; }; }
14179 fi;;
14180 esac
14181 done` || { (exit 1); exit 1; }
14182 _ACEOF
14183 cat >>$CONFIG_STATUS <<_ACEOF
14184 sed "$ac_vpsub
14185 $extrasub
14186 _ACEOF
14187 cat >>$CONFIG_STATUS <<\_ACEOF
14188 :t
14189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14190 s,@configure_input@,$configure_input,;t t
14191 s,@srcdir@,$ac_srcdir,;t t
14192 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14193 s,@top_srcdir@,$ac_top_srcdir,;t t
14194 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14195 s,@builddir@,$ac_builddir,;t t
14196 s,@abs_builddir@,$ac_abs_builddir,;t t
14197 s,@top_builddir@,$ac_top_builddir,;t t
14198 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14199 s,@INSTALL@,$ac_INSTALL,;t t
14200 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14201 rm -f $tmp/stdin
14202 if test x"$ac_file" != x-; then
14203 mv $tmp/out $ac_file
14204 else
14205 cat $tmp/out
14206 rm -f $tmp/out
14207 fi
14208
14209 done
14210 _ACEOF
14211 cat >>$CONFIG_STATUS <<\_ACEOF
14212
14213 #
14214 # CONFIG_HEADER section.
14215 #
14216
14217 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14218 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14219 #
14220 # ac_d sets the value in "#define NAME VALUE" lines.
14221 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14222 ac_dB='[ ].*$,\1#\2'
14223 ac_dC=' '
14224 ac_dD=',;t'
14225 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14226 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14227 ac_uB='$,\1#\2define\3'
14228 ac_uC=' '
14229 ac_uD=',;t'
14230
14231 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14232 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14233 case $ac_file in
14234 - | *:- | *:-:* ) # input from stdin
14235 cat >$tmp/stdin
14236 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14237 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14238 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14239 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14240 * ) ac_file_in=$ac_file.in ;;
14241 esac
14242
14243 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14244 echo "$as_me: creating $ac_file" >&6;}
14245
14246 # First look for the input files in the build tree, otherwise in the
14247 # src tree.
14248 ac_file_inputs=`IFS=:
14249 for f in $ac_file_in; do
14250 case $f in
14251 -) echo $tmp/stdin ;;
14252 [\\/$]*)
14253 # Absolute (can't be DOS-style, as IFS=:)
14254 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14255 echo "$as_me: error: cannot find input file: $f" >&2;}
14256 { (exit 1); exit 1; }; }
14257 # Do quote $f, to prevent DOS paths from being IFS'd.
14258 echo "$f";;
14259 *) # Relative
14260 if test -f "$f"; then
14261 # Build tree
14262 echo "$f"
14263 elif test -f "$srcdir/$f"; then
14264 # Source tree
14265 echo "$srcdir/$f"
14266 else
14267 # /dev/null tree
14268 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14269 echo "$as_me: error: cannot find input file: $f" >&2;}
14270 { (exit 1); exit 1; }; }
14271 fi;;
14272 esac
14273 done` || { (exit 1); exit 1; }
14274 # Remove the trailing spaces.
14275 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14276
14277 _ACEOF
14278
14279 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14280 # `conftest.undefs', that substitutes the proper values into
14281 # config.h.in to produce config.h. The first handles `#define'
14282 # templates, and the second `#undef' templates.
14283 # And first: Protect against being on the right side of a sed subst in
14284 # config.status. Protect against being in an unquoted here document
14285 # in config.status.
14286 rm -f conftest.defines conftest.undefs
14287 # Using a here document instead of a string reduces the quoting nightmare.
14288 # Putting comments in sed scripts is not portable.
14289 #
14290 # `end' is used to avoid that the second main sed command (meant for
14291 # 0-ary CPP macros) applies to n-ary macro definitions.
14292 # See the Autoconf documentation for `clear'.
14293 cat >confdef2sed.sed <<\_ACEOF
14294 s/[\\&,]/\\&/g
14295 s,[\\$`],\\&,g
14296 t clear
14297 : clear
14298 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14299 t end
14300 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14301 : end
14302 _ACEOF
14303 # If some macros were called several times there might be several times
14304 # the same #defines, which is useless. Nevertheless, we may not want to
14305 # sort them, since we want the *last* AC-DEFINE to be honored.
14306 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14307 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14308 rm -f confdef2sed.sed
14309
14310 # This sed command replaces #undef with comments. This is necessary, for
14311 # example, in the case of _POSIX_SOURCE, which is predefined and required
14312 # on some systems where configure will not decide to define it.
14313 cat >>conftest.undefs <<\_ACEOF
14314 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14315 _ACEOF
14316
14317 # Break up conftest.defines because some shells have a limit on the size
14318 # of here documents, and old seds have small limits too (100 cmds).
14319 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14320 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14321 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14322 echo ' :' >>$CONFIG_STATUS
14323 rm -f conftest.tail
14324 while grep . conftest.defines >/dev/null
14325 do
14326 # Write a limited-size here document to $tmp/defines.sed.
14327 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14328 # Speed up: don't consider the non `#define' lines.
14329 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14330 # Work around the forget-to-reset-the-flag bug.
14331 echo 't clr' >>$CONFIG_STATUS
14332 echo ': clr' >>$CONFIG_STATUS
14333 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14334 echo 'CEOF
14335 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14336 rm -f $tmp/in
14337 mv $tmp/out $tmp/in
14338 ' >>$CONFIG_STATUS
14339 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14340 rm -f conftest.defines
14341 mv conftest.tail conftest.defines
14342 done
14343 rm -f conftest.defines
14344 echo ' fi # grep' >>$CONFIG_STATUS
14345 echo >>$CONFIG_STATUS
14346
14347 # Break up conftest.undefs because some shells have a limit on the size
14348 # of here documents, and old seds have small limits too (100 cmds).
14349 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14350 rm -f conftest.tail
14351 while grep . conftest.undefs >/dev/null
14352 do
14353 # Write a limited-size here document to $tmp/undefs.sed.
14354 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14355 # Speed up: don't consider the non `#undef'
14356 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14357 # Work around the forget-to-reset-the-flag bug.
14358 echo 't clr' >>$CONFIG_STATUS
14359 echo ': clr' >>$CONFIG_STATUS
14360 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14361 echo 'CEOF
14362 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14363 rm -f $tmp/in
14364 mv $tmp/out $tmp/in
14365 ' >>$CONFIG_STATUS
14366 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14367 rm -f conftest.undefs
14368 mv conftest.tail conftest.undefs
14369 done
14370 rm -f conftest.undefs
14371
14372 cat >>$CONFIG_STATUS <<\_ACEOF
14373 # Let's still pretend it is `configure' which instantiates (i.e., don't
14374 # use $as_me), people would be surprised to read:
14375 # /* config.h. Generated by config.status. */
14376 if test x"$ac_file" = x-; then
14377 echo "/* Generated by configure. */" >$tmp/config.h
14378 else
14379 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14380 fi
14381 cat $tmp/in >>$tmp/config.h
14382 rm -f $tmp/in
14383 if test x"$ac_file" != x-; then
14384 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14385 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14386 echo "$as_me: $ac_file is unchanged" >&6;}
14387 else
14388 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14389 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14390 X"$ac_file" : 'X\(//\)[^/]' \| \
14391 X"$ac_file" : 'X\(//\)$' \| \
14392 X"$ac_file" : 'X\(/\)' \| \
14393 . : '\(.\)' 2>/dev/null ||
14394 echo X"$ac_file" |
14395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14397 /^X\(\/\/\)$/{ s//\1/; q; }
14398 /^X\(\/\).*/{ s//\1/; q; }
14399 s/.*/./; q'`
14400 { if $as_mkdir_p; then
14401 mkdir -p "$ac_dir"
14402 else
14403 as_dir="$ac_dir"
14404 as_dirs=
14405 while test ! -d "$as_dir"; do
14406 as_dirs="$as_dir $as_dirs"
14407 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14409 X"$as_dir" : 'X\(//\)[^/]' \| \
14410 X"$as_dir" : 'X\(//\)$' \| \
14411 X"$as_dir" : 'X\(/\)' \| \
14412 . : '\(.\)' 2>/dev/null ||
14413 echo X"$as_dir" |
14414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14416 /^X\(\/\/\)$/{ s//\1/; q; }
14417 /^X\(\/\).*/{ s//\1/; q; }
14418 s/.*/./; q'`
14419 done
14420 test ! -n "$as_dirs" || mkdir $as_dirs
14421 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14422 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14423 { (exit 1); exit 1; }; }; }
14424
14425 rm -f $ac_file
14426 mv $tmp/config.h $ac_file
14427 fi
14428 else
14429 cat $tmp/config.h
14430 rm -f $tmp/config.h
14431 fi
14432 done
14433 _ACEOF
14434 cat >>$CONFIG_STATUS <<\_ACEOF
14435
14436 #
14437 # CONFIG_COMMANDS section.
14438 #
14439 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14440 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14441 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14442 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14443 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14444 X"$ac_dest" : 'X\(//\)[^/]' \| \
14445 X"$ac_dest" : 'X\(//\)$' \| \
14446 X"$ac_dest" : 'X\(/\)' \| \
14447 . : '\(.\)' 2>/dev/null ||
14448 echo X"$ac_dest" |
14449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14451 /^X\(\/\/\)$/{ s//\1/; q; }
14452 /^X\(\/\).*/{ s//\1/; q; }
14453 s/.*/./; q'`
14454 { if $as_mkdir_p; then
14455 mkdir -p "$ac_dir"
14456 else
14457 as_dir="$ac_dir"
14458 as_dirs=
14459 while test ! -d "$as_dir"; do
14460 as_dirs="$as_dir $as_dirs"
14461 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14463 X"$as_dir" : 'X\(//\)[^/]' \| \
14464 X"$as_dir" : 'X\(//\)$' \| \
14465 X"$as_dir" : 'X\(/\)' \| \
14466 . : '\(.\)' 2>/dev/null ||
14467 echo X"$as_dir" |
14468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14469 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14470 /^X\(\/\/\)$/{ s//\1/; q; }
14471 /^X\(\/\).*/{ s//\1/; q; }
14472 s/.*/./; q'`
14473 done
14474 test ! -n "$as_dirs" || mkdir $as_dirs
14475 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14476 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14477 { (exit 1); exit 1; }; }; }
14478
14479 ac_builddir=.
14480
14481 if test "$ac_dir" != .; then
14482 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14483 # A "../" for each directory in $ac_dir_suffix.
14484 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14485 else
14486 ac_dir_suffix= ac_top_builddir=
14487 fi
14488
14489 case $srcdir in
14490 .) # No --srcdir option. We are building in place.
14491 ac_srcdir=.
14492 if test -z "$ac_top_builddir"; then
14493 ac_top_srcdir=.
14494 else
14495 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14496 fi ;;
14497 [\\/]* | ?:[\\/]* ) # Absolute path.
14498 ac_srcdir=$srcdir$ac_dir_suffix;
14499 ac_top_srcdir=$srcdir ;;
14500 *) # Relative path.
14501 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14502 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14503 esac
14504
14505 # Do not use `cd foo && pwd` to compute absolute paths, because
14506 # the directories may not exist.
14507 case `pwd` in
14508 .) ac_abs_builddir="$ac_dir";;
14509 *)
14510 case "$ac_dir" in
14511 .) ac_abs_builddir=`pwd`;;
14512 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14513 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14514 esac;;
14515 esac
14516 case $ac_abs_builddir in
14517 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14518 *)
14519 case ${ac_top_builddir}. in
14520 .) ac_abs_top_builddir=$ac_abs_builddir;;
14521 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14522 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14523 esac;;
14524 esac
14525 case $ac_abs_builddir in
14526 .) ac_abs_srcdir=$ac_srcdir;;
14527 *)
14528 case $ac_srcdir in
14529 .) ac_abs_srcdir=$ac_abs_builddir;;
14530 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14531 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14532 esac;;
14533 esac
14534 case $ac_abs_builddir in
14535 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14536 *)
14537 case $ac_top_srcdir in
14538 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14539 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14540 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14541 esac;;
14542 esac
14543
14544
14545 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14546 echo "$as_me: executing $ac_dest commands" >&6;}
14547 case $ac_dest in
14548 default-1 ) if test -f .devel; then
14549 echo timestamp > stamp-h
14550 cat Makefile-devel-adds >> Makefile
14551 make depend
14552 fi ;;
14553 esac
14554 done
14555 _ACEOF
14556
14557 cat >>$CONFIG_STATUS <<\_ACEOF
14558
14559 { (exit 0); exit 0; }
14560 _ACEOF
14561 chmod +x $CONFIG_STATUS
14562 ac_clean_files=$ac_clean_files_save
14563
14564
14565 # configure is writing to config.log, and then calls config.status.
14566 # config.status does its own redirection, appending to config.log.
14567 # Unfortunately, on DOS this fails, as config.log is still kept open
14568 # by configure, so config.status won't be able to write to it; its
14569 # output is simply discarded. So we exec the FD to /dev/null,
14570 # effectively closing config.log, so it can be properly (re)opened and
14571 # appended to by config.status. When coming back to configure, we
14572 # need to make the FD available again.
14573 if test "$no_create" != yes; then
14574 ac_cs_success=:
14575 ac_config_status_args=
14576 test "$silent" = yes &&
14577 ac_config_status_args="$ac_config_status_args --quiet"
14578 exec 5>/dev/null
14579 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14580 exec 5>>config.log
14581 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14582 # would make configure fail if this is the last instruction.
14583 $ac_cs_success || { (exit 1); exit 1; }
14584 fi
14585
14586 exit 0