]> The Tcpdump Group git mirrors - tcpdump/blob - configure
Use the new libpcap API's if available; that means we can support "-B"
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.201 .
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 --with-crypto[=PATH]
860 use SSLeay libcrypto (located in directory PATH, if
861 supplied). [default=yes, if available]
862
863 Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
870 CPP C preprocessor
871
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
874
875 _ACEOF
876 fi
877
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
884
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 else
890 ac_dir_suffix= ac_top_builddir=
891 fi
892
893 case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 esac
908
909 # Do not use `cd foo && pwd` to compute absolute paths, because
910 # the directories may not exist.
911 case `pwd` in
912 .) ac_abs_builddir="$ac_dir";;
913 *)
914 case "$ac_dir" in
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
922 *)
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_srcdir=$ac_srcdir;;
931 *)
932 case $ac_srcdir in
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
940 *)
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945 esac;;
946 esac
947
948 cd $ac_dir
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
951 echo
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
954 echo
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
958 echo
959 $ac_configure --help
960 else
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 fi
963 cd $ac_popdir
964 done
965 fi
966
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
969 cat <<\_ACEOF
970
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975 exit 0
976 fi
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
981
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
984
985 $ $0 $@
986
987 _ACEOF
988 {
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
993
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010
1011 _ASUNAME
1012
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1015 do
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019 done
1020
1021 } >&5
1022
1023 cat >&5 <<_ACEOF
1024
1025
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1029
1030 _ACEOF
1031
1032
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1044 do
1045 for ac_arg
1046 do
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 2)
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1070 ;;
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1073 fi
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1077 ;;
1078 esac
1079 done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1091 {
1092 echo
1093
1094 cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1101 {
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 ;;
1109 *)
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 ;;
1113 esac;
1114 }
1115 echo
1116
1117 cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1124 do
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1129
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143 fi
1144
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1154 fi
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1162 ' 0
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1167
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1172
1173 # Predefined preprocessor variables.
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1198
1199
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 fi
1208 fi
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1214 . "$ac_site_file"
1215 fi
1216 done
1217
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1228 fi
1229 else
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1233 fi
1234
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1254 *)
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1263 fi;;
1264 esac
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1267 case $ac_new_val in
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1271 esac
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 esac
1276 fi
1277 done
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1284 fi
1285
1286 ac_ext=c
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311 ac_aux_dir=
1312 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1313 if test -f $ac_dir/install-sh; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/install-sh -c"
1316 break
1317 elif test -f $ac_dir/install.sh; then
1318 ac_aux_dir=$ac_dir
1319 ac_install_sh="$ac_aux_dir/install.sh -c"
1320 break
1321 elif test -f $ac_dir/shtool; then
1322 ac_aux_dir=$ac_dir
1323 ac_install_sh="$ac_aux_dir/shtool install -c"
1324 break
1325 fi
1326 done
1327 if test -z "$ac_aux_dir"; then
1328 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1329 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1330 { (exit 1); exit 1; }; }
1331 fi
1332 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1333 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1334 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1335
1336 # Make sure we can run config.sub.
1337 $ac_config_sub sun4 >/dev/null 2>&1 ||
1338 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1339 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1340 { (exit 1); exit 1; }; }
1341
1342 echo "$as_me:$LINENO: checking build system type" >&5
1343 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1344 if test "${ac_cv_build+set}" = set; then
1345 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 else
1347 ac_cv_build_alias=$build_alias
1348 test -z "$ac_cv_build_alias" &&
1349 ac_cv_build_alias=`$ac_config_guess`
1350 test -z "$ac_cv_build_alias" &&
1351 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1352 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1353 { (exit 1); exit 1; }; }
1354 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1355 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1356 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1357 { (exit 1); exit 1; }; }
1358
1359 fi
1360 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1361 echo "${ECHO_T}$ac_cv_build" >&6
1362 build=$ac_cv_build
1363 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1364 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1365 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1366
1367
1368 echo "$as_me:$LINENO: checking host system type" >&5
1369 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1370 if test "${ac_cv_host+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 else
1373 ac_cv_host_alias=$host_alias
1374 test -z "$ac_cv_host_alias" &&
1375 ac_cv_host_alias=$ac_cv_build_alias
1376 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1378 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1379 { (exit 1); exit 1; }; }
1380
1381 fi
1382 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1383 echo "${ECHO_T}$ac_cv_host" >&6
1384 host=$ac_cv_host
1385 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388
1389
1390
1391
1392
1393
1394
1395
1396 # Check whether --with-gcc or --without-gcc was given.
1397 if test "${with_gcc+set}" = set; then
1398 withval="$with_gcc"
1399
1400 fi;
1401 V_CCOPT="-O"
1402 V_INCLS=""
1403 if test "${srcdir}" != "." ; then
1404 V_INCLS="-I\$(srcdir)"
1405 fi
1406 if test "${CFLAGS+set}" = set; then
1407 LBL_CFLAGS="$CFLAGS"
1408 fi
1409 if test -z "$CC" ; then
1410 case "$host_os" in
1411
1412 bsdi*)
1413 # Extract the first word of "shlicc2", so it can be a program name with args.
1414 set dummy shlicc2; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420 if test -n "$SHLICC2"; then
1421 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1422 else
1423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 for as_dir in $PATH
1425 do
1426 IFS=$as_save_IFS
1427 test -z "$as_dir" && as_dir=.
1428 for ac_exec_ext in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_SHLICC2="yes"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 break 2
1433 fi
1434 done
1435 done
1436
1437 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1438 fi
1439 fi
1440 SHLICC2=$ac_cv_prog_SHLICC2
1441 if test -n "$SHLICC2"; then
1442 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1443 echo "${ECHO_T}$SHLICC2" >&6
1444 else
1445 echo "$as_me:$LINENO: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1447 fi
1448
1449 if test $SHLICC2 = yes ; then
1450 CC=shlicc2
1451 export CC
1452 fi
1453 ;;
1454 esac
1455 fi
1456 if test -z "$CC" -a "$with_gcc" = no ; then
1457 CC=cc
1458 export CC
1459 fi
1460 ac_ext=c
1461 ac_cpp='$CPP $CPPFLAGS'
1462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465 if test -n "$ac_tool_prefix"; then
1466 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1467 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1475 else
1476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 for as_dir in $PATH
1478 do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1486 fi
1487 done
1488 done
1489
1490 fi
1491 fi
1492 CC=$ac_cv_prog_CC
1493 if test -n "$CC"; then
1494 echo "$as_me:$LINENO: result: $CC" >&5
1495 echo "${ECHO_T}$CC" >&6
1496 else
1497 echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1499 fi
1500
1501 fi
1502 if test -z "$ac_cv_prog_CC"; then
1503 ac_ct_CC=$CC
1504 # Extract the first word of "gcc", so it can be a program name with args.
1505 set dummy gcc; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511 if test -n "$ac_ct_CC"; then
1512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1513 else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1516 do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_ac_ct_CC="gcc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1524 fi
1525 done
1526 done
1527
1528 fi
1529 fi
1530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531 if test -n "$ac_ct_CC"; then
1532 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1533 echo "${ECHO_T}$ac_ct_CC" >&6
1534 else
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1537 fi
1538
1539 CC=$ac_ct_CC
1540 else
1541 CC="$ac_cv_prog_CC"
1542 fi
1543
1544 if test -z "$CC"; then
1545 if test -n "$ac_tool_prefix"; then
1546 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1547 set dummy ${ac_tool_prefix}cc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1555 else
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559 IFS=$as_save_IFS
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563 ac_cv_prog_CC="${ac_tool_prefix}cc"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 break 2
1566 fi
1567 done
1568 done
1569
1570 fi
1571 fi
1572 CC=$ac_cv_prog_CC
1573 if test -n "$CC"; then
1574 echo "$as_me:$LINENO: result: $CC" >&5
1575 echo "${ECHO_T}$CC" >&6
1576 else
1577 echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1579 fi
1580
1581 fi
1582 if test -z "$ac_cv_prog_CC"; then
1583 ac_ct_CC=$CC
1584 # Extract the first word of "cc", so it can be a program name with args.
1585 set dummy cc; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591 if test -n "$ac_ct_CC"; then
1592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1593 else
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1596 do
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_ac_ct_CC="cc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603 break 2
1604 fi
1605 done
1606 done
1607
1608 fi
1609 fi
1610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1611 if test -n "$ac_ct_CC"; then
1612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1613 echo "${ECHO_T}$ac_ct_CC" >&6
1614 else
1615 echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1617 fi
1618
1619 CC=$ac_ct_CC
1620 else
1621 CC="$ac_cv_prog_CC"
1622 fi
1623
1624 fi
1625 if test -z "$CC"; then
1626 # Extract the first word of "cc", so it can be a program name with args.
1627 set dummy cc; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633 if test -n "$CC"; then
1634 ac_cv_prog_CC="$CC" # Let the user override the test.
1635 else
1636 ac_prog_rejected=no
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1645 ac_prog_rejected=yes
1646 continue
1647 fi
1648 ac_cv_prog_CC="cc"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1651 fi
1652 done
1653 done
1654
1655 if test $ac_prog_rejected = yes; then
1656 # We found a bogon in the path, so make sure we never use it.
1657 set dummy $ac_cv_prog_CC
1658 shift
1659 if test $# != 0; then
1660 # We chose a different compiler from the bogus one.
1661 # However, it has the same basename, so the bogon will be chosen
1662 # first if we set CC to just the basename; use the full file name.
1663 shift
1664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1665 fi
1666 fi
1667 fi
1668 fi
1669 CC=$ac_cv_prog_CC
1670 if test -n "$CC"; then
1671 echo "$as_me:$LINENO: result: $CC" >&5
1672 echo "${ECHO_T}$CC" >&6
1673 else
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678 fi
1679 if test -z "$CC"; then
1680 if test -n "$ac_tool_prefix"; then
1681 for ac_prog in cl
1682 do
1683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1692 else
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
1703 fi
1704 done
1705 done
1706
1707 fi
1708 fi
1709 CC=$ac_cv_prog_CC
1710 if test -n "$CC"; then
1711 echo "$as_me:$LINENO: result: $CC" >&5
1712 echo "${ECHO_T}$CC" >&6
1713 else
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1716 fi
1717
1718 test -n "$CC" && break
1719 done
1720 fi
1721 if test -z "$CC"; then
1722 ac_ct_CC=$CC
1723 for ac_prog in cl
1724 do
1725 # Extract the first word of "$ac_prog", so it can be a program name with args.
1726 set dummy $ac_prog; ac_word=$2
1727 echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732 if test -n "$ac_ct_CC"; then
1733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1737 do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_ac_ct_CC="$ac_prog"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746 done
1747 done
1748
1749 fi
1750 fi
1751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752 if test -n "$ac_ct_CC"; then
1753 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754 echo "${ECHO_T}$ac_ct_CC" >&6
1755 else
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 fi
1759
1760 test -n "$ac_ct_CC" && break
1761 done
1762
1763 CC=$ac_ct_CC
1764 fi
1765
1766 fi
1767
1768
1769 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1770 See \`config.log' for more details." >&5
1771 echo "$as_me: error: no acceptable C compiler found in \$PATH
1772 See \`config.log' for more details." >&2;}
1773 { (exit 1); exit 1; }; }
1774
1775 # Provide some information about the compiler.
1776 echo "$as_me:$LINENO:" \
1777 "checking for C compiler version" >&5
1778 ac_compiler=`set X $ac_compile; echo $2`
1779 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1780 (eval $ac_compiler --version </dev/null >&5) 2>&5
1781 ac_status=$?
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1785 (eval $ac_compiler -v </dev/null >&5) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1790 (eval $ac_compiler -V </dev/null >&5) 2>&5
1791 ac_status=$?
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }
1794
1795 cat >conftest.$ac_ext <<_ACEOF
1796 /* confdefs.h. */
1797 _ACEOF
1798 cat confdefs.h >>conftest.$ac_ext
1799 cat >>conftest.$ac_ext <<_ACEOF
1800 /* end confdefs.h. */
1801
1802 int
1803 main ()
1804 {
1805
1806 ;
1807 return 0;
1808 }
1809 _ACEOF
1810 ac_clean_files_save=$ac_clean_files
1811 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1812 # Try to create an executable without -o first, disregard a.out.
1813 # It will help us diagnose broken compilers, and finding out an intuition
1814 # of exeext.
1815 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1816 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1817 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1818 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1819 (eval $ac_link_default) 2>&5
1820 ac_status=$?
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }; then
1823 # Find the output, starting from the most likely. This scheme is
1824 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825 # resort.
1826
1827 # Be careful to initialize this variable, since it used to be cached.
1828 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1829 ac_cv_exeext=
1830 # b.out is created by i960 compilers.
1831 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1832 do
1833 test -f "$ac_file" || continue
1834 case $ac_file in
1835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1836 ;;
1837 conftest.$ac_ext )
1838 # This is the source file.
1839 ;;
1840 [ab].out )
1841 # We found the default executable, but exeext='' is most
1842 # certainly right.
1843 break;;
1844 *.* )
1845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846 # FIXME: I believe we export ac_cv_exeext for Libtool,
1847 # but it would be cool to find out if it's true. Does anybody
1848 # maintain Libtool? --akim.
1849 export ac_cv_exeext
1850 break;;
1851 * )
1852 break;;
1853 esac
1854 done
1855 else
1856 echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: C compiler cannot create executables
1862 See \`config.log' for more details." >&2;}
1863 { (exit 77); exit 77; }; }
1864 fi
1865
1866 ac_exeext=$ac_cv_exeext
1867 echo "$as_me:$LINENO: result: $ac_file" >&5
1868 echo "${ECHO_T}$ac_file" >&6
1869
1870 # Check the compiler produces executables we can run. If not, either
1871 # the compiler is broken, or we cross compile.
1872 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1873 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1874 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1875 # If not cross compiling, check that we can run a simple program.
1876 if test "$cross_compiling" != yes; then
1877 if { ac_try='./$ac_file'
1878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 (eval $ac_try) 2>&5
1880 ac_status=$?
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; }; then
1883 cross_compiling=no
1884 else
1885 if test "$cross_compiling" = maybe; then
1886 cross_compiling=yes
1887 else
1888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1889 If you meant to cross compile, use \`--host'.
1890 See \`config.log' for more details." >&5
1891 echo "$as_me: error: cannot run C compiled programs.
1892 If you meant to cross compile, use \`--host'.
1893 See \`config.log' for more details." >&2;}
1894 { (exit 1); exit 1; }; }
1895 fi
1896 fi
1897 fi
1898 echo "$as_me:$LINENO: result: yes" >&5
1899 echo "${ECHO_T}yes" >&6
1900
1901 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1902 ac_clean_files=$ac_clean_files_save
1903 # Check the compiler produces executables we can run. If not, either
1904 # the compiler is broken, or we cross compile.
1905 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1906 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1907 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1908 echo "${ECHO_T}$cross_compiling" >&6
1909
1910 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1911 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1913 (eval $ac_link) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; then
1917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1918 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1919 # work properly (i.e., refer to `conftest.exe'), while it won't with
1920 # `rm'.
1921 for ac_file in conftest.exe conftest conftest.*; do
1922 test -f "$ac_file" || continue
1923 case $ac_file in
1924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1925 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1926 export ac_cv_exeext
1927 break;;
1928 * ) break;;
1929 esac
1930 done
1931 else
1932 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1935 See \`config.log' for more details." >&2;}
1936 { (exit 1); exit 1; }; }
1937 fi
1938
1939 rm -f conftest$ac_cv_exeext
1940 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1941 echo "${ECHO_T}$ac_cv_exeext" >&6
1942
1943 rm -f conftest.$ac_ext
1944 EXEEXT=$ac_cv_exeext
1945 ac_exeext=$EXEEXT
1946 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1947 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1948 if test "${ac_cv_objext+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951 cat >conftest.$ac_ext <<_ACEOF
1952 /* confdefs.h. */
1953 _ACEOF
1954 cat confdefs.h >>conftest.$ac_ext
1955 cat >>conftest.$ac_ext <<_ACEOF
1956 /* end confdefs.h. */
1957
1958 int
1959 main ()
1960 {
1961
1962 ;
1963 return 0;
1964 }
1965 _ACEOF
1966 rm -f conftest.o conftest.obj
1967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>&5
1969 ac_status=$?
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1973 case $ac_file in
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1976 break;;
1977 esac
1978 done
1979 else
1980 echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1982
1983 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&5
1985 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1986 See \`config.log' for more details." >&2;}
1987 { (exit 1); exit 1; }; }
1988 fi
1989
1990 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1991 fi
1992 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1993 echo "${ECHO_T}$ac_cv_objext" >&6
1994 OBJEXT=$ac_cv_objext
1995 ac_objext=$OBJEXT
1996 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1997 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1998 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 cat >conftest.$ac_ext <<_ACEOF
2002 /* confdefs.h. */
2003 _ACEOF
2004 cat confdefs.h >>conftest.$ac_ext
2005 cat >>conftest.$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2007
2008 int
2009 main ()
2010 {
2011 #ifndef __GNUC__
2012 choke me
2013 #endif
2014
2015 ;
2016 return 0;
2017 }
2018 _ACEOF
2019 rm -f conftest.$ac_objext
2020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2021 (eval $ac_compile) 2>conftest.er1
2022 ac_status=$?
2023 grep -v '^ *+' conftest.er1 >conftest.err
2024 rm -f conftest.er1
2025 cat conftest.err >&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); } &&
2028 { ac_try='test -z "$ac_c_werror_flag"
2029 || test ! -s conftest.err'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 (eval $ac_try) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; } &&
2035 { ac_try='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2041 ac_compiler_gnu=yes
2042 else
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046 ac_compiler_gnu=no
2047 fi
2048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2050
2051 fi
2052 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2053 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2054 GCC=`test $ac_compiler_gnu = yes && echo yes`
2055 ac_test_CFLAGS=${CFLAGS+set}
2056 ac_save_CFLAGS=$CFLAGS
2057 CFLAGS="-g"
2058 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2059 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2060 if test "${ac_cv_prog_cc_g+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063 cat >conftest.$ac_ext <<_ACEOF
2064 /* confdefs.h. */
2065 _ACEOF
2066 cat confdefs.h >>conftest.$ac_ext
2067 cat >>conftest.$ac_ext <<_ACEOF
2068 /* end confdefs.h. */
2069
2070 int
2071 main ()
2072 {
2073
2074 ;
2075 return 0;
2076 }
2077 _ACEOF
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2081 ac_status=$?
2082 grep -v '^ *+' conftest.er1 >conftest.err
2083 rm -f conftest.er1
2084 cat conftest.err >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 (eval $ac_try) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 (eval $ac_try) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2100 ac_cv_prog_cc_g=yes
2101 else
2102 echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2104
2105 ac_cv_prog_cc_g=no
2106 fi
2107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 fi
2109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2110 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2111 if test "$ac_test_CFLAGS" = set; then
2112 CFLAGS=$ac_save_CFLAGS
2113 elif test $ac_cv_prog_cc_g = yes; then
2114 if test "$GCC" = yes; then
2115 CFLAGS="-g -O2"
2116 else
2117 CFLAGS="-g"
2118 fi
2119 else
2120 if test "$GCC" = yes; then
2121 CFLAGS="-O2"
2122 else
2123 CFLAGS=
2124 fi
2125 fi
2126 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2127 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2128 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 ac_cv_prog_cc_stdc=no
2132 ac_save_CC=$CC
2133 cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h. */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2139 #include <stdarg.h>
2140 #include <stdio.h>
2141 #include <sys/types.h>
2142 #include <sys/stat.h>
2143 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2144 struct buf { int x; };
2145 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2146 static char *e (p, i)
2147 char **p;
2148 int i;
2149 {
2150 return p[i];
2151 }
2152 static char *f (char * (*g) (char **, int), char **p, ...)
2153 {
2154 char *s;
2155 va_list v;
2156 va_start (v,p);
2157 s = g (p, va_arg (v,int));
2158 va_end (v);
2159 return s;
2160 }
2161
2162 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2163 function prototypes and stuff, but not '\xHH' hex character constants.
2164 These don't provoke an error unfortunately, instead are silently treated
2165 as 'x'. The following induces an error, until -std1 is added to get
2166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2167 array size at least. It's necessary to write '\x00'==0 to get something
2168 that's true only with -std1. */
2169 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2170
2171 int test (int i, double x);
2172 struct s1 {int (*f) (int a);};
2173 struct s2 {int (*f) (double a);};
2174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2175 int argc;
2176 char **argv;
2177 int
2178 main ()
2179 {
2180 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 # Don't try gcc -ansi; that turns off useful extensions and
2186 # breaks some systems' header files.
2187 # AIX -qlanglvl=ansi
2188 # Ultrix and OSF/1 -std1
2189 # HP-UX 10.20 and later -Ae
2190 # HP-UX older versions -Aa -D_HPUX_SOURCE
2191 # SVR4 -Xc -D__EXTENSIONS__
2192 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2193 do
2194 CC="$ac_save_CC $ac_arg"
2195 rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
2198 ac_status=$?
2199 grep -v '^ *+' conftest.er1 >conftest.err
2200 rm -f conftest.er1
2201 cat conftest.err >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -z "$ac_c_werror_flag"
2205 || test ! -s conftest.err'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 (eval $ac_try) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; } &&
2211 { ac_try='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 ac_cv_prog_cc_stdc=$ac_arg
2218 break
2219 else
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223 fi
2224 rm -f conftest.err conftest.$ac_objext
2225 done
2226 rm -f conftest.$ac_ext conftest.$ac_objext
2227 CC=$ac_save_CC
2228
2229 fi
2230
2231 case "x$ac_cv_prog_cc_stdc" in
2232 x|xno)
2233 echo "$as_me:$LINENO: result: none needed" >&5
2234 echo "${ECHO_T}none needed" >&6 ;;
2235 *)
2236 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2237 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2238 CC="$CC $ac_cv_prog_cc_stdc" ;;
2239 esac
2240
2241 # Some people use a C++ compiler to compile C. Since we use `exit',
2242 # in C++ we need to declare it. In case someone uses the same compiler
2243 # for both compiling C and C++ we need to have the C++ compiler decide
2244 # the declaration of exit, since it's the most demanding environment.
2245 cat >conftest.$ac_ext <<_ACEOF
2246 #ifndef __cplusplus
2247 choke me
2248 #endif
2249 _ACEOF
2250 rm -f conftest.$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2253 ac_status=$?
2254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 for ac_declaration in \
2273 '' \
2274 'extern "C" void std::exit (int) throw (); using std::exit;' \
2275 'extern "C" void std::exit (int); using std::exit;' \
2276 'extern "C" void exit (int) throw ();' \
2277 'extern "C" void exit (int);' \
2278 'void exit (int);'
2279 do
2280 cat >conftest.$ac_ext <<_ACEOF
2281 /* confdefs.h. */
2282 _ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2286 $ac_declaration
2287 #include <stdlib.h>
2288 int
2289 main ()
2290 {
2291 exit (42);
2292 ;
2293 return 0;
2294 }
2295 _ACEOF
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2299 ac_status=$?
2300 grep -v '^ *+' conftest.er1 >conftest.err
2301 rm -f conftest.er1
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 :
2319 else
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2322
2323 continue
2324 fi
2325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326 cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h. */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2332 $ac_declaration
2333 int
2334 main ()
2335 {
2336 exit (42);
2337 ;
2338 return 0;
2339 }
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2344 ac_status=$?
2345 grep -v '^ *+' conftest.er1 >conftest.err
2346 rm -f conftest.er1
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_c_werror_flag"
2351 || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2363 break
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 fi
2369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2370 done
2371 rm -f conftest*
2372 if test -n "$ac_declaration"; then
2373 echo '#ifdef __cplusplus' >>confdefs.h
2374 echo $ac_declaration >>confdefs.h
2375 echo '#endif' >>confdefs.h
2376 fi
2377
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 fi
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384 ac_ext=c
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
2390 if test "$GCC" = yes ; then
2391 if test "$SHLICC2" = yes ; then
2392 ac_cv_lbl_gcc_vers=2
2393 V_CCOPT="-O2"
2394 else
2395 echo "$as_me:$LINENO: checking gcc version" >&5
2396 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2397 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2401 sed -e '/^gcc version /!d' \
2402 -e 's/^gcc version //' \
2403 -e 's/ .*//' -e 's/^[^0-9]*//' \
2404 -e 's/\..*//'`
2405 fi
2406
2407 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2408 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2409 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2410 V_CCOPT="-O2"
2411 fi
2412 fi
2413 else
2414 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2415 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2416 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419
2420 cat >conftest.$ac_ext <<_ACEOF
2421 /* confdefs.h. */
2422 _ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2426 #include <sys/types.h>
2427 int
2428 main ()
2429 {
2430 int frob(int, char *)
2431 ;
2432 return 0;
2433 }
2434 _ACEOF
2435 rm -f conftest.$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 (eval $ac_compile) 2>conftest.er1
2438 ac_status=$?
2439 grep -v '^ *+' conftest.er1 >conftest.err
2440 rm -f conftest.er1
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try='test -z "$ac_c_werror_flag"
2445 || test ! -s conftest.err'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try='test -s conftest.$ac_objext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2457 ac_cv_lbl_cc_ansi_prototypes=yes
2458 else
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 ac_cv_lbl_cc_ansi_prototypes=no
2463 fi
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 fi
2466
2467 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2468 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2469 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2470 case "$host_os" in
2471
2472 hpux*)
2473 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2474 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2475 savedcflags="$CFLAGS"
2476 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2477 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 cat >conftest.$ac_ext <<_ACEOF
2481 /* confdefs.h. */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2486 #include <sys/types.h>
2487 int
2488 main ()
2489 {
2490 int frob(int, char *)
2491 ;
2492 return 0;
2493 }
2494 _ACEOF
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag"
2505 || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2517 ac_cv_lbl_cc_hpux_cc_aa=yes
2518 else
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 ac_cv_lbl_cc_hpux_cc_aa=no
2523 fi
2524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2525 fi
2526
2527 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2528 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2529 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2530 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2531 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2532 { (exit 1); exit 1; }; }
2533 fi
2534 CFLAGS="$savedcflags"
2535 V_CCOPT="-Aa $V_CCOPT"
2536 cat >>confdefs.h <<\_ACEOF
2537 #define _HPUX_SOURCE 1
2538 _ACEOF
2539
2540 ;;
2541
2542 *)
2543 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2544 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2545 { (exit 1); exit 1; }; }
2546 ;;
2547 esac
2548 fi
2549 V_INCLS="$V_INCLS -I/usr/local/include"
2550 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2551
2552 case "$host_os" in
2553
2554 irix*)
2555 V_CCOPT="$V_CCOPT -xansi -signed -O"
2556 ;;
2557
2558 osf*)
2559 V_CCOPT="$V_CCOPT -std1 -O"
2560 ;;
2561
2562 ultrix*)
2563 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2564 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2565 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568 cat >conftest.$ac_ext <<_ACEOF
2569 /* confdefs.h. */
2570 _ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2574 #include <sys/types.h>
2575 int
2576 main ()
2577 {
2578 struct a { int b; };
2579 void c(const struct a *)
2580 ;
2581 return 0;
2582 }
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2587 ac_status=$?
2588 grep -v '^ *+' conftest.er1 >conftest.err
2589 rm -f conftest.er1
2590 cat conftest.err >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -z "$ac_c_werror_flag"
2594 || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_lbl_cc_const_proto=yes
2607 else
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 ac_cv_lbl_cc_const_proto=no
2612 fi
2613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615
2616 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2617 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2618 if test $ac_cv_lbl_cc_const_proto = no ; then
2619 cat >>confdefs.h <<\_ACEOF
2620 #define const
2621 _ACEOF
2622
2623 fi
2624 ;;
2625 esac
2626 fi
2627
2628 echo "$as_me:$LINENO: checking for inline" >&5
2629 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2630 if test "${ac_cv_lbl_inline+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633
2634 ac_cv_lbl_inline=""
2635 ac_lbl_cc_inline=no
2636 for ac_lbl_inline in inline __inline__ __inline
2637 do
2638 cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h. */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2644 #define inline $ac_lbl_inline
2645 static inline struct iltest *foo(void);
2646 struct iltest {
2647 int iltest1;
2648 int iltest2;
2649 };
2650
2651 static inline struct iltest *
2652 foo()
2653 {
2654 static struct iltest xxx;
2655
2656 return &xxx;
2657 }
2658 int
2659 main ()
2660 {
2661
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 ac_lbl_cc_inline=yes
2689 else
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 fi
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 if test "$ac_lbl_cc_inline" = yes ; then
2696 break;
2697 fi
2698 done
2699 if test "$ac_lbl_cc_inline" = yes ; then
2700 ac_cv_lbl_inline=$ac_lbl_inline
2701 fi
2702 fi
2703
2704 if test ! -z "$ac_cv_lbl_inline" ; then
2705 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2706 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2710 fi
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define inline $ac_cv_lbl_inline
2714 _ACEOF
2715
2716
2717 echo "$as_me:$LINENO: checking for __attribute__" >&5
2718 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2719 if test "${ac_cv___attribute__+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2729
2730 #include <stdlib.h>
2731
2732 static void foo(void) __attribute__ ((noreturn));
2733
2734 static void
2735 foo(void)
2736 {
2737 exit(1);
2738 }
2739
2740 int
2741 main(int argc, char **argv)
2742 {
2743 foo();
2744 }
2745
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2750 ac_status=$?
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -z "$ac_c_werror_flag"
2757 || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 (eval $ac_try) 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 ac_cv___attribute__=yes
2770 else
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2773
2774 ac_cv___attribute__=no
2775 fi
2776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777 fi
2778
2779 if test "$ac_cv___attribute__" = "yes"; then
2780
2781 cat >>confdefs.h <<\_ACEOF
2782 #define HAVE___ATTRIBUTE__ 1
2783 _ACEOF
2784
2785 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2786 else
2787 V_DEFS="$V_DEFS -D_U_=\"\""
2788 fi
2789 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2790 echo "${ECHO_T}$ac_cv___attribute__" >&6
2791
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2798 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2799 # On Suns, sometimes $CPP names a directory.
2800 if test -n "$CPP" && test -d "$CPP"; then
2801 CPP=
2802 fi
2803 if test -z "$CPP"; then
2804 if test "${ac_cv_prog_CPP+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 # Double quotes because CPP needs to be expanded
2808 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2809 do
2810 ac_preproc_ok=false
2811 for ac_c_preproc_warn_flag in '' yes
2812 do
2813 # Use a header file that comes with gcc, so configuring glibc
2814 # with a fresh cross-compiler works.
2815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2816 # <limits.h> exists even on freestanding compilers.
2817 # On the NeXT, cc -E runs the code through the compiler's parser,
2818 # not just through cpp. "Syntax error" is here to catch this case.
2819 cat >conftest.$ac_ext <<_ACEOF
2820 /* confdefs.h. */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2825 #ifdef __STDC__
2826 # include <limits.h>
2827 #else
2828 # include <assert.h>
2829 #endif
2830 Syntax error
2831 _ACEOF
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev/null; then
2840 if test -s conftest.err; then
2841 ac_cpp_err=$ac_c_preproc_warn_flag
2842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2843 else
2844 ac_cpp_err=
2845 fi
2846 else
2847 ac_cpp_err=yes
2848 fi
2849 if test -z "$ac_cpp_err"; then
2850 :
2851 else
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 # Broken: fails on valid input.
2856 continue
2857 fi
2858 rm -f conftest.err conftest.$ac_ext
2859
2860 # OK, works on sane cases. Now check whether non-existent headers
2861 # can be detected and how.
2862 cat >conftest.$ac_ext <<_ACEOF
2863 /* confdefs.h. */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #include <ac_nonexistent.h>
2869 _ACEOF
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev/null; then
2878 if test -s conftest.err; then
2879 ac_cpp_err=$ac_c_preproc_warn_flag
2880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2881 else
2882 ac_cpp_err=
2883 fi
2884 else
2885 ac_cpp_err=yes
2886 fi
2887 if test -z "$ac_cpp_err"; then
2888 # Broken: success on invalid input.
2889 continue
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894 # Passes both tests.
2895 ac_preproc_ok=:
2896 break
2897 fi
2898 rm -f conftest.err conftest.$ac_ext
2899
2900 done
2901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2902 rm -f conftest.err conftest.$ac_ext
2903 if $ac_preproc_ok; then
2904 break
2905 fi
2906
2907 done
2908 ac_cv_prog_CPP=$CPP
2909
2910 fi
2911 CPP=$ac_cv_prog_CPP
2912 else
2913 ac_cv_prog_CPP=$CPP
2914 fi
2915 echo "$as_me:$LINENO: result: $CPP" >&5
2916 echo "${ECHO_T}$CPP" >&6
2917 ac_preproc_ok=false
2918 for ac_c_preproc_warn_flag in '' yes
2919 do
2920 # Use a header file that comes with gcc, so configuring glibc
2921 # with a fresh cross-compiler works.
2922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2923 # <limits.h> exists even on freestanding compilers.
2924 # On the NeXT, cc -E runs the code through the compiler's parser,
2925 # not just through cpp. "Syntax error" is here to catch this case.
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932 #ifdef __STDC__
2933 # include <limits.h>
2934 #else
2935 # include <assert.h>
2936 #endif
2937 Syntax error
2938 _ACEOF
2939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2941 ac_status=$?
2942 grep -v '^ *+' conftest.er1 >conftest.err
2943 rm -f conftest.er1
2944 cat conftest.err >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } >/dev/null; then
2947 if test -s conftest.err; then
2948 ac_cpp_err=$ac_c_preproc_warn_flag
2949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2950 else
2951 ac_cpp_err=
2952 fi
2953 else
2954 ac_cpp_err=yes
2955 fi
2956 if test -z "$ac_cpp_err"; then
2957 :
2958 else
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2961
2962 # Broken: fails on valid input.
2963 continue
2964 fi
2965 rm -f conftest.err conftest.$ac_ext
2966
2967 # OK, works on sane cases. Now check whether non-existent headers
2968 # can be detected and how.
2969 cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h. */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2975 #include <ac_nonexistent.h>
2976 _ACEOF
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979 ac_status=$?
2980 grep -v '^ *+' conftest.er1 >conftest.err
2981 rm -f conftest.er1
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } >/dev/null; then
2985 if test -s conftest.err; then
2986 ac_cpp_err=$ac_c_preproc_warn_flag
2987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2988 else
2989 ac_cpp_err=
2990 fi
2991 else
2992 ac_cpp_err=yes
2993 fi
2994 if test -z "$ac_cpp_err"; then
2995 # Broken: success on invalid input.
2996 continue
2997 else
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001 # Passes both tests.
3002 ac_preproc_ok=:
3003 break
3004 fi
3005 rm -f conftest.err conftest.$ac_ext
3006
3007 done
3008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3009 rm -f conftest.err conftest.$ac_ext
3010 if $ac_preproc_ok; then
3011 :
3012 else
3013 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3014 See \`config.log' for more details." >&5
3015 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3016 See \`config.log' for more details." >&2;}
3017 { (exit 1); exit 1; }; }
3018 fi
3019
3020 ac_ext=c
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025
3026
3027 echo "$as_me:$LINENO: checking for egrep" >&5
3028 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3029 if test "${ac_cv_prog_egrep+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3033 then ac_cv_prog_egrep='grep -E'
3034 else ac_cv_prog_egrep='egrep'
3035 fi
3036 fi
3037 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3038 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3039 EGREP=$ac_cv_prog_egrep
3040
3041
3042 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3044 if test "${ac_cv_header_stdc+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #include <stdlib.h>
3054 #include <stdarg.h>
3055 #include <string.h>
3056 #include <float.h>
3057
3058 int
3059 main ()
3060 {
3061
3062 ;
3063 return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 (eval $ac_try) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_header_stdc=yes
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 ac_cv_header_stdc=no
3094 fi
3095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3096
3097 if test $ac_cv_header_stdc = yes; then
3098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3099 cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h. */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3105 #include <string.h>
3106
3107 _ACEOF
3108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3109 $EGREP "memchr" >/dev/null 2>&1; then
3110 :
3111 else
3112 ac_cv_header_stdc=no
3113 fi
3114 rm -f conftest*
3115
3116 fi
3117
3118 if test $ac_cv_header_stdc = yes; then
3119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3120 cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <stdlib.h>
3127
3128 _ACEOF
3129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 $EGREP "free" >/dev/null 2>&1; then
3131 :
3132 else
3133 ac_cv_header_stdc=no
3134 fi
3135 rm -f conftest*
3136
3137 fi
3138
3139 if test $ac_cv_header_stdc = yes; then
3140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3141 if test "$cross_compiling" = yes; then
3142 :
3143 else
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 #include <ctype.h>
3151 #if ((' ' & 0x0FF) == 0x020)
3152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3154 #else
3155 # define ISLOWER(c) \
3156 (('a' <= (c) && (c) <= 'i') \
3157 || ('j' <= (c) && (c) <= 'r') \
3158 || ('s' <= (c) && (c) <= 'z'))
3159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3160 #endif
3161
3162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3163 int
3164 main ()
3165 {
3166 int i;
3167 for (i = 0; i < 256; i++)
3168 if (XOR (islower (i), ISLOWER (i))
3169 || toupper (i) != TOUPPER (i))
3170 exit(2);
3171 exit (0);
3172 }
3173 _ACEOF
3174 rm -f conftest$ac_exeext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176 (eval $ac_link) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 :
3186 else
3187 echo "$as_me: program exited with status $ac_status" >&5
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 ( exit $ac_status )
3192 ac_cv_header_stdc=no
3193 fi
3194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3195 fi
3196 fi
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3199 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3200 if test $ac_cv_header_stdc = yes; then
3201
3202 cat >>confdefs.h <<\_ACEOF
3203 #define STDC_HEADERS 1
3204 _ACEOF
3205
3206 fi
3207
3208 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3219 inttypes.h stdint.h unistd.h
3220 do
3221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3222 echo "$as_me:$LINENO: checking for $ac_header" >&5
3223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227 cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h. */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233 $ac_includes_default
3234
3235 #include <$ac_header>
3236 _ACEOF
3237 rm -f conftest.$ac_objext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239 (eval $ac_compile) 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try='test -z "$ac_c_werror_flag"
3247 || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 eval "$as_ac_Header=yes"
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264 eval "$as_ac_Header=no"
3265 fi
3266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3267 fi
3268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3271 cat >>confdefs.h <<_ACEOF
3272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3273 _ACEOF
3274
3275 fi
3276
3277 done
3278
3279
3280
3281
3282
3283 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3284 do
3285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3287 echo "$as_me:$LINENO: checking for $ac_header" >&5
3288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 fi
3292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3294 else
3295 # Is the header compilable?
3296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 $ac_includes_default
3305 #include <$ac_header>
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 ac_header_compiler=yes
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 ac_header_compiler=no
3335 fi
3336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3338 echo "${ECHO_T}$ac_header_compiler" >&6
3339
3340 # Is the header present?
3341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3343 cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h. */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3349 #include <$ac_header>
3350 _ACEOF
3351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362 else
3363 ac_cpp_err=
3364 fi
3365 else
3366 ac_cpp_err=yes
3367 fi
3368 if test -z "$ac_cpp_err"; then
3369 ac_header_preproc=yes
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 ac_header_preproc=no
3375 fi
3376 rm -f conftest.err conftest.$ac_ext
3377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3378 echo "${ECHO_T}$ac_header_preproc" >&6
3379
3380 # So? What about this header?
3381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3382 yes:no: )
3383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3387 ac_header_preproc=yes
3388 ;;
3389 no:yes:* )
3390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3402 (
3403 cat <<\_ASBOX
3404 ## ------------------------------------------ ##
3405 ## Report this to the AC_PACKAGE_NAME lists. ##
3406 ## ------------------------------------------ ##
3407 _ASBOX
3408 ) |
3409 sed "s/^/$as_me: WARNING: /" >&2
3410 ;;
3411 esac
3412 echo "$as_me:$LINENO: checking for $ac_header" >&5
3413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 eval "$as_ac_Header=\$ac_header_preproc"
3418 fi
3419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3421
3422 fi
3423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3424 cat >>confdefs.h <<_ACEOF
3425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3426 _ACEOF
3427
3428 fi
3429
3430 done
3431
3432
3433 for ac_header in net/pfvar.h
3434 do
3435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3436 echo "$as_me:$LINENO: checking for $ac_header" >&5
3437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h. */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <sys/types.h>
3448 #include <sys/socket.h>
3449 #include <net/if.h>
3450
3451 #include <$ac_header>
3452 _ACEOF
3453 rm -f conftest.$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 (eval $ac_try) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 eval "$as_ac_Header=yes"
3476 else
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3479
3480 eval "$as_ac_Header=no"
3481 fi
3482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3483 fi
3484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3487 cat >>confdefs.h <<_ACEOF
3488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3489 _ACEOF
3490
3491 fi
3492
3493 done
3494
3495 if test "$ac_cv_header_net_pfvar_h" = yes; then
3496 LOCALSRC="print-pflog.c $LOCALSRC"
3497 fi
3498
3499 for ac_header in netinet/if_ether.h
3500 do
3501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3502 echo "$as_me:$LINENO: checking for $ac_header" >&5
3503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <sys/types.h>
3514 #include <sys/socket.h>
3515
3516 #include <$ac_header>
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest.$ac_objext'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 eval "$as_ac_Header=yes"
3541 else
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 eval "$as_ac_Header=no"
3546 fi
3547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3548 fi
3549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3552 cat >>confdefs.h <<_ACEOF
3553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3554 _ACEOF
3555
3556 fi
3557
3558 done
3559
3560 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3561 #
3562 # The simple test didn't work.
3563 # Do we need to include <net/if.h> first?
3564 # Unset ac_cv_header_netinet_if_ether_h so we don't
3565 # treat the previous failure as a cached value and
3566 # suppress the next test.
3567 #
3568 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3569 echo "$as_me: Rechecking with some additional includes" >&6;}
3570 unset ac_cv_header_netinet_if_ether_h
3571
3572 for ac_header in netinet/if_ether.h
3573 do
3574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3575 echo "$as_me:$LINENO: checking for $ac_header" >&5
3576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h. */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 #include <sys/types.h>
3587 #include <sys/socket.h>
3588 #include <netinet/in.h>
3589 struct mbuf;
3590 struct rtentry;
3591 #include <net/if.h>
3592
3593 #include <$ac_header>
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 eval "$as_ac_Header=yes"
3618 else
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 eval "$as_ac_Header=no"
3623 fi
3624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3629 cat >>confdefs.h <<_ACEOF
3630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3631 _ACEOF
3632
3633 fi
3634
3635 done
3636
3637 fi
3638
3639 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3640 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3641 if test "${ac_cv_header_time+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include <sys/types.h>
3651 #include <sys/time.h>
3652 #include <time.h>
3653
3654 int
3655 main ()
3656 {
3657 if ((struct tm *) 0)
3658 return 0;
3659 ;
3660 return 0;
3661 }
3662 _ACEOF
3663 rm -f conftest.$ac_objext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665 (eval $ac_compile) 2>conftest.er1
3666 ac_status=$?
3667 grep -v '^ *+' conftest.er1 >conftest.err
3668 rm -f conftest.er1
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 { ac_try='test -z "$ac_c_werror_flag"
3673 || test ! -s conftest.err'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; } &&
3679 { ac_try='test -s conftest.$ac_objext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_header_time=yes
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 ac_cv_header_time=no
3691 fi
3692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3693 fi
3694 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3695 echo "${ECHO_T}$ac_cv_header_time" >&6
3696 if test $ac_cv_header_time = yes; then
3697
3698 cat >>confdefs.h <<\_ACEOF
3699 #define TIME_WITH_SYS_TIME 1
3700 _ACEOF
3701
3702 fi
3703
3704
3705 case "$host_os" in
3706
3707 linux*)
3708 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3709 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3710 if test "$cross_compiling" = yes; then
3711 if test "${ac_cv_linux_vers+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714 ac_cv_linux_vers=unknown
3715 fi
3716
3717 else
3718 if test "${ac_cv_linux_vers+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721 ac_cv_linux_vers=`uname -r 2>&1 | \
3722 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3723 fi
3724
3725 fi
3726 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3727 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3728 if test $ac_cv_linux_vers = unknown ; then
3729 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3730 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3731 { (exit 1); exit 1; }; }
3732 fi
3733 if test $ac_cv_linux_vers -lt 2 ; then
3734 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3735 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3736 { (exit 1); exit 1; }; }
3737 fi
3738 ;;
3739
3740 *)
3741 ;;
3742 esac
3743
3744
3745
3746 for ac_header in smi.h
3747 do
3748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3750 echo "$as_me:$LINENO: checking for $ac_header" >&5
3751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 fi
3755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3757 else
3758 # Is the header compilable?
3759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3761 cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h. */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 $ac_includes_default
3768 #include <$ac_header>
3769 _ACEOF
3770 rm -f conftest.$ac_objext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try='test -z "$ac_c_werror_flag"
3780 || test ! -s conftest.err'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; } &&
3786 { ac_try='test -s conftest.$ac_objext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 ac_header_compiler=yes
3793 else
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3796
3797 ac_header_compiler=no
3798 fi
3799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3801 echo "${ECHO_T}$ac_header_compiler" >&6
3802
3803 # Is the header present?
3804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #include <$ac_header>
3813 _ACEOF
3814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } >/dev/null; then
3822 if test -s conftest.err; then
3823 ac_cpp_err=$ac_c_preproc_warn_flag
3824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3825 else
3826 ac_cpp_err=
3827 fi
3828 else
3829 ac_cpp_err=yes
3830 fi
3831 if test -z "$ac_cpp_err"; then
3832 ac_header_preproc=yes
3833 else
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837 ac_header_preproc=no
3838 fi
3839 rm -f conftest.err conftest.$ac_ext
3840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3841 echo "${ECHO_T}$ac_header_preproc" >&6
3842
3843 # So? What about this header?
3844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3845 yes:no: )
3846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3850 ac_header_preproc=yes
3851 ;;
3852 no:yes:* )
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3865 (
3866 cat <<\_ASBOX
3867 ## ------------------------------------------ ##
3868 ## Report this to the AC_PACKAGE_NAME lists. ##
3869 ## ------------------------------------------ ##
3870 _ASBOX
3871 ) |
3872 sed "s/^/$as_me: WARNING: /" >&2
3873 ;;
3874 esac
3875 echo "$as_me:$LINENO: checking for $ac_header" >&5
3876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880 eval "$as_ac_Header=\$ac_header_preproc"
3881 fi
3882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3884
3885 fi
3886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3887 cat >>confdefs.h <<_ACEOF
3888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3889 _ACEOF
3890
3891 fi
3892
3893 done
3894
3895
3896 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3897 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3898 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 ac_check_lib_save_LIBS=$LIBS
3902 LIBS="-lsmi $LIBS"
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909
3910 /* Override any gcc2 internal prototype to avoid an error. */
3911 #ifdef __cplusplus
3912 extern "C"
3913 #endif
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3916 char smiInit ();
3917 int
3918 main ()
3919 {
3920 smiInit ();
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>conftest.er1
3928 ac_status=$?
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -z "$ac_c_werror_flag"
3935 || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try='test -s conftest$ac_exeext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 (eval $ac_try) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_cv_lib_smi_smiInit=yes
3948 else
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 ac_cv_lib_smi_smiInit=no
3953 fi
3954 rm -f conftest.err conftest.$ac_objext \
3955 conftest$ac_exeext conftest.$ac_ext
3956 LIBS=$ac_check_lib_save_LIBS
3957 fi
3958 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3959 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3960 if test $ac_cv_lib_smi_smiInit = yes; then
3961 cat >>confdefs.h <<_ACEOF
3962 #define HAVE_LIBSMI 1
3963 _ACEOF
3964
3965 LIBS="-lsmi $LIBS"
3966
3967 fi
3968
3969 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3970 then
3971 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3972 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3973 if test "$cross_compiling" = yes; then
3974 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3975 echo "${ECHO_T}not when cross-compiling" >&6
3976 libsmi=no
3977
3978 else
3979 cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h. */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985 /* libsmi available check */
3986 #include <smi.h>
3987 main()
3988 {
3989 int current, revision, age, n;
3990 const int required = 2;
3991 if (smiInit(""))
3992 exit(1);
3993 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3994 exit(2);
3995 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3996 if (n != 3)
3997 exit(3);
3998 if (required < current - age || required > current)
3999 exit(4);
4000 exit(0);
4001 }
4002
4003 _ACEOF
4004 rm -f conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 (eval $ac_try) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 echo "$as_me:$LINENO: result: yes" >&5
4016 echo "${ECHO_T}yes" >&6
4017 cat >>confdefs.h <<\_ACEOF
4018 #define LIBSMI 1
4019 _ACEOF
4020
4021 libsmi=yes
4022 else
4023 echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 ( exit $ac_status )
4028 case $? in
4029 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4030 echo "${ECHO_T}no - smiInit failed" >&6 ;;
4031 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4032 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
4033 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4034 echo "${ECHO_T}no - can't determine library version" >&6 ;;
4035 4) echo "$as_me:$LINENO: result: no - too old" >&5
4036 echo "${ECHO_T}no - too old" >&6 ;;
4037 *) echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6 ;;
4039 esac
4040 libsmi=no
4041 fi
4042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4043 fi
4044 fi
4045
4046 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4047 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
4048 # Check whether --enable-smb or --disable-smb was given.
4049 if test "${enable_smb+set}" = set; then
4050 enableval="$enable_smb"
4051
4052 else
4053 enableval=yes
4054 fi;
4055 case "$enableval" in
4056 yes) echo "$as_me:$LINENO: result: yes" >&5
4057 echo "${ECHO_T}yes" >&6
4058 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4059 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4060 cat >>confdefs.h <<\_ACEOF
4061 #define TCPDUMP_DO_SMB 1
4062 _ACEOF
4063
4064 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4065 ;;
4066 *) echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4068 ;;
4069 esac
4070
4071
4072 # Check whether --with-user or --without-user was given.
4073 if test "${with_user+set}" = set; then
4074 withval="$with_user"
4075
4076 fi;
4077 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4078 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
4079 if test ! -z "$with_user" ; then
4080 cat >>confdefs.h <<_ACEOF
4081 #define WITH_USER "$withval"
4082 _ACEOF
4083
4084 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4085 echo "${ECHO_T}to \"$withval\"" >&6
4086 else
4087 echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4089 fi
4090
4091
4092 # Check whether --with-chroot or --without-chroot was given.
4093 if test "${with_chroot+set}" = set; then
4094 withval="$with_chroot"
4095
4096 fi;
4097 echo "$as_me:$LINENO: checking whether to chroot" >&5
4098 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
4099 if test ! -z "$with_chroot" ; then
4100 cat >>confdefs.h <<_ACEOF
4101 #define WITH_CHROOT "$withval"
4102 _ACEOF
4103
4104 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4105 echo "${ECHO_T}to \"$withval\"" >&6
4106 else
4107 echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4109 fi
4110
4111 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4112 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
4113 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4114 if test "${enable_ipv6+set}" = set; then
4115 enableval="$enable_ipv6"
4116 case "$enableval" in
4117 yes) echo "$as_me:$LINENO: result: yes" >&5
4118 echo "${ECHO_T}yes" >&6
4119 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"
4120 cat >>confdefs.h <<\_ACEOF
4121 #define INET6 1
4122 _ACEOF
4123
4124 ipv6=yes
4125 ;;
4126 *)
4127 echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6
4129 ipv6=no
4130 ;;
4131 esac
4132 else
4133 if test "$cross_compiling" = yes; then
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4136 ipv6=no
4137
4138 else
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 /* AF_INET6 available check */
4146 #include <sys/types.h>
4147 #include <sys/socket.h>
4148 main()
4149 {
4150 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4151 exit(1);
4152 else
4153 exit(0);
4154 }
4155
4156 _ACEOF
4157 rm -f conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 echo "$as_me:$LINENO: result: yes" >&5
4169 echo "${ECHO_T}yes" >&6
4170 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"
4171 cat >>confdefs.h <<\_ACEOF
4172 #define INET6 1
4173 _ACEOF
4174
4175 ipv6=yes
4176 else
4177 echo "$as_me: program exited with status $ac_status" >&5
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 ( exit $ac_status )
4182 echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4184 ipv6=no
4185 fi
4186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4187 fi
4188 fi;
4189
4190 ipv6type=unknown
4191 ipv6lib=none
4192 ipv6trylibc=no
4193
4194 if test "$ipv6" = "yes"; then
4195 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4196 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
4197 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4198 case $i in
4199 inria)
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 #include <netinet/in.h>
4207 #ifdef IPV6_INRIA_VERSION
4208 yes
4209 #endif
4210 _ACEOF
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "yes" >/dev/null 2>&1; then
4213 ipv6type=$i;
4214 CFLAGS="-DINET6 $CFLAGS"
4215 fi
4216 rm -f conftest*
4217
4218 ;;
4219 kame)
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h. */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 #include <netinet/in.h>
4227 #ifdef __KAME__
4228 yes
4229 #endif
4230 _ACEOF
4231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4232 $EGREP "yes" >/dev/null 2>&1; then
4233 ipv6type=$i;
4234 ipv6lib=inet6;
4235 ipv6libdir=/usr/local/v6/lib;
4236 ipv6trylibc=yes;
4237 CFLAGS="-DINET6 $CFLAGS"
4238 fi
4239 rm -f conftest*
4240
4241 ;;
4242 linux-glibc)
4243 cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h. */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 #include <features.h>
4250 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4251 yes
4252 #endif
4253 _ACEOF
4254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4255 $EGREP "yes" >/dev/null 2>&1; then
4256 ipv6type=$i;
4257 CFLAGS="-DINET6 $CFLAGS"
4258 fi
4259 rm -f conftest*
4260
4261 ;;
4262 linux-libinet6)
4263 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4264 ipv6type=$i
4265 ipv6lib=inet6
4266 ipv6libdir=/usr/inet6/lib
4267 ipv6trylibc=yes;
4268 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4269 fi
4270 ;;
4271 toshiba)
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 #include <sys/param.h>
4279 #ifdef _TOSHIBA_INET6
4280 yes
4281 #endif
4282 _ACEOF
4283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4284 $EGREP "yes" >/dev/null 2>&1; then
4285 ipv6type=$i;
4286 ipv6lib=inet6;
4287 ipv6libdir=/usr/local/v6/lib;
4288 CFLAGS="-DINET6 $CFLAGS"
4289 fi
4290 rm -f conftest*
4291
4292 ;;
4293 v6d)
4294 cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h. */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 #include </usr/local/v6/include/sys/v6config.h>
4301 #ifdef __V6D__
4302 yes
4303 #endif
4304 _ACEOF
4305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4306 $EGREP "yes" >/dev/null 2>&1; then
4307 ipv6type=$i;
4308 ipv6lib=v6;
4309 ipv6libdir=/usr/local/v6/lib;
4310 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4311 fi
4312 rm -f conftest*
4313
4314 ;;
4315 zeta)
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 #include <sys/param.h>
4323 #ifdef _ZETA_MINAMI_INET6
4324 yes
4325 #endif
4326 _ACEOF
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "yes" >/dev/null 2>&1; then
4329 ipv6type=$i;
4330 ipv6lib=inet6;
4331 ipv6libdir=/usr/local/v6/lib;
4332 CFLAGS="-DINET6 $CFLAGS"
4333 fi
4334 rm -f conftest*
4335
4336 ;;
4337 esac
4338 if test "$ipv6type" != "unknown"; then
4339 break
4340 fi
4341 done
4342 echo "$as_me:$LINENO: result: $ipv6type" >&5
4343 echo "${ECHO_T}$ipv6type" >&6
4344 fi
4345
4346 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4347 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4348 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4349 echo "You have $ipv6lib library, using it"
4350 else
4351 if test "$ipv6trylibc" = "yes"; then
4352 echo "You do not have $ipv6lib library, using libc"
4353 else
4354 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4355 echo "You need to fetch lib$ipv6lib.a from appropriate"
4356 echo 'ipv6 kit and compile beforehand.'
4357 exit 1
4358 fi
4359 fi
4360 fi
4361
4362
4363 if test "$ipv6" = "yes"; then
4364 #
4365 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4366 # function in libc; there are "ngetaddrinfo()" and
4367 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4368 # "getaddrinfo" to be either "ngetaddrinfo" or
4369 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4370 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4371 #
4372 # So this test doesn't work on Tru64 5.1, and possibly
4373 # on other 5.x releases. This causes the configure
4374 # script to become confused, and results in libpcap
4375 # being unbuildable.
4376 #
4377 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4378 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4379 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382 ac_func_search_save_LIBS=$LIBS
4383 ac_cv_search_getaddrinfo=no
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h. */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390
4391 /* Override any gcc2 internal prototype to avoid an error. */
4392 #ifdef __cplusplus
4393 extern "C"
4394 #endif
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4397 char getaddrinfo ();
4398 int
4399 main ()
4400 {
4401 getaddrinfo ();
4402 ;
4403 return 0;
4404 }
4405 _ACEOF
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408 (eval $ac_link) 2>conftest.er1
4409 ac_status=$?
4410 grep -v '^ *+' conftest.er1 >conftest.err
4411 rm -f conftest.er1
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest$ac_exeext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_search_getaddrinfo="none required"
4429 else
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 fi
4434 rm -f conftest.err conftest.$ac_objext \
4435 conftest$ac_exeext conftest.$ac_ext
4436 if test "$ac_cv_search_getaddrinfo" = no; then
4437 for ac_lib in socket; do
4438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 #ifdef __cplusplus
4448 extern "C"
4449 #endif
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4452 char getaddrinfo ();
4453 int
4454 main ()
4455 {
4456 getaddrinfo ();
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 rm -f conftest.$ac_objext conftest$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try='test -s conftest$ac_exeext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_search_getaddrinfo="-l$ac_lib"
4484 break
4485 else
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 fi
4490 rm -f conftest.err conftest.$ac_objext \
4491 conftest$ac_exeext conftest.$ac_ext
4492 done
4493 fi
4494 LIBS=$ac_func_search_save_LIBS
4495 fi
4496 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4497 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4498 if test "$ac_cv_search_getaddrinfo" != no; then
4499 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4500 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4501 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4502 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505 if test "$cross_compiling" = yes; then
4506 td_cv_buggygetaddrinfo=yes
4507 else
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514
4515 #include <sys/types.h>
4516 #include <netdb.h>
4517 #include <string.h>
4518 #include <sys/socket.h>
4519 #include <netinet/in.h>
4520
4521 main()
4522 {
4523 int passive, gaierr, inet4 = 0, inet6 = 0;
4524 struct addrinfo hints, *ai, *aitop;
4525 char straddr[INET6_ADDRSTRLEN], strport[16];
4526
4527 for (passive = 0; passive <= 1; passive++) {
4528 memset(&hints, 0, sizeof(hints));
4529 hints.ai_family = AF_UNSPEC;
4530 hints.ai_flags = passive ? AI_PASSIVE : 0;
4531 hints.ai_socktype = SOCK_STREAM;
4532 hints.ai_protocol = IPPROTO_TCP;
4533 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4534 (void)gai_strerror(gaierr);
4535 goto bad;
4536 }
4537 for (ai = aitop; ai; ai = ai->ai_next) {
4538 if (ai->ai_addr == NULL ||
4539 ai->ai_addrlen == 0 ||
4540 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4541 straddr, sizeof(straddr), strport, sizeof(strport),
4542 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4543 goto bad;
4544 }
4545 switch (ai->ai_family) {
4546 case AF_INET:
4547 if (strcmp(strport, "54321") != 0) {
4548 goto bad;
4549 }
4550 if (passive) {
4551 if (strcmp(straddr, "0.0.0.0") != 0) {
4552 goto bad;
4553 }
4554 } else {
4555 if (strcmp(straddr, "127.0.0.1") != 0) {
4556 goto bad;
4557 }
4558 }
4559 inet4++;
4560 break;
4561 case AF_INET6:
4562 if (strcmp(strport, "54321") != 0) {
4563 goto bad;
4564 }
4565 if (passive) {
4566 if (strcmp(straddr, "::") != 0) {
4567 goto bad;
4568 }
4569 } else {
4570 if (strcmp(straddr, "::1") != 0) {
4571 goto bad;
4572 }
4573 }
4574 inet6++;
4575 break;
4576 case AF_UNSPEC:
4577 goto bad;
4578 break;
4579 #ifdef AF_UNIX
4580 case AF_UNIX:
4581 #else
4582 #ifdef AF_LOCAL
4583 case AF_LOCAL:
4584 #endif
4585 #endif
4586 default:
4587 /* another family support? */
4588 break;
4589 }
4590 }
4591 }
4592
4593 /* supported family should be 2, unsupported family should be 0 */
4594 if (!(inet4 == 0 || inet4 == 2))
4595 goto bad;
4596 if (!(inet6 == 0 || inet6 == 2))
4597 goto bad;
4598
4599 if (aitop)
4600 freeaddrinfo(aitop);
4601 exit(0);
4602
4603 bad:
4604 if (aitop)
4605 freeaddrinfo(aitop);
4606 exit(1);
4607 }
4608
4609 _ACEOF
4610 rm -f conftest$ac_exeext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612 (eval $ac_link) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 td_cv_buggygetaddrinfo=no
4622 else
4623 echo "$as_me: program exited with status $ac_status" >&5
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 ( exit $ac_status )
4628 td_cv_buggygetaddrinfo=yes
4629 fi
4630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4631 fi
4632 fi
4633
4634 if test "$td_cv_buggygetaddrinfo" = no; then
4635 echo "$as_me:$LINENO: result: good" >&5
4636 echo "${ECHO_T}good" >&6
4637 else
4638 echo "$as_me:$LINENO: result: buggy" >&5
4639 echo "${ECHO_T}buggy" >&6
4640 fi
4641
4642 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4643 #
4644 # XXX - it doesn't appear that "ipv6type" can ever be
4645 # set to "linux". Should this be testing for
4646 # "linux-glibc", or for that *or* "linux-libinet6"?
4647 # If the latter, note that "linux-libinet6" is also
4648 # the type given to some non-Linux OSes.
4649 #
4650 if test "$ipv6type" != "linux"; then
4651 echo 'Fatal: You must get working getaddrinfo() function.'
4652 echo ' or you can specify "--disable-ipv6"'.
4653 exit 1
4654 else
4655 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4656 echo ' Better upgrade your system library to newest version'
4657 echo ' of GNU C library (aka glibc).'
4658 fi
4659 fi
4660
4661 fi
4662
4663
4664
4665 for ac_func in getaddrinfo getnameinfo
4666 do
4667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4668 echo "$as_me:$LINENO: checking for $ac_func" >&5
4669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4670 if eval "test \"\${$as_ac_var+set}\" = set"; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673 cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h. */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4681 #define $ac_func innocuous_$ac_func
4682
4683 /* System header to define __stub macros and hopefully few prototypes,
4684 which can conflict with char $ac_func (); below.
4685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4686 <limits.h> exists even on freestanding compilers. */
4687
4688 #ifdef __STDC__
4689 # include <limits.h>
4690 #else
4691 # include <assert.h>
4692 #endif
4693
4694 #undef $ac_func
4695
4696 /* Override any gcc2 internal prototype to avoid an error. */
4697 #ifdef __cplusplus
4698 extern "C"
4699 {
4700 #endif
4701 /* We use char because int might match the return type of a gcc2
4702 builtin and then its argument prototype would still apply. */
4703 char $ac_func ();
4704 /* The GNU C library defines this for functions which it implements
4705 to always fail with ENOSYS. Some functions are actually named
4706 something starting with __ and the normal name is an alias. */
4707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4708 choke me
4709 #else
4710 char (*f) () = $ac_func;
4711 #endif
4712 #ifdef __cplusplus
4713 }
4714 #endif
4715
4716 int
4717 main ()
4718 {
4719 return f != $ac_func;
4720 ;
4721 return 0;
4722 }
4723 _ACEOF
4724 rm -f conftest.$ac_objext conftest$ac_exeext
4725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4726 (eval $ac_link) 2>conftest.er1
4727 ac_status=$?
4728 grep -v '^ *+' conftest.er1 >conftest.err
4729 rm -f conftest.er1
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } &&
4733 { ac_try='test -z "$ac_c_werror_flag"
4734 || test ! -s conftest.err'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 (eval $ac_try) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; } &&
4740 { ac_try='test -s conftest$ac_exeext'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 (eval $ac_try) 2>&5
4743 ac_status=$?
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 eval "$as_ac_var=yes"
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 eval "$as_ac_var=no"
4752 fi
4753 rm -f conftest.err conftest.$ac_objext \
4754 conftest$ac_exeext conftest.$ac_ext
4755 fi
4756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4758 if test `eval echo '${'$as_ac_var'}'` = yes; then
4759 cat >>confdefs.h <<_ACEOF
4760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4761 _ACEOF
4762
4763 else
4764 case $LIBOBJS in
4765 "$ac_func.$ac_objext" | \
4766 *" $ac_func.$ac_objext" | \
4767 "$ac_func.$ac_objext "* | \
4768 *" $ac_func.$ac_objext "* ) ;;
4769 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
4770 esac
4771
4772 fi
4773 done
4774
4775
4776 fi
4777
4778 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4779 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4780 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783 cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h. */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4789 #include <netdnet/dnetdb.h>
4790
4791 _ACEOF
4792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4793 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4794 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4795 else
4796 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4797 fi
4798 rm -f conftest*
4799
4800 fi
4801 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4802 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4803 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4804 cat >>confdefs.h <<\_ACEOF
4805 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4806 _ACEOF
4807
4808 fi
4809
4810 echo "$as_me:$LINENO: checking for char" >&5
4811 echo $ECHO_N "checking for char... $ECHO_C" >&6
4812 if test "${ac_cv_type_char+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 $ac_includes_default
4822 int
4823 main ()
4824 {
4825 if ((char *) 0)
4826 return 0;
4827 if (sizeof (char))
4828 return 0;
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -z "$ac_c_werror_flag"
4843 || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_type_char=yes
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 ac_cv_type_char=no
4861 fi
4862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4863 fi
4864 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4865 echo "${ECHO_T}$ac_cv_type_char" >&6
4866
4867 echo "$as_me:$LINENO: checking size of char" >&5
4868 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4869 if test "${ac_cv_sizeof_char+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872 if test "$ac_cv_type_char" = yes; then
4873 # The cast to unsigned long works around a bug in the HP C Compiler
4874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4876 # This bug is HP SR number 8606223364.
4877 if test "$cross_compiling" = yes; then
4878 # Depending upon the size, compute the lo and hi bounds.
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h. */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 $ac_includes_default
4886 int
4887 main ()
4888 {
4889 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4890 test_array [0] = 0
4891
4892 ;
4893 return 0;
4894 }
4895 _ACEOF
4896 rm -f conftest.$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try='test -z "$ac_c_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 ac_lo=0 ac_mid=0
4919 while :; do
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4926 $ac_includes_default
4927 int
4928 main ()
4929 {
4930 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4931 test_array [0] = 0
4932
4933 ;
4934 return 0;
4935 }
4936 _ACEOF
4937 rm -f conftest.$ac_objext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4939 (eval $ac_compile) 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } &&
4946 { ac_try='test -z "$ac_c_werror_flag"
4947 || test ! -s conftest.err'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 (eval $ac_try) 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; } &&
4953 { ac_try='test -s conftest.$ac_objext'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 (eval $ac_try) 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; }; then
4959 ac_hi=$ac_mid; break
4960 else
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 ac_lo=`expr $ac_mid + 1`
4965 if test $ac_lo -le $ac_mid; then
4966 ac_lo= ac_hi=
4967 break
4968 fi
4969 ac_mid=`expr 2 '*' $ac_mid + 1`
4970 fi
4971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4972 done
4973 else
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4976
4977 cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h. */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 $ac_includes_default
4984 int
4985 main ()
4986 {
4987 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4988 test_array [0] = 0
4989
4990 ;
4991 return 0;
4992 }
4993 _ACEOF
4994 rm -f conftest.$ac_objext
4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996 (eval $ac_compile) 2>conftest.er1
4997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
5003 { ac_try='test -z "$ac_c_werror_flag"
5004 || test ! -s conftest.err'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; } &&
5010 { ac_try='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_hi=-1 ac_mid=-1
5017 while :; do
5018 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 $ac_includes_default
5025 int
5026 main ()
5027 {
5028 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5029 test_array [0] = 0
5030
5031 ;
5032 return 0;
5033 }
5034 _ACEOF
5035 rm -f conftest.$ac_objext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>conftest.er1
5038 ac_status=$?
5039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try='test -z "$ac_c_werror_flag"
5045 || test ! -s conftest.err'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 (eval $ac_try) 2>&5
5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; } &&
5051 { ac_try='test -s conftest.$ac_objext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 (eval $ac_try) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 ac_lo=$ac_mid; break
5058 else
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5061
5062 ac_hi=`expr '(' $ac_mid ')' - 1`
5063 if test $ac_mid -le $ac_hi; then
5064 ac_lo= ac_hi=
5065 break
5066 fi
5067 ac_mid=`expr 2 '*' $ac_mid`
5068 fi
5069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070 done
5071 else
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5074
5075 ac_lo= ac_hi=
5076 fi
5077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5078 fi
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5080 # Binary search between lo and hi bounds.
5081 while test "x$ac_lo" != "x$ac_hi"; do
5082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5083 cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h. */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 $ac_includes_default
5090 int
5091 main ()
5092 {
5093 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5094 test_array [0] = 0
5095
5096 ;
5097 return 0;
5098 }
5099 _ACEOF
5100 rm -f conftest.$ac_objext
5101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5102 (eval $ac_compile) 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } &&
5109 { ac_try='test -z "$ac_c_werror_flag"
5110 || test ! -s conftest.err'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; } &&
5116 { ac_try='test -s conftest.$ac_objext'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 (eval $ac_try) 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; }; then
5122 ac_hi=$ac_mid
5123 else
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5126
5127 ac_lo=`expr '(' $ac_mid ')' + 1`
5128 fi
5129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5130 done
5131 case $ac_lo in
5132 ?*) ac_cv_sizeof_char=$ac_lo;;
5133 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5134 See \`config.log' for more details." >&5
5135 echo "$as_me: error: cannot compute sizeof (char), 77
5136 See \`config.log' for more details." >&2;}
5137 { (exit 1); exit 1; }; } ;;
5138 esac
5139 else
5140 if test "$cross_compiling" = yes; then
5141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: cannot run test program while cross compiling
5144 See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5146 else
5147 cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h. */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 $ac_includes_default
5154 long longval () { return (long) (sizeof (char)); }
5155 unsigned long ulongval () { return (long) (sizeof (char)); }
5156 #include <stdio.h>
5157 #include <stdlib.h>
5158 int
5159 main ()
5160 {
5161
5162 FILE *f = fopen ("conftest.val", "w");
5163 if (! f)
5164 exit (1);
5165 if (((long) (sizeof (char))) < 0)
5166 {
5167 long i = longval ();
5168 if (i != ((long) (sizeof (char))))
5169 exit (1);
5170 fprintf (f, "%ld\n", i);
5171 }
5172 else
5173 {
5174 unsigned long i = ulongval ();
5175 if (i != ((long) (sizeof (char))))
5176 exit (1);
5177 fprintf (f, "%lu\n", i);
5178 }
5179 exit (ferror (f) || fclose (f) != 0);
5180
5181 ;
5182 return 0;
5183 }
5184 _ACEOF
5185 rm -f conftest$ac_exeext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5187 (eval $ac_link) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_sizeof_char=`cat conftest.val`
5197 else
5198 echo "$as_me: program exited with status $ac_status" >&5
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5201
5202 ( exit $ac_status )
5203 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5204 See \`config.log' for more details." >&5
5205 echo "$as_me: error: cannot compute sizeof (char), 77
5206 See \`config.log' for more details." >&2;}
5207 { (exit 1); exit 1; }; }
5208 fi
5209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5210 fi
5211 fi
5212 rm -f conftest.val
5213 else
5214 ac_cv_sizeof_char=0
5215 fi
5216 fi
5217 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5218 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5219 cat >>confdefs.h <<_ACEOF
5220 #define SIZEOF_CHAR $ac_cv_sizeof_char
5221 _ACEOF
5222
5223
5224 echo "$as_me:$LINENO: checking for short" >&5
5225 echo $ECHO_N "checking for short... $ECHO_C" >&6
5226 if test "${ac_cv_type_short+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 $ac_includes_default
5236 int
5237 main ()
5238 {
5239 if ((short *) 0)
5240 return 0;
5241 if (sizeof (short))
5242 return 0;
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 rm -f conftest.$ac_objext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249 (eval $ac_compile) 2>conftest.er1
5250 ac_status=$?
5251 grep -v '^ *+' conftest.er1 >conftest.err
5252 rm -f conftest.er1
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try='test -z "$ac_c_werror_flag"
5257 || test ! -s conftest.err'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 (eval $ac_try) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; } &&
5263 { ac_try='test -s conftest.$ac_objext'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 (eval $ac_try) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; }; then
5269 ac_cv_type_short=yes
5270 else
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274 ac_cv_type_short=no
5275 fi
5276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5277 fi
5278 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5279 echo "${ECHO_T}$ac_cv_type_short" >&6
5280
5281 echo "$as_me:$LINENO: checking size of short" >&5
5282 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5283 if test "${ac_cv_sizeof_short+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 if test "$ac_cv_type_short" = yes; then
5287 # The cast to unsigned long works around a bug in the HP C Compiler
5288 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5289 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5290 # This bug is HP SR number 8606223364.
5291 if test "$cross_compiling" = yes; then
5292 # Depending upon the size, compute the lo and hi bounds.
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 $ac_includes_default
5300 int
5301 main ()
5302 {
5303 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5304 test_array [0] = 0
5305
5306 ;
5307 return 0;
5308 }
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5312 (eval $ac_compile) 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -z "$ac_c_werror_flag"
5320 || test ! -s conftest.err'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; } &&
5326 { ac_try='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_lo=0 ac_mid=0
5333 while :; do
5334 cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h. */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 $ac_includes_default
5341 int
5342 main ()
5343 {
5344 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5345 test_array [0] = 0
5346
5347 ;
5348 return 0;
5349 }
5350 _ACEOF
5351 rm -f conftest.$ac_objext
5352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5353 (eval $ac_compile) 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try='test -z "$ac_c_werror_flag"
5361 || test ! -s conftest.err'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; } &&
5367 { ac_try='test -s conftest.$ac_objext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 (eval $ac_try) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_hi=$ac_mid; break
5374 else
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 ac_lo=`expr $ac_mid + 1`
5379 if test $ac_lo -le $ac_mid; then
5380 ac_lo= ac_hi=
5381 break
5382 fi
5383 ac_mid=`expr 2 '*' $ac_mid + 1`
5384 fi
5385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386 done
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h. */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 $ac_includes_default
5398 int
5399 main ()
5400 {
5401 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5402 test_array [0] = 0
5403
5404 ;
5405 return 0;
5406 }
5407 _ACEOF
5408 rm -f conftest.$ac_objext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5410 (eval $ac_compile) 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -z "$ac_c_werror_flag"
5418 || test ! -s conftest.err'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; } &&
5424 { ac_try='test -s conftest.$ac_objext'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 (eval $ac_try) 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5430 ac_hi=-1 ac_mid=-1
5431 while :; do
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5439 int
5440 main ()
5441 {
5442 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5443 test_array [0] = 0
5444
5445 ;
5446 return 0;
5447 }
5448 _ACEOF
5449 rm -f conftest.$ac_objext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451 (eval $ac_compile) 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -z "$ac_c_werror_flag"
5459 || test ! -s conftest.err'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 (eval $ac_try) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; } &&
5465 { ac_try='test -s conftest.$ac_objext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_lo=$ac_mid; break
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476 ac_hi=`expr '(' $ac_mid ')' - 1`
5477 if test $ac_mid -le $ac_hi; then
5478 ac_lo= ac_hi=
5479 break
5480 fi
5481 ac_mid=`expr 2 '*' $ac_mid`
5482 fi
5483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5484 done
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 ac_lo= ac_hi=
5490 fi
5491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5492 fi
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5494 # Binary search between lo and hi bounds.
5495 while test "x$ac_lo" != "x$ac_hi"; do
5496 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5504 int
5505 main ()
5506 {
5507 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5508 test_array [0] = 0
5509
5510 ;
5511 return 0;
5512 }
5513 _ACEOF
5514 rm -f conftest.$ac_objext
5515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5516 (eval $ac_compile) 2>conftest.er1
5517 ac_status=$?
5518 grep -v '^ *+' conftest.er1 >conftest.err
5519 rm -f conftest.er1
5520 cat conftest.err >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } &&
5523 { ac_try='test -z "$ac_c_werror_flag"
5524 || test ! -s conftest.err'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 (eval $ac_try) 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; } &&
5530 { ac_try='test -s conftest.$ac_objext'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_hi=$ac_mid
5537 else
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541 ac_lo=`expr '(' $ac_mid ')' + 1`
5542 fi
5543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5544 done
5545 case $ac_lo in
5546 ?*) ac_cv_sizeof_short=$ac_lo;;
5547 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5548 See \`config.log' for more details." >&5
5549 echo "$as_me: error: cannot compute sizeof (short), 77
5550 See \`config.log' for more details." >&2;}
5551 { (exit 1); exit 1; }; } ;;
5552 esac
5553 else
5554 if test "$cross_compiling" = yes; then
5555 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5556 See \`config.log' for more details." >&5
5557 echo "$as_me: error: cannot run test program while cross compiling
5558 See \`config.log' for more details." >&2;}
5559 { (exit 1); exit 1; }; }
5560 else
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 $ac_includes_default
5568 long longval () { return (long) (sizeof (short)); }
5569 unsigned long ulongval () { return (long) (sizeof (short)); }
5570 #include <stdio.h>
5571 #include <stdlib.h>
5572 int
5573 main ()
5574 {
5575
5576 FILE *f = fopen ("conftest.val", "w");
5577 if (! f)
5578 exit (1);
5579 if (((long) (sizeof (short))) < 0)
5580 {
5581 long i = longval ();
5582 if (i != ((long) (sizeof (short))))
5583 exit (1);
5584 fprintf (f, "%ld\n", i);
5585 }
5586 else
5587 {
5588 unsigned long i = ulongval ();
5589 if (i != ((long) (sizeof (short))))
5590 exit (1);
5591 fprintf (f, "%lu\n", i);
5592 }
5593 exit (ferror (f) || fclose (f) != 0);
5594
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest$ac_exeext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601 (eval $ac_link) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 ac_cv_sizeof_short=`cat conftest.val`
5611 else
5612 echo "$as_me: program exited with status $ac_status" >&5
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5615
5616 ( exit $ac_status )
5617 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5618 See \`config.log' for more details." >&5
5619 echo "$as_me: error: cannot compute sizeof (short), 77
5620 See \`config.log' for more details." >&2;}
5621 { (exit 1); exit 1; }; }
5622 fi
5623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5624 fi
5625 fi
5626 rm -f conftest.val
5627 else
5628 ac_cv_sizeof_short=0
5629 fi
5630 fi
5631 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5632 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5633 cat >>confdefs.h <<_ACEOF
5634 #define SIZEOF_SHORT $ac_cv_sizeof_short
5635 _ACEOF
5636
5637
5638 echo "$as_me:$LINENO: checking for int" >&5
5639 echo $ECHO_N "checking for int... $ECHO_C" >&6
5640 if test "${ac_cv_type_int+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 $ac_includes_default
5650 int
5651 main ()
5652 {
5653 if ((int *) 0)
5654 return 0;
5655 if (sizeof (int))
5656 return 0;
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -z "$ac_c_werror_flag"
5671 || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_cv_type_int=yes
5684 else
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688 ac_cv_type_int=no
5689 fi
5690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5691 fi
5692 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5693 echo "${ECHO_T}$ac_cv_type_int" >&6
5694
5695 echo "$as_me:$LINENO: checking size of int" >&5
5696 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5697 if test "${ac_cv_sizeof_int+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 if test "$ac_cv_type_int" = yes; then
5701 # The cast to unsigned long works around a bug in the HP C Compiler
5702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5704 # This bug is HP SR number 8606223364.
5705 if test "$cross_compiling" = yes; then
5706 # Depending upon the size, compute the lo and hi bounds.
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 $ac_includes_default
5714 int
5715 main ()
5716 {
5717 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5718 test_array [0] = 0
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try='test -z "$ac_c_werror_flag"
5734 || test ! -s conftest.err'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_lo=0 ac_mid=0
5747 while :; do
5748 cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h. */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 $ac_includes_default
5755 int
5756 main ()
5757 {
5758 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5759 test_array [0] = 0
5760
5761 ;
5762 return 0;
5763 }
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try='test -z "$ac_c_werror_flag"
5775 || test ! -s conftest.err'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest.$ac_objext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5787 ac_hi=$ac_mid; break
5788 else
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5791
5792 ac_lo=`expr $ac_mid + 1`
5793 if test $ac_lo -le $ac_mid; then
5794 ac_lo= ac_hi=
5795 break
5796 fi
5797 ac_mid=`expr 2 '*' $ac_mid + 1`
5798 fi
5799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5800 done
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 $ac_includes_default
5812 int
5813 main ()
5814 {
5815 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5816 test_array [0] = 0
5817
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try='test -z "$ac_c_werror_flag"
5832 || test ! -s conftest.err'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_hi=-1 ac_mid=-1
5845 while :; do
5846 cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 $ac_includes_default
5853 int
5854 main ()
5855 {
5856 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5857 test_array [0] = 0
5858
5859 ;
5860 return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try='test -s conftest.$ac_objext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_lo=$ac_mid; break
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890 ac_hi=`expr '(' $ac_mid ')' - 1`
5891 if test $ac_mid -le $ac_hi; then
5892 ac_lo= ac_hi=
5893 break
5894 fi
5895 ac_mid=`expr 2 '*' $ac_mid`
5896 fi
5897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 done
5899 else
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 ac_lo= ac_hi=
5904 fi
5905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906 fi
5907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5908 # Binary search between lo and hi bounds.
5909 while test "x$ac_lo" != "x$ac_hi"; do
5910 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 $ac_includes_default
5918 int
5919 main ()
5920 {
5921 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5922 test_array [0] = 0
5923
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_hi=$ac_mid
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 ac_lo=`expr '(' $ac_mid ')' + 1`
5956 fi
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 done
5959 case $ac_lo in
5960 ?*) ac_cv_sizeof_int=$ac_lo;;
5961 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5962 See \`config.log' for more details." >&5
5963 echo "$as_me: error: cannot compute sizeof (int), 77
5964 See \`config.log' for more details." >&2;}
5965 { (exit 1); exit 1; }; } ;;
5966 esac
5967 else
5968 if test "$cross_compiling" = yes; then
5969 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5970 See \`config.log' for more details." >&5
5971 echo "$as_me: error: cannot run test program while cross compiling
5972 See \`config.log' for more details." >&2;}
5973 { (exit 1); exit 1; }; }
5974 else
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 $ac_includes_default
5982 long longval () { return (long) (sizeof (int)); }
5983 unsigned long ulongval () { return (long) (sizeof (int)); }
5984 #include <stdio.h>
5985 #include <stdlib.h>
5986 int
5987 main ()
5988 {
5989
5990 FILE *f = fopen ("conftest.val", "w");
5991 if (! f)
5992 exit (1);
5993 if (((long) (sizeof (int))) < 0)
5994 {
5995 long i = longval ();
5996 if (i != ((long) (sizeof (int))))
5997 exit (1);
5998 fprintf (f, "%ld\n", i);
5999 }
6000 else
6001 {
6002 unsigned long i = ulongval ();
6003 if (i != ((long) (sizeof (int))))
6004 exit (1);
6005 fprintf (f, "%lu\n", i);
6006 }
6007 exit (ferror (f) || fclose (f) != 0);
6008
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest$ac_exeext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 (eval $ac_try) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_sizeof_int=`cat conftest.val`
6025 else
6026 echo "$as_me: program exited with status $ac_status" >&5
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 ( exit $ac_status )
6031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6032 See \`config.log' for more details." >&5
6033 echo "$as_me: error: cannot compute sizeof (int), 77
6034 See \`config.log' for more details." >&2;}
6035 { (exit 1); exit 1; }; }
6036 fi
6037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6038 fi
6039 fi
6040 rm -f conftest.val
6041 else
6042 ac_cv_sizeof_int=0
6043 fi
6044 fi
6045 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6046 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6047 cat >>confdefs.h <<_ACEOF
6048 #define SIZEOF_INT $ac_cv_sizeof_int
6049 _ACEOF
6050
6051
6052 echo "$as_me:$LINENO: checking for long" >&5
6053 echo $ECHO_N "checking for long... $ECHO_C" >&6
6054 if test "${ac_cv_type_long+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6064 int
6065 main ()
6066 {
6067 if ((long *) 0)
6068 return 0;
6069 if (sizeof (long))
6070 return 0;
6071 ;
6072 return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag"
6085 || test ! -s conftest.err'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
6091 { ac_try='test -s conftest.$ac_objext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 (eval $ac_try) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_type_long=yes
6098 else
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_cv_type_long=no
6103 fi
6104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6105 fi
6106 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6107 echo "${ECHO_T}$ac_cv_type_long" >&6
6108
6109 echo "$as_me:$LINENO: checking size of long" >&5
6110 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6111 if test "${ac_cv_sizeof_long+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114 if test "$ac_cv_type_long" = yes; then
6115 # The cast to unsigned long works around a bug in the HP C Compiler
6116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6118 # This bug is HP SR number 8606223364.
6119 if test "$cross_compiling" = yes; then
6120 # Depending upon the size, compute the lo and hi bounds.
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 $ac_includes_default
6128 int
6129 main ()
6130 {
6131 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6132 test_array [0] = 0
6133
6134 ;
6135 return 0;
6136 }
6137 _ACEOF
6138 rm -f conftest.$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -z "$ac_c_werror_flag"
6148 || test ! -s conftest.err'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 ac_lo=0 ac_mid=0
6161 while :; do
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169 int
6170 main ()
6171 {
6172 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6173 test_array [0] = 0
6174
6175 ;
6176 return 0;
6177 }
6178 _ACEOF
6179 rm -f conftest.$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_hi=$ac_mid; break
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 ac_lo=`expr $ac_mid + 1`
6207 if test $ac_lo -le $ac_mid; then
6208 ac_lo= ac_hi=
6209 break
6210 fi
6211 ac_mid=`expr 2 '*' $ac_mid + 1`
6212 fi
6213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6214 done
6215 else
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 $ac_includes_default
6226 int
6227 main ()
6228 {
6229 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6230 test_array [0] = 0
6231
6232 ;
6233 return 0;
6234 }
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238 (eval $ac_compile) 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -z "$ac_c_werror_flag"
6246 || test ! -s conftest.err'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; } &&
6252 { ac_try='test -s conftest.$ac_objext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 ac_hi=-1 ac_mid=-1
6259 while :; do
6260 cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h. */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 $ac_includes_default
6267 int
6268 main ()
6269 {
6270 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6271 test_array [0] = 0
6272
6273 ;
6274 return 0;
6275 }
6276 _ACEOF
6277 rm -f conftest.$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 (eval $ac_try) 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_lo=$ac_mid; break
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 ac_hi=`expr '(' $ac_mid ')' - 1`
6305 if test $ac_mid -le $ac_hi; then
6306 ac_lo= ac_hi=
6307 break
6308 fi
6309 ac_mid=`expr 2 '*' $ac_mid`
6310 fi
6311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6312 done
6313 else
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317 ac_lo= ac_hi=
6318 fi
6319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6320 fi
6321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6322 # Binary search between lo and hi bounds.
6323 while test "x$ac_lo" != "x$ac_hi"; do
6324 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h. */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6332 int
6333 main ()
6334 {
6335 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6336 test_array [0] = 0
6337
6338 ;
6339 return 0;
6340 }
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_hi=$ac_mid
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369 ac_lo=`expr '(' $ac_mid ')' + 1`
6370 fi
6371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6372 done
6373 case $ac_lo in
6374 ?*) ac_cv_sizeof_long=$ac_lo;;
6375 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6376 See \`config.log' for more details." >&5
6377 echo "$as_me: error: cannot compute sizeof (long), 77
6378 See \`config.log' for more details." >&2;}
6379 { (exit 1); exit 1; }; } ;;
6380 esac
6381 else
6382 if test "$cross_compiling" = yes; then
6383 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6384 See \`config.log' for more details." >&5
6385 echo "$as_me: error: cannot run test program while cross compiling
6386 See \`config.log' for more details." >&2;}
6387 { (exit 1); exit 1; }; }
6388 else
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h. */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 $ac_includes_default
6396 long longval () { return (long) (sizeof (long)); }
6397 unsigned long ulongval () { return (long) (sizeof (long)); }
6398 #include <stdio.h>
6399 #include <stdlib.h>
6400 int
6401 main ()
6402 {
6403
6404 FILE *f = fopen ("conftest.val", "w");
6405 if (! f)
6406 exit (1);
6407 if (((long) (sizeof (long))) < 0)
6408 {
6409 long i = longval ();
6410 if (i != ((long) (sizeof (long))))
6411 exit (1);
6412 fprintf (f, "%ld\n", i);
6413 }
6414 else
6415 {
6416 unsigned long i = ulongval ();
6417 if (i != ((long) (sizeof (long))))
6418 exit (1);
6419 fprintf (f, "%lu\n", i);
6420 }
6421 exit (ferror (f) || fclose (f) != 0);
6422
6423 ;
6424 return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_sizeof_long=`cat conftest.val`
6439 else
6440 echo "$as_me: program exited with status $ac_status" >&5
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 ( exit $ac_status )
6445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6446 See \`config.log' for more details." >&5
6447 echo "$as_me: error: cannot compute sizeof (long), 77
6448 See \`config.log' for more details." >&2;}
6449 { (exit 1); exit 1; }; }
6450 fi
6451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6452 fi
6453 fi
6454 rm -f conftest.val
6455 else
6456 ac_cv_sizeof_long=0
6457 fi
6458 fi
6459 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6460 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6461 cat >>confdefs.h <<_ACEOF
6462 #define SIZEOF_LONG $ac_cv_sizeof_long
6463 _ACEOF
6464
6465
6466 echo "$as_me:$LINENO: checking for long long" >&5
6467 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6468 if test "${ac_cv_type_long_long+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 $ac_includes_default
6478 int
6479 main ()
6480 {
6481 if ((long long *) 0)
6482 return 0;
6483 if (sizeof (long long))
6484 return 0;
6485 ;
6486 return 0;
6487 }
6488 _ACEOF
6489 rm -f conftest.$ac_objext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491 (eval $ac_compile) 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -z "$ac_c_werror_flag"
6499 || test ! -s conftest.err'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest.$ac_objext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_cv_type_long_long=yes
6512 else
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 ac_cv_type_long_long=no
6517 fi
6518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6519 fi
6520 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6521 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6522
6523 echo "$as_me:$LINENO: checking size of long long" >&5
6524 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6525 if test "${ac_cv_sizeof_long_long+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528 if test "$ac_cv_type_long_long" = yes; then
6529 # The cast to unsigned long works around a bug in the HP C Compiler
6530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6532 # This bug is HP SR number 8606223364.
6533 if test "$cross_compiling" = yes; then
6534 # Depending upon the size, compute the lo and hi bounds.
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6542 int
6543 main ()
6544 {
6545 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6546 test_array [0] = 0
6547
6548 ;
6549 return 0;
6550 }
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -z "$ac_c_werror_flag"
6562 || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 (eval $ac_try) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try='test -s conftest.$ac_objext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_lo=0 ac_mid=0
6575 while :; do
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h. */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 $ac_includes_default
6583 int
6584 main ()
6585 {
6586 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6587 test_array [0] = 0
6588
6589 ;
6590 return 0;
6591 }
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>conftest.er1
6596 ac_status=$?
6597 grep -v '^ *+' conftest.er1 >conftest.err
6598 rm -f conftest.er1
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest.$ac_objext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_hi=$ac_mid; break
6616 else
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620 ac_lo=`expr $ac_mid + 1`
6621 if test $ac_lo -le $ac_mid; then
6622 ac_lo= ac_hi=
6623 break
6624 fi
6625 ac_mid=`expr 2 '*' $ac_mid + 1`
6626 fi
6627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6628 done
6629 else
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6640 int
6641 main ()
6642 {
6643 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6644 test_array [0] = 0
6645
6646 ;
6647 return 0;
6648 }
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>conftest.er1
6653 ac_status=$?
6654 grep -v '^ *+' conftest.er1 >conftest.err
6655 rm -f conftest.er1
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 (eval $ac_try) 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_hi=-1 ac_mid=-1
6673 while :; do
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 $ac_includes_default
6681 int
6682 main ()
6683 {
6684 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6685 test_array [0] = 0
6686
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_lo=$ac_mid; break
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 ac_hi=`expr '(' $ac_mid ')' - 1`
6719 if test $ac_mid -le $ac_hi; then
6720 ac_lo= ac_hi=
6721 break
6722 fi
6723 ac_mid=`expr 2 '*' $ac_mid`
6724 fi
6725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726 done
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 ac_lo= ac_hi=
6732 fi
6733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6734 fi
6735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6736 # Binary search between lo and hi bounds.
6737 while test "x$ac_lo" != "x$ac_hi"; do
6738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6739 cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h. */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 $ac_includes_default
6746 int
6747 main ()
6748 {
6749 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6750 test_array [0] = 0
6751
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_hi=$ac_mid
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783 ac_lo=`expr '(' $ac_mid ')' + 1`
6784 fi
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786 done
6787 case $ac_lo in
6788 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6789 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6790 See \`config.log' for more details." >&5
6791 echo "$as_me: error: cannot compute sizeof (long long), 77
6792 See \`config.log' for more details." >&2;}
6793 { (exit 1); exit 1; }; } ;;
6794 esac
6795 else
6796 if test "$cross_compiling" = yes; then
6797 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6798 See \`config.log' for more details." >&5
6799 echo "$as_me: error: cannot run test program while cross compiling
6800 See \`config.log' for more details." >&2;}
6801 { (exit 1); exit 1; }; }
6802 else
6803 cat >conftest.$ac_ext <<_ACEOF
6804 /* confdefs.h. */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 $ac_includes_default
6810 long longval () { return (long) (sizeof (long long)); }
6811 unsigned long ulongval () { return (long) (sizeof (long long)); }
6812 #include <stdio.h>
6813 #include <stdlib.h>
6814 int
6815 main ()
6816 {
6817
6818 FILE *f = fopen ("conftest.val", "w");
6819 if (! f)
6820 exit (1);
6821 if (((long) (sizeof (long long))) < 0)
6822 {
6823 long i = longval ();
6824 if (i != ((long) (sizeof (long long))))
6825 exit (1);
6826 fprintf (f, "%ld\n", i);
6827 }
6828 else
6829 {
6830 unsigned long i = ulongval ();
6831 if (i != ((long) (sizeof (long long))))
6832 exit (1);
6833 fprintf (f, "%lu\n", i);
6834 }
6835 exit (ferror (f) || fclose (f) != 0);
6836
6837 ;
6838 return 0;
6839 }
6840 _ACEOF
6841 rm -f conftest$ac_exeext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6843 (eval $ac_link) 2>&5
6844 ac_status=$?
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 (eval $ac_try) 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_cv_sizeof_long_long=`cat conftest.val`
6853 else
6854 echo "$as_me: program exited with status $ac_status" >&5
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6857
6858 ( exit $ac_status )
6859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6860 See \`config.log' for more details." >&5
6861 echo "$as_me: error: cannot compute sizeof (long long), 77
6862 See \`config.log' for more details." >&2;}
6863 { (exit 1); exit 1; }; }
6864 fi
6865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6866 fi
6867 fi
6868 rm -f conftest.val
6869 else
6870 ac_cv_sizeof_long_long=0
6871 fi
6872 fi
6873 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6874 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6875 cat >>confdefs.h <<_ACEOF
6876 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6877 _ACEOF
6878
6879
6880
6881
6882
6883 echo "$as_me:$LINENO: checking for addrinfo" >&5
6884 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6885 if test "${ac_cv_addrinfo+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888 cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h. */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894
6895 # include <netdb.h>
6896 int
6897 main ()
6898 {
6899 struct addrinfo a
6900 ;
6901 return 0;
6902 }
6903 _ACEOF
6904 rm -f conftest.$ac_objext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906 (eval $ac_compile) 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -z "$ac_c_werror_flag"
6914 || test ! -s conftest.err'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; } &&
6920 { ac_try='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 ac_cv_addrinfo=yes
6927 else
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6930
6931 ac_cv_addrinfo=no
6932 fi
6933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6934 fi
6935
6936 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6937 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6938 if test $ac_cv_addrinfo = yes; then
6939 cat >>confdefs.h <<\_ACEOF
6940 #define HAVE_ADDRINFO 1
6941 _ACEOF
6942
6943 else
6944 cat >>confdefs.h <<\_ACEOF
6945 #define NEED_ADDRINFO_H 1
6946 _ACEOF
6947
6948 fi
6949
6950 if test "$ac_cv_addrinfo" = no; then
6951 missing_includes=yes
6952 fi
6953
6954
6955 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6956 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6957 if test "${ac_cv_maxserv+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 #include <netdb.h>
6967 #ifdef NI_MAXSERV
6968 yes
6969 #endif
6970 _ACEOF
6971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6972 $EGREP "yes" >/dev/null 2>&1; then
6973 ac_cv_maxserv=yes
6974 else
6975 ac_cv_maxserv=no
6976 fi
6977 rm -f conftest*
6978
6979 fi
6980
6981 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6982 echo "${ECHO_T}$ac_cv_maxserv" >&6
6983 if test $ac_cv_maxserv != yes; then
6984 cat >>confdefs.h <<\_ACEOF
6985 #define NEED_ADDRINFO_H 1
6986 _ACEOF
6987
6988 fi
6989
6990 if test "$ac_cv_maxserv" = no; then
6991 missing_includes=yes
6992 fi
6993
6994
6995 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6996 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6997 if test "${ac_cv_namereqd+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 #include <netdb.h>
7007 #ifdef NI_NOFQDN
7008 yes
7009 #endif
7010 _ACEOF
7011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7012 $EGREP "yes" >/dev/null 2>&1; then
7013 ac_cv_namereqd=yes
7014 else
7015 ac_cv_namereqd=no
7016 fi
7017 rm -f conftest*
7018
7019 fi
7020
7021 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7022 echo "${ECHO_T}$ac_cv_namereqd" >&6
7023 if test $ac_cv_namereqd != yes; then
7024 cat >>confdefs.h <<\_ACEOF
7025 #define NEED_ADDRINFO_H 1
7026 _ACEOF
7027
7028 fi
7029
7030 if test "$ac_cv_namereqd" = no; then
7031 missing_includes=yes
7032 fi
7033
7034
7035 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7036 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
7037 if test "${ac_cv_sa_storage+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h. */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046
7047 # include <sys/types.h>
7048 # include <sys/socket.h>
7049 int
7050 main ()
7051 {
7052 struct sockaddr_storage s
7053 ;
7054 return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059 (eval $ac_compile) 2>conftest.er1
7060 ac_status=$?
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try='test -z "$ac_c_werror_flag"
7067 || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_cv_sa_storage=yes
7080 else
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084 ac_cv_sa_storage=no
7085 fi
7086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7087 fi
7088
7089 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7090 echo "${ECHO_T}$ac_cv_sa_storage" >&6
7091 if test $ac_cv_sa_storage = yes; then
7092 cat >>confdefs.h <<\_ACEOF
7093 #define HAVE_SOCKADDR_STORAGE 1
7094 _ACEOF
7095
7096 fi
7097
7098 if test "$ac_cv_sa_storage" = no; then
7099 missing_includes=yes
7100 fi
7101
7102
7103 ac_cv_addrsz=yes
7104 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7105 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
7106 if test "${ac_cv_inaddrsz+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115
7116 # include <arpa/nameser.h>
7117 int
7118 main ()
7119 {
7120 int a = INADDRSZ
7121 ;
7122 return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127 (eval $ac_compile) 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_c_werror_flag"
7135 || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try='test -s conftest.$ac_objext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 (eval $ac_try) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7147 ac_cv_inaddrsz=yes
7148 else
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152 ac_cv_inaddrsz=no
7153 fi
7154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7155 fi
7156
7157 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7158 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
7159 if test $ac_cv_inaddrsz = yes; then
7160 cat >>confdefs.h <<\_ACEOF
7161 #define HAVE_INADDRSZ 1
7162 _ACEOF
7163
7164 else
7165 ac_cv_addrsz=no
7166 fi
7167 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7168 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
7169 if test "${ac_cv_in6addrsz+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178
7179 # include <arpa/nameser.h>
7180 int
7181 main ()
7182 {
7183 int a = IN6ADDRSZ
7184 ;
7185 return 0;
7186 }
7187 _ACEOF
7188 rm -f conftest.$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 ac_cv_in6addrsz=yes
7211 else
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 ac_cv_in6addrsz=no
7216 fi
7217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7218 fi
7219
7220 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7221 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
7222 if test $ac_cv_in6addrsz = yes; then
7223 cat >>confdefs.h <<\_ACEOF
7224 #define HAVE_IN6ADDRSZ 1
7225 _ACEOF
7226
7227 else
7228 ac_cv_addrsz=no
7229 fi
7230
7231 if test "$ac_cv_addrsz" = no; then
7232 missing_includes=yes
7233 fi
7234
7235
7236 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7237 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
7238 if test "${ac_cv_res_inet6+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247
7248 # include <sys/types.h>
7249 # include <netinet/in.h>
7250 # include <resolv.h>
7251 int
7252 main ()
7253 {
7254 int a = RES_USE_INET6
7255 ;
7256 return 0;
7257 }
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -z "$ac_c_werror_flag"
7269 || test ! -s conftest.err'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 (eval $ac_try) 2>&5
7272 ac_status=$?
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; } &&
7275 { ac_try='test -s conftest.$ac_objext'
7276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 (eval $ac_try) 2>&5
7278 ac_status=$?
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }; }; then
7281 ac_cv_res_inet6=yes
7282 else
7283 echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7285
7286 ac_cv_res_inet6=no
7287 fi
7288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7289 fi
7290
7291 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7292 echo "${ECHO_T}$ac_cv_res_inet6" >&6
7293 if test $ac_cv_res_inet6 = yes; then
7294 cat >>confdefs.h <<\_ACEOF
7295 #define HAVE_RES_USE_INET6 1
7296 _ACEOF
7297
7298 fi
7299
7300 if test "$ac_cv_res_inet6" = no; then
7301 missing_includes=yes
7302 fi
7303
7304
7305 echo "$as_me:$LINENO: checking for res_state_ext" >&5
7306 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
7307 if test "${ac_cv_res_state_ext+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316
7317 # include <sys/types.h>
7318 # include <netinet/in.h>
7319 # include <netinet6/in6.h>
7320 # include <resolv.h>
7321 int
7322 main ()
7323 {
7324 struct __res_state_ext e
7325 ;
7326 return 0;
7327 }
7328 _ACEOF
7329 rm -f conftest.$ac_objext
7330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7331 (eval $ac_compile) 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try='test -z "$ac_c_werror_flag"
7339 || test ! -s conftest.err'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 (eval $ac_try) 2>&5
7342 ac_status=$?
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; } &&
7345 { ac_try='test -s conftest.$ac_objext'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 (eval $ac_try) 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_res_state_ext=yes
7352 else
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7355
7356 ac_cv_res_state_ext=no
7357 fi
7358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7359 fi
7360
7361 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7362 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
7363 if test $ac_cv_res_state_ext = yes; then
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_RES_STATE_EXT 1
7366 _ACEOF
7367
7368 fi
7369
7370 if test "$ac_cv_res_state_ext" = no; then
7371 missing_includes=yes
7372 fi
7373
7374
7375 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7376 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
7377 if test "${ac_cv_res_state+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386
7387 # include <sys/types.h>
7388 # include <netinet/in.h>
7389 # include <netinet6/in6.h>
7390 # include <resolv.h>
7391 int
7392 main ()
7393 {
7394 struct __res_state e; e.nsort = 0
7395 ;
7396 return 0;
7397 }
7398 _ACEOF
7399 rm -f conftest.$ac_objext
7400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7401 (eval $ac_compile) 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try='test -z "$ac_c_werror_flag"
7409 || test ! -s conftest.err'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; } &&
7415 { ac_try='test -s conftest.$ac_objext'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 (eval $ac_try) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; }; then
7421 ac_cv_res_state=yes
7422 else
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7425
7426 ac_cv_res_state=no
7427 fi
7428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7429 fi
7430
7431 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7432 echo "${ECHO_T}$ac_cv_res_state" >&6
7433 if test $ac_cv_res_state = yes; then
7434 cat >>confdefs.h <<\_ACEOF
7435 #define HAVE_NEW_RES_STATE 1
7436 _ACEOF
7437
7438 fi
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7449 do
7450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7451 echo "$as_me:$LINENO: checking for $ac_func" >&5
7452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7453 if eval "test \"\${$as_ac_var+set}\" = set"; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h. */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7464 #define $ac_func innocuous_$ac_func
7465
7466 /* System header to define __stub macros and hopefully few prototypes,
7467 which can conflict with char $ac_func (); below.
7468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7469 <limits.h> exists even on freestanding compilers. */
7470
7471 #ifdef __STDC__
7472 # include <limits.h>
7473 #else
7474 # include <assert.h>
7475 #endif
7476
7477 #undef $ac_func
7478
7479 /* Override any gcc2 internal prototype to avoid an error. */
7480 #ifdef __cplusplus
7481 extern "C"
7482 {
7483 #endif
7484 /* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7486 char $ac_func ();
7487 /* The GNU C library defines this for functions which it implements
7488 to always fail with ENOSYS. Some functions are actually named
7489 something starting with __ and the normal name is an alias. */
7490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7491 choke me
7492 #else
7493 char (*f) () = $ac_func;
7494 #endif
7495 #ifdef __cplusplus
7496 }
7497 #endif
7498
7499 int
7500 main ()
7501 {
7502 return f != $ac_func;
7503 ;
7504 return 0;
7505 }
7506 _ACEOF
7507 rm -f conftest.$ac_objext conftest$ac_exeext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7509 (eval $ac_link) 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try='test -z "$ac_c_werror_flag"
7517 || test ! -s conftest.err'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 eval "$as_ac_var=yes"
7530 else
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 eval "$as_ac_var=no"
7535 fi
7536 rm -f conftest.err conftest.$ac_objext \
7537 conftest$ac_exeext conftest.$ac_ext
7538 fi
7539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7541 if test `eval echo '${'$as_ac_var'}'` = yes; then
7542 cat >>confdefs.h <<_ACEOF
7543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7544 _ACEOF
7545
7546 else
7547 case $LIBOBJS in
7548 "$ac_func.$ac_objext" | \
7549 *" $ac_func.$ac_objext" | \
7550 "$ac_func.$ac_objext "* | \
7551 *" $ac_func.$ac_objext "* ) ;;
7552 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7553 esac
7554
7555 fi
7556 done
7557
7558
7559
7560 for ac_func in strftime
7561 do
7562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7563 echo "$as_me:$LINENO: checking for $ac_func" >&5
7564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7565 if eval "test \"\${$as_ac_var+set}\" = set"; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h. */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7576 #define $ac_func innocuous_$ac_func
7577
7578 /* System header to define __stub macros and hopefully few prototypes,
7579 which can conflict with char $ac_func (); below.
7580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7581 <limits.h> exists even on freestanding compilers. */
7582
7583 #ifdef __STDC__
7584 # include <limits.h>
7585 #else
7586 # include <assert.h>
7587 #endif
7588
7589 #undef $ac_func
7590
7591 /* Override any gcc2 internal prototype to avoid an error. */
7592 #ifdef __cplusplus
7593 extern "C"
7594 {
7595 #endif
7596 /* We use char because int might match the return type of a gcc2
7597 builtin and then its argument prototype would still apply. */
7598 char $ac_func ();
7599 /* The GNU C library defines this for functions which it implements
7600 to always fail with ENOSYS. Some functions are actually named
7601 something starting with __ and the normal name is an alias. */
7602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7603 choke me
7604 #else
7605 char (*f) () = $ac_func;
7606 #endif
7607 #ifdef __cplusplus
7608 }
7609 #endif
7610
7611 int
7612 main ()
7613 {
7614 return f != $ac_func;
7615 ;
7616 return 0;
7617 }
7618 _ACEOF
7619 rm -f conftest.$ac_objext conftest$ac_exeext
7620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7621 (eval $ac_link) 2>conftest.er1
7622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try='test -z "$ac_c_werror_flag"
7629 || test ! -s conftest.err'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 (eval $ac_try) 2>&5
7632 ac_status=$?
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; } &&
7635 { ac_try='test -s conftest$ac_exeext'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 (eval $ac_try) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7641 eval "$as_ac_var=yes"
7642 else
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7645
7646 eval "$as_ac_var=no"
7647 fi
7648 rm -f conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7650 fi
7651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7653 if test `eval echo '${'$as_ac_var'}'` = yes; then
7654 cat >>confdefs.h <<_ACEOF
7655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7656 _ACEOF
7657
7658 fi
7659 done
7660
7661
7662
7663 for ac_func in setlinebuf alarm
7664 do
7665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7666 echo "$as_me:$LINENO: checking for $ac_func" >&5
7667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7668 if eval "test \"\${$as_ac_var+set}\" = set"; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7679 #define $ac_func innocuous_$ac_func
7680
7681 /* System header to define __stub macros and hopefully few prototypes,
7682 which can conflict with char $ac_func (); below.
7683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7684 <limits.h> exists even on freestanding compilers. */
7685
7686 #ifdef __STDC__
7687 # include <limits.h>
7688 #else
7689 # include <assert.h>
7690 #endif
7691
7692 #undef $ac_func
7693
7694 /* Override any gcc2 internal prototype to avoid an error. */
7695 #ifdef __cplusplus
7696 extern "C"
7697 {
7698 #endif
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7701 char $ac_func ();
7702 /* The GNU C library defines this for functions which it implements
7703 to always fail with ENOSYS. Some functions are actually named
7704 something starting with __ and the normal name is an alias. */
7705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7706 choke me
7707 #else
7708 char (*f) () = $ac_func;
7709 #endif
7710 #ifdef __cplusplus
7711 }
7712 #endif
7713
7714 int
7715 main ()
7716 {
7717 return f != $ac_func;
7718 ;
7719 return 0;
7720 }
7721 _ACEOF
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724 (eval $ac_link) 2>conftest.er1
7725 ac_status=$?
7726 grep -v '^ *+' conftest.er1 >conftest.err
7727 rm -f conftest.er1
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try='test -z "$ac_c_werror_flag"
7732 || test ! -s conftest.err'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try='test -s conftest$ac_exeext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 (eval $ac_try) 2>&5
7741 ac_status=$?
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 eval "$as_ac_var=yes"
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7748
7749 eval "$as_ac_var=no"
7750 fi
7751 rm -f conftest.err conftest.$ac_objext \
7752 conftest$ac_exeext conftest.$ac_ext
7753 fi
7754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7756 if test `eval echo '${'$as_ac_var'}'` = yes; then
7757 cat >>confdefs.h <<_ACEOF
7758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7759 _ACEOF
7760
7761 fi
7762 done
7763
7764
7765 needsnprintf=no
7766
7767
7768 for ac_func in vsnprintf snprintf
7769 do
7770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7771 echo "$as_me:$LINENO: checking for $ac_func" >&5
7772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7773 if eval "test \"\${$as_ac_var+set}\" = set"; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776 cat >conftest.$ac_ext <<_ACEOF
7777 /* confdefs.h. */
7778 _ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7784 #define $ac_func innocuous_$ac_func
7785
7786 /* System header to define __stub macros and hopefully few prototypes,
7787 which can conflict with char $ac_func (); below.
7788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7789 <limits.h> exists even on freestanding compilers. */
7790
7791 #ifdef __STDC__
7792 # include <limits.h>
7793 #else
7794 # include <assert.h>
7795 #endif
7796
7797 #undef $ac_func
7798
7799 /* Override any gcc2 internal prototype to avoid an error. */
7800 #ifdef __cplusplus
7801 extern "C"
7802 {
7803 #endif
7804 /* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7806 char $ac_func ();
7807 /* The GNU C library defines this for functions which it implements
7808 to always fail with ENOSYS. Some functions are actually named
7809 something starting with __ and the normal name is an alias. */
7810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7811 choke me
7812 #else
7813 char (*f) () = $ac_func;
7814 #endif
7815 #ifdef __cplusplus
7816 }
7817 #endif
7818
7819 int
7820 main ()
7821 {
7822 return f != $ac_func;
7823 ;
7824 return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829 (eval $ac_link) 2>conftest.er1
7830 ac_status=$?
7831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest$ac_exeext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 eval "$as_ac_var=yes"
7850 else
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854 eval "$as_ac_var=no"
7855 fi
7856 rm -f conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 fi
7859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7861 if test `eval echo '${'$as_ac_var'}'` = yes; then
7862 cat >>confdefs.h <<_ACEOF
7863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7864 _ACEOF
7865
7866 else
7867 needsnprintf=yes
7868 fi
7869 done
7870
7871 if test $needsnprintf = yes; then
7872 case $LIBOBJS in
7873 "snprintf.$ac_objext" | \
7874 *" snprintf.$ac_objext" | \
7875 "snprintf.$ac_objext "* | \
7876 *" snprintf.$ac_objext "* ) ;;
7877 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
7878 esac
7879
7880 fi
7881
7882
7883 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7884 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7885 if test "${ac_cv_type_signal+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888 cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h. */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 #include <sys/types.h>
7895 #include <signal.h>
7896 #ifdef signal
7897 # undef signal
7898 #endif
7899 #ifdef __cplusplus
7900 extern "C" void (*signal (int, void (*)(int)))(int);
7901 #else
7902 void (*signal ()) ();
7903 #endif
7904
7905 int
7906 main ()
7907 {
7908 int i;
7909 ;
7910 return 0;
7911 }
7912 _ACEOF
7913 rm -f conftest.$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try='test -z "$ac_c_werror_flag"
7923 || test ! -s conftest.err'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; } &&
7929 { ac_try='test -s conftest.$ac_objext'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 (eval $ac_try) 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 ac_cv_type_signal=void
7936 else
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940 ac_cv_type_signal=int
7941 fi
7942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7943 fi
7944 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7945 echo "${ECHO_T}$ac_cv_type_signal" >&6
7946
7947 cat >>confdefs.h <<_ACEOF
7948 #define RETSIGTYPE $ac_cv_type_signal
7949 _ACEOF
7950
7951
7952 if test "$ac_cv_type_signal" = void ; then
7953 cat >>confdefs.h <<\_ACEOF
7954 #define RETSIGVAL
7955 _ACEOF
7956
7957 else
7958 cat >>confdefs.h <<\_ACEOF
7959 #define RETSIGVAL (0)
7960 _ACEOF
7961
7962 fi
7963 case "$host_os" in
7964
7965 irix*)
7966 cat >>confdefs.h <<\_ACEOF
7967 #define _BSD_SIGNALS 1
7968 _ACEOF
7969
7970 ;;
7971
7972 *)
7973
7974 for ac_func in sigaction
7975 do
7976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7977 echo "$as_me:$LINENO: checking for $ac_func" >&5
7978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7979 if eval "test \"\${$as_ac_var+set}\" = set"; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7990 #define $ac_func innocuous_$ac_func
7991
7992 /* System header to define __stub macros and hopefully few prototypes,
7993 which can conflict with char $ac_func (); below.
7994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7995 <limits.h> exists even on freestanding compilers. */
7996
7997 #ifdef __STDC__
7998 # include <limits.h>
7999 #else
8000 # include <assert.h>
8001 #endif
8002
8003 #undef $ac_func
8004
8005 /* Override any gcc2 internal prototype to avoid an error. */
8006 #ifdef __cplusplus
8007 extern "C"
8008 {
8009 #endif
8010 /* We use char because int might match the return type of a gcc2
8011 builtin and then its argument prototype would still apply. */
8012 char $ac_func ();
8013 /* The GNU C library defines this for functions which it implements
8014 to always fail with ENOSYS. Some functions are actually named
8015 something starting with __ and the normal name is an alias. */
8016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8017 choke me
8018 #else
8019 char (*f) () = $ac_func;
8020 #endif
8021 #ifdef __cplusplus
8022 }
8023 #endif
8024
8025 int
8026 main ()
8027 {
8028 return f != $ac_func;
8029 ;
8030 return 0;
8031 }
8032 _ACEOF
8033 rm -f conftest.$ac_objext conftest$ac_exeext
8034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8035 (eval $ac_link) 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -z "$ac_c_werror_flag"
8043 || test ! -s conftest.err'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 (eval $ac_try) 2>&5
8046 ac_status=$?
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; } &&
8049 { ac_try='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 eval "$as_ac_var=yes"
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 eval "$as_ac_var=no"
8061 fi
8062 rm -f conftest.err conftest.$ac_objext \
8063 conftest$ac_exeext conftest.$ac_ext
8064 fi
8065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8067 if test `eval echo '${'$as_ac_var'}'` = yes; then
8068 cat >>confdefs.h <<_ACEOF
8069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8070 _ACEOF
8071
8072 fi
8073 done
8074
8075 if test $ac_cv_func_sigaction = no ; then
8076
8077 for ac_func in sigset
8078 do
8079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8080 echo "$as_me:$LINENO: checking for $ac_func" >&5
8081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8082 if eval "test \"\${$as_ac_var+set}\" = set"; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h. */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8093 #define $ac_func innocuous_$ac_func
8094
8095 /* System header to define __stub macros and hopefully few prototypes,
8096 which can conflict with char $ac_func (); below.
8097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8098 <limits.h> exists even on freestanding compilers. */
8099
8100 #ifdef __STDC__
8101 # include <limits.h>
8102 #else
8103 # include <assert.h>
8104 #endif
8105
8106 #undef $ac_func
8107
8108 /* Override any gcc2 internal prototype to avoid an error. */
8109 #ifdef __cplusplus
8110 extern "C"
8111 {
8112 #endif
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8115 char $ac_func ();
8116 /* The GNU C library defines this for functions which it implements
8117 to always fail with ENOSYS. Some functions are actually named
8118 something starting with __ and the normal name is an alias. */
8119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8120 choke me
8121 #else
8122 char (*f) () = $ac_func;
8123 #endif
8124 #ifdef __cplusplus
8125 }
8126 #endif
8127
8128 int
8129 main ()
8130 {
8131 return f != $ac_func;
8132 ;
8133 return 0;
8134 }
8135 _ACEOF
8136 rm -f conftest.$ac_objext conftest$ac_exeext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8138 (eval $ac_link) 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try='test -z "$ac_c_werror_flag"
8146 || test ! -s conftest.err'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try='test -s conftest$ac_exeext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 (eval $ac_try) 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 eval "$as_ac_var=yes"
8159 else
8160 echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8162
8163 eval "$as_ac_var=no"
8164 fi
8165 rm -f conftest.err conftest.$ac_objext \
8166 conftest$ac_exeext conftest.$ac_ext
8167 fi
8168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8170 if test `eval echo '${'$as_ac_var'}'` = yes; then
8171 cat >>confdefs.h <<_ACEOF
8172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8173 _ACEOF
8174
8175 fi
8176 done
8177
8178 fi
8179 ;;
8180 esac
8181
8182 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8183 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
8184 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187 ac_func_search_save_LIBS=$LIBS
8188 ac_cv_search_dnet_htoa=no
8189 cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h. */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195
8196 /* Override any gcc2 internal prototype to avoid an error. */
8197 #ifdef __cplusplus
8198 extern "C"
8199 #endif
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8202 char dnet_htoa ();
8203 int
8204 main ()
8205 {
8206 dnet_htoa ();
8207 ;
8208 return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext conftest$ac_exeext
8212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8213 (eval $ac_link) 2>conftest.er1
8214 ac_status=$?
8215 grep -v '^ *+' conftest.er1 >conftest.err
8216 rm -f conftest.er1
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try='test -z "$ac_c_werror_flag"
8221 || test ! -s conftest.err'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest$ac_exeext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_cv_search_dnet_htoa="none required"
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238 fi
8239 rm -f conftest.err conftest.$ac_objext \
8240 conftest$ac_exeext conftest.$ac_ext
8241 if test "$ac_cv_search_dnet_htoa" = no; then
8242 for ac_lib in dnet; do
8243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250
8251 /* Override any gcc2 internal prototype to avoid an error. */
8252 #ifdef __cplusplus
8253 extern "C"
8254 #endif
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8257 char dnet_htoa ();
8258 int
8259 main ()
8260 {
8261 dnet_htoa ();
8262 ;
8263 return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268 (eval $ac_link) 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -z "$ac_c_werror_flag"
8276 || test ! -s conftest.err'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; } &&
8282 { ac_try='test -s conftest$ac_exeext'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 (eval $ac_try) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 ac_cv_search_dnet_htoa="-l$ac_lib"
8289 break
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294 fi
8295 rm -f conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
8297 done
8298 fi
8299 LIBS=$ac_func_search_save_LIBS
8300 fi
8301 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8302 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
8303 if test "$ac_cv_search_dnet_htoa" != no; then
8304 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
8305 cat >>confdefs.h <<\_ACEOF
8306 #define HAVE_DNET_HTOA 1
8307 _ACEOF
8308
8309 fi
8310
8311
8312
8313 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8314 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
8315 if test "${ac_cv_lib_rpc_main+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318 ac_check_lib_save_LIBS=$LIBS
8319 LIBS="-lrpc $LIBS"
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h. */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326
8327
8328 int
8329 main ()
8330 {
8331 main ();
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 (eval $ac_try) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_lib_rpc_main=yes
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8362
8363 ac_cv_lib_rpc_main=no
8364 fi
8365 rm -f conftest.err conftest.$ac_objext \
8366 conftest$ac_exeext conftest.$ac_ext
8367 LIBS=$ac_check_lib_save_LIBS
8368 fi
8369 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8370 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
8371 if test $ac_cv_lib_rpc_main = yes; then
8372 cat >>confdefs.h <<_ACEOF
8373 #define HAVE_LIBRPC 1
8374 _ACEOF
8375
8376 LIBS="-lrpc $LIBS"
8377
8378 fi
8379
8380 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8381 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
8382 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 else
8385 ac_func_search_save_LIBS=$LIBS
8386 ac_cv_search_getrpcbynumber=no
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393
8394 /* Override any gcc2 internal prototype to avoid an error. */
8395 #ifdef __cplusplus
8396 extern "C"
8397 #endif
8398 /* We use char because int might match the return type of a gcc2
8399 builtin and then its argument prototype would still apply. */
8400 char getrpcbynumber ();
8401 int
8402 main ()
8403 {
8404 getrpcbynumber ();
8405 ;
8406 return 0;
8407 }
8408 _ACEOF
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411 (eval $ac_link) 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try='test -z "$ac_c_werror_flag"
8419 || test ! -s conftest.err'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 (eval $ac_try) 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try='test -s conftest$ac_exeext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 (eval $ac_try) 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 ac_cv_search_getrpcbynumber="none required"
8432 else
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8435
8436 fi
8437 rm -f conftest.err conftest.$ac_objext \
8438 conftest$ac_exeext conftest.$ac_ext
8439 if test "$ac_cv_search_getrpcbynumber" = no; then
8440 for ac_lib in nsl; do
8441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8442 cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h. */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448
8449 /* Override any gcc2 internal prototype to avoid an error. */
8450 #ifdef __cplusplus
8451 extern "C"
8452 #endif
8453 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8455 char getrpcbynumber ();
8456 int
8457 main ()
8458 {
8459 getrpcbynumber ();
8460 ;
8461 return 0;
8462 }
8463 _ACEOF
8464 rm -f conftest.$ac_objext conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -z "$ac_c_werror_flag"
8474 || test ! -s conftest.err'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 (eval $ac_try) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; } &&
8480 { ac_try='test -s conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_search_getrpcbynumber="-l$ac_lib"
8487 break
8488 else
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8491
8492 fi
8493 rm -f conftest.err conftest.$ac_objext \
8494 conftest$ac_exeext conftest.$ac_ext
8495 done
8496 fi
8497 LIBS=$ac_func_search_save_LIBS
8498 fi
8499 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8500 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
8501 if test "$ac_cv_search_getrpcbynumber" != no; then
8502 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
8503 cat >>confdefs.h <<\_ACEOF
8504 #define HAVE_GETRPCBYNUMBER 1
8505 _ACEOF
8506
8507 fi
8508
8509
8510
8511
8512 # Most operating systems have gethostbyname() in the default searched
8513 # libraries (i.e. libc):
8514 # Some OSes (eg. Solaris) place it in libnsl
8515 # Some strange OSes (SINIX) have it in libsocket:
8516 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8517 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8518 if test "${ac_cv_search_gethostbyname+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521 ac_func_search_save_LIBS=$LIBS
8522 ac_cv_search_gethostbyname=no
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h. */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529
8530 /* Override any gcc2 internal prototype to avoid an error. */
8531 #ifdef __cplusplus
8532 extern "C"
8533 #endif
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8536 char gethostbyname ();
8537 int
8538 main ()
8539 {
8540 gethostbyname ();
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8547 (eval $ac_link) 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag"
8555 || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 (eval $ac_try) 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest$ac_exeext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_search_gethostbyname="none required"
8568 else
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 fi
8573 rm -f conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 if test "$ac_cv_search_gethostbyname" = no; then
8576 for ac_lib in nsl socket resolv; do
8577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h. */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584
8585 /* Override any gcc2 internal prototype to avoid an error. */
8586 #ifdef __cplusplus
8587 extern "C"
8588 #endif
8589 /* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
8591 char gethostbyname ();
8592 int
8593 main ()
8594 {
8595 gethostbyname ();
8596 ;
8597 return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8603 ac_status=$?
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_search_gethostbyname="-l$ac_lib"
8623 break
8624 else
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628 fi
8629 rm -f conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8631 done
8632 fi
8633 LIBS=$ac_func_search_save_LIBS
8634 fi
8635 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8636 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8637 if test "$ac_cv_search_gethostbyname" != no; then
8638 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
8639
8640 fi
8641
8642 # Unfortunately libsocket sometimes depends on libnsl and
8643 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8644 if test "$ac_cv_search_gethostbyname" = "no"
8645 then
8646 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8647 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
8648 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 ac_check_lib_save_LIBS=$LIBS
8652 LIBS="-lsocket -lnsl $LIBS"
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659
8660 /* Override any gcc2 internal prototype to avoid an error. */
8661 #ifdef __cplusplus
8662 extern "C"
8663 #endif
8664 /* We use char because int might match the return type of a gcc2
8665 builtin and then its argument prototype would still apply. */
8666 char gethostbyname ();
8667 int
8668 main ()
8669 {
8670 gethostbyname ();
8671 ;
8672 return 0;
8673 }
8674 _ACEOF
8675 rm -f conftest.$ac_objext conftest$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677 (eval $ac_link) 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -z "$ac_c_werror_flag"
8685 || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_lib_socket_gethostbyname=yes
8698 else
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 ac_cv_lib_socket_gethostbyname=no
8703 fi
8704 rm -f conftest.err conftest.$ac_objext \
8705 conftest$ac_exeext conftest.$ac_ext
8706 LIBS=$ac_check_lib_save_LIBS
8707 fi
8708 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8709 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
8710 if test $ac_cv_lib_socket_gethostbyname = yes; then
8711 LIBS="-lsocket -lnsl $LIBS"
8712 fi
8713
8714 fi
8715 echo "$as_me:$LINENO: checking for library containing socket" >&5
8716 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
8717 if test "${ac_cv_search_socket+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720 ac_func_search_save_LIBS=$LIBS
8721 ac_cv_search_socket=no
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h. */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728
8729 /* Override any gcc2 internal prototype to avoid an error. */
8730 #ifdef __cplusplus
8731 extern "C"
8732 #endif
8733 /* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8735 char socket ();
8736 int
8737 main ()
8738 {
8739 socket ();
8740 ;
8741 return 0;
8742 }
8743 _ACEOF
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746 (eval $ac_link) 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -z "$ac_c_werror_flag"
8754 || test ! -s conftest.err'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest$ac_exeext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_cv_search_socket="none required"
8767 else
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8770
8771 fi
8772 rm -f conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8774 if test "$ac_cv_search_socket" = no; then
8775 for ac_lib in socket; do
8776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783
8784 /* Override any gcc2 internal prototype to avoid an error. */
8785 #ifdef __cplusplus
8786 extern "C"
8787 #endif
8788 /* We use char because int might match the return type of a gcc2
8789 builtin and then its argument prototype would still apply. */
8790 char socket ();
8791 int
8792 main ()
8793 {
8794 socket ();
8795 ;
8796 return 0;
8797 }
8798 _ACEOF
8799 rm -f conftest.$ac_objext conftest$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801 (eval $ac_link) 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try='test -z "$ac_c_werror_flag"
8809 || test ! -s conftest.err'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest$ac_exeext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 (eval $ac_try) 2>&5
8818 ac_status=$?
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_cv_search_socket="-l$ac_lib"
8822 break
8823 else
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827 fi
8828 rm -f conftest.err conftest.$ac_objext \
8829 conftest$ac_exeext conftest.$ac_ext
8830 done
8831 fi
8832 LIBS=$ac_func_search_save_LIBS
8833 fi
8834 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8835 echo "${ECHO_T}$ac_cv_search_socket" >&6
8836 if test "$ac_cv_search_socket" != no; then
8837 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
8838
8839 else
8840 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8841 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8842 if test "${ac_cv_lib_socket_socket+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 else
8845 ac_check_lib_save_LIBS=$LIBS
8846 LIBS="-lsocket -lnsl $LIBS"
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h. */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8853
8854 /* Override any gcc2 internal prototype to avoid an error. */
8855 #ifdef __cplusplus
8856 extern "C"
8857 #endif
8858 /* We use char because int might match the return type of a gcc2
8859 builtin and then its argument prototype would still apply. */
8860 char socket ();
8861 int
8862 main ()
8863 {
8864 socket ();
8865 ;
8866 return 0;
8867 }
8868 _ACEOF
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>conftest.er1
8872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -z "$ac_c_werror_flag"
8879 || test ! -s conftest.err'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 (eval $ac_try) 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest$ac_exeext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 ac_cv_lib_socket_socket=yes
8892 else
8893 echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8895
8896 ac_cv_lib_socket_socket=no
8897 fi
8898 rm -f conftest.err conftest.$ac_objext \
8899 conftest$ac_exeext conftest.$ac_ext
8900 LIBS=$ac_check_lib_save_LIBS
8901 fi
8902 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8903 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8904 if test $ac_cv_lib_socket_socket = yes; then
8905 LIBS="-lsocket -lnsl $LIBS"
8906 fi
8907
8908 fi
8909
8910 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8911 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8912 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8913 if test "${ac_cv_search_putmsg+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916 ac_func_search_save_LIBS=$LIBS
8917 ac_cv_search_putmsg=no
8918 cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h. */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924
8925 /* Override any gcc2 internal prototype to avoid an error. */
8926 #ifdef __cplusplus
8927 extern "C"
8928 #endif
8929 /* We use char because int might match the return type of a gcc2
8930 builtin and then its argument prototype would still apply. */
8931 char putmsg ();
8932 int
8933 main ()
8934 {
8935 putmsg ();
8936 ;
8937 return 0;
8938 }
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>conftest.er1
8943 ac_status=$?
8944 grep -v '^ *+' conftest.er1 >conftest.err
8945 rm -f conftest.er1
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_search_putmsg="none required"
8963 else
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967 fi
8968 rm -f conftest.err conftest.$ac_objext \
8969 conftest$ac_exeext conftest.$ac_ext
8970 if test "$ac_cv_search_putmsg" = no; then
8971 for ac_lib in str; do
8972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8973 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h. */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979
8980 /* Override any gcc2 internal prototype to avoid an error. */
8981 #ifdef __cplusplus
8982 extern "C"
8983 #endif
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8986 char putmsg ();
8987 int
8988 main ()
8989 {
8990 putmsg ();
8991 ;
8992 return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>conftest.er1
8998 ac_status=$?
8999 grep -v '^ *+' conftest.er1 >conftest.err
9000 rm -f conftest.er1
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -z "$ac_c_werror_flag"
9005 || test ! -s conftest.err'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 (eval $ac_try) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; } &&
9011 { ac_try='test -s conftest$ac_exeext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 (eval $ac_try) 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_cv_search_putmsg="-l$ac_lib"
9018 break
9019 else
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 fi
9024 rm -f conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext conftest.$ac_ext
9026 done
9027 fi
9028 LIBS=$ac_func_search_save_LIBS
9029 fi
9030 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9031 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
9032 if test "$ac_cv_search_putmsg" != no; then
9033 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
9034
9035 fi
9036
9037
9038
9039 LBL_LIBS="$LIBS"
9040 pfopen=/usr/examples/packetfilter/pfopen.c
9041 if test -f $pfopen ; then
9042
9043 for ac_func in pfopen
9044 do
9045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9046 echo "$as_me:$LINENO: checking for $ac_func" >&5
9047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9048 if eval "test \"\${$as_ac_var+set}\" = set"; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051 cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h. */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9059 #define $ac_func innocuous_$ac_func
9060
9061 /* System header to define __stub macros and hopefully few prototypes,
9062 which can conflict with char $ac_func (); below.
9063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9064 <limits.h> exists even on freestanding compilers. */
9065
9066 #ifdef __STDC__
9067 # include <limits.h>
9068 #else
9069 # include <assert.h>
9070 #endif
9071
9072 #undef $ac_func
9073
9074 /* Override any gcc2 internal prototype to avoid an error. */
9075 #ifdef __cplusplus
9076 extern "C"
9077 {
9078 #endif
9079 /* We use char because int might match the return type of a gcc2
9080 builtin and then its argument prototype would still apply. */
9081 char $ac_func ();
9082 /* The GNU C library defines this for functions which it implements
9083 to always fail with ENOSYS. Some functions are actually named
9084 something starting with __ and the normal name is an alias. */
9085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9086 choke me
9087 #else
9088 char (*f) () = $ac_func;
9089 #endif
9090 #ifdef __cplusplus
9091 }
9092 #endif
9093
9094 int
9095 main ()
9096 {
9097 return f != $ac_func;
9098 ;
9099 return 0;
9100 }
9101 _ACEOF
9102 rm -f conftest.$ac_objext conftest$ac_exeext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -z "$ac_c_werror_flag"
9112 || test ! -s conftest.err'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 (eval $ac_try) 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try='test -s conftest$ac_exeext'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; }; then
9124 eval "$as_ac_var=yes"
9125 else
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9128
9129 eval "$as_ac_var=no"
9130 fi
9131 rm -f conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
9133 fi
9134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9136 if test `eval echo '${'$as_ac_var'}'` = yes; then
9137 cat >>confdefs.h <<_ACEOF
9138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9139 _ACEOF
9140
9141 fi
9142 done
9143
9144 if test $ac_cv_func_pfopen = "no" ; then
9145 echo "$as_me:$LINENO: result: Using $pfopen" >&5
9146 echo "${ECHO_T}Using $pfopen" >&6
9147 LIBS="$LIBS $pfopen"
9148 fi
9149 fi
9150 echo "$as_me:$LINENO: checking for local pcap library" >&5
9151 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
9152 libpcap=FAIL
9153 lastdir=FAIL
9154 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9155 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9156 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9157 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9158 if test $lastdir = $basedir ; then
9159 continue;
9160 fi
9161 lastdir=$dir
9162 if test -r $dir/libpcap.a ; then
9163 libpcap=$dir/libpcap.a
9164 d=$dir
9165 fi
9166 done
9167 if test $libpcap = FAIL ; then
9168 echo "$as_me:$LINENO: result: not found" >&5
9169 echo "${ECHO_T}not found" >&6
9170 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9171 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
9172 if test "${ac_cv_lib_pcap_main+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175 ac_check_lib_save_LIBS=$LIBS
9176 LIBS="-lpcap $LIBS"
9177 cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h. */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183
9184
9185 int
9186 main ()
9187 {
9188 main ();
9189 ;
9190 return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -z "$ac_c_werror_flag"
9203 || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 ac_cv_lib_pcap_main=yes
9216 else
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 ac_cv_lib_pcap_main=no
9221 fi
9222 rm -f conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224 LIBS=$ac_check_lib_save_LIBS
9225 fi
9226 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9227 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
9228 if test $ac_cv_lib_pcap_main = yes; then
9229 libpcap="-lpcap"
9230 fi
9231
9232 if test $libpcap = FAIL ; then
9233 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9234 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9235 { (exit 1); exit 1; }; }
9236 fi
9237 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9238 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
9239 if test \( ! -r /usr/local/include/pcap.h \) -a \
9240 \( ! -r /usr/include/pcap.h \); then
9241 if test -r /usr/local/include/pcap/pcap.h; then
9242 d="/usr/local/include/pcap"
9243 elif test -r /usr/include/pcap/pcap.h; then
9244 d="/usr/include/pcap"
9245 fi
9246 fi
9247 if test -z "$d" ; then
9248 echo "$as_me:$LINENO: result: not found" >&5
9249 echo "${ECHO_T}not found" >&6
9250 else
9251 V_INCLS="-I$d $V_INCLS"
9252 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9253 echo "${ECHO_T}found -- -I$d added" >&6
9254 fi
9255 else
9256 V_PCAPDEP=$libpcap
9257 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9258 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9259 if test -r $d/pcap.h; then
9260 V_INCLS="-I$d $V_INCLS"
9261 elif test -r $places/pcap.h; then
9262 V_INCLS="-I$places $V_INCLS"
9263 else
9264 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9265 echo "$as_me: error: cannot find pcap.h" >&2;}
9266 { (exit see INSTALL); exit see INSTALL; }; }
9267 fi
9268 echo "$as_me:$LINENO: result: $libpcap" >&5
9269 echo "${ECHO_T}$libpcap" >&6
9270 fi
9271 LIBS="$libpcap $LIBS"
9272 case "$host_os" in
9273
9274 aix*)
9275 pseexe="/lib/pse.exp"
9276 echo "$as_me:$LINENO: checking for $pseexe" >&5
9277 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
9278 if test -f $pseexe ; then
9279 echo "$as_me:$LINENO: result: yes" >&5
9280 echo "${ECHO_T}yes" >&6
9281 LIBS="$LIBS -I:$pseexe"
9282 fi
9283 #
9284 # We need "-lodm" and "-lcfg", as libpcap requires them on
9285 # AIX, and we just build a static libpcap.a and thus can't
9286 # arrange that when you link with libpcap you automatically
9287 # link with those libraries.
9288 #
9289 LIBS="$LIBS -lodm -lcfg"
9290 ;;
9291 esac
9292
9293 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9294 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
9295 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9306 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9307
9308 /* System header to define __stub macros and hopefully few prototypes,
9309 which can conflict with char pcap_list_datalinks (); below.
9310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9311 <limits.h> exists even on freestanding compilers. */
9312
9313 #ifdef __STDC__
9314 # include <limits.h>
9315 #else
9316 # include <assert.h>
9317 #endif
9318
9319 #undef pcap_list_datalinks
9320
9321 /* Override any gcc2 internal prototype to avoid an error. */
9322 #ifdef __cplusplus
9323 extern "C"
9324 {
9325 #endif
9326 /* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */
9328 char pcap_list_datalinks ();
9329 /* The GNU C library defines this for functions which it implements
9330 to always fail with ENOSYS. Some functions are actually named
9331 something starting with __ and the normal name is an alias. */
9332 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
9333 choke me
9334 #else
9335 char (*f) () = pcap_list_datalinks;
9336 #endif
9337 #ifdef __cplusplus
9338 }
9339 #endif
9340
9341 int
9342 main ()
9343 {
9344 return f != pcap_list_datalinks;
9345 ;
9346 return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try='test -s conftest$ac_exeext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 ac_cv_func_pcap_list_datalinks=yes
9372 else
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376 ac_cv_func_pcap_list_datalinks=no
9377 fi
9378 rm -f conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9380 fi
9381 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9382 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
9383 if test $ac_cv_func_pcap_list_datalinks = yes; then
9384 cat >>confdefs.h <<\_ACEOF
9385 #define HAVE_PCAP_LIST_DATALINKS 1
9386 _ACEOF
9387
9388 else
9389
9390 case $LIBOBJS in
9391 "datalinks.$ac_objext" | \
9392 *" datalinks.$ac_objext" | \
9393 "datalinks.$ac_objext "* | \
9394 *" datalinks.$ac_objext "* ) ;;
9395 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext" ;;
9396 esac
9397
9398
9399 fi
9400
9401 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9402 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
9403 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 else
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h. */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9414 #define pcap_set_datalink innocuous_pcap_set_datalink
9415
9416 /* System header to define __stub macros and hopefully few prototypes,
9417 which can conflict with char pcap_set_datalink (); below.
9418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9419 <limits.h> exists even on freestanding compilers. */
9420
9421 #ifdef __STDC__
9422 # include <limits.h>
9423 #else
9424 # include <assert.h>
9425 #endif
9426
9427 #undef pcap_set_datalink
9428
9429 /* Override any gcc2 internal prototype to avoid an error. */
9430 #ifdef __cplusplus
9431 extern "C"
9432 {
9433 #endif
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9436 char pcap_set_datalink ();
9437 /* The GNU C library defines this for functions which it implements
9438 to always fail with ENOSYS. Some functions are actually named
9439 something starting with __ and the normal name is an alias. */
9440 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
9441 choke me
9442 #else
9443 char (*f) () = pcap_set_datalink;
9444 #endif
9445 #ifdef __cplusplus
9446 }
9447 #endif
9448
9449 int
9450 main ()
9451 {
9452 return f != pcap_set_datalink;
9453 ;
9454 return 0;
9455 }
9456 _ACEOF
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>conftest.er1
9460 ac_status=$?
9461 grep -v '^ *+' conftest.er1 >conftest.err
9462 rm -f conftest.er1
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try='test -z "$ac_c_werror_flag"
9467 || test ! -s conftest.err'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 (eval $ac_try) 2>&5
9470 ac_status=$?
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; } &&
9473 { ac_try='test -s conftest$ac_exeext'
9474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 (eval $ac_try) 2>&5
9476 ac_status=$?
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9479 ac_cv_func_pcap_set_datalink=yes
9480 else
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9483
9484 ac_cv_func_pcap_set_datalink=no
9485 fi
9486 rm -f conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext
9488 fi
9489 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9490 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
9491 if test $ac_cv_func_pcap_set_datalink = yes; then
9492 cat >>confdefs.h <<\_ACEOF
9493 #define HAVE_PCAP_SET_DATALINK 1
9494 _ACEOF
9495
9496 fi
9497
9498 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9499 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
9500 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9511 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9512
9513 /* System header to define __stub macros and hopefully few prototypes,
9514 which can conflict with char pcap_datalink_name_to_val (); below.
9515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516 <limits.h> exists even on freestanding compilers. */
9517
9518 #ifdef __STDC__
9519 # include <limits.h>
9520 #else
9521 # include <assert.h>
9522 #endif
9523
9524 #undef pcap_datalink_name_to_val
9525
9526 /* Override any gcc2 internal prototype to avoid an error. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 {
9530 #endif
9531 /* We use char because int might match the return type of a gcc2
9532 builtin and then its argument prototype would still apply. */
9533 char pcap_datalink_name_to_val ();
9534 /* The GNU C library defines this for functions which it implements
9535 to always fail with ENOSYS. Some functions are actually named
9536 something starting with __ and the normal name is an alias. */
9537 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
9538 choke me
9539 #else
9540 char (*f) () = pcap_datalink_name_to_val;
9541 #endif
9542 #ifdef __cplusplus
9543 }
9544 #endif
9545
9546 int
9547 main ()
9548 {
9549 return f != pcap_datalink_name_to_val;
9550 ;
9551 return 0;
9552 }
9553 _ACEOF
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>conftest.er1
9557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag"
9564 || test ! -s conftest.err'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try='test -s conftest$ac_exeext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 (eval $ac_try) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_cv_func_pcap_datalink_name_to_val=yes
9577 else
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 ac_cv_func_pcap_datalink_name_to_val=no
9582 fi
9583 rm -f conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 fi
9586 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9587 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
9588 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9589
9590 cat >>confdefs.h <<\_ACEOF
9591 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9592 _ACEOF
9593
9594 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9595 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
9596 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h. */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9607 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9608
9609 /* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char pcap_datalink_val_to_description (); below.
9611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612 <limits.h> exists even on freestanding compilers. */
9613
9614 #ifdef __STDC__
9615 # include <limits.h>
9616 #else
9617 # include <assert.h>
9618 #endif
9619
9620 #undef pcap_datalink_val_to_description
9621
9622 /* Override any gcc2 internal prototype to avoid an error. */
9623 #ifdef __cplusplus
9624 extern "C"
9625 {
9626 #endif
9627 /* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9629 char pcap_datalink_val_to_description ();
9630 /* The GNU C library defines this for functions which it implements
9631 to always fail with ENOSYS. Some functions are actually named
9632 something starting with __ and the normal name is an alias. */
9633 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
9634 choke me
9635 #else
9636 char (*f) () = pcap_datalink_val_to_description;
9637 #endif
9638 #ifdef __cplusplus
9639 }
9640 #endif
9641
9642 int
9643 main ()
9644 {
9645 return f != pcap_datalink_val_to_description;
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>conftest.er1
9653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -z "$ac_c_werror_flag"
9660 || test ! -s conftest.err'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 (eval $ac_try) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 (eval $ac_try) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 ac_cv_func_pcap_datalink_val_to_description=yes
9673 else
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 ac_cv_func_pcap_datalink_val_to_description=no
9678 fi
9679 rm -f conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681 fi
9682 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9683 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
9684 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9685 cat >>confdefs.h <<\_ACEOF
9686 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9687 _ACEOF
9688
9689 else
9690
9691 case $LIBOBJS in
9692 "dlnames.$ac_objext" | \
9693 *" dlnames.$ac_objext" | \
9694 "dlnames.$ac_objext "* | \
9695 *" dlnames.$ac_objext "* ) ;;
9696 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" ;;
9697 esac
9698
9699
9700 fi
9701
9702
9703 else
9704
9705 case $LIBOBJS in
9706 "dlnames.$ac_objext" | \
9707 *" dlnames.$ac_objext" | \
9708 "dlnames.$ac_objext "* | \
9709 *" dlnames.$ac_objext "* ) ;;
9710 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" ;;
9711 esac
9712
9713
9714 fi
9715
9716
9717
9718 for ac_func in pcap_breakloop
9719 do
9720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9721 echo "$as_me:$LINENO: checking for $ac_func" >&5
9722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9723 if eval "test \"\${$as_ac_var+set}\" = set"; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726 cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h. */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9734 #define $ac_func innocuous_$ac_func
9735
9736 /* System header to define __stub macros and hopefully few prototypes,
9737 which can conflict with char $ac_func (); below.
9738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739 <limits.h> exists even on freestanding compilers. */
9740
9741 #ifdef __STDC__
9742 # include <limits.h>
9743 #else
9744 # include <assert.h>
9745 #endif
9746
9747 #undef $ac_func
9748
9749 /* Override any gcc2 internal prototype to avoid an error. */
9750 #ifdef __cplusplus
9751 extern "C"
9752 {
9753 #endif
9754 /* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */
9756 char $ac_func ();
9757 /* The GNU C library defines this for functions which it implements
9758 to always fail with ENOSYS. Some functions are actually named
9759 something starting with __ and the normal name is an alias. */
9760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9761 choke me
9762 #else
9763 char (*f) () = $ac_func;
9764 #endif
9765 #ifdef __cplusplus
9766 }
9767 #endif
9768
9769 int
9770 main ()
9771 {
9772 return f != $ac_func;
9773 ;
9774 return 0;
9775 }
9776 _ACEOF
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9779 (eval $ac_link) 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag"
9787 || test ! -s conftest.err'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 (eval $ac_try) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 eval "$as_ac_var=yes"
9800 else
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 eval "$as_ac_var=no"
9805 fi
9806 rm -f conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808 fi
9809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9811 if test `eval echo '${'$as_ac_var'}'` = yes; then
9812 cat >>confdefs.h <<_ACEOF
9813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9814 _ACEOF
9815
9816 fi
9817 done
9818
9819
9820 echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9821 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6
9822 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9833 #define pcap_dump_ftell innocuous_pcap_dump_ftell
9834
9835 /* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char pcap_dump_ftell (); below.
9837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9838 <limits.h> exists even on freestanding compilers. */
9839
9840 #ifdef __STDC__
9841 # include <limits.h>
9842 #else
9843 # include <assert.h>
9844 #endif
9845
9846 #undef pcap_dump_ftell
9847
9848 /* Override any gcc2 internal prototype to avoid an error. */
9849 #ifdef __cplusplus
9850 extern "C"
9851 {
9852 #endif
9853 /* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9855 char pcap_dump_ftell ();
9856 /* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859 #if defined (__stub_pcap_dump_ftell) || defined (__stub___pcap_dump_ftell)
9860 choke me
9861 #else
9862 char (*f) () = pcap_dump_ftell;
9863 #endif
9864 #ifdef __cplusplus
9865 }
9866 #endif
9867
9868 int
9869 main ()
9870 {
9871 return f != pcap_dump_ftell;
9872 ;
9873 return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 (eval $ac_try) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_func_pcap_dump_ftell=yes
9899 else
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903 ac_cv_func_pcap_dump_ftell=no
9904 fi
9905 rm -f conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 fi
9908 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9909 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6
9910 if test $ac_cv_func_pcap_dump_ftell = yes; then
9911 cat >>confdefs.h <<\_ACEOF
9912 #define HAVE_PCAP_DUMP_FTELL 1
9913 _ACEOF
9914
9915 else
9916
9917 case $LIBOBJS in
9918 "pcap_dump_ftell.$ac_objext" | \
9919 *" pcap_dump_ftell.$ac_objext" | \
9920 "pcap_dump_ftell.$ac_objext "* | \
9921 *" pcap_dump_ftell.$ac_objext "* ) ;;
9922 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" ;;
9923 esac
9924
9925
9926 fi
9927
9928
9929
9930 #
9931 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
9932 # libraries (e.g., "-lsocket -lnsl" on Solaris).
9933 #
9934 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
9935 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
9936 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
9937 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
9938 # it does not ship with a libc symbol "inet_ntop()", it ships with
9939 # "_inet_ntop()", and has a #define macro in one of the system headers
9940 # to rename it.
9941 #
9942 echo "$as_me:$LINENO: checking for inet_ntop" >&5
9943 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
9944 cat >conftest.$ac_ext <<_ACEOF
9945 /* confdefs.h. */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 #include <sys/types.h>
9951 #include <sys/socket.h>
9952 #include <netinet/in.h>
9953 #include <arpa/inet.h>
9954 int
9955 main ()
9956 {
9957 char src[4], dst[128];
9958 inet_ntop(AF_INET, src, dst, sizeof(dst));
9959 ;
9960 return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9965 (eval $ac_link) 2>conftest.er1
9966 ac_status=$?
9967 grep -v '^ *+' conftest.er1 >conftest.err
9968 rm -f conftest.er1
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -z "$ac_c_werror_flag"
9973 || test ! -s conftest.err'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try='test -s conftest$ac_exeext'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 (eval $ac_try) 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 echo "$as_me:$LINENO: result: yes" >&5
9986 echo "${ECHO_T}yes" >&6
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 echo "$as_me:$LINENO: result: no" >&5
9992 echo "${ECHO_T}no" >&6
9993 case $LIBOBJS in
9994 "inet_ntop.$ac_objext" | \
9995 *" inet_ntop.$ac_objext" | \
9996 "inet_ntop.$ac_objext "* | \
9997 *" inet_ntop.$ac_objext "* ) ;;
9998 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" ;;
9999 esac
10000
10001 fi
10002 rm -f conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 echo "$as_me:$LINENO: checking for inet_pton" >&5
10005 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
10006 cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h. */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 #include <sys/types.h>
10013 #include <sys/socket.h>
10014 #include <netinet/in.h>
10015 #include <arpa/inet.h>
10016 int
10017 main ()
10018 {
10019 char src[128], dst[4];
10020 inet_pton(AF_INET, src, dst);
10021 ;
10022 return 0;
10023 }
10024 _ACEOF
10025 rm -f conftest.$ac_objext conftest$ac_exeext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10027 (eval $ac_link) 2>conftest.er1
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag"
10035 || test ! -s conftest.err'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; } &&
10041 { ac_try='test -s conftest$ac_exeext'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 echo "$as_me:$LINENO: result: yes" >&5
10048 echo "${ECHO_T}yes" >&6
10049 else
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10052
10053 echo "$as_me:$LINENO: result: no" >&5
10054 echo "${ECHO_T}no" >&6
10055 case $LIBOBJS in
10056 "inet_pton.$ac_objext" | \
10057 *" inet_pton.$ac_objext" | \
10058 "inet_pton.$ac_objext "* | \
10059 *" inet_pton.$ac_objext "* ) ;;
10060 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" ;;
10061 esac
10062
10063 fi
10064 rm -f conftest.err conftest.$ac_objext \
10065 conftest$ac_exeext conftest.$ac_ext
10066 echo "$as_me:$LINENO: checking for inet_aton" >&5
10067 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 #include <sys/types.h>
10075 #include <netinet/in.h>
10076 #include <arpa/inet.h>
10077 int
10078 main ()
10079 {
10080 char src[128];
10081 struct in_addr dst;
10082 inet_aton(src, &dst);
10083 ;
10084 return 0;
10085 }
10086 _ACEOF
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag"
10097 || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest$ac_exeext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 echo "$as_me:$LINENO: result: yes" >&5
10110 echo "${ECHO_T}yes" >&6
10111 else
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10114
10115 echo "$as_me:$LINENO: result: no" >&5
10116 echo "${ECHO_T}no" >&6
10117 case $LIBOBJS in
10118 "inet_aton.$ac_objext" | \
10119 *" inet_aton.$ac_objext" | \
10120 "inet_aton.$ac_objext "* | \
10121 *" inet_aton.$ac_objext "* ) ;;
10122 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
10123 esac
10124
10125 fi
10126 rm -f conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10128
10129 #
10130 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10131 #
10132 # You are in a twisty little maze of UN*Xes, all different.
10133 # Some might not have ether_ntohost().
10134 # Some might have it, but not declare it in any header file.
10135 # Some might have it, but declare it in <netinet/if_ether.h>.
10136 # Some might have it, but declare it in <netinet/ether.h>
10137 # (And some might have it but document it as something declared in
10138 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10139 #
10140 # Before you is a C compiler.
10141 #
10142
10143 for ac_func in ether_ntohost
10144 do
10145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10146 echo "$as_me:$LINENO: checking for $ac_func" >&5
10147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10148 if eval "test \"\${$as_ac_var+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h. */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10159 #define $ac_func innocuous_$ac_func
10160
10161 /* System header to define __stub macros and hopefully few prototypes,
10162 which can conflict with char $ac_func (); below.
10163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10164 <limits.h> exists even on freestanding compilers. */
10165
10166 #ifdef __STDC__
10167 # include <limits.h>
10168 #else
10169 # include <assert.h>
10170 #endif
10171
10172 #undef $ac_func
10173
10174 /* Override any gcc2 internal prototype to avoid an error. */
10175 #ifdef __cplusplus
10176 extern "C"
10177 {
10178 #endif
10179 /* We use char because int might match the return type of a gcc2
10180 builtin and then its argument prototype would still apply. */
10181 char $ac_func ();
10182 /* The GNU C library defines this for functions which it implements
10183 to always fail with ENOSYS. Some functions are actually named
10184 something starting with __ and the normal name is an alias. */
10185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10186 choke me
10187 #else
10188 char (*f) () = $ac_func;
10189 #endif
10190 #ifdef __cplusplus
10191 }
10192 #endif
10193
10194 int
10195 main ()
10196 {
10197 return f != $ac_func;
10198 ;
10199 return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest.$ac_objext conftest$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
10207 rm -f conftest.er1
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -z "$ac_c_werror_flag"
10212 || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try='test -s conftest$ac_exeext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 eval "$as_ac_var=yes"
10225 else
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 eval "$as_ac_var=no"
10230 fi
10231 rm -f conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10233 fi
10234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10236 if test `eval echo '${'$as_ac_var'}'` = yes; then
10237 cat >>confdefs.h <<_ACEOF
10238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10239 _ACEOF
10240
10241 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10242 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
10243 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246
10247 if test "$cross_compiling" = yes; then
10248 ac_cv_buggy_ether_ntohost="not while cross-compiling"
10249 else
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h. */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256
10257 #include <netdb.h>
10258 #include <sys/types.h>
10259 #include <sys/param.h>
10260 #include <sys/socket.h>
10261
10262 int
10263 main(int argc, char **argv)
10264 {
10265 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10266 char name[MAXHOSTNAMELEN];
10267
10268 ether_ntohost(name, (struct ether_addr *)ea);
10269 exit(0);
10270 }
10271
10272 _ACEOF
10273 rm -f conftest$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_cv_buggy_ether_ntohost=no
10285 else
10286 echo "$as_me: program exited with status $ac_status" >&5
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10289
10290 ( exit $ac_status )
10291 ac_cv_buggy_ether_ntohost=yes
10292 fi
10293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10294 fi
10295 fi
10296 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10297 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
10298 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10299 cat >>confdefs.h <<\_ACEOF
10300 #define USE_ETHER_NTOHOST 1
10301 _ACEOF
10302
10303 fi
10304
10305 fi
10306 done
10307
10308 if test "$ac_cv_func_ether_ntohost" = yes -a \
10309 "$ac_cv_buggy_ether_ntohost" = "no"; then
10310 #
10311 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10312 #
10313 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10314 #
10315 # Yes. Does it declare ether_ntohost()?
10316 #
10317 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10318 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10319 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322 cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h. */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328
10329 #include <sys/types.h>
10330 #include <sys/socket.h>
10331 #include <netinet/in.h>
10332 #include <arpa/inet.h>
10333 struct mbuf;
10334 struct rtentry;
10335 #include <net/if.h>
10336 #include <netinet/if_ether.h>
10337
10338
10339 int
10340 main ()
10341 {
10342 #ifndef ether_ntohost
10343 char *p = (char *) ether_ntohost;
10344 #endif
10345
10346 ;
10347 return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest.$ac_objext
10351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352 (eval $ac_compile) 2>conftest.er1
10353 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try='test -z "$ac_c_werror_flag"
10360 || test ! -s conftest.err'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; } &&
10366 { ac_try='test -s conftest.$ac_objext'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; }; then
10372 ac_cv_have_decl_ether_ntohost=yes
10373 else
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10376
10377 ac_cv_have_decl_ether_ntohost=no
10378 fi
10379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10380 fi
10381 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10382 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10383 if test $ac_cv_have_decl_ether_ntohost = yes; then
10384
10385
10386 cat >>confdefs.h <<\_ACEOF
10387 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10388 _ACEOF
10389
10390
10391 fi
10392
10393 fi
10394 #
10395 # Did that succeed?
10396 #
10397 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10398 #
10399 # No, how about <netinet/ether.h>, as on Linux?
10400 #
10401
10402 for ac_header in netinet/ether.h
10403 do
10404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10406 echo "$as_me:$LINENO: checking for $ac_header" >&5
10407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 fi
10411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10413 else
10414 # Is the header compilable?
10415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h. */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423 $ac_includes_default
10424 #include <$ac_header>
10425 _ACEOF
10426 rm -f conftest.$ac_objext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428 (eval $ac_compile) 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -z "$ac_c_werror_flag"
10436 || test ! -s conftest.err'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try='test -s conftest.$ac_objext'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_header_compiler=yes
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10452
10453 ac_header_compiler=no
10454 fi
10455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10457 echo "${ECHO_T}$ac_header_compiler" >&6
10458
10459 # Is the header present?
10460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h. */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 #include <$ac_header>
10469 _ACEOF
10470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10472 ac_status=$?
10473 grep -v '^ *+' conftest.er1 >conftest.err
10474 rm -f conftest.er1
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } >/dev/null; then
10478 if test -s conftest.err; then
10479 ac_cpp_err=$ac_c_preproc_warn_flag
10480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10481 else
10482 ac_cpp_err=
10483 fi
10484 else
10485 ac_cpp_err=yes
10486 fi
10487 if test -z "$ac_cpp_err"; then
10488 ac_header_preproc=yes
10489 else
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 ac_header_preproc=no
10494 fi
10495 rm -f conftest.err conftest.$ac_ext
10496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10497 echo "${ECHO_T}$ac_header_preproc" >&6
10498
10499 # So? What about this header?
10500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10501 yes:no: )
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10506 ac_header_preproc=yes
10507 ;;
10508 no:yes:* )
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10521 (
10522 cat <<\_ASBOX
10523 ## ------------------------------------------ ##
10524 ## Report this to the AC_PACKAGE_NAME lists. ##
10525 ## ------------------------------------------ ##
10526 _ASBOX
10527 ) |
10528 sed "s/^/$as_me: WARNING: /" >&2
10529 ;;
10530 esac
10531 echo "$as_me:$LINENO: checking for $ac_header" >&5
10532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10536 eval "$as_ac_Header=\$ac_header_preproc"
10537 fi
10538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10540
10541 fi
10542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10543 cat >>confdefs.h <<_ACEOF
10544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10545 _ACEOF
10546
10547 fi
10548
10549 done
10550
10551 if test "$ac_cv_header_netinet_ether_h" = yes; then
10552 #
10553 # We have it - does it declare ether_ntohost()?
10554 # Unset ac_cv_have_decl_ether_ntohost so we don't
10555 # treat the previous failure as a cached value and
10556 # suppress the next test.
10557 #
10558 unset ac_cv_have_decl_ether_ntohost
10559 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10560 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10561 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564 cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h. */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570
10571 #include <netinet/ether.h>
10572
10573
10574 int
10575 main ()
10576 {
10577 #ifndef ether_ntohost
10578 char *p = (char *) ether_ntohost;
10579 #endif
10580
10581 ;
10582 return 0;
10583 }
10584 _ACEOF
10585 rm -f conftest.$ac_objext
10586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10587 (eval $ac_compile) 2>conftest.er1
10588 ac_status=$?
10589 grep -v '^ *+' conftest.er1 >conftest.err
10590 rm -f conftest.er1
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } &&
10594 { ac_try='test -z "$ac_c_werror_flag"
10595 || test ! -s conftest.err'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; } &&
10601 { ac_try='test -s conftest.$ac_objext'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; }; then
10607 ac_cv_have_decl_ether_ntohost=yes
10608 else
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10611
10612 ac_cv_have_decl_ether_ntohost=no
10613 fi
10614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10615 fi
10616 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10617 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10618 if test $ac_cv_have_decl_ether_ntohost = yes; then
10619
10620
10621 cat >>confdefs.h <<\_ACEOF
10622 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10623 _ACEOF
10624
10625
10626 fi
10627
10628 fi
10629 fi
10630 #
10631 # Is ether_ntohost() declared?
10632 #
10633 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10634 #
10635 # No, we'll have to declare it ourselves.
10636 # Do we have "struct ether_addr"?
10637 #
10638 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10639 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
10640 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h. */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649
10650 #include <sys/types.h>
10651 #include <sys/socket.h>
10652 #include <netinet/in.h>
10653 #include <arpa/inet.h>
10654 struct mbuf;
10655 struct rtentry;
10656 #include <net/if.h>
10657 #include <netinet/if_ether.h>
10658
10659
10660 int
10661 main ()
10662 {
10663 if ((struct ether_addr *) 0)
10664 return 0;
10665 if (sizeof (struct ether_addr))
10666 return 0;
10667 ;
10668 return 0;
10669 }
10670 _ACEOF
10671 rm -f conftest.$ac_objext
10672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10673 (eval $ac_compile) 2>conftest.er1
10674 ac_status=$?
10675 grep -v '^ *+' conftest.er1 >conftest.err
10676 rm -f conftest.er1
10677 cat conftest.err >&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } &&
10680 { ac_try='test -z "$ac_c_werror_flag"
10681 || test ! -s conftest.err'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; } &&
10687 { ac_try='test -s conftest.$ac_objext'
10688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_type_struct_ether_addr=yes
10694 else
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10697
10698 ac_cv_type_struct_ether_addr=no
10699 fi
10700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10701 fi
10702 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10703 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
10704 if test $ac_cv_type_struct_ether_addr = yes; then
10705
10706 cat >>confdefs.h <<_ACEOF
10707 #define HAVE_STRUCT_ETHER_ADDR 1
10708 _ACEOF
10709
10710
10711 fi
10712
10713
10714 cat >>confdefs.h <<\_ACEOF
10715 #define HAVE_DECL_ETHER_NTOHOST 0
10716 _ACEOF
10717
10718 else
10719
10720 cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_DECL_ETHER_NTOHOST 1
10722 _ACEOF
10723
10724 fi
10725 fi
10726
10727 # libdlpi is needed for Solaris 11 and later.
10728 echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
10729 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6
10730 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-ldlpi -L/lib $LIBS"
10735 cat >conftest.$ac_ext <<_ACEOF
10736 /* confdefs.h. */
10737 _ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10741
10742 /* Override any gcc2 internal prototype to avoid an error. */
10743 #ifdef __cplusplus
10744 extern "C"
10745 #endif
10746 /* We use char because int might match the return type of a gcc2
10747 builtin and then its argument prototype would still apply. */
10748 char dlpi_walk ();
10749 int
10750 main ()
10751 {
10752 dlpi_walk ();
10753 ;
10754 return 0;
10755 }
10756 _ACEOF
10757 rm -f conftest.$ac_objext conftest$ac_exeext
10758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10759 (eval $ac_link) 2>conftest.er1
10760 ac_status=$?
10761 grep -v '^ *+' conftest.er1 >conftest.err
10762 rm -f conftest.er1
10763 cat conftest.err >&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try='test -z "$ac_c_werror_flag"
10767 || test ! -s conftest.err'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; } &&
10773 { ac_try='test -s conftest$ac_exeext'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_cv_lib_dlpi_dlpi_walk=yes
10780 else
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784 ac_cv_lib_dlpi_dlpi_walk=no
10785 fi
10786 rm -f conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 LIBS=$ac_check_lib_save_LIBS
10789 fi
10790 echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
10791 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6
10792 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
10793 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
10794 fi
10795
10796
10797
10798 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10799 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10800 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809
10810 # include <sys/types.h>
10811 # include <sys/socket.h>
10812 int
10813 main ()
10814 {
10815 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10816 ;
10817 return 0;
10818 }
10819 _ACEOF
10820 rm -f conftest.$ac_objext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10822 (eval $ac_compile) 2>conftest.er1
10823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -z "$ac_c_werror_flag"
10830 || test ! -s conftest.err'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; } &&
10836 { ac_try='test -s conftest.$ac_objext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_sockaddr_has_sa_len=yes
10843 else
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_cv_sockaddr_has_sa_len=no
10848 fi
10849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10850 fi
10851
10852 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10853 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
10854 if test $ac_cv_sockaddr_has_sa_len = yes ; then
10855 cat >>confdefs.h <<\_ACEOF
10856 #define HAVE_SOCKADDR_SA_LEN 1
10857 _ACEOF
10858
10859 fi
10860
10861 if test "$ac_cv_sockaddr_has_sa_len" = no; then
10862 missing_includes=yes
10863 fi
10864
10865 #
10866 # Do we have the new open API? Check for pcap_create, and assume that,
10867 # if we do, we also have pcap_activate() and the other new routines.
10868
10869 for ac_func in pcap_create
10870 do
10871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10872 echo "$as_me:$LINENO: checking for $ac_func" >&5
10873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10874 if eval "test \"\${$as_ac_var+set}\" = set"; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10877 cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h. */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10885 #define $ac_func innocuous_$ac_func
10886
10887 /* System header to define __stub macros and hopefully few prototypes,
10888 which can conflict with char $ac_func (); below.
10889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10890 <limits.h> exists even on freestanding compilers. */
10891
10892 #ifdef __STDC__
10893 # include <limits.h>
10894 #else
10895 # include <assert.h>
10896 #endif
10897
10898 #undef $ac_func
10899
10900 /* Override any gcc2 internal prototype to avoid an error. */
10901 #ifdef __cplusplus
10902 extern "C"
10903 {
10904 #endif
10905 /* We use char because int might match the return type of a gcc2
10906 builtin and then its argument prototype would still apply. */
10907 char $ac_func ();
10908 /* The GNU C library defines this for functions which it implements
10909 to always fail with ENOSYS. Some functions are actually named
10910 something starting with __ and the normal name is an alias. */
10911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10912 choke me
10913 #else
10914 char (*f) () = $ac_func;
10915 #endif
10916 #ifdef __cplusplus
10917 }
10918 #endif
10919
10920 int
10921 main ()
10922 {
10923 return f != $ac_func;
10924 ;
10925 return 0;
10926 }
10927 _ACEOF
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10930 (eval $ac_link) 2>conftest.er1
10931 ac_status=$?
10932 grep -v '^ *+' conftest.er1 >conftest.err
10933 rm -f conftest.er1
10934 cat conftest.err >&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } &&
10937 { ac_try='test -z "$ac_c_werror_flag"
10938 || test ! -s conftest.err'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; } &&
10944 { ac_try='test -s conftest$ac_exeext'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 eval "$as_ac_var=yes"
10951 else
10952 echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10954
10955 eval "$as_ac_var=no"
10956 fi
10957 rm -f conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
10959 fi
10960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10962 if test `eval echo '${'$as_ac_var'}'` = yes; then
10963 cat >>confdefs.h <<_ACEOF
10964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10965 _ACEOF
10966
10967 fi
10968 done
10969
10970
10971
10972
10973
10974 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
10975 do
10976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10977 echo "$as_me:$LINENO: checking for $ac_func" >&5
10978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10979 if eval "test \"\${$as_ac_var+set}\" = set"; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 else
10982 cat >conftest.$ac_ext <<_ACEOF
10983 /* confdefs.h. */
10984 _ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h. */
10988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10990 #define $ac_func innocuous_$ac_func
10991
10992 /* System header to define __stub macros and hopefully few prototypes,
10993 which can conflict with char $ac_func (); below.
10994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10995 <limits.h> exists even on freestanding compilers. */
10996
10997 #ifdef __STDC__
10998 # include <limits.h>
10999 #else
11000 # include <assert.h>
11001 #endif
11002
11003 #undef $ac_func
11004
11005 /* Override any gcc2 internal prototype to avoid an error. */
11006 #ifdef __cplusplus
11007 extern "C"
11008 {
11009 #endif
11010 /* We use char because int might match the return type of a gcc2
11011 builtin and then its argument prototype would still apply. */
11012 char $ac_func ();
11013 /* The GNU C library defines this for functions which it implements
11014 to always fail with ENOSYS. Some functions are actually named
11015 something starting with __ and the normal name is an alias. */
11016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11017 choke me
11018 #else
11019 char (*f) () = $ac_func;
11020 #endif
11021 #ifdef __cplusplus
11022 }
11023 #endif
11024
11025 int
11026 main ()
11027 {
11028 return f != $ac_func;
11029 ;
11030 return 0;
11031 }
11032 _ACEOF
11033 rm -f conftest.$ac_objext conftest$ac_exeext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11035 (eval $ac_link) 2>conftest.er1
11036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_c_werror_flag"
11043 || test ! -s conftest.err'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest$ac_exeext'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 eval "$as_ac_var=yes"
11056 else
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060 eval "$as_ac_var=no"
11061 fi
11062 rm -f conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064 fi
11065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11067 if test `eval echo '${'$as_ac_var'}'` = yes; then
11068 cat >>confdefs.h <<_ACEOF
11069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11070 _ACEOF
11071
11072 fi
11073 done
11074
11075 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11076 savedcflags="$CFLAGS"
11077 CFLAGS="$CFLAGS $V_INCLS"
11078 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11079 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
11080 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 #include <pcap.h>
11090
11091 int
11092 main ()
11093 {
11094 if ((pcap_if_t *) 0)
11095 return 0;
11096 if (sizeof (pcap_if_t))
11097 return 0;
11098 ;
11099 return 0;
11100 }
11101 _ACEOF
11102 rm -f conftest.$ac_objext
11103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11104 (eval $ac_compile) 2>conftest.er1
11105 ac_status=$?
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -z "$ac_c_werror_flag"
11112 || test ! -s conftest.err'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; } &&
11118 { ac_try='test -s conftest.$ac_objext'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 ac_cv_type_pcap_if_t=yes
11125 else
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11128
11129 ac_cv_type_pcap_if_t=no
11130 fi
11131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11132 fi
11133 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11134 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
11135 if test $ac_cv_type_pcap_if_t = yes; then
11136
11137 cat >>confdefs.h <<_ACEOF
11138 #define HAVE_PCAP_IF_T 1
11139 _ACEOF
11140
11141
11142 fi
11143
11144 CFLAGS="$savedcflags"
11145 fi
11146
11147 if test $ac_cv_func_pcap_lib_version = "no" ; then
11148 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11149 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
11150 cat >conftest.$ac_ext <<_ACEOF
11151 /* confdefs.h. */
11152 _ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h. */
11156
11157 int
11158 main ()
11159 {
11160
11161 extern char pcap_version[];
11162
11163 return (int)pcap_version;
11164
11165 ;
11166 return 0;
11167 }
11168 _ACEOF
11169 rm -f conftest.$ac_objext conftest$ac_exeext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11171 (eval $ac_link) 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -z "$ac_c_werror_flag"
11179 || test ! -s conftest.err'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest$ac_exeext'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_lbl_cv_pcap_version_defined=yes
11192 else
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11195
11196 ac_lbl_cv_pcap_version_defined=no
11197 fi
11198 rm -f conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11200 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11201 echo "$as_me:$LINENO: result: yes" >&5
11202 echo "${ECHO_T}yes" >&6
11203 cat >>confdefs.h <<\_ACEOF
11204 #define HAVE_PCAP_VERSION 1
11205 _ACEOF
11206
11207 else
11208 echo "$as_me:$LINENO: result: no" >&5
11209 echo "${ECHO_T}no" >&6
11210 fi
11211 fi
11212 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11213 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h. */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220
11221 int
11222 main ()
11223 {
11224
11225 extern int pcap_debug;
11226
11227 return pcap_debug;
11228
11229 ;
11230 return 0;
11231 }
11232 _ACEOF
11233 rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11235 (eval $ac_link) 2>conftest.er1
11236 ac_status=$?
11237 grep -v '^ *+' conftest.er1 >conftest.err
11238 rm -f conftest.er1
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } &&
11242 { ac_try='test -z "$ac_c_werror_flag"
11243 || test ! -s conftest.err'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; } &&
11249 { ac_try='test -s conftest$ac_exeext'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
11255 ac_lbl_cv_pcap_debug_defined=yes
11256 else
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11259
11260 ac_lbl_cv_pcap_debug_defined=no
11261 fi
11262 rm -f conftest.err conftest.$ac_objext \
11263 conftest$ac_exeext conftest.$ac_ext
11264 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11265 echo "$as_me:$LINENO: result: yes" >&5
11266 echo "${ECHO_T}yes" >&6
11267 cat >>confdefs.h <<\_ACEOF
11268 #define HAVE_PCAP_DEBUG 1
11269 _ACEOF
11270
11271 else
11272 echo "$as_me:$LINENO: result: no" >&5
11273 echo "${ECHO_T}no" >&6
11274 #
11275 # OK, what about "yydebug"?
11276 #
11277 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11278 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
11279 cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h. */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285
11286 int
11287 main ()
11288 {
11289
11290 extern int yydebug;
11291
11292 return yydebug;
11293
11294 ;
11295 return 0;
11296 }
11297 _ACEOF
11298 rm -f conftest.$ac_objext conftest$ac_exeext
11299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11300 (eval $ac_link) 2>conftest.er1
11301 ac_status=$?
11302 grep -v '^ *+' conftest.er1 >conftest.err
11303 rm -f conftest.er1
11304 cat conftest.err >&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try='test -z "$ac_c_werror_flag"
11308 || test ! -s conftest.err'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; } &&
11314 { ac_try='test -s conftest$ac_exeext'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 ac_lbl_cv_yydebug_defined=yes
11321 else
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11324
11325 ac_lbl_cv_yydebug_defined=no
11326 fi
11327 rm -f conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11330 echo "$as_me:$LINENO: result: yes" >&5
11331 echo "${ECHO_T}yes" >&6
11332 cat >>confdefs.h <<\_ACEOF
11333 #define HAVE_YYDEBUG 1
11334 _ACEOF
11335
11336 else
11337 echo "$as_me:$LINENO: result: no" >&5
11338 echo "${ECHO_T}no" >&6
11339 fi
11340 fi
11341
11342 for ac_func in bpf_dump
11343 do
11344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11345 echo "$as_me:$LINENO: checking for $ac_func" >&5
11346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11347 if eval "test \"\${$as_ac_var+set}\" = set"; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11358 #define $ac_func innocuous_$ac_func
11359
11360 /* System header to define __stub macros and hopefully few prototypes,
11361 which can conflict with char $ac_func (); below.
11362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11363 <limits.h> exists even on freestanding compilers. */
11364
11365 #ifdef __STDC__
11366 # include <limits.h>
11367 #else
11368 # include <assert.h>
11369 #endif
11370
11371 #undef $ac_func
11372
11373 /* Override any gcc2 internal prototype to avoid an error. */
11374 #ifdef __cplusplus
11375 extern "C"
11376 {
11377 #endif
11378 /* We use char because int might match the return type of a gcc2
11379 builtin and then its argument prototype would still apply. */
11380 char $ac_func ();
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11385 choke me
11386 #else
11387 char (*f) () = $ac_func;
11388 #endif
11389 #ifdef __cplusplus
11390 }
11391 #endif
11392
11393 int
11394 main ()
11395 {
11396 return f != $ac_func;
11397 ;
11398 return 0;
11399 }
11400 _ACEOF
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11403 (eval $ac_link) 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_c_werror_flag"
11411 || test ! -s conftest.err'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 eval "$as_ac_var=yes"
11424 else
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428 eval "$as_ac_var=no"
11429 fi
11430 rm -f conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 fi
11433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11435 if test `eval echo '${'$as_ac_var'}'` = yes; then
11436 cat >>confdefs.h <<_ACEOF
11437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11438 _ACEOF
11439
11440 else
11441 case $LIBOBJS in
11442 "$ac_func.$ac_objext" | \
11443 *" $ac_func.$ac_objext" | \
11444 "$ac_func.$ac_objext "* | \
11445 *" $ac_func.$ac_objext "* ) ;;
11446 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
11447 esac
11448
11449 fi
11450 done
11451
11452
11453 V_GROUP=0
11454 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11455 V_GROUP=wheel
11456 fi
11457 case "$host_os" in
11458
11459 aix*)
11460 cat >>confdefs.h <<\_ACEOF
11461 #define _SUN 1
11462 _ACEOF
11463
11464 ;;
11465
11466 irix*)
11467 V_GROUP=sys
11468 ;;
11469
11470 osf*)
11471 V_GROUP=system
11472 ;;
11473
11474 solaris*)
11475 V_GROUP=sys
11476 ;;
11477 esac
11478
11479 if test -f /dev/bpf0 ; then
11480 V_GROUP=bpf
11481 fi
11482
11483
11484 for ac_header in sys/bitypes.h
11485 do
11486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11488 echo "$as_me:$LINENO: checking for $ac_header" >&5
11489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 fi
11493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11495 else
11496 # Is the header compilable?
11497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h. */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11506 #include <$ac_header>
11507 _ACEOF
11508 rm -f conftest.$ac_objext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510 (eval $ac_compile) 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -z "$ac_c_werror_flag"
11518 || test ! -s conftest.err'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest.$ac_objext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_header_compiler=yes
11531 else
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535 ac_header_compiler=no
11536 fi
11537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11539 echo "${ECHO_T}$ac_header_compiler" >&6
11540
11541 # Is the header present?
11542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 #include <$ac_header>
11551 _ACEOF
11552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } >/dev/null; then
11560 if test -s conftest.err; then
11561 ac_cpp_err=$ac_c_preproc_warn_flag
11562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11563 else
11564 ac_cpp_err=
11565 fi
11566 else
11567 ac_cpp_err=yes
11568 fi
11569 if test -z "$ac_cpp_err"; then
11570 ac_header_preproc=yes
11571 else
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575 ac_header_preproc=no
11576 fi
11577 rm -f conftest.err conftest.$ac_ext
11578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11579 echo "${ECHO_T}$ac_header_preproc" >&6
11580
11581 # So? What about this header?
11582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11583 yes:no: )
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11588 ac_header_preproc=yes
11589 ;;
11590 no:yes:* )
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11603 (
11604 cat <<\_ASBOX
11605 ## ------------------------------------------ ##
11606 ## Report this to the AC_PACKAGE_NAME lists. ##
11607 ## ------------------------------------------ ##
11608 _ASBOX
11609 ) |
11610 sed "s/^/$as_me: WARNING: /" >&2
11611 ;;
11612 esac
11613 echo "$as_me:$LINENO: checking for $ac_header" >&5
11614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618 eval "$as_ac_Header=\$ac_header_preproc"
11619 fi
11620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11622
11623 fi
11624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11625 cat >>confdefs.h <<_ACEOF
11626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11627 _ACEOF
11628
11629 fi
11630
11631 done
11632
11633
11634 echo "$as_me:$LINENO: checking for int8_t" >&5
11635 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
11636 if test "${ac_cv_type_int8_t+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 else
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h. */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 $ac_includes_default
11646 int
11647 main ()
11648 {
11649 if ((int8_t *) 0)
11650 return 0;
11651 if (sizeof (int8_t))
11652 return 0;
11653 ;
11654 return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11659 (eval $ac_compile) 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag"
11667 || test ! -s conftest.err'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try='test -s conftest.$ac_objext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 ac_cv_type_int8_t=yes
11680 else
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684 ac_cv_type_int8_t=no
11685 fi
11686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11687 fi
11688 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11689 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
11690 if test $ac_cv_type_int8_t = yes; then
11691 :
11692 else
11693
11694 cat >>confdefs.h <<\_ACEOF
11695 #define int8_t signed char
11696 _ACEOF
11697
11698 fi
11699
11700 echo "$as_me:$LINENO: checking for u_int8_t" >&5
11701 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
11702 if test "${ac_cv_type_u_int8_t+set}" = set; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 else
11705 cat >conftest.$ac_ext <<_ACEOF
11706 /* confdefs.h. */
11707 _ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11711 $ac_includes_default
11712 #ifdef HAVE_SYS_BITYPES_H
11713 #include <sys/bitypes.h>
11714 #endif
11715
11716 int
11717 main ()
11718 {
11719 if ((u_int8_t *) 0)
11720 return 0;
11721 if (sizeof (u_int8_t))
11722 return 0;
11723 ;
11724 return 0;
11725 }
11726 _ACEOF
11727 rm -f conftest.$ac_objext
11728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729 (eval $ac_compile) 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag"
11737 || test ! -s conftest.err'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try='test -s conftest.$ac_objext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 ac_cv_type_u_int8_t=yes
11750 else
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11753
11754 ac_cv_type_u_int8_t=no
11755 fi
11756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11757 fi
11758 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11759 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
11760 if test $ac_cv_type_u_int8_t = yes; then
11761 :
11762 else
11763
11764 cat >>confdefs.h <<\_ACEOF
11765 #define u_int8_t unsigned char
11766 _ACEOF
11767
11768 fi
11769
11770 echo "$as_me:$LINENO: checking for int16_t" >&5
11771 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
11772 if test "${ac_cv_type_int16_t+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
11775 cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h. */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 $ac_includes_default
11782 int
11783 main ()
11784 {
11785 if ((int16_t *) 0)
11786 return 0;
11787 if (sizeof (int16_t))
11788 return 0;
11789 ;
11790 return 0;
11791 }
11792 _ACEOF
11793 rm -f conftest.$ac_objext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11795 (eval $ac_compile) 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try='test -z "$ac_c_werror_flag"
11803 || test ! -s conftest.err'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest.$ac_objext'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11815 ac_cv_type_int16_t=yes
11816 else
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11819
11820 ac_cv_type_int16_t=no
11821 fi
11822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11823 fi
11824 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11825 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
11826 if test $ac_cv_type_int16_t = yes; then
11827 :
11828 else
11829
11830 cat >>confdefs.h <<\_ACEOF
11831 #define int16_t short
11832 _ACEOF
11833
11834 fi
11835
11836 echo "$as_me:$LINENO: checking for u_int16_t" >&5
11837 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
11838 if test "${ac_cv_type_u_int16_t+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 else
11841 cat >conftest.$ac_ext <<_ACEOF
11842 /* confdefs.h. */
11843 _ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 $ac_includes_default
11848 #ifdef HAVE_SYS_BITYPES_H
11849 #include <sys/bitypes.h>
11850 #endif
11851
11852 int
11853 main ()
11854 {
11855 if ((u_int16_t *) 0)
11856 return 0;
11857 if (sizeof (u_int16_t))
11858 return 0;
11859 ;
11860 return 0;
11861 }
11862 _ACEOF
11863 rm -f conftest.$ac_objext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11865 (eval $ac_compile) 2>conftest.er1
11866 ac_status=$?
11867 grep -v '^ *+' conftest.er1 >conftest.err
11868 rm -f conftest.er1
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -z "$ac_c_werror_flag"
11873 || test ! -s conftest.err'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; } &&
11879 { ac_try='test -s conftest.$ac_objext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11882 ac_status=$?
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 ac_cv_type_u_int16_t=yes
11886 else
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11889
11890 ac_cv_type_u_int16_t=no
11891 fi
11892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11893 fi
11894 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11895 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
11896 if test $ac_cv_type_u_int16_t = yes; then
11897 :
11898 else
11899
11900 cat >>confdefs.h <<\_ACEOF
11901 #define u_int16_t unsigned short
11902 _ACEOF
11903
11904 fi
11905
11906 echo "$as_me:$LINENO: checking for int32_t" >&5
11907 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
11908 if test "${ac_cv_type_int32_t+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h. */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 $ac_includes_default
11918 int
11919 main ()
11920 {
11921 if ((int32_t *) 0)
11922 return 0;
11923 if (sizeof (int32_t))
11924 return 0;
11925 ;
11926 return 0;
11927 }
11928 _ACEOF
11929 rm -f conftest.$ac_objext
11930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11931 (eval $ac_compile) 2>conftest.er1
11932 ac_status=$?
11933 grep -v '^ *+' conftest.er1 >conftest.err
11934 rm -f conftest.er1
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -z "$ac_c_werror_flag"
11939 || test ! -s conftest.err'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; } &&
11945 { ac_try='test -s conftest.$ac_objext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_cv_type_int32_t=yes
11952 else
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11955
11956 ac_cv_type_int32_t=no
11957 fi
11958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11959 fi
11960 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11961 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
11962 if test $ac_cv_type_int32_t = yes; then
11963 :
11964 else
11965
11966 cat >>confdefs.h <<\_ACEOF
11967 #define int32_t int
11968 _ACEOF
11969
11970 fi
11971
11972 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11973 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11974 if test "${ac_cv_type_u_int32_t+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977 cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h. */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 $ac_includes_default
11984 #ifdef HAVE_SYS_BITYPES_H
11985 #include <sys/bitypes.h>
11986 #endif
11987
11988 int
11989 main ()
11990 {
11991 if ((u_int32_t *) 0)
11992 return 0;
11993 if (sizeof (u_int32_t))
11994 return 0;
11995 ;
11996 return 0;
11997 }
11998 _ACEOF
11999 rm -f conftest.$ac_objext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12001 (eval $ac_compile) 2>conftest.er1
12002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try='test -z "$ac_c_werror_flag"
12009 || test ! -s conftest.err'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest.$ac_objext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_cv_type_u_int32_t=yes
12022 else
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026 ac_cv_type_u_int32_t=no
12027 fi
12028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12029 fi
12030 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12031 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
12032 if test $ac_cv_type_u_int32_t = yes; then
12033 :
12034 else
12035
12036 cat >>confdefs.h <<\_ACEOF
12037 #define u_int32_t unsigned int
12038 _ACEOF
12039
12040 fi
12041
12042 echo "$as_me:$LINENO: checking for int64_t" >&5
12043 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
12044 if test "${ac_cv_type_int64_t+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047 cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h. */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053 $ac_includes_default
12054 int
12055 main ()
12056 {
12057 if ((int64_t *) 0)
12058 return 0;
12059 if (sizeof (int64_t))
12060 return 0;
12061 ;
12062 return 0;
12063 }
12064 _ACEOF
12065 rm -f conftest.$ac_objext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12067 (eval $ac_compile) 2>conftest.er1
12068 ac_status=$?
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -f conftest.er1
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
12074 { ac_try='test -z "$ac_c_werror_flag"
12075 || test ! -s conftest.err'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; } &&
12081 { ac_try='test -s conftest.$ac_objext'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 ac_cv_type_int64_t=yes
12088 else
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12091
12092 ac_cv_type_int64_t=no
12093 fi
12094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12095 fi
12096 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12097 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
12098 if test $ac_cv_type_int64_t = yes; then
12099 :
12100 else
12101
12102 cat >>confdefs.h <<\_ACEOF
12103 #define int64_t long long
12104 _ACEOF
12105
12106 fi
12107
12108 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12109 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12110 if test "${ac_cv_type_u_int64_t+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h. */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 $ac_includes_default
12120 #ifdef HAVE_SYS_BITYPES_H
12121 #include <sys/bitypes.h>
12122 #endif
12123
12124 int
12125 main ()
12126 {
12127 if ((u_int64_t *) 0)
12128 return 0;
12129 if (sizeof (u_int64_t))
12130 return 0;
12131 ;
12132 return 0;
12133 }
12134 _ACEOF
12135 rm -f conftest.$ac_objext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12137 (eval $ac_compile) 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -z "$ac_c_werror_flag"
12145 || test ! -s conftest.err'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; } &&
12151 { ac_try='test -s conftest.$ac_objext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_type_u_int64_t=yes
12158 else
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12161
12162 ac_cv_type_u_int64_t=no
12163 fi
12164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12165 fi
12166 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12167 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12168 if test $ac_cv_type_u_int64_t = yes; then
12169 :
12170 else
12171
12172 cat >>confdefs.h <<\_ACEOF
12173 #define u_int64_t unsigned long long
12174 _ACEOF
12175
12176 fi
12177
12178
12179 #
12180 # We can't just check for <inttypes.h> - some systems have one that
12181 # doesn't define all the PRI[doxu]64 macros.
12182 #
12183
12184 for ac_header in inttypes.h
12185 do
12186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12188 echo "$as_me:$LINENO: checking for $ac_header" >&5
12189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 fi
12193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12195 else
12196 # Is the header compilable?
12197 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12199 cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h. */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 $ac_includes_default
12206 #include <$ac_header>
12207 _ACEOF
12208 rm -f conftest.$ac_objext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210 (eval $ac_compile) 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } &&
12217 { ac_try='test -z "$ac_c_werror_flag"
12218 || test ! -s conftest.err'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest.$ac_objext'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 ac_header_compiler=yes
12231 else
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235 ac_header_compiler=no
12236 fi
12237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12239 echo "${ECHO_T}$ac_header_compiler" >&6
12240
12241 # Is the header present?
12242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 #include <$ac_header>
12251 _ACEOF
12252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } >/dev/null; then
12260 if test -s conftest.err; then
12261 ac_cpp_err=$ac_c_preproc_warn_flag
12262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12263 else
12264 ac_cpp_err=
12265 fi
12266 else
12267 ac_cpp_err=yes
12268 fi
12269 if test -z "$ac_cpp_err"; then
12270 ac_header_preproc=yes
12271 else
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 ac_header_preproc=no
12276 fi
12277 rm -f conftest.err conftest.$ac_ext
12278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12279 echo "${ECHO_T}$ac_header_preproc" >&6
12280
12281 # So? What about this header?
12282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12283 yes:no: )
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12288 ac_header_preproc=yes
12289 ;;
12290 no:yes:* )
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12303 (
12304 cat <<\_ASBOX
12305 ## ------------------------------------------ ##
12306 ## Report this to the AC_PACKAGE_NAME lists. ##
12307 ## ------------------------------------------ ##
12308 _ASBOX
12309 ) |
12310 sed "s/^/$as_me: WARNING: /" >&2
12311 ;;
12312 esac
12313 echo "$as_me:$LINENO: checking for $ac_header" >&5
12314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318 eval "$as_ac_Header=\$ac_header_preproc"
12319 fi
12320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12322
12323 fi
12324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12325 cat >>confdefs.h <<_ACEOF
12326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12327 _ACEOF
12328
12329 #
12330 # OK, we have inttypes.h, but does it define those macros?
12331 #
12332 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12333 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
12334 cat >conftest.$ac_ext <<_ACEOF
12335
12336 /* confdefs.h. */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12341
12342 #include <inttypes.h>
12343 #include <stdio.h>
12344 #include <sys/types.h>
12345 #ifdef HAVE_SYS_BITYPES_H
12346 #include <sys/bitypes.h>
12347 #endif
12348
12349 main()
12350 {
12351 printf("%" PRId64 "\n", (u_int64_t)1);
12352 printf("%" PRIo64 "\n", (u_int64_t)1);
12353 printf("%" PRIx64 "\n", (u_int64_t)1);
12354 printf("%" PRIu64 "\n", (u_int64_t)1);
12355 }
12356
12357
12358 _ACEOF
12359 rm -f conftest.$ac_objext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12361 (eval $ac_compile) 2>conftest.er1
12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag"
12369 || test ! -s conftest.err'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest.$ac_objext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381
12382 echo "$as_me:$LINENO: result: yes" >&5
12383 echo "${ECHO_T}yes" >&6
12384 ac_lbl_inttypes_h_defines_formats=yes
12385
12386 else
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390
12391 echo "$as_me:$LINENO: result: no" >&5
12392 echo "${ECHO_T}no" >&6
12393 ac_lbl_inttypes_h_defines_formats=no
12394
12395 fi
12396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12397
12398 else
12399
12400 #
12401 # We don't have inttypes.h, so it obviously can't define those
12402 # macros.
12403 #
12404 ac_lbl_inttypes_h_defines_formats=no
12405
12406 fi
12407
12408 done
12409
12410 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12411
12412 echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12413 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
12414 if test "$cross_compiling" = yes; then
12415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12416 See \`config.log' for more details." >&5
12417 echo "$as_me: error: cannot run test program while cross compiling
12418 See \`config.log' for more details." >&2;}
12419 { (exit 1); exit 1; }; }
12420 else
12421 cat >conftest.$ac_ext <<_ACEOF
12422
12423 /* confdefs.h. */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12428
12429 # ifdef HAVE_INTTYPES_H
12430 #include <inttypes.h>
12431 # endif
12432 # ifdef HAVE_SYS_BITYPES_H
12433 #include <sys/bitypes.h>
12434 # endif
12435 #include <stdio.h>
12436 #include <sys/types.h>
12437
12438 main()
12439 {
12440 u_int64_t t = 1;
12441 char strbuf[16+1];
12442 sprintf(strbuf, "%016lx", t << 32);
12443 if (strcmp(strbuf, "0000000100000000") == 0)
12444 exit(0);
12445 else
12446 exit(1);
12447 }
12448
12449
12450 _ACEOF
12451 rm -f conftest$ac_exeext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 (eval $ac_link) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; }; then
12462
12463 cat >>confdefs.h <<\_ACEOF
12464 #define PRId64 "ld"
12465 _ACEOF
12466
12467 cat >>confdefs.h <<\_ACEOF
12468 #define PRIo64 "lo"
12469 _ACEOF
12470
12471 cat >>confdefs.h <<\_ACEOF
12472 #define PRIx64 "lx"
12473 _ACEOF
12474
12475 cat >>confdefs.h <<\_ACEOF
12476 #define PRIu64 "lu"
12477 _ACEOF
12478
12479 echo "$as_me:$LINENO: result: yes" >&5
12480 echo "${ECHO_T}yes" >&6
12481
12482 else
12483 echo "$as_me: program exited with status $ac_status" >&5
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 ( exit $ac_status )
12488
12489 echo "$as_me:$LINENO: result: no" >&5
12490 echo "${ECHO_T}no" >&6
12491
12492
12493 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
12494 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
12495 if test "$cross_compiling" = yes; then
12496 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12497 See \`config.log' for more details." >&5
12498 echo "$as_me: error: cannot run test program while cross compiling
12499 See \`config.log' for more details." >&2;}
12500 { (exit 1); exit 1; }; }
12501 else
12502 cat >conftest.$ac_ext <<_ACEOF
12503
12504 /* confdefs.h. */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509
12510 # ifdef HAVE_INTTYPES_H
12511 #include <inttypes.h>
12512 # endif
12513 # ifdef HAVE_SYS_BITYPES_H
12514 #include <sys/bitypes.h>
12515 # endif
12516 #include <stdio.h>
12517 #include <sys/types.h>
12518
12519 main()
12520 {
12521 u_int64_t t = 1;
12522 char strbuf[16+1];
12523 sprintf(strbuf, "%016llx", t << 32);
12524 if (strcmp(strbuf, "0000000100000000") == 0)
12525 exit(0);
12526 else
12527 exit(1);
12528 }
12529
12530
12531 _ACEOF
12532 rm -f conftest$ac_exeext
12533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12534 (eval $ac_link) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543
12544 cat >>confdefs.h <<\_ACEOF
12545 #define PRId64 "lld"
12546 _ACEOF
12547
12548 cat >>confdefs.h <<\_ACEOF
12549 #define PRIo64 "llo"
12550 _ACEOF
12551
12552 cat >>confdefs.h <<\_ACEOF
12553 #define PRIx64 "llx"
12554 _ACEOF
12555
12556 cat >>confdefs.h <<\_ACEOF
12557 #define PRIu64 "llu"
12558 _ACEOF
12559
12560 echo "$as_me:$LINENO: result: yes" >&5
12561 echo "${ECHO_T}yes" >&6
12562
12563 else
12564 echo "$as_me: program exited with status $ac_status" >&5
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 ( exit $ac_status )
12569
12570 echo "$as_me:$LINENO: result: no" >&5
12571 echo "${ECHO_T}no" >&6
12572
12573
12574 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12575 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
12576 if test "$cross_compiling" = yes; then
12577 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12578 See \`config.log' for more details." >&5
12579 echo "$as_me: error: cannot run test program while cross compiling
12580 See \`config.log' for more details." >&2;}
12581 { (exit 1); exit 1; }; }
12582 else
12583 cat >conftest.$ac_ext <<_ACEOF
12584
12585 /* confdefs.h. */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590
12591 # ifdef HAVE_INTTYPES_H
12592 #include <inttypes.h>
12593 # endif
12594 # ifdef HAVE_SYS_BITYPES_H
12595 #include <sys/bitypes.h>
12596 # endif
12597 #include <stdio.h>
12598 #include <sys/types.h>
12599
12600 main()
12601 {
12602 u_int64_t t = 1;
12603 char strbuf[16+1];
12604 sprintf(strbuf, "%016Lx", t << 32);
12605 if (strcmp(strbuf, "0000000100000000") == 0)
12606 exit(0);
12607 else
12608 exit(1);
12609 }
12610
12611
12612 _ACEOF
12613 rm -f conftest$ac_exeext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12615 (eval $ac_link) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624
12625 cat >>confdefs.h <<\_ACEOF
12626 #define PRId64 "Ld"
12627 _ACEOF
12628
12629 cat >>confdefs.h <<\_ACEOF
12630 #define PRIo64 "Lo"
12631 _ACEOF
12632
12633 cat >>confdefs.h <<\_ACEOF
12634 #define PRIx64 "Lx"
12635 _ACEOF
12636
12637 cat >>confdefs.h <<\_ACEOF
12638 #define PRIu64 "Lu"
12639 _ACEOF
12640
12641 echo "$as_me:$LINENO: result: yes" >&5
12642 echo "${ECHO_T}yes" >&6
12643
12644 else
12645 echo "$as_me: program exited with status $ac_status" >&5
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12648
12649 ( exit $ac_status )
12650
12651 echo "$as_me:$LINENO: result: no" >&5
12652 echo "${ECHO_T}no" >&6
12653
12654
12655 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12656 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
12657 if test "$cross_compiling" = yes; then
12658 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12659 See \`config.log' for more details." >&5
12660 echo "$as_me: error: cannot run test program while cross compiling
12661 See \`config.log' for more details." >&2;}
12662 { (exit 1); exit 1; }; }
12663 else
12664 cat >conftest.$ac_ext <<_ACEOF
12665
12666 /* confdefs.h. */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12671
12672 # ifdef HAVE_INTTYPES_H
12673 #include <inttypes.h>
12674 # endif
12675 # ifdef HAVE_SYS_BITYPES_H
12676 #include <sys/bitypes.h>
12677 # endif
12678 #include <stdio.h>
12679 #include <sys/types.h>
12680
12681 main()
12682 {
12683 u_int64_t t = 1;
12684 char strbuf[16+1];
12685 sprintf(strbuf, "%016qx", t << 32);
12686 if (strcmp(strbuf, "0000000100000000") == 0)
12687 exit(0);
12688 else
12689 exit(1);
12690 }
12691
12692
12693 _ACEOF
12694 rm -f conftest$ac_exeext
12695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696 (eval $ac_link) 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705
12706 cat >>confdefs.h <<\_ACEOF
12707 #define PRId64 "qd"
12708 _ACEOF
12709
12710 cat >>confdefs.h <<\_ACEOF
12711 #define PRIo64 "qo"
12712 _ACEOF
12713
12714 cat >>confdefs.h <<\_ACEOF
12715 #define PRIx64 "qx"
12716 _ACEOF
12717
12718 cat >>confdefs.h <<\_ACEOF
12719 #define PRIu64 "qu"
12720 _ACEOF
12721
12722 echo "$as_me:$LINENO: result: yes" >&5
12723 echo "${ECHO_T}yes" >&6
12724
12725 else
12726 echo "$as_me: program exited with status $ac_status" >&5
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 ( exit $ac_status )
12731
12732 echo "$as_me:$LINENO: result: no" >&5
12733 echo "${ECHO_T}no" >&6
12734
12735 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
12736 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
12737 { (exit 1); exit 1; }; }
12738
12739
12740 fi
12741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12742 fi
12743
12744
12745
12746 fi
12747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12748 fi
12749
12750
12751
12752 fi
12753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12754 fi
12755
12756
12757
12758 fi
12759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12760 fi
12761
12762 fi
12763
12764 if test -n "$ac_tool_prefix"; then
12765 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12766 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12767 echo "$as_me:$LINENO: checking for $ac_word" >&5
12768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12769 if test "${ac_cv_prog_RANLIB+set}" = set; then
12770 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 else
12772 if test -n "$RANLIB"; then
12773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12774 else
12775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776 for as_dir in $PATH
12777 do
12778 IFS=$as_save_IFS
12779 test -z "$as_dir" && as_dir=.
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12782 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12784 break 2
12785 fi
12786 done
12787 done
12788
12789 fi
12790 fi
12791 RANLIB=$ac_cv_prog_RANLIB
12792 if test -n "$RANLIB"; then
12793 echo "$as_me:$LINENO: result: $RANLIB" >&5
12794 echo "${ECHO_T}$RANLIB" >&6
12795 else
12796 echo "$as_me:$LINENO: result: no" >&5
12797 echo "${ECHO_T}no" >&6
12798 fi
12799
12800 fi
12801 if test -z "$ac_cv_prog_RANLIB"; then
12802 ac_ct_RANLIB=$RANLIB
12803 # Extract the first word of "ranlib", so it can be a program name with args.
12804 set dummy ranlib; ac_word=$2
12805 echo "$as_me:$LINENO: checking for $ac_word" >&5
12806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12807 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810 if test -n "$ac_ct_RANLIB"; then
12811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12812 else
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12815 do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12820 ac_cv_prog_ac_ct_RANLIB="ranlib"
12821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12823 fi
12824 done
12825 done
12826
12827 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12828 fi
12829 fi
12830 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12831 if test -n "$ac_ct_RANLIB"; then
12832 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12833 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12834 else
12835 echo "$as_me:$LINENO: result: no" >&5
12836 echo "${ECHO_T}no" >&6
12837 fi
12838
12839 RANLIB=$ac_ct_RANLIB
12840 else
12841 RANLIB="$ac_cv_prog_RANLIB"
12842 fi
12843
12844
12845 rm -f os-proto.h
12846 if test "${LBL_CFLAGS+set}" = set; then
12847 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
12848 fi
12849 if test -f .devel ; then
12850 if test "$GCC" = yes ; then
12851 if test "${LBL_CFLAGS+set}" != set; then
12852 if test "$ac_cv_prog_cc_g" = yes ; then
12853 V_CCOPT="-g $V_CCOPT"
12854 fi
12855 V_CCOPT="$V_CCOPT -Wall"
12856 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
12857 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
12858 fi
12859 fi
12860 else
12861 case "$host_os" in
12862
12863 irix6*)
12864 V_CCOPT="$V_CCOPT -n32"
12865 ;;
12866
12867 *)
12868 ;;
12869 esac
12870 fi
12871 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
12872 name="lbl/os-$os.h"
12873 if test -f $name ; then
12874 ln -s $name os-proto.h
12875 cat >>confdefs.h <<\_ACEOF
12876 #define HAVE_OS_PROTO_H 1
12877 _ACEOF
12878
12879 else
12880 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
12881 echo "$as_me: WARNING: can't find $name" >&2;}
12882 fi
12883 fi
12884
12885 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
12886 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
12887 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 else
12890 cat >conftest.$ac_ext <<_ACEOF
12891 /* confdefs.h. */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896
12897 # include <sys/types.h>
12898 # include <sys/socket.h>
12899 int
12900 main ()
12901 {
12902 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
12903 ;
12904 return 0;
12905 }
12906 _ACEOF
12907 rm -f conftest.$ac_objext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>conftest.er1
12910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try='test -z "$ac_c_werror_flag"
12917 || test ! -s conftest.err'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest.$ac_objext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 ac_cv_lbl_sockaddr_has_sa_len=yes
12930 else
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12933
12934 ac_cv_lbl_sockaddr_has_sa_len=no
12935 fi
12936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12937 fi
12938
12939 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
12940 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
12941 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_SOCKADDR_SA_LEN 1
12944 _ACEOF
12945
12946 fi
12947
12948 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
12949 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
12950 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953 case "$host_cpu" in
12954
12955 #
12956 # These are CPU types where:
12957 #
12958 # the CPU faults on an unaligned access, but at least some
12959 # OSes that support that CPU catch the fault and simulate
12960 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
12961 # the simulation is slow, so we don't want to use it;
12962 #
12963 # the CPU, I infer (from the old
12964 #
12965 # XXX: should also check that they don't do weird things (like on arm)
12966 #
12967 # comment) doesn't fault on unaligned accesses, but doesn't
12968 # do a normal unaligned fetch, either (e.g., presumably, ARM);
12969 #
12970 # for whatever reason, the test program doesn't work
12971 # (this has been claimed to be the case for several of those
12972 # CPUs - I don't know what the problem is; the problem
12973 # was reported as "the test program dumps core" for SuperH,
12974 # but that's what the test program is *supposed* to do -
12975 # it dumps core before it writes anything, so the test
12976 # for an empty output file should find an empty output
12977 # file and conclude that unaligned accesses don't work).
12978 #
12979 # This run-time test won't work if you're cross-compiling, so
12980 # in order to support cross-compiling for a particular CPU,
12981 # we have to wire in the list of CPU types anyway, as far as
12982 # I know, so perhaps we should just have a set of CPUs on
12983 # which we know it doesn't work, a set of CPUs on which we
12984 # know it does work, and have the script just fail on other
12985 # cpu types and update it when such a failure occurs.
12986 #
12987 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
12988 ac_cv_lbl_unaligned_fail=yes
12989 ;;
12990
12991 *)
12992 cat >conftest.c <<EOF
12993 # include <sys/types.h>
12994 # include <sys/wait.h>
12995 # include <stdio.h>
12996 unsigned char a[5] = { 1, 2, 3, 4, 5 };
12997 main() {
12998 unsigned int i;
12999 pid_t pid;
13000 int status;
13001 /* avoid "core dumped" message */
13002 pid = fork();
13003 if (pid < 0)
13004 exit(2);
13005 if (pid > 0) {
13006 /* parent */
13007 pid = waitpid(pid, &status, 0);
13008 if (pid < 0)
13009 exit(3);
13010 exit(!WIFEXITED(status));
13011 }
13012 /* child */
13013 i = *(unsigned int *)&a[1];
13014 printf("%d\n", i);
13015 exit(0);
13016 }
13017 EOF
13018 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13019 conftest.c $LIBS >/dev/null 2>&1
13020 if test ! -x conftest ; then
13021 ac_cv_lbl_unaligned_fail=yes
13022 else
13023 ./conftest >conftest.out
13024 if test ! -s conftest.out ; then
13025 ac_cv_lbl_unaligned_fail=yes
13026 else
13027 ac_cv_lbl_unaligned_fail=no
13028 fi
13029 fi
13030 rm -f conftest* core core.conftest
13031 ;;
13032 esac
13033 fi
13034
13035 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
13036 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
13037 if test $ac_cv_lbl_unaligned_fail = yes ; then
13038 cat >>confdefs.h <<\_ACEOF
13039 #define LBL_ALIGN 1
13040 _ACEOF
13041
13042 fi
13043
13044
13045 echo "$as_me:$LINENO: checking for h_errno" >&5
13046 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
13047 if test "${ac_cv_var_h_errno+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050 cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h. */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13056
13057 # include <sys/types.h>
13058 # include <netdb.h>
13059 int
13060 main ()
13061 {
13062 int foo = h_errno;
13063 ;
13064 return 0;
13065 }
13066 _ACEOF
13067 rm -f conftest.$ac_objext
13068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13069 (eval $ac_compile) 2>conftest.er1
13070 ac_status=$?
13071 grep -v '^ *+' conftest.er1 >conftest.err
13072 rm -f conftest.er1
13073 cat conftest.err >&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
13076 { ac_try='test -z "$ac_c_werror_flag"
13077 || test ! -s conftest.err'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; } &&
13083 { ac_try='test -s conftest.$ac_objext'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
13089 ac_cv_var_h_errno=yes
13090 else
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094 ac_cv_var_h_errno=no
13095 fi
13096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13097 fi
13098
13099 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
13100 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
13101 if test "$ac_cv_var_h_errno" = "yes"; then
13102 cat >>confdefs.h <<\_ACEOF
13103 #define HAVE_H_ERRNO 1
13104 _ACEOF
13105
13106 fi
13107
13108
13109 # Check for SSLeay
13110 echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13111 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6
13112 # Specify location for both includes and libraries.
13113 want_libcrypto=youmama
13114
13115 # Check whether --with-crypto or --without-crypto was given.
13116 if test "${with_crypto+set}" = set; then
13117 withval="$with_crypto"
13118
13119 if test $withval = no
13120 then
13121 want_libcrypto=no
13122 echo "$as_me:$LINENO: result: no" >&5
13123 echo "${ECHO_T}no" >&6
13124 elif test $withval = yes
13125 then
13126 want_libcrypto=yes
13127 echo "$as_me:$LINENO: result: yes" >&5
13128 echo "${ECHO_T}yes" >&6
13129 else
13130 want_libcrypto=yes
13131 echo "$as_me:$LINENO: result: yes" >&5
13132 echo "${ECHO_T}yes" >&6
13133 crypto_dir=$withval
13134 fi
13135
13136 else
13137
13138 #
13139 # Use libcrypto if it's present, otherwise don't.
13140 #
13141 want_libcrypto=ifavailable
13142 echo "$as_me:$LINENO: result: yes, if available" >&5
13143 echo "${ECHO_T}yes, if available" >&6
13144
13145 fi;
13146 if test "$want_libcrypto" != "no"; then
13147 ac_cv_ssleay_path=no
13148 incdir=no
13149 if test "x$crypto_dir" = x; then
13150 #
13151 # Location not specified; check the default locations.
13152 #
13153 echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13154 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6
13155 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13156 if test "x${host_alias}" != x; then
13157 dirs="/usr/${host_alias} $dirs"
13158 fi
13159 for dir in $dirs; do
13160
13161 #
13162 # XXX - is there a better way to check if a given library is
13163 # in a given directory than checking each of the possible
13164 # shared library suffixes?
13165 #
13166 # Are there any other suffixes we need to look for? Do we
13167 # have to worry about ".so.{version}"?
13168 #
13169 # Or should we just look for "libcrypto.*"?
13170 #
13171 if test -d "$dir/lib" -a \( -f "$dir/lib/libcrypto.a" -o \
13172 -f "$dir/lib/libcrypto.so" -o \
13173 -f "$dir/lib/libcrypto.sl" -o \
13174 -f "$dir/lib/libcrypto.dylib" \); then
13175 ac_cv_ssleay_path="$dir"
13176 fi
13177
13178 #
13179 # Make sure we have the headers as well.
13180 #
13181 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13182 incdir="-I$dir/include"
13183 fi
13184
13185
13186 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13187 break;
13188 else
13189 ac_cv_ssleay_path=no
13190 incdir=no
13191 fi
13192 done
13193 if test "$ac_cv_ssleay_path" != no; then
13194 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13195 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
13196 fi
13197 else
13198 echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13199 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6
13200
13201 #
13202 # XXX - is there a better way to check if a given library is
13203 # in a given directory than checking each of the possible
13204 # shared library suffixes?
13205 #
13206 # Are there any other suffixes we need to look for? Do we
13207 # have to worry about ".so.{version}"?
13208 #
13209 # Or should we just look for "libcrypto.*"?
13210 #
13211 if test -d "$crypto_dir/lib" -a \( -f "$crypto_dir/lib/libcrypto.a" -o \
13212 -f "$crypto_dir/lib/libcrypto.so" -o \
13213 -f "$crypto_dir/lib/libcrypto.sl" -o \
13214 -f "$crypto_dir/lib/libcrypto.dylib" \); then
13215 ac_cv_ssleay_path="$crypto_dir"
13216 fi
13217
13218 #
13219 # Make sure we have the headers as well.
13220 #
13221 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13222 incdir="-I$crypto_dir/include"
13223 fi
13224
13225 if test "$ac_cv_ssleay_path" != no; then
13226 echo "$as_me:$LINENO: result: found" >&5
13227 echo "${ECHO_T}found" >&6
13228 fi
13229 fi
13230 if test "$ac_cv_ssleay_path" != no; then
13231 V_INCLS="$V_INCLS $incdir"
13232 LDFLAGS="-L$dir/lib $LDFLAGS"
13233 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13234 LIBS="$LIBS -lRSAglue"
13235 fi
13236 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13237 LIBS="$LIBS -lrsaref"
13238 fi
13239
13240 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13241 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13242 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 else
13245 ac_check_lib_save_LIBS=$LIBS
13246 LIBS="-lcrypto $LIBS"
13247 cat >conftest.$ac_ext <<_ACEOF
13248 /* confdefs.h. */
13249 _ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13253
13254 /* Override any gcc2 internal prototype to avoid an error. */
13255 #ifdef __cplusplus
13256 extern "C"
13257 #endif
13258 /* We use char because int might match the return type of a gcc2
13259 builtin and then its argument prototype would still apply. */
13260 char DES_cbc_encrypt ();
13261 int
13262 main ()
13263 {
13264 DES_cbc_encrypt ();
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 rm -f conftest.$ac_objext conftest$ac_exeext
13270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13271 (eval $ac_link) 2>conftest.er1
13272 ac_status=$?
13273 grep -v '^ *+' conftest.er1 >conftest.err
13274 rm -f conftest.er1
13275 cat conftest.err >&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } &&
13278 { ac_try='test -z "$ac_c_werror_flag"
13279 || test ! -s conftest.err'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; } &&
13285 { ac_try='test -s conftest$ac_exeext'
13286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; }; then
13291 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13292 else
13293 echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.$ac_ext >&5
13295
13296 ac_cv_lib_crypto_DES_cbc_encrypt=no
13297 fi
13298 rm -f conftest.err conftest.$ac_objext \
13299 conftest$ac_exeext conftest.$ac_ext
13300 LIBS=$ac_check_lib_save_LIBS
13301 fi
13302 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13303 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
13304 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13305 cat >>confdefs.h <<_ACEOF
13306 #define HAVE_LIBCRYPTO 1
13307 _ACEOF
13308
13309 LIBS="-lcrypto $LIBS"
13310
13311 fi
13312
13313
13314 CPPFLAGS="$CPPFLAGS $V_INCLS"
13315
13316 for ac_header in openssl/evp.h
13317 do
13318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13320 echo "$as_me:$LINENO: checking for $ac_header" >&5
13321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13324 fi
13325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13327 else
13328 # Is the header compilable?
13329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13331 cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h. */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 $ac_includes_default
13338 #include <$ac_header>
13339 _ACEOF
13340 rm -f conftest.$ac_objext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13342 (eval $ac_compile) 2>conftest.er1
13343 ac_status=$?
13344 grep -v '^ *+' conftest.er1 >conftest.err
13345 rm -f conftest.er1
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try='test -z "$ac_c_werror_flag"
13350 || test ! -s conftest.err'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; } &&
13356 { ac_try='test -s conftest.$ac_objext'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 ac_header_compiler=yes
13363 else
13364 echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13366
13367 ac_header_compiler=no
13368 fi
13369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13371 echo "${ECHO_T}$ac_header_compiler" >&6
13372
13373 # Is the header present?
13374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13376 cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h. */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 #include <$ac_header>
13383 _ACEOF
13384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13386 ac_status=$?
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } >/dev/null; then
13392 if test -s conftest.err; then
13393 ac_cpp_err=$ac_c_preproc_warn_flag
13394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13395 else
13396 ac_cpp_err=
13397 fi
13398 else
13399 ac_cpp_err=yes
13400 fi
13401 if test -z "$ac_cpp_err"; then
13402 ac_header_preproc=yes
13403 else
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13406
13407 ac_header_preproc=no
13408 fi
13409 rm -f conftest.err conftest.$ac_ext
13410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13411 echo "${ECHO_T}$ac_header_preproc" >&6
13412
13413 # So? What about this header?
13414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13415 yes:no: )
13416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13420 ac_header_preproc=yes
13421 ;;
13422 no:yes:* )
13423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13435 (
13436 cat <<\_ASBOX
13437 ## ------------------------------------------ ##
13438 ## Report this to the AC_PACKAGE_NAME lists. ##
13439 ## ------------------------------------------ ##
13440 _ASBOX
13441 ) |
13442 sed "s/^/$as_me: WARNING: /" >&2
13443 ;;
13444 esac
13445 echo "$as_me:$LINENO: checking for $ac_header" >&5
13446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450 eval "$as_ac_Header=\$ac_header_preproc"
13451 fi
13452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13454
13455 fi
13456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13457 cat >>confdefs.h <<_ACEOF
13458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13459 _ACEOF
13460
13461 fi
13462
13463 done
13464
13465 else
13466 #
13467 # Not found. Did the user explicitly ask for it?
13468 #
13469 echo "$as_me:$LINENO: result: not found" >&5
13470 echo "${ECHO_T}not found" >&6
13471 if test "$want_libcrypto" = yes; then
13472 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
13473 echo "$as_me: error: SSLeay not found" >&2;}
13474 { (exit 1); exit 1; }; }
13475 fi
13476 fi
13477 fi
13478
13479 if test "$missing_includes" = "yes"; then
13480 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
13481 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
13482 fi
13483
13484
13485
13486
13487
13488
13489
13490
13491 # Find a good install program. We prefer a C program (faster),
13492 # so one script is as good as another. But avoid the broken or
13493 # incompatible versions:
13494 # SysV /etc/install, /usr/sbin/install
13495 # SunOS /usr/etc/install
13496 # IRIX /sbin/install
13497 # AIX /bin/install
13498 # AmigaOS /C/install, which installs bootblocks on floppy discs
13499 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13502 # OS/2's system install, which has a completely different semantic
13503 # ./install, which can be erroneously created by make from ./install.sh.
13504 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13505 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13506 if test -z "$INSTALL"; then
13507 if test "${ac_cv_path_install+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511 for as_dir in $PATH
13512 do
13513 IFS=$as_save_IFS
13514 test -z "$as_dir" && as_dir=.
13515 # Account for people who put trailing slashes in PATH elements.
13516 case $as_dir/ in
13517 ./ | .// | /cC/* | \
13518 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13519 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13520 /usr/ucb/* ) ;;
13521 *)
13522 # OSF1 and SCO ODT 3.0 have their own names for install.
13523 # Don't use installbsd from OSF since it installs stuff as root
13524 # by default.
13525 for ac_prog in ginstall scoinst install; do
13526 for ac_exec_ext in '' $ac_executable_extensions; do
13527 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13528 if test $ac_prog = install &&
13529 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13530 # AIX install. It has an incompatible calling convention.
13531 :
13532 elif test $ac_prog = install &&
13533 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13534 # program-specific install script used by HP pwplus--don't use.
13535 :
13536 else
13537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13538 break 3
13539 fi
13540 fi
13541 done
13542 done
13543 ;;
13544 esac
13545 done
13546
13547
13548 fi
13549 if test "${ac_cv_path_install+set}" = set; then
13550 INSTALL=$ac_cv_path_install
13551 else
13552 # As a last resort, use the slow shell script. We don't cache a
13553 # path for INSTALL within a source directory, because that will
13554 # break other packages using the cache if that directory is
13555 # removed, or if the path is relative.
13556 INSTALL=$ac_install_sh
13557 fi
13558 fi
13559 echo "$as_me:$LINENO: result: $INSTALL" >&5
13560 echo "${ECHO_T}$INSTALL" >&6
13561
13562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13563 # It thinks the first close brace ends the variable substitution.
13564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13565
13566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13567
13568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13569
13570
13571 ac_config_headers="$ac_config_headers config.h"
13572
13573
13574 ac_config_commands="$ac_config_commands default-1"
13575
13576 ac_config_files="$ac_config_files Makefile"
13577 cat >confcache <<\_ACEOF
13578 # This file is a shell script that caches the results of configure
13579 # tests run on this system so they can be shared between configure
13580 # scripts and configure runs, see configure's option --config-cache.
13581 # It is not useful on other systems. If it contains results you don't
13582 # want to keep, you may remove or edit it.
13583 #
13584 # config.status only pays attention to the cache file if you give it
13585 # the --recheck option to rerun configure.
13586 #
13587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13589 # following values.
13590
13591 _ACEOF
13592
13593 # The following way of writing the cache mishandles newlines in values,
13594 # but we know of no workaround that is simple, portable, and efficient.
13595 # So, don't put newlines in cache variables' values.
13596 # Ultrix sh set writes to stderr and can't be redirected directly,
13597 # and sets the high bit in the cache file unless we assign to the vars.
13598 {
13599 (set) 2>&1 |
13600 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13601 *ac_space=\ *)
13602 # `set' does not quote correctly, so add quotes (double-quote
13603 # substitution turns \\\\ into \\, and sed turns \\ into \).
13604 sed -n \
13605 "s/'/'\\\\''/g;
13606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13607 ;;
13608 *)
13609 # `set' quotes correctly as required by POSIX, so do not add quotes.
13610 sed -n \
13611 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13612 ;;
13613 esac;
13614 } |
13615 sed '
13616 t clear
13617 : clear
13618 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13619 t end
13620 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13621 : end' >>confcache
13622 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13623 if test -w $cache_file; then
13624 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13625 cat confcache >$cache_file
13626 else
13627 echo "not updating unwritable cache $cache_file"
13628 fi
13629 fi
13630 rm -f confcache
13631
13632 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13633 # Let make expand exec_prefix.
13634 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13635
13636 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13637 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13638 # trailing colons and then remove the whole line if VPATH becomes empty
13639 # (actually we leave an empty line to preserve line numbers).
13640 if test "x$srcdir" = x.; then
13641 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13642 s/:*\$(srcdir):*/:/;
13643 s/:*\${srcdir}:*/:/;
13644 s/:*@srcdir@:*/:/;
13645 s/^\([^=]*=[ ]*\):*/\1/;
13646 s/:*$//;
13647 s/^[^=]*=[ ]*$//;
13648 }'
13649 fi
13650
13651 DEFS=-DHAVE_CONFIG_H
13652
13653 ac_libobjs=
13654 ac_ltlibobjs=
13655 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13656 # 1. Remove the extension, and $U if already installed.
13657 ac_i=`echo "$ac_i" |
13658 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13659 # 2. Add them.
13660 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13661 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13662 done
13663 LIBOBJS=$ac_libobjs
13664
13665 LTLIBOBJS=$ac_ltlibobjs
13666
13667
13668
13669 : ${CONFIG_STATUS=./config.status}
13670 ac_clean_files_save=$ac_clean_files
13671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13672 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13673 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13674 cat >$CONFIG_STATUS <<_ACEOF
13675 #! $SHELL
13676 # Generated by $as_me.
13677 # Run this file to recreate the current configuration.
13678 # Compiler output produced by configure, useful for debugging
13679 # configure, is in config.log if it exists.
13680
13681 debug=false
13682 ac_cs_recheck=false
13683 ac_cs_silent=false
13684 SHELL=\${CONFIG_SHELL-$SHELL}
13685 _ACEOF
13686
13687 cat >>$CONFIG_STATUS <<\_ACEOF
13688 ## --------------------- ##
13689 ## M4sh Initialization. ##
13690 ## --------------------- ##
13691
13692 # Be Bourne compatible
13693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13694 emulate sh
13695 NULLCMD=:
13696 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13697 # is contrary to our usage. Disable this feature.
13698 alias -g '${1+"$@"}'='"$@"'
13699 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13700 set -o posix
13701 fi
13702 DUALCASE=1; export DUALCASE # for MKS sh
13703
13704 # Support unset when possible.
13705 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13706 as_unset=unset
13707 else
13708 as_unset=false
13709 fi
13710
13711
13712 # Work around bugs in pre-3.0 UWIN ksh.
13713 $as_unset ENV MAIL MAILPATH
13714 PS1='$ '
13715 PS2='> '
13716 PS4='+ '
13717
13718 # NLS nuisances.
13719 for as_var in \
13720 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13721 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13722 LC_TELEPHONE LC_TIME
13723 do
13724 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13725 eval $as_var=C; export $as_var
13726 else
13727 $as_unset $as_var
13728 fi
13729 done
13730
13731 # Required to use basename.
13732 if expr a : '\(a\)' >/dev/null 2>&1; then
13733 as_expr=expr
13734 else
13735 as_expr=false
13736 fi
13737
13738 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13739 as_basename=basename
13740 else
13741 as_basename=false
13742 fi
13743
13744
13745 # Name of the executable.
13746 as_me=`$as_basename "$0" ||
13747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13748 X"$0" : 'X\(//\)$' \| \
13749 X"$0" : 'X\(/\)$' \| \
13750 . : '\(.\)' 2>/dev/null ||
13751 echo X/"$0" |
13752 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13753 /^X\/\(\/\/\)$/{ s//\1/; q; }
13754 /^X\/\(\/\).*/{ s//\1/; q; }
13755 s/.*/./; q'`
13756
13757
13758 # PATH needs CR, and LINENO needs CR and PATH.
13759 # Avoid depending upon Character Ranges.
13760 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13761 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13762 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13763 as_cr_digits='0123456789'
13764 as_cr_alnum=$as_cr_Letters$as_cr_digits
13765
13766 # The user is always right.
13767 if test "${PATH_SEPARATOR+set}" != set; then
13768 echo "#! /bin/sh" >conf$$.sh
13769 echo "exit 0" >>conf$$.sh
13770 chmod +x conf$$.sh
13771 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13772 PATH_SEPARATOR=';'
13773 else
13774 PATH_SEPARATOR=:
13775 fi
13776 rm -f conf$$.sh
13777 fi
13778
13779
13780 as_lineno_1=$LINENO
13781 as_lineno_2=$LINENO
13782 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13783 test "x$as_lineno_1" != "x$as_lineno_2" &&
13784 test "x$as_lineno_3" = "x$as_lineno_2" || {
13785 # Find who we are. Look in the path if we contain no path at all
13786 # relative or not.
13787 case $0 in
13788 *[\\/]* ) as_myself=$0 ;;
13789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790 for as_dir in $PATH
13791 do
13792 IFS=$as_save_IFS
13793 test -z "$as_dir" && as_dir=.
13794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13795 done
13796
13797 ;;
13798 esac
13799 # We did not find ourselves, most probably we were run as `sh COMMAND'
13800 # in which case we are not to be found in the path.
13801 if test "x$as_myself" = x; then
13802 as_myself=$0
13803 fi
13804 if test ! -f "$as_myself"; then
13805 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13806 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13807 { (exit 1); exit 1; }; }
13808 fi
13809 case $CONFIG_SHELL in
13810 '')
13811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13812 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13813 do
13814 IFS=$as_save_IFS
13815 test -z "$as_dir" && as_dir=.
13816 for as_base in sh bash ksh sh5; do
13817 case $as_dir in
13818 /*)
13819 if ("$as_dir/$as_base" -c '
13820 as_lineno_1=$LINENO
13821 as_lineno_2=$LINENO
13822 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13823 test "x$as_lineno_1" != "x$as_lineno_2" &&
13824 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13825 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13826 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13827 CONFIG_SHELL=$as_dir/$as_base
13828 export CONFIG_SHELL
13829 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13830 fi;;
13831 esac
13832 done
13833 done
13834 ;;
13835 esac
13836
13837 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13838 # uniformly replaced by the line number. The first 'sed' inserts a
13839 # line-number line before each line; the second 'sed' does the real
13840 # work. The second script uses 'N' to pair each line-number line
13841 # with the numbered line, and appends trailing '-' during
13842 # substitution so that $LINENO is not a special case at line end.
13843 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13844 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13845 sed '=' <$as_myself |
13846 sed '
13847 N
13848 s,$,-,
13849 : loop
13850 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13851 t loop
13852 s,-$,,
13853 s,^['$as_cr_digits']*\n,,
13854 ' >$as_me.lineno &&
13855 chmod +x $as_me.lineno ||
13856 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13857 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13858 { (exit 1); exit 1; }; }
13859
13860 # Don't try to exec as it changes $[0], causing all sort of problems
13861 # (the dirname of $[0] is not the place where we might find the
13862 # original and so on. Autoconf is especially sensible to this).
13863 . ./$as_me.lineno
13864 # Exit status is that of the last command.
13865 exit
13866 }
13867
13868
13869 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13870 *c*,-n*) ECHO_N= ECHO_C='
13871 ' ECHO_T=' ' ;;
13872 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13873 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13874 esac
13875
13876 if expr a : '\(a\)' >/dev/null 2>&1; then
13877 as_expr=expr
13878 else
13879 as_expr=false
13880 fi
13881
13882 rm -f conf$$ conf$$.exe conf$$.file
13883 echo >conf$$.file
13884 if ln -s conf$$.file conf$$ 2>/dev/null; then
13885 # We could just check for DJGPP; but this test a) works b) is more generic
13886 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13887 if test -f conf$$.exe; then
13888 # Don't use ln at all; we don't have any links
13889 as_ln_s='cp -p'
13890 else
13891 as_ln_s='ln -s'
13892 fi
13893 elif ln conf$$.file conf$$ 2>/dev/null; then
13894 as_ln_s=ln
13895 else
13896 as_ln_s='cp -p'
13897 fi
13898 rm -f conf$$ conf$$.exe conf$$.file
13899
13900 if mkdir -p . 2>/dev/null; then
13901 as_mkdir_p=:
13902 else
13903 test -d ./-p && rmdir ./-p
13904 as_mkdir_p=false
13905 fi
13906
13907 as_executable_p="test -f"
13908
13909 # Sed expression to map a string onto a valid CPP name.
13910 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13911
13912 # Sed expression to map a string onto a valid variable name.
13913 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13914
13915
13916 # IFS
13917 # We need space, tab and new line, in precisely that order.
13918 as_nl='
13919 '
13920 IFS=" $as_nl"
13921
13922 # CDPATH.
13923 $as_unset CDPATH
13924
13925 exec 6>&1
13926
13927 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13928 # report actual input values of CONFIG_FILES etc. instead of their
13929 # values after options handling. Logging --version etc. is OK.
13930 exec 5>>config.log
13931 {
13932 echo
13933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13934 ## Running $as_me. ##
13935 _ASBOX
13936 } >&5
13937 cat >&5 <<_CSEOF
13938
13939 This file was extended by $as_me, which was
13940 generated by GNU Autoconf 2.59. Invocation command line was
13941
13942 CONFIG_FILES = $CONFIG_FILES
13943 CONFIG_HEADERS = $CONFIG_HEADERS
13944 CONFIG_LINKS = $CONFIG_LINKS
13945 CONFIG_COMMANDS = $CONFIG_COMMANDS
13946 $ $0 $@
13947
13948 _CSEOF
13949 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13950 echo >&5
13951 _ACEOF
13952
13953 # Files that config.status was made for.
13954 if test -n "$ac_config_files"; then
13955 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13956 fi
13957
13958 if test -n "$ac_config_headers"; then
13959 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13960 fi
13961
13962 if test -n "$ac_config_links"; then
13963 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13964 fi
13965
13966 if test -n "$ac_config_commands"; then
13967 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13968 fi
13969
13970 cat >>$CONFIG_STATUS <<\_ACEOF
13971
13972 ac_cs_usage="\
13973 \`$as_me' instantiates files from templates according to the
13974 current configuration.
13975
13976 Usage: $0 [OPTIONS] [FILE]...
13977
13978 -h, --help print this help, then exit
13979 -V, --version print version number, then exit
13980 -q, --quiet do not print progress messages
13981 -d, --debug don't remove temporary files
13982 --recheck update $as_me by reconfiguring in the same conditions
13983 --file=FILE[:TEMPLATE]
13984 instantiate the configuration file FILE
13985 --header=FILE[:TEMPLATE]
13986 instantiate the configuration header FILE
13987
13988 Configuration files:
13989 $config_files
13990
13991 Configuration headers:
13992 $config_headers
13993
13994 Configuration commands:
13995 $config_commands
13996
13997 Report bugs to <bug-autoconf@gnu.org>."
13998 _ACEOF
13999
14000 cat >>$CONFIG_STATUS <<_ACEOF
14001 ac_cs_version="\\
14002 config.status
14003 configured by $0, generated by GNU Autoconf 2.59,
14004 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14005
14006 Copyright (C) 2003 Free Software Foundation, Inc.
14007 This config.status script is free software; the Free Software Foundation
14008 gives unlimited permission to copy, distribute and modify it."
14009 srcdir=$srcdir
14010 INSTALL="$INSTALL"
14011 _ACEOF
14012
14013 cat >>$CONFIG_STATUS <<\_ACEOF
14014 # If no file are specified by the user, then we need to provide default
14015 # value. By we need to know if files were specified by the user.
14016 ac_need_defaults=:
14017 while test $# != 0
14018 do
14019 case $1 in
14020 --*=*)
14021 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14022 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14023 ac_shift=:
14024 ;;
14025 -*)
14026 ac_option=$1
14027 ac_optarg=$2
14028 ac_shift=shift
14029 ;;
14030 *) # This is not an option, so the user has probably given explicit
14031 # arguments.
14032 ac_option=$1
14033 ac_need_defaults=false;;
14034 esac
14035
14036 case $ac_option in
14037 # Handling of the options.
14038 _ACEOF
14039 cat >>$CONFIG_STATUS <<\_ACEOF
14040 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14041 ac_cs_recheck=: ;;
14042 --version | --vers* | -V )
14043 echo "$ac_cs_version"; exit 0 ;;
14044 --he | --h)
14045 # Conflict between --help and --header
14046 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14047 Try \`$0 --help' for more information." >&5
14048 echo "$as_me: error: ambiguous option: $1
14049 Try \`$0 --help' for more information." >&2;}
14050 { (exit 1); exit 1; }; };;
14051 --help | --hel | -h )
14052 echo "$ac_cs_usage"; exit 0 ;;
14053 --debug | --d* | -d )
14054 debug=: ;;
14055 --file | --fil | --fi | --f )
14056 $ac_shift
14057 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14058 ac_need_defaults=false;;
14059 --header | --heade | --head | --hea )
14060 $ac_shift
14061 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14062 ac_need_defaults=false;;
14063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14064 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14065 ac_cs_silent=: ;;
14066
14067 # This is an error.
14068 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14069 Try \`$0 --help' for more information." >&5
14070 echo "$as_me: error: unrecognized option: $1
14071 Try \`$0 --help' for more information." >&2;}
14072 { (exit 1); exit 1; }; } ;;
14073
14074 *) ac_config_targets="$ac_config_targets $1" ;;
14075
14076 esac
14077 shift
14078 done
14079
14080 ac_configure_extra_args=
14081
14082 if $ac_cs_silent; then
14083 exec 6>/dev/null
14084 ac_configure_extra_args="$ac_configure_extra_args --silent"
14085 fi
14086
14087 _ACEOF
14088 cat >>$CONFIG_STATUS <<_ACEOF
14089 if \$ac_cs_recheck; then
14090 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14091 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14092 fi
14093
14094 _ACEOF
14095
14096 cat >>$CONFIG_STATUS <<_ACEOF
14097 #
14098 # INIT-COMMANDS section.
14099 #
14100
14101
14102
14103 _ACEOF
14104
14105
14106
14107 cat >>$CONFIG_STATUS <<\_ACEOF
14108 for ac_config_target in $ac_config_targets
14109 do
14110 case "$ac_config_target" in
14111 # Handling of arguments.
14112 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14113 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14114 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14115 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14116 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14117 { (exit 1); exit 1; }; };;
14118 esac
14119 done
14120
14121 # If the user did not use the arguments to specify the items to instantiate,
14122 # then the envvar interface is used. Set only those that are not.
14123 # We use the long form for the default assignment because of an extremely
14124 # bizarre bug on SunOS 4.1.3.
14125 if $ac_need_defaults; then
14126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14127 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14128 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14129 fi
14130
14131 # Have a temporary directory for convenience. Make it in the build tree
14132 # simply because there is no reason to put it here, and in addition,
14133 # creating and moving files from /tmp can sometimes cause problems.
14134 # Create a temporary directory, and hook for its removal unless debugging.
14135 $debug ||
14136 {
14137 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14138 trap '{ (exit 1); exit 1; }' 1 2 13 15
14139 }
14140
14141 # Create a (secure) tmp directory for tmp files.
14142
14143 {
14144 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14145 test -n "$tmp" && test -d "$tmp"
14146 } ||
14147 {
14148 tmp=./confstat$$-$RANDOM
14149 (umask 077 && mkdir $tmp)
14150 } ||
14151 {
14152 echo "$me: cannot create a temporary directory in ." >&2
14153 { (exit 1); exit 1; }
14154 }
14155
14156 _ACEOF
14157
14158 cat >>$CONFIG_STATUS <<_ACEOF
14159
14160 #
14161 # CONFIG_FILES section.
14162 #
14163
14164 # No need to generate the scripts if there are no CONFIG_FILES.
14165 # This happens for instance when ./config.status config.h
14166 if test -n "\$CONFIG_FILES"; then
14167 # Protect against being on the right side of a sed subst in config.status.
14168 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14169 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14170 s,@SHELL@,$SHELL,;t t
14171 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14172 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14173 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14174 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14175 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14176 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14177 s,@exec_prefix@,$exec_prefix,;t t
14178 s,@prefix@,$prefix,;t t
14179 s,@program_transform_name@,$program_transform_name,;t t
14180 s,@bindir@,$bindir,;t t
14181 s,@sbindir@,$sbindir,;t t
14182 s,@libexecdir@,$libexecdir,;t t
14183 s,@datadir@,$datadir,;t t
14184 s,@sysconfdir@,$sysconfdir,;t t
14185 s,@sharedstatedir@,$sharedstatedir,;t t
14186 s,@localstatedir@,$localstatedir,;t t
14187 s,@libdir@,$libdir,;t t
14188 s,@includedir@,$includedir,;t t
14189 s,@oldincludedir@,$oldincludedir,;t t
14190 s,@infodir@,$infodir,;t t
14191 s,@mandir@,$mandir,;t t
14192 s,@build_alias@,$build_alias,;t t
14193 s,@host_alias@,$host_alias,;t t
14194 s,@target_alias@,$target_alias,;t t
14195 s,@DEFS@,$DEFS,;t t
14196 s,@ECHO_C@,$ECHO_C,;t t
14197 s,@ECHO_N@,$ECHO_N,;t t
14198 s,@ECHO_T@,$ECHO_T,;t t
14199 s,@LIBS@,$LIBS,;t t
14200 s,@build@,$build,;t t
14201 s,@build_cpu@,$build_cpu,;t t
14202 s,@build_vendor@,$build_vendor,;t t
14203 s,@build_os@,$build_os,;t t
14204 s,@host@,$host,;t t
14205 s,@host_cpu@,$host_cpu,;t t
14206 s,@host_vendor@,$host_vendor,;t t
14207 s,@host_os@,$host_os,;t t
14208 s,@SHLICC2@,$SHLICC2,;t t
14209 s,@CC@,$CC,;t t
14210 s,@CFLAGS@,$CFLAGS,;t t
14211 s,@LDFLAGS@,$LDFLAGS,;t t
14212 s,@CPPFLAGS@,$CPPFLAGS,;t t
14213 s,@ac_ct_CC@,$ac_ct_CC,;t t
14214 s,@EXEEXT@,$EXEEXT,;t t
14215 s,@OBJEXT@,$OBJEXT,;t t
14216 s,@CPP@,$CPP,;t t
14217 s,@EGREP@,$EGREP,;t t
14218 s,@LIBOBJS@,$LIBOBJS,;t t
14219 s,@RANLIB@,$RANLIB,;t t
14220 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14221 s,@V_CCOPT@,$V_CCOPT,;t t
14222 s,@V_DEFS@,$V_DEFS,;t t
14223 s,@V_GROUP@,$V_GROUP,;t t
14224 s,@V_INCLS@,$V_INCLS,;t t
14225 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
14226 s,@LOCALSRC@,$LOCALSRC,;t t
14227 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14228 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14229 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14230 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14231 CEOF
14232
14233 _ACEOF
14234
14235 cat >>$CONFIG_STATUS <<\_ACEOF
14236 # Split the substitutions into bite-sized pieces for seds with
14237 # small command number limits, like on Digital OSF/1 and HP-UX.
14238 ac_max_sed_lines=48
14239 ac_sed_frag=1 # Number of current file.
14240 ac_beg=1 # First line for current file.
14241 ac_end=$ac_max_sed_lines # Line after last line for current file.
14242 ac_more_lines=:
14243 ac_sed_cmds=
14244 while $ac_more_lines; do
14245 if test $ac_beg -gt 1; then
14246 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14247 else
14248 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14249 fi
14250 if test ! -s $tmp/subs.frag; then
14251 ac_more_lines=false
14252 else
14253 # The purpose of the label and of the branching condition is to
14254 # speed up the sed processing (if there are no `@' at all, there
14255 # is no need to browse any of the substitutions).
14256 # These are the two extra sed commands mentioned above.
14257 (echo ':t
14258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14259 if test -z "$ac_sed_cmds"; then
14260 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14261 else
14262 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14263 fi
14264 ac_sed_frag=`expr $ac_sed_frag + 1`
14265 ac_beg=$ac_end
14266 ac_end=`expr $ac_end + $ac_max_sed_lines`
14267 fi
14268 done
14269 if test -z "$ac_sed_cmds"; then
14270 ac_sed_cmds=cat
14271 fi
14272 fi # test -n "$CONFIG_FILES"
14273
14274 _ACEOF
14275 cat >>$CONFIG_STATUS <<\_ACEOF
14276 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14277 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14278 case $ac_file in
14279 - | *:- | *:-:* ) # input from stdin
14280 cat >$tmp/stdin
14281 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14283 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14284 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14285 * ) ac_file_in=$ac_file.in ;;
14286 esac
14287
14288 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14289 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14291 X"$ac_file" : 'X\(//\)[^/]' \| \
14292 X"$ac_file" : 'X\(//\)$' \| \
14293 X"$ac_file" : 'X\(/\)' \| \
14294 . : '\(.\)' 2>/dev/null ||
14295 echo X"$ac_file" |
14296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14298 /^X\(\/\/\)$/{ s//\1/; q; }
14299 /^X\(\/\).*/{ s//\1/; q; }
14300 s/.*/./; q'`
14301 { if $as_mkdir_p; then
14302 mkdir -p "$ac_dir"
14303 else
14304 as_dir="$ac_dir"
14305 as_dirs=
14306 while test ! -d "$as_dir"; do
14307 as_dirs="$as_dir $as_dirs"
14308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14310 X"$as_dir" : 'X\(//\)[^/]' \| \
14311 X"$as_dir" : 'X\(//\)$' \| \
14312 X"$as_dir" : 'X\(/\)' \| \
14313 . : '\(.\)' 2>/dev/null ||
14314 echo X"$as_dir" |
14315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14317 /^X\(\/\/\)$/{ s//\1/; q; }
14318 /^X\(\/\).*/{ s//\1/; q; }
14319 s/.*/./; q'`
14320 done
14321 test ! -n "$as_dirs" || mkdir $as_dirs
14322 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14324 { (exit 1); exit 1; }; }; }
14325
14326 ac_builddir=.
14327
14328 if test "$ac_dir" != .; then
14329 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14330 # A "../" for each directory in $ac_dir_suffix.
14331 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14332 else
14333 ac_dir_suffix= ac_top_builddir=
14334 fi
14335
14336 case $srcdir in
14337 .) # No --srcdir option. We are building in place.
14338 ac_srcdir=.
14339 if test -z "$ac_top_builddir"; then
14340 ac_top_srcdir=.
14341 else
14342 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14343 fi ;;
14344 [\\/]* | ?:[\\/]* ) # Absolute path.
14345 ac_srcdir=$srcdir$ac_dir_suffix;
14346 ac_top_srcdir=$srcdir ;;
14347 *) # Relative path.
14348 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14349 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14350 esac
14351
14352 # Do not use `cd foo && pwd` to compute absolute paths, because
14353 # the directories may not exist.
14354 case `pwd` in
14355 .) ac_abs_builddir="$ac_dir";;
14356 *)
14357 case "$ac_dir" in
14358 .) ac_abs_builddir=`pwd`;;
14359 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14360 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14361 esac;;
14362 esac
14363 case $ac_abs_builddir in
14364 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14365 *)
14366 case ${ac_top_builddir}. in
14367 .) ac_abs_top_builddir=$ac_abs_builddir;;
14368 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14369 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14370 esac;;
14371 esac
14372 case $ac_abs_builddir in
14373 .) ac_abs_srcdir=$ac_srcdir;;
14374 *)
14375 case $ac_srcdir in
14376 .) ac_abs_srcdir=$ac_abs_builddir;;
14377 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14378 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14379 esac;;
14380 esac
14381 case $ac_abs_builddir in
14382 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14383 *)
14384 case $ac_top_srcdir in
14385 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14386 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14387 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14388 esac;;
14389 esac
14390
14391
14392 case $INSTALL in
14393 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14394 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14395 esac
14396
14397 if test x"$ac_file" != x-; then
14398 { echo "$as_me:$LINENO: creating $ac_file" >&5
14399 echo "$as_me: creating $ac_file" >&6;}
14400 rm -f "$ac_file"
14401 fi
14402 # Let's still pretend it is `configure' which instantiates (i.e., don't
14403 # use $as_me), people would be surprised to read:
14404 # /* config.h. Generated by config.status. */
14405 if test x"$ac_file" = x-; then
14406 configure_input=
14407 else
14408 configure_input="$ac_file. "
14409 fi
14410 configure_input=$configure_input"Generated from `echo $ac_file_in |
14411 sed 's,.*/,,'` by configure."
14412
14413 # First look for the input files in the build tree, otherwise in the
14414 # src tree.
14415 ac_file_inputs=`IFS=:
14416 for f in $ac_file_in; do
14417 case $f in
14418 -) echo $tmp/stdin ;;
14419 [\\/$]*)
14420 # Absolute (can't be DOS-style, as IFS=:)
14421 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14422 echo "$as_me: error: cannot find input file: $f" >&2;}
14423 { (exit 1); exit 1; }; }
14424 echo "$f";;
14425 *) # Relative
14426 if test -f "$f"; then
14427 # Build tree
14428 echo "$f"
14429 elif test -f "$srcdir/$f"; then
14430 # Source tree
14431 echo "$srcdir/$f"
14432 else
14433 # /dev/null tree
14434 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14435 echo "$as_me: error: cannot find input file: $f" >&2;}
14436 { (exit 1); exit 1; }; }
14437 fi;;
14438 esac
14439 done` || { (exit 1); exit 1; }
14440 _ACEOF
14441 cat >>$CONFIG_STATUS <<_ACEOF
14442 sed "$ac_vpsub
14443 $extrasub
14444 _ACEOF
14445 cat >>$CONFIG_STATUS <<\_ACEOF
14446 :t
14447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14448 s,@configure_input@,$configure_input,;t t
14449 s,@srcdir@,$ac_srcdir,;t t
14450 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14451 s,@top_srcdir@,$ac_top_srcdir,;t t
14452 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14453 s,@builddir@,$ac_builddir,;t t
14454 s,@abs_builddir@,$ac_abs_builddir,;t t
14455 s,@top_builddir@,$ac_top_builddir,;t t
14456 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14457 s,@INSTALL@,$ac_INSTALL,;t t
14458 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14459 rm -f $tmp/stdin
14460 if test x"$ac_file" != x-; then
14461 mv $tmp/out $ac_file
14462 else
14463 cat $tmp/out
14464 rm -f $tmp/out
14465 fi
14466
14467 done
14468 _ACEOF
14469 cat >>$CONFIG_STATUS <<\_ACEOF
14470
14471 #
14472 # CONFIG_HEADER section.
14473 #
14474
14475 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14476 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14477 #
14478 # ac_d sets the value in "#define NAME VALUE" lines.
14479 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14480 ac_dB='[ ].*$,\1#\2'
14481 ac_dC=' '
14482 ac_dD=',;t'
14483 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14484 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14485 ac_uB='$,\1#\2define\3'
14486 ac_uC=' '
14487 ac_uD=',;t'
14488
14489 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14490 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14491 case $ac_file in
14492 - | *:- | *:-:* ) # input from stdin
14493 cat >$tmp/stdin
14494 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14495 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14496 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14497 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14498 * ) ac_file_in=$ac_file.in ;;
14499 esac
14500
14501 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14502 echo "$as_me: creating $ac_file" >&6;}
14503
14504 # First look for the input files in the build tree, otherwise in the
14505 # src tree.
14506 ac_file_inputs=`IFS=:
14507 for f in $ac_file_in; do
14508 case $f in
14509 -) echo $tmp/stdin ;;
14510 [\\/$]*)
14511 # Absolute (can't be DOS-style, as IFS=:)
14512 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14513 echo "$as_me: error: cannot find input file: $f" >&2;}
14514 { (exit 1); exit 1; }; }
14515 # Do quote $f, to prevent DOS paths from being IFS'd.
14516 echo "$f";;
14517 *) # Relative
14518 if test -f "$f"; then
14519 # Build tree
14520 echo "$f"
14521 elif test -f "$srcdir/$f"; then
14522 # Source tree
14523 echo "$srcdir/$f"
14524 else
14525 # /dev/null tree
14526 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14527 echo "$as_me: error: cannot find input file: $f" >&2;}
14528 { (exit 1); exit 1; }; }
14529 fi;;
14530 esac
14531 done` || { (exit 1); exit 1; }
14532 # Remove the trailing spaces.
14533 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14534
14535 _ACEOF
14536
14537 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14538 # `conftest.undefs', that substitutes the proper values into
14539 # config.h.in to produce config.h. The first handles `#define'
14540 # templates, and the second `#undef' templates.
14541 # And first: Protect against being on the right side of a sed subst in
14542 # config.status. Protect against being in an unquoted here document
14543 # in config.status.
14544 rm -f conftest.defines conftest.undefs
14545 # Using a here document instead of a string reduces the quoting nightmare.
14546 # Putting comments in sed scripts is not portable.
14547 #
14548 # `end' is used to avoid that the second main sed command (meant for
14549 # 0-ary CPP macros) applies to n-ary macro definitions.
14550 # See the Autoconf documentation for `clear'.
14551 cat >confdef2sed.sed <<\_ACEOF
14552 s/[\\&,]/\\&/g
14553 s,[\\$`],\\&,g
14554 t clear
14555 : clear
14556 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14557 t end
14558 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14559 : end
14560 _ACEOF
14561 # If some macros were called several times there might be several times
14562 # the same #defines, which is useless. Nevertheless, we may not want to
14563 # sort them, since we want the *last* AC-DEFINE to be honored.
14564 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14565 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14566 rm -f confdef2sed.sed
14567
14568 # This sed command replaces #undef with comments. This is necessary, for
14569 # example, in the case of _POSIX_SOURCE, which is predefined and required
14570 # on some systems where configure will not decide to define it.
14571 cat >>conftest.undefs <<\_ACEOF
14572 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14573 _ACEOF
14574
14575 # Break up conftest.defines because some shells have a limit on the size
14576 # of here documents, and old seds have small limits too (100 cmds).
14577 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14578 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14579 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14580 echo ' :' >>$CONFIG_STATUS
14581 rm -f conftest.tail
14582 while grep . conftest.defines >/dev/null
14583 do
14584 # Write a limited-size here document to $tmp/defines.sed.
14585 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14586 # Speed up: don't consider the non `#define' lines.
14587 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14588 # Work around the forget-to-reset-the-flag bug.
14589 echo 't clr' >>$CONFIG_STATUS
14590 echo ': clr' >>$CONFIG_STATUS
14591 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14592 echo 'CEOF
14593 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14594 rm -f $tmp/in
14595 mv $tmp/out $tmp/in
14596 ' >>$CONFIG_STATUS
14597 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14598 rm -f conftest.defines
14599 mv conftest.tail conftest.defines
14600 done
14601 rm -f conftest.defines
14602 echo ' fi # grep' >>$CONFIG_STATUS
14603 echo >>$CONFIG_STATUS
14604
14605 # Break up conftest.undefs because some shells have a limit on the size
14606 # of here documents, and old seds have small limits too (100 cmds).
14607 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14608 rm -f conftest.tail
14609 while grep . conftest.undefs >/dev/null
14610 do
14611 # Write a limited-size here document to $tmp/undefs.sed.
14612 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14613 # Speed up: don't consider the non `#undef'
14614 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14615 # Work around the forget-to-reset-the-flag bug.
14616 echo 't clr' >>$CONFIG_STATUS
14617 echo ': clr' >>$CONFIG_STATUS
14618 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14619 echo 'CEOF
14620 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14621 rm -f $tmp/in
14622 mv $tmp/out $tmp/in
14623 ' >>$CONFIG_STATUS
14624 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14625 rm -f conftest.undefs
14626 mv conftest.tail conftest.undefs
14627 done
14628 rm -f conftest.undefs
14629
14630 cat >>$CONFIG_STATUS <<\_ACEOF
14631 # Let's still pretend it is `configure' which instantiates (i.e., don't
14632 # use $as_me), people would be surprised to read:
14633 # /* config.h. Generated by config.status. */
14634 if test x"$ac_file" = x-; then
14635 echo "/* Generated by configure. */" >$tmp/config.h
14636 else
14637 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14638 fi
14639 cat $tmp/in >>$tmp/config.h
14640 rm -f $tmp/in
14641 if test x"$ac_file" != x-; then
14642 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14643 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14644 echo "$as_me: $ac_file is unchanged" >&6;}
14645 else
14646 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14648 X"$ac_file" : 'X\(//\)[^/]' \| \
14649 X"$ac_file" : 'X\(//\)$' \| \
14650 X"$ac_file" : 'X\(/\)' \| \
14651 . : '\(.\)' 2>/dev/null ||
14652 echo X"$ac_file" |
14653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14655 /^X\(\/\/\)$/{ s//\1/; q; }
14656 /^X\(\/\).*/{ s//\1/; q; }
14657 s/.*/./; q'`
14658 { if $as_mkdir_p; then
14659 mkdir -p "$ac_dir"
14660 else
14661 as_dir="$ac_dir"
14662 as_dirs=
14663 while test ! -d "$as_dir"; do
14664 as_dirs="$as_dir $as_dirs"
14665 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14667 X"$as_dir" : 'X\(//\)[^/]' \| \
14668 X"$as_dir" : 'X\(//\)$' \| \
14669 X"$as_dir" : 'X\(/\)' \| \
14670 . : '\(.\)' 2>/dev/null ||
14671 echo X"$as_dir" |
14672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14673 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14674 /^X\(\/\/\)$/{ s//\1/; q; }
14675 /^X\(\/\).*/{ s//\1/; q; }
14676 s/.*/./; q'`
14677 done
14678 test ! -n "$as_dirs" || mkdir $as_dirs
14679 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14680 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14681 { (exit 1); exit 1; }; }; }
14682
14683 rm -f $ac_file
14684 mv $tmp/config.h $ac_file
14685 fi
14686 else
14687 cat $tmp/config.h
14688 rm -f $tmp/config.h
14689 fi
14690 done
14691 _ACEOF
14692 cat >>$CONFIG_STATUS <<\_ACEOF
14693
14694 #
14695 # CONFIG_COMMANDS section.
14696 #
14697 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14698 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14699 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14700 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14701 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14702 X"$ac_dest" : 'X\(//\)[^/]' \| \
14703 X"$ac_dest" : 'X\(//\)$' \| \
14704 X"$ac_dest" : 'X\(/\)' \| \
14705 . : '\(.\)' 2>/dev/null ||
14706 echo X"$ac_dest" |
14707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14709 /^X\(\/\/\)$/{ s//\1/; q; }
14710 /^X\(\/\).*/{ s//\1/; q; }
14711 s/.*/./; q'`
14712 { if $as_mkdir_p; then
14713 mkdir -p "$ac_dir"
14714 else
14715 as_dir="$ac_dir"
14716 as_dirs=
14717 while test ! -d "$as_dir"; do
14718 as_dirs="$as_dir $as_dirs"
14719 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14720 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14721 X"$as_dir" : 'X\(//\)[^/]' \| \
14722 X"$as_dir" : 'X\(//\)$' \| \
14723 X"$as_dir" : 'X\(/\)' \| \
14724 . : '\(.\)' 2>/dev/null ||
14725 echo X"$as_dir" |
14726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14728 /^X\(\/\/\)$/{ s//\1/; q; }
14729 /^X\(\/\).*/{ s//\1/; q; }
14730 s/.*/./; q'`
14731 done
14732 test ! -n "$as_dirs" || mkdir $as_dirs
14733 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14734 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14735 { (exit 1); exit 1; }; }; }
14736
14737 ac_builddir=.
14738
14739 if test "$ac_dir" != .; then
14740 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14741 # A "../" for each directory in $ac_dir_suffix.
14742 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14743 else
14744 ac_dir_suffix= ac_top_builddir=
14745 fi
14746
14747 case $srcdir in
14748 .) # No --srcdir option. We are building in place.
14749 ac_srcdir=.
14750 if test -z "$ac_top_builddir"; then
14751 ac_top_srcdir=.
14752 else
14753 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14754 fi ;;
14755 [\\/]* | ?:[\\/]* ) # Absolute path.
14756 ac_srcdir=$srcdir$ac_dir_suffix;
14757 ac_top_srcdir=$srcdir ;;
14758 *) # Relative path.
14759 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14760 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14761 esac
14762
14763 # Do not use `cd foo && pwd` to compute absolute paths, because
14764 # the directories may not exist.
14765 case `pwd` in
14766 .) ac_abs_builddir="$ac_dir";;
14767 *)
14768 case "$ac_dir" in
14769 .) ac_abs_builddir=`pwd`;;
14770 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14771 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14772 esac;;
14773 esac
14774 case $ac_abs_builddir in
14775 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14776 *)
14777 case ${ac_top_builddir}. in
14778 .) ac_abs_top_builddir=$ac_abs_builddir;;
14779 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14780 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14781 esac;;
14782 esac
14783 case $ac_abs_builddir in
14784 .) ac_abs_srcdir=$ac_srcdir;;
14785 *)
14786 case $ac_srcdir in
14787 .) ac_abs_srcdir=$ac_abs_builddir;;
14788 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14789 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14790 esac;;
14791 esac
14792 case $ac_abs_builddir in
14793 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14794 *)
14795 case $ac_top_srcdir in
14796 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14797 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14798 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14799 esac;;
14800 esac
14801
14802
14803 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14804 echo "$as_me: executing $ac_dest commands" >&6;}
14805 case $ac_dest in
14806 default-1 ) if test -f .devel; then
14807 echo timestamp > stamp-h
14808 cat Makefile-devel-adds >> Makefile
14809 make depend
14810 fi ;;
14811 esac
14812 done
14813 _ACEOF
14814
14815 cat >>$CONFIG_STATUS <<\_ACEOF
14816
14817 { (exit 0); exit 0; }
14818 _ACEOF
14819 chmod +x $CONFIG_STATUS
14820 ac_clean_files=$ac_clean_files_save
14821
14822
14823 # configure is writing to config.log, and then calls config.status.
14824 # config.status does its own redirection, appending to config.log.
14825 # Unfortunately, on DOS this fails, as config.log is still kept open
14826 # by configure, so config.status won't be able to write to it; its
14827 # output is simply discarded. So we exec the FD to /dev/null,
14828 # effectively closing config.log, so it can be properly (re)opened and
14829 # appended to by config.status. When coming back to configure, we
14830 # need to make the FD available again.
14831 if test "$no_create" != yes; then
14832 ac_cs_success=:
14833 ac_config_status_args=
14834 test "$silent" = yes &&
14835 ac_config_status_args="$ac_config_status_args --quiet"
14836 exec 5>/dev/null
14837 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14838 exec 5>>config.log
14839 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14840 # would make configure fail if this is the last instruction.
14841 $ac_cs_success || { (exit 1); exit 1; }
14842 fi
14843
14844 exit 0